Digistump Forums
The Digispark => Digispark Pro Support => Topic started by: wizage on January 12, 2015, 07:27:32 pm
-
First question is what is the extra plate on the bluetooth chip do? (The one that was already assembled together)
And the second question that kind of plays off that question is did you guys remove ANCS when you guys made that board?
Also if you guys just haven't added support for ANCS that is cool too I just hope I dont have to find a work around way to get ANCS to work with this project.
Link to the bluetooth board with out the black board attached and in the data sheet and spec it does say ANCS support is available.
http://www.jnhuamao.cn/bluetooth.asp?ID=1
ANCS - Apple Notification Center Service
https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Introduction/Introduction.html#//apple_ref/doc/uid/TP40013460-CH2-SW1
-
After a little bit more research I found the logic board hook up but still could find nothing to let me know if ANCS is supported and it isnt helpful when the only datasheet I can find is for the board without the logic board. If you guys have that datasheet you should post it.
Edit:
After even more googling I found out that I need to use AT commands will keep you updated. I will also upload code to the wiki on how to do this because this is new to me and probably to a lot of others as well.
-
Datasheets and ANCS instructions have been added: http://digistump.com/wiki/digispark/tutorials/ble
When we sourced the HM-10 module it did not support ANCS - I just checked though and the firmware on our modules does support it.
-
Cool thanks for you reply I have just one other question that you might not know and that is cool. Do you know how to get the HM-10 module to accept AT commands because it is not responding when you give it a AT command.
-
After more research and the document you gave me I figured out since there is no usb communication with computer you have to turn on the ability to send AT commands via setup before you connect with your phone to send more commands. This code below works fine to allow you to send AT commands to your phone using there android and apple apps they provide on there website. Now to work with AT commands to translate them into notifications on my arduino!
void setup() {
Serial.begin(9600);
Serial.write("AT+MODE2"); //Turns on the ability to communicate using AT commands via bluetooth
delay(1000);
Serial.println("Enter AT commands");
}
void loop() {
if(Serial.available()){
Serial.write(Serial.read());
}
}
http://www.jnhuamao.cn/index_en.asp?ID=
-
Thanks for sharing - that's a great idea for debugging!
You can also use the DigiCDC library to send commands from the computer - see the DigiCDC Echo example for a starting place for that.