Communicating via RS485
Posted: 27 Dec 2011, 15:45
Hello!
Is there any possibility that the communication via RS485 will be improved in one of the next firmware versions? Right now the way to communicate via cable is very complicated. It works only occasionally.
I tried different settings:
- 2 NXTs directly connected on port 4
- 3 NXTs connected per Mindsensors port splitter
- different delays while sending (0 - 250ms)
- different delays while receiving (0-50ms)
- different connection speed
But the result is always the same: to many messages get lost. Sometimes I have to send the same message 10 times till one of the slaves receives it. If I try to implement some error correction: "Master send message until the slave responds -> Master send token to the next NXT until it responds" I would loose so much time with every message, that the RS485 communication wouldn't be useful.
The communication between NXTs should be a helpful tool, not the main job on a project.
A communication like the Bluetooth mailbox system would be a lot easier. I heard Lejos is very comfortable in that way, but I am afraid of Java.
The NXT Brick is getting cheaper and cheaper. Many of the users call 2 or more NXTs their own. I think the Brick to Brick communication is one of the most wanted NXC features. And via cable it is much more "real time" than Bluetooh.
I hope my englisch was understandable.
Thank You!
alphasucht
Is there any possibility that the communication via RS485 will be improved in one of the next firmware versions? Right now the way to communicate via cable is very complicated. It works only occasionally.
I tried different settings:
- 2 NXTs directly connected on port 4
- 3 NXTs connected per Mindsensors port splitter
- different delays while sending (0 - 250ms)
- different delays while receiving (0-50ms)
- different connection speed
But the result is always the same: to many messages get lost. Sometimes I have to send the same message 10 times till one of the slaves receives it. If I try to implement some error correction: "Master send message until the slave responds -> Master send token to the next NXT until it responds" I would loose so much time with every message, that the RS485 communication wouldn't be useful.
The communication between NXTs should be a helpful tool, not the main job on a project.
A communication like the Bluetooth mailbox system would be a lot easier. I heard Lejos is very comfortable in that way, but I am afraid of Java.
The NXT Brick is getting cheaper and cheaper. Many of the users call 2 or more NXTs their own. I think the Brick to Brick communication is one of the most wanted NXC features. And via cable it is much more "real time" than Bluetooh.
I hope my englisch was understandable.
Thank You!
alphasucht