Data Sheet
Prerequisites
Firstly, you will need to either obtain the compiled usb_serial.wxl file (can be found at
https://github.com/jstevensog/wixel-sdk/blob/master/apps/usb_serial/usb_serial.wxl), or
compile it using the wixel-sdk located at https://github.com/jstevensog/wixel-sdk. Connect
your wixel to a computer via USB, and use the Wixel Configuration Utility to load this onto
your wixel.
Secondly, you will need a terminal program. There are two options here. Either use a
standard serial terminal program (PuTTY, Hyperterminal, etc) or an Arduino terminal
program. The Ardiuno terminal program is probably the preferred option, but a standard
serial terminal program can be used, it is just slightly more fiddly.
When using a standard terminal program, like PuTTY, you will need to PASTE the command
into the terminal window. This is because the HM-1x modules DO NOT accept a CR or LF
character. They only detect a delay at the end of the command string and try to execute it.
If you try to type the command into the terminal program, it will ignore you as you cannot
type quickly enough to get the whole command in.
Note: Set the terminal parameters to be 9600 baud, 8 bits, 1 stop bit, no parity.
Some people have reported receiving HM-1x modules that use a different baud rate
(115200). However, the Jinan Huamao documentation states that the default baud rate for
the HM-10 and HM-11 modules is 9600 baud. As pointed out above, the module you
receive may not have the latest firmware on it, and may not have been reset post Quality
Assurance testing and being delivered to you. Once you have loaded the latest firmware on
to your module, it SHOULD then be communicating at 9600 baud. If it is still not
communicating at this baud rate, you will need to issue the command “AT+BAUD0” followed
by “AT+RESET”, and confirming that the module is now communicating at 9600 baud, prior
to loading the xBridge2 app onto the wixel.
Thirdly, go to http://www.jnhuamao.cn/download_rom_en.asp?id=# and download the V534
firmware zip file that is correct for the SoC on your HM-1X device. Use a magnifying glass to
read the model number on your module. It should be either CC2540 or CC2541. If you are
going to be making a few of these bridges, download both. You never know which one you
are going to get. Unzip the contents into a folder. You will have a readme.txt file, a
HMSoft.bin file (the firmware), and a HMSoft.exe file (the firmware updating utility).
Updating steps.
1. Ensure you have the wixel attached to a PC via USB.
2. Ensure you know what COM port it is represented as. You can use the Wixel
Configuration Utility to find this out.
3. Ensure you have installed the usb_serial.wxl program on the wixel.
4. Open your terminal program.
5. Send “AT” to the wixel. The response should be “OK”.
6. Send “AT+SBLUP” to the wixel. It will respond with “OK+SBLUP”. It is now ready
and waiting to accept the firmware update.
7. SHUT DOWN YOUR TERMINAL PROGRAM NOW!!!!!