Giter Site home page Giter Site logo

ayavilevich / arduino-ble-ident-n-set Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 18.0 52 KB

Arduino BLE module identification and setup sketch. Supports HM-10, CC41 and similar generic BLE modules.

License: GNU General Public License v3.0

C++ 100.00%
arduino ble-modules ble bluetooth bluetooth-low-energy hm-10

arduino-ble-ident-n-set's People

Contributors

ayavilevich avatar zalexki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arduino-ble-ident-n-set's Issues

Role not setable

Hey, great job!
I was wondering if there is a reason that you don't allow to set the ROLE ?

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

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.

Add SH-M08 Module

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.

can't change pin/password ! help please

this is what i got after uploading your sketch :

`Arduino BLE module identification and setup sketch.
Interact with this interface using serial in CR&LF mode.
Enter the number of the RX pin on the Arduino, TX on the module [8] :
Enter the number of the TX pin on the Arduino, RX on the module [9] :
Enter the number of the State pin on the Arduino, State on the module (enter -1 if not present or not connected) [7] :
Opening serial connection to BLE module at pins: 2, 3, -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
MLT-BT05 detected!
Sending command: AT+HELP


  • Command Description
    *----------------------------------------------------------------
  • AT Check if the command terminal work normally
  • AT+DEFAULT Restore factory default

`

could you please help me ? is it something wrong ??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.