Download over bluetooth

Questions and discussion about the ZBasic IDE.
Post Reply
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Download over bluetooth

Post 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 ?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Download over bluetooth

Post 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
- Don Kinzer
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post 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 ?
GTBecker
Posts: 616
Joined: 17 January 2006, 19:59 PM
Location: Cape Coral

Download over bluetooth

Post 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
Tom
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post 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 ?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post 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
Last edited by dkinzer on 05 December 2014, 10:22 AM, edited 1 time in total.
- Don Kinzer
twesthoff
Posts: 247
Joined: 17 March 2006, 6:45 AM
Location: Fredericksburg, VA

Download over bluetooth

Post by twesthoff »

Maybe you could make this an app note?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Download over bluetooth

Post by dkinzer »

twesthoff wrote:Maybe you could make this an app note?
Because it is relatively short, I just made it a sticky post.
- Don Kinzer
Post Reply