ayavilevich / arduino-ble-ident-n-set

Arduino BLE module identification and setup sketch. Supports HM-10, CC41 and similar generic BLE modules.
GNU General Public License v3.0
60 stars 18 forks source link

Firmware V4.2.0,Bluetooth V4.0 LE from www.cyobd.com #3

Open zdila opened 6 years ago

zdila commented 6 years ago

Just for the info - may be helpful:

I've bought https://www.ebay.com/itm/HM-10-CC2541-CC2540-4-0Bluetooth-UART-Transceiver-Transparent-Serial-Port-NEW/381374587590?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

AT+HELP
********************************************************************
* Command             Description                      *
* ---------------------------------------------------------------- *
* AT                  Check if the command terminal work normally  *
* AT+RESET            Software reboot                  *
* AT+VERSION          Get firmware, bluetooth, HCI and LMP version *
* AT+HELP             List all the commands                *
* AT+NAME             Get/Set local device name                    *
* AT+PIN              Get/Set pin code for pairing                 *
* AT+PASS             Get/Set pin code for pairing                 *
* AT+BAUD             Get/Set baud rate                        *
* AT+LADDR            Get local bluetooth address          *
* AT+ADDR             Get local bluetooth address          *
* AT+DEFAULT          Restore factory default              *
* AT+RENEW            Restore factory default              *
* AT+STATE            Get current state                *
* AT+PWRM             Get/Set power on mode(low power)         *
* AT+POWE             Get/Set RF transmit power            *
* AT+SLEEP            Sleep mode                           *
* AT+ROLE             Get/Set current role.                    *
* AT+PARI             Get/Set UART parity bit.                     *
* AT+STOP             Get/Set UART stop bit.                       *
* AT+START            System start working.            *
* AT+IMME             System wait for command when power on.       *
* AT+IBEA             Switch iBeacon mode.                     *
* AT+IBE0             Set iBeacon UUID 0.                          *
* AT+IBE1             Set iBeacon UUID 1.                          *
* AT+IBE2             Set iBeacon UUID 2.                          *
* AT+IBE3             Set iBeacon UUID 3.                          *
* AT+MARJ             Set iBeacon MARJ .                           *
* AT+MINO             Set iBeacon MINO .                           *
* AT+MEA              Set iBeacon MEA .                        *
* AT+NOTI             Notify connection event .                    *
* AT+UUID             Get/Set system SERVER_UUID .                 *
* AT+CHAR             Get/Set system CHAR_UUID .                   *
* -----------------------------------------------------------------*
* Note: (M) = The command support slave mode only.         *
* For more information, please visit http://www.cyobd.com          *
* Copyright@2013 www.cyobd.com.   All rights reserved.         *
********************************************************************

AT+VERSION
+VERSION=Firmware V4.2.0,Bluetooth V4.0 LE

AT+NAME
+NAME=BT05

Module requires CR+LF and AT can be lowercase. Default baudrate is 9600.

Module looks like http://www.cyobd.com/product/showproduct.php?lang=cn&id=62 but without that big upper right component. It is without breaking board.

ayavilevich commented 6 years ago

@zdila thanks for the data. Can you include the output of arduino-ble-ident-n-set run for this module?

zdila commented 6 years ago

Sure:

Arduino BLE module identification and setup sketch.
Interact with this interface using serial in CR&LF mode.
Opening serial connection to BLE module at pins: 8, 9, -1
For this sketch, make sure the module is not connected to another BLE device.
This will make sure the device is in command mode.
A led on the module should be off or blinking.
Detecting module type
CC41 detected!
Sending command: AT+HELP
********************************************************************
* Command             Description                      *
* ---------------------------------------------------------------- *
* AT                  Check if the command terminal work normally  *
* AT+RESET            Software reboot                  *
* AT+VERSION          Get firmware, bluetooth, HCI and LMP version *
* AT+HELP             List all the commands                *
* AT+NAME             Get/Set local device name                    *
* AT+PIN              Get/Set pin code for pairing                 *
* AT+PASS             Get/Set pin code for pairing                 *
* AT+BAUD             Get/Set baud rate                        *
* AT+LADDR            Get local bluetooth address          *
* AT+ADDR             Get local bluetooth address          *
* AT+DEFAULT          Restore factory default              *
* AT+RENEW            Restore factory default              *
* AT+STATE            Get current state                *
* AT+PWRM             Get/Set power on mode(low power)         *
* AT+POWE             Get/Set RF transmit power            *
* AT+SLEEP            Sleep mode                           *
* AT+ROLE             Get/Set current role.                    *
* AT+PARI             Get/Set UART parity bit.                     *
* AT+STOP             Get/Set UART stop bit.                       *
* AT+START            System start working.            *
* AT+IMME             System wait for command when power on.       *
* AT+IBEA             Switch iBeacon mode.                     *
* AT+IBE0             Set iBeacon UUID 0.                          *
* AT+IBE1             Set iBeacon UUID 1.                          *
* AT+IBE2             Set iBeacon UUID 2.                          *
* AT+IBE3             Set iBeacon UUID 3.                          *
* AT+MARJ             Set iBeacon MARJ .                           *
* AT+MINO             Set iBeacon MINO .                           *
* AT+MEA              Set iBeacon MEA .                        *
* AT+NOTI             Notify connection event .                    *
* AT+UUID             Get/Set system SERVER_UUID .                 *
* AT+CHAR             Get/Set system CHAR_UUID .                   *
* -----------------------------------------------------------------*
* Note: (M) = The command support slave mode only.         *
* For more information, please visit http://www.cyobd.com          *
* Copyright@2013 www.cyobd.com.   All rights reserved.         *
********************************************************************
Sending command: AT+VERSION
+VERSION=Firmware V4.2.0,Bluetooth V4.0 LE
Sending command: AT+NAME
+NAME=DOPEY
Sending command: AT+PASS
+PASS=1234
Sending command: AT+ADDR
+ADDR=00:15:84:32:4E:0D
Sending command: AT+ROLE
+ROLE=0
Sending command: AT+POWE (0 = -23dbm, 1 = -6dbm, 2 = 0dbm, 3 = 6dbm)
+POWE=2
Sending command: AT+TYPE (0 = No binding, 3 = Do binding (not documented))
+TYPE=0
0) Quit
1) Set module name
2) Set module password
4) Set module power
5) Set module binding type
6) Display main settings
7) Restore default settings
8) Reboot/reset/restart
9) Re-identify module
10) Detect connection state
Enter menu selection [0] :
TyRoden commented 4 years ago

I have this same module as well. Any luck?