SERIN Problems
Kevin Harris
Posts: 15
Okay, I just bought a BlueSmirf wireless bluetooth module that I'm interfacing to my BS2. It runs at the standard 9600/8/N/1 settings. The code below successfully SENDS data just fine and it makes it to my computer etc... However, one it gets to the SERIN statement I push a number key and I immediately get back gibbirish and the program never loops. I noticed in the BASIC Stamp manual it saying something about the stamp having trouble snychronizing incoming data at high baud rates, could this be the case or would it be something else, like the bluetooth module etc...? Here is a sample hyperterminal session with this testing code: "Kevin01
Comments
What kind of device is connected to pin port 2? I presume pin port 3 is the Bluetooth module?
Regards,
Bruce Bates
·· Perhaps you should make·an LED blink·at the end of your LOOP to verify that it is or isn't looping.· I would venture to guess it is, although I can't explain the extra characters.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The BlueSmirf supports flow control, and by using that on both ends I suspect your problems will disappear. The BlueSmirf module supports full duplex operation, but the Stamp does not. I suspect the line is being turned around faster than the Stamp can respond to it.
Regards,
Bruce Bates