Commit Graph

20 Commits

Author SHA1 Message Date
13e7553d09 Added new experimental functions to put the BLE modem to sleep to reduce power consumption 2023-04-23 20:33:11 +02:00
e6b1595bae Updated the gadget bridge parser sources to test the new features 2023-04-23 20:32:05 +02:00
cf50df7468 Added a way to retrieve the BLE device MAC address plus other things for test purposes 2023-04-23 20:31:27 +02:00
anschrammh
6433aaa697 Preparing the ble_service to work in bt_controller sleep mode to save power. This will at the end be implemented in the W800_Smart_Watch ble_service module 2023-04-20 13:18:25 +02:00
anschrammh
b37dab16d5 Now handling pairing by asking to enter a passkey on the phone side. This
passkey is then verified with the code entered on the host side. Also
handling the repeat pairing event by reperforming the pairing process.
2023-04-18 23:13:47 +02:00
338c7e18e6 Added the possibility to set the battery service's battery value and started to add a descriptor to play around with nimble 2023-04-10 21:34:14 +02:00
5206181a32 Fixed potential memory leak, added the music state and music info events type 2023-04-09 17:03:53 +02:00
b3bf6ce896 Documented almost every function of the API, implemented the http request command which is useless since GadgetBridge does not have internet permissions :( 2023-04-09 12:41:38 +02:00
e71c020d97 Implemented the gadget_bridge parser feature as well as a few commands like the music control or the find device phone feature 2023-04-08 22:43:52 +02:00
a9e5589e87 Minor change 2023-04-08 20:04:19 +02:00
Anatole SCHRAMM
74b90f9fee Finished to define the API, started to implement some of it 2023-04-06 14:27:05 +02:00
anschrammh
34ad38d34a Started to write the module used to interact/communicate with the gadget bridge Android app.
The API will contain functions to send data to the app as well as a parser used to decode and extract data sent from the app.
It will internally use/access the NUS BLE service exposed by the ble_service.c file
2023-04-05 08:03:58 +02:00
anschrammh
1faa5b3c84 Aligned ble_modem code with the W800SmartWatch ble modem code, corrected an english mistake in a comment 2023-04-04 08:21:58 +02:00
c04c035a4a Rephrased comment 2023-03-31 16:09:54 +02:00
anschrammh
5387213c06 Now updating the last byte of the bluetooth address if it does not follow the random address specification and updated a few log messages 2023-03-26 22:57:43 +02:00
anschrammh
3faa1162e2 Reworked the timeout waiting for the ble service to stop which was too short 2023-03-26 22:52:47 +02:00
Anatole SCHRAMM
bf6433983b Corrected missing include + typo 2023-03-14 13:55:39 +01:00
anschrammh
d82cf42191 ble modem is now able to stop the service properly when it's turned of, added more info to the ram usage command in the nano_shell 2023-03-14 08:20:34 +01:00
anschrammh
ef0660c499 Added ble payload fragmentation handling depending on the current MTU size, added a few other function to interact with the ble service 2023-03-12 21:50:19 +01:00
anschrammh
8894eb6744 Added the ble directory exposing a ble_modem and ble_service interface. These source files will be used in the W800SmartWatch project but are tested here 2023-03-11 23:28:38 +01:00