UART Break?
computer guy
Posts: 1,113
Has anyone had success with sending a UART Break signal with the BS2?
I need to send a UART Break to the Easy Bluetooth module, however my attempts are failing dismally.
My attempts are
and
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
I need to send a UART Break to the Easy Bluetooth module, however my attempts are failing dismally.
My attempts are
LOW TX WAIT 100
and
SEROUT, TX, Baud, [noparse][[/noparse]$00,$00,$00,$00,$00,$00,$00,$00,$00,$00]
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
Comments
73.8 milliseconds should be long enough to be recognized as BREAK
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
However that didn't work either.
Any other ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
You could gate in a pulse of whatever length you need from a regular Stamp pin via a diode.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
The manual/datasheet just says "A UART break is needed to leave transparent mode and enter command mode".
No length is specified.
If I was to use the circuit above, what code would I need?
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
Gives me
Sending data
gives me
Is it just me or is there something weird going on with the TX line?
Although sending "j" gives me
Which looks fine to me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
Post Edited (computer guy) : 1/5/2010 6:57:43 AM GMT
The first 'scope picture looks like there is contention going on. Both sides are trying to be outputs at the same time, one high and one low, so it ends up at 2.5 volts.
I like to put in code to make a simple trigger edge for channel 2 of the scope, because RS232 signals can be a mess if the triggering is not right. There is more going on in the last two scope pictures.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Time for bed I think.
Thank you for your help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
Post Edited (computer guy) : 1/5/2010 12:09:47 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
However I managed to get the device to respond to commands after sending it
Set Event Filter, "Report All Events".
I believe it was set to "No Events Reported, No UART Break".
I tried sending that command before however it failed. At about 9:00PM last night I decided to try it again.
Much to my surprise, it responded with "Mode Set" (well the response code equivelant).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"powered by Propeller" domed stickers $1.50 - Find them here
Check out my Design and Technology project for my Higher School Certificate www.ecosureblog.net
PULSOUT TX, 0, 500 ' -- Goal here to generate a low-pulse of 100 mSecs.