Serial communication problems
dev/null
Posts: 381
Hi all,
I have problems getting serial com between Stamps to work. I am trying both BS2 and BS2p combinations, and all tries results in jibberish data or timeouts. I have numerous other serial devices connected to both Master and Slave and they all work fine.
This is critical for my robot to work, and if I can't get this working my whole robot project will die a lonesome death.
- The baud rates are correct.
- The pins are correctly connected
- All units are connected to common ground.
- I've tried 2400 and 9600 speeds.
Master:
Slave:
Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
/dev/null
I have problems getting serial com between Stamps to work. I am trying both BS2 and BS2p combinations, and all tries results in jibberish data or timeouts. I have numerous other serial devices connected to both Master and Slave and they all work fine.
This is critical for my robot to work, and if I can't get this working my whole robot project will die a lonesome death.
- The baud rates are correct.
- The pins are correctly connected
- All units are connected to common ground.
- I've tried 2400 and 9600 speeds.
Master:
SEROUT IOSlave/FCSlave, N2400 + Inverted, [noparse][[/noparse] 1 ]
Slave:
SERIN SIOpin/FCpin, N2400 + Inverted, 1000, Cont, [noparse][[/noparse]indata]
Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
/dev/null
Comments
Or I'll buy a MAX3100.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
/dev/null
There's a chance the 1K and the two 470 ohm are just a bit too high.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
SEROUT IOSlave\FCSlave,...
not
SEROUT IOSlave/FCSlave,...
Same for SERIN.
The faulty syntax selects the i/o pin that is the result of dividing IOSlave by FCSlave, not what you want!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
(lol)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
/dev/null