RS485 network
jnogues
Posts: 25
Hi All!
I want to do a RS485 network with for interconnecting diferents propellers.
My questions are:
What is the maxim bauds in serial comunication in a spin program?
Somebody knows if MAX487 is a good RS485 transceiver o there is another better?
Regards,
Jaume Nogues
Barcelona Spain
Post Edited (jnogues) : 1/16/2010 7:44:27 PM GMT
I want to do a RS485 network with for interconnecting diferents propellers.
My questions are:
What is the maxim bauds in serial comunication in a spin program?
Somebody knows if MAX487 is a good RS485 transceiver o there is another better?
Regards,
Jaume Nogues
Barcelona Spain
Post Edited (jnogues) : 1/16/2010 7:44:27 PM GMT
Comments
Spin-only comm: 19.2kbps max
Spin main program, with "FullDuplexSerial" running in separate cog: at least 112kbps, maybe 230kbps; higher speed quite possible with custom code.
Sorry, I don't know - I have not used the MAX487.
Best Regards,
Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheusdual Prop SBC w/ 512KB kit $119.95, Mem+2MB memory IO board kit $89.95, both kits $189.95
Propteus and Proteus for Propeller prototyping 6.250MHz custom Crystals run Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheusdual Prop SBC w/ 512KB kit $119.95, Mem+2MB memory IO board kit $89.95, both kits $189.95
Propteus and Proteus for Propeller prototyping 6.250MHz custom Crystals run Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
with an easy to program SPIN-interface that you can use.
These serial drivers can go up to 115200 baud or even more.
best regards
Stefan
For the RS-485 physical interface, I have use the MAX487 and it works. What protocols and interface are you trying to do? Are you implementing some standard protocol set? Depending on where you install your equipment, you may want to consider a different IC or additional circuitry to protect or isolate the RS-485 lines.
Is your project full duplex or will it be half-duplex?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
Now I'm in the first steps because I'm new in propeller. I don`t have any protocol
decided, but I need it for a simple home bus where the actions will be turn on/off.
Best regards,
Jaume Nogues
Barcelona
Spain
Starting out is great, all of us had to start out so we know what it is like. Lets think through your home bus protocol. First, I am sure there are various protocols out there because so many people have done varying degrees of home automation. At the core of what you said is that a device is on or off. So it is digital, what about in between? What about analog such as a light dimmer in a room?
Your protocol could have a packet like the following:
One byte of a device address - each device has a unique address. Maybe one address is a broadcast to all devices.
One byte of an on/off/level status. 0 = 0ff, 1 - 254 = intensity level, 255 = Full on.
one byte checksum - some validation that your packet is intack and has correct data.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
Why you change from MAX487 to SN65HVD12D?
Regards,
Jaume
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
In this moment I have finished the protocol for the bus in a Master-salave organitation, and want to start RS485 probes.
I want use POE (power over ethernet) for suply the slaves via UTP wire.
Regards,
Jaume Nogues
Barcelona
Spain
There are plenty of chips to choose from but I wouldn't worry too much about which one specifically at the moment as they are practically all interchangeable. Tim mentioned a suitable one and I have used quite a few different ones too but it might depend more upon what you are able to get hold of too.
For the protocol I wouldn't even consider FDX or the like, it's just not made for it although you could press it into service. But that depends upon what speed you are using and how you are using it anyway. Simple is good, with a few modifications it can be better. There are a few serial objects I have suitable for 485 plus my newer UNICOM object when I release it, but that might not be for a few weeks with my current workload.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*