Pages: 1 [2]   Go Down
Author Topic: Is it possible to perform a loopback test with the max485?  (Read 1894 times)
0 Members and 1 Guest are viewing this topic.
Albany, NY
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, what I mean to do is develop the recieving code for all the slaves locally on the breadboard, and once that is complete I will upload that code to all the needed slave atmegas locally off the breadboard with the max232, and then I will put them into their final node circuit. I really just need for slaves to listen to the master say something like "Slave #6, turn on LEDs 4,7,12, and 14. Turn off 6", and perform that action. I believe that should be relatively little code for the slave. Once that is working I doubt I will need to update them much. I imagine most of my time will be spent on the master side programming the light sequencing it will direct the slaves to perform. I hope that makes sense and there is no major flaw in my plan smiley

-Sathi
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16564
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, what I mean to do is develop the recieving code for all the slaves locally on the breadboard, and once that is complete I will upload that code to all the needed slave atmegas locally off the breadboard with the max232, and then I will put them into their final node circuit. I really just need for slaves to listen to the master say something like "Slave #6, turn on LEDs 4,7,12, and 14. Turn off 6", and perform that action. I believe that should be relatively little code for the slave. Once that is working I doubt I will need to update them much. I imagine most of my time will be spent on the master side programming the light sequencing it will direct the slaves to perform. I hope that makes sense and there is no major flaw in my plan smiley

-Sathi

That sounds like a very workable plan. It gets a little more complex in master and slave code if you want the slave to send feedback information to the master as to if it got the message OK or perhaps you want the master to be able to ask a specific slave what outputs do you presently have on? Typically RS-485 links will implement a robust software protocol to use to communicate back and forth with the slaves and it might include error detection check sum or CRC bytes to every 'message'.

Good luck on your project.

Lefty

Logged

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 24
Posts: 1766
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Typically RS-485 links will implement a robust software protocol to use to communicate back and forth with the slaves and it might include error detection check sum or CRC bytes to every 'message'.

A good example of such a protocol from Nick Gammon: http://www.gammon.com.au/forum/?id=11428
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Pages: 1 [2]   Go Up
Jump to: