arduino-ble-ident-n-set icon indicating copy to clipboard operation
arduino-ble-ident-n-set copied to clipboard

Add SH-M08 Module

Open NicholasTracy opened this issue 6 years ago • 3 comments

I received another module based off the HM-10 that supposedly is the same but only in a smaller form factor for the carrier board. it has the same pin outs on the break out board as the HM-10. However when trying to use the Ident-n-set sketch on this module I get: Detecting module type Unexpected result of length=4 OK Not sure what is different there. I will be doing some research on the AT commands structure for this module as the typical AT+VERS? command returned nothing in all its variations.

NicholasTracy avatar Mar 22 '18 22:03 NicholasTracy

Running a terminal directly on the module and trying various commands I have come up with the following:

  • AT "OK/r/n"
  • AT+VERSION "OK:SH-VM1.23/r/n"
  • AT+NAME "OK+Set:/r/n"
  • AT+NAME? "OK+Name:SH-M08/r/n"
  • AT+HELP(?) No response w/ or wo/ "?"

Also I found this: http://www.dsdtech-global.com/2017/09/sh-m08.html

I'm working out adding it to the sketch now. I'll fork it and do a pull request once it is working.

NicholasTracy avatar Mar 22 '18 23:03 NicholasTracy

@NicholasTracy thanks for the info.

What end line mode did you use to send commands to it? Strange, if it responds to an "AT\r\n" with an "OK\r\n" then the script should have identified it as an MLT-BT05. Based on the datasheet in the link you have sent, there is no AT+HELP command in this firmware.

I checked if I can order one but it didn't seem that popular. Can you suggest a place that sells these and ships worldwide?

Looking forward to a pull request or to more information.

ayavilevich avatar Mar 23 '18 11:03 ayavilevich

Correct it handles AT commands differently from either the HM-10 or the clones. In some commands it uses the ? at the end to return the current value and in others it does not. and it has no help command. the firmware version returned is also unique. They are sold by DSD-TECH which also happens to be a legitimate re-seller of the genuine HM-10 modules as well. I purchased mine off of Amazon US but they also sell on their own website, I think. I might be wrong on that one. I was using \r\n\ end line mode in my terminal as it would not respond otherwise.

NicholasTracy avatar Mar 23 '18 20:03 NicholasTracy