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 ?
Download over bluetooth
Re: Download over bluetooth
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.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 ?
http://www.zbasic.net/forum/about1210.html
- Don Kinzer
Download over bluetooth
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
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
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 ?
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 ?
The download speed of the IDE must match the operating speed of the serial channel whether it is wired or wireless.FFMan wrote:Does it use the last download speed from a wired connection ?
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
Download over bluetooth
Maybe you could make this an app note?
Re: Download over bluetooth
Because it is relatively short, I just made it a sticky post.twesthoff wrote:Maybe you could make this an app note?
- Don Kinzer