Jump to content




Communications & Range Test Kit

utility wireless networking

  • You cannot reply to this topic
4 replies to this topic

#1 lebalusch

  • Members
  • 49 posts

Posted 25 May 2015 - 09:56 PM

Hi Guys and Girls,

Here is a little two part project I done this bank holiday weekend that might help some new starters to scripting. Its designed to work on a computer and/or advanced computer, so its text based but still gets the job done.

So as stated there are two parts You can call them what you want i have just called them ears and mouth for ease of use:

Communications Test Listener http://pastebin.com/Ju9Lgy7R In Game: pastebin get Ju9Lgy7R ears
Alpha 1.0
Spoiler
Communications Test Broadcaster http://pastebin.com/hAHtp36n In Game: pastebin get hAHtp36n mouth
Alpha 1.1
Spoiler

Using These two scripts you can find out if your cabled network is working between point a and b. the same with the wireless modem. It will even tell you the cable length for a hard wired network. The wireless modem set up will tell you as the crow flys block distance. I guess you could use the Communications test Listener as a basic snooping device although play nice.


Updates:
Broadcaster program fix issued. alpha 1.1:
This addresses Known bug 1. and part fixes it so that it will now activate what ever side your modem is on that you have specified.

Known Bugs:
  • Please use only the top for the modems, while there are options to select the side you are using its not working right due to the pre-sets. if you want to use a different side feel free to edit the pre-sets before running. Method suggested for a fix in Ask a pro user by member Lyqyd
  • The broadcaster does not check that the side you have stated the modem is on is true. Fix in the pipe line for this using method suggested bellow by flaghacker

Thank you for stopping by this page and constructive help gratefully appreciated. Feed back below or direct message. Have fun :D

Edited by lebalusch, 31 May 2015 - 04:52 PM.


#2 flaghacker

  • Members
  • 655 posts

Posted 26 May 2015 - 10:47 AM

Cant this stuuf be shortened to:

Computer1:
>lua
>rednet.open("back")
>os.pullEvent("rednet_message")

Computer2:
>lua
>rednet.open("back")
>rednet.broadcast("Hello world!")

Could still be usefull to some...

Edit: code is only usefull without typo's

Edited by flaghacker, 26 May 2015 - 10:48 AM.


#3 lebalusch

  • Members
  • 49 posts

Posted 26 May 2015 - 08:05 PM

View Postflaghacker, on 26 May 2015 - 10:47 AM, said:

Spoiler
You could shorten it to a very basic program yes but where is the fun in that?! i was using it as a learning tool for myself and also hopefully others to see how areas of it work.. I have tried to add a little depth to it and a bit more features. Being a bit of an experienced user would you care to have a go at fixing the break mentioned above in the script please?

Edited by lebalusch, 26 May 2015 - 08:06 PM.


#4 flaghacker

  • Members
  • 655 posts

Posted 26 May 2015 - 08:29 PM

If you're talking about the problem that the modem has to be on the top side, you can easily fix that using peripheral.find.

Replace your
modem = peripheral.wrap ("top")
with
modem = peripheral.find ("modem")
. If that's not your problem, please clarify ;)

And I was not trying to be rude, I encourage you to keep learning and keep writing programs!

#5 lebalusch

  • Members
  • 49 posts

Posted 26 May 2015 - 10:04 PM

Thank you @flaghacker it wasn't taken as you being rude sorry if that's how it came across i will put your advice into action and give it a go.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users