- RS232 via a standard USB serial port (and the supporting max232 circuit)
- RS232 over Bluetooth
The tricky part is that these devices default to 9600 8N1. In reality, this is a very reasonable number for most applications. However, I needed to drop it down to 4800bps due to the clock speed I am running. The trick to that is that the BTM can only be configured via the terminal when the BT link is not active. To do that requires connecting the BTM to the host via a TTL serial adapter.
Once communication is established, one item to watch out for is the firmware. Some adapters come with HC06 (Linvor 1.5) and others come with HC05. While, HC05 has more configuration options, I am not sure too many of them are useful. To really dig into it, visit Byron's Blog.
Fortunately, there is a lot of information out there on configuring this BTM. A quick Google for, "Bluetooth and linvor" will turn up a wealth of resources for customizing the BTM or you can download the manual.Quick Start Guide:
- Set Baud Rate - Sets the baud rate. Baud rate is set by an hexadecimal index from '1' to 'C'
- Indexes are: 1:1200, 2:2400, 3:4800, 4:9600, 5:19200, 6:38400, 7:57600, 8:115200, 9:230400, A:460800, B:921600, C:1382400
- Send: AT+BAUD<index>
- Response: OK<baud rate>
- Set Bluetooth Device Name - Sets Bluetooth Device Name
- Send: AT+NAME<device name>
- Response: OK<device name>
- Set Bluetooth PIN Code - Sets the security code needed to connect to the device
- Send: AT+PIN<4 digit code>
- Response: OK<4 digit code>
- Check Firmware Revision -Get The Firmware Revision Number
- Send: AT+VERSION
- Response: Linvor1.5
No comments:
Post a Comment