Page 1 of 1

Download over bluetooth

Posted: 03 December 2014, 7:49 AM
by FFMan
The biggest pain I find with making code changes to embedded projects is accessing the programming pins, so I think by default now i'll install a Bluetooth module as they are pretty cheap now.

So the question is, when I attached a Bluetooth module to com1 what baud rate should I set the interface on the Bluetooth device to ?

If I have performed the initial load/debug with the IDE set to 115200 (and the 'change speed for download' option ticked) does this mean that the programming speed is now set to 115200 permanently or does it revert to 19.2k and auto-baud to 115200 when I start the download ?

if its the latter can it auto-baud using atnchar ?

Re: Download over bluetooth

Posted: 03 December 2014, 9:10 AM
by dkinzer
FFMan wrote:So the question is, when I attached a Bluetooth module to com1 what baud rate should I set the interface on the Bluetooth device to ?
The BlueTooth link is fairly slow. I believe that you'll need to have the baud rate at 19.2K or less. There is a thread on the topic started by Tom B. the final element of which describes what he did to successfully download over BlueTooth.

http://www.zbasic.net/forum/about1210.html

Posted: 03 December 2014, 12:32 PM
by FFMan
Ready and partially understood that post.

so to set the download speed to 19200 do I just need to set the ide to that and do a download over a cable and that will set the download speed to 19200 which should work if i set the Bluetooth module to 19200 ?

Download over bluetooth

Posted: 03 December 2014, 17:08 PM
by GTBecker
You will need to be wired (RX/TX/ATN/Gnd) to the ZX module at least once
to set and download the "Use ATN character" option in IDE Options/Serial
Port Options. Pragmatically, you can expect to need the wired method
again from time to time to recover from developmental errors, so
prototype jumpers that select wired or Bluetooth will be handy.

You will need to set options in the project Bluetooth module, the
project ZBasic module and the desktop ZBasic IDE.

Do you have an appropriate serial or USB adapter and desktop utility to
set the project Bluetooth module options? What module are you using?


Tom

Posted: 04 December 2014, 0:19 AM
by FFMan
In the past I used RN41 module and this was great but expensive. I have a couple of cheap HC05 ones, and they seem to emulate a serial cable OK.

The question really was, what speed to set the HC05 serial speed to on the zbasic end ? 19200 has been proven to be the most reliable judging from other posts, but how do I ensure the zbasic end is expecting 19200.

Does it use the last download speed from a wired connection ?

Posted: 04 December 2014, 10:22 AM
by dkinzer
FFMan wrote:Does it use the last download speed from a wired connection ?
The download speed of the IDE must match the operating speed of the serial channel whether it is wired or wireless.

I made a sticky post describing the procedure to get DTR-less downloading working at a non-standard speed using a wired serial connection. Once that process is understood, adding the wireless connection will be simpler.

http://www.zbasic.net/forum/about1852.html

Download over bluetooth

Posted: 04 December 2014, 12:45 PM
by twesthoff
Maybe you could make this an app note?

Re: Download over bluetooth

Posted: 05 December 2014, 10:23 AM
by dkinzer
twesthoff wrote:Maybe you could make this an app note?
Because it is relatively short, I just made it a sticky post.