Commit Graph

57 Commits

Author SHA1 Message Date
Anatole SCHRAMM
3a8e2fcf7a Removed useless new line in function body 2025-07-31 16:17:29 +02:00
Anatole SCHRAMM
58e81b77e6 Added verbose log 2025-07-31 16:16:38 +02:00
Anatole SCHRAMM
0549ebe68d Added a function to the app_utils collection which parses a time and date string to fill a struct tm 2025-07-31 16:15:31 +02:00
Anatole SCHRAMM
54e69e424a Checking if the rtc is running and starting it by setting the compile time and date if not the case 2025-07-31 16:11:07 +02:00
Anatole SCHRAMM
1affef42cf Added tls_is_rtc_running function telling if the RTC ip is alive or not 2025-07-31 16:09:16 +02:00
fe879e300a Working on BLE rf modem sleep feature - continued 2023-05-01 20:25:04 +02:00
54a22beaf7 Continued working on BLE rf modem sleep feature : issue when trying to wake rf modem up before sending data by writing to a characteristic 2023-05-01 19:21:13 +02:00
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
18b602bbca Implemented a random number generating function which returns a 6 digit random number 2023-04-23 20:29:42 +02:00
082c2c6a6c Added a comment to know what was the default IO capability 2023-04-23 20:21:18 +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
0f376fd528 Now setting a default passkey when starting the BLE service/server 2023-04-18 23:15:10 +02:00
anschrammh
166581caeb Added the tls_bt_sm_ioact_2_str utility function 2023-04-18 23:15:09 +02:00
anschrammh
9269e279ef Updated the nimble stack configuration to prompt the user to enter a passkey when trying to pair it's phone with the host 2023-04-18 23:15:08 +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
Anatole SCHRAMM
7c78142f88 Changed some BLE stack parameters as I'm trying to make bonding with passcode work 2023-04-18 17:03:12 +02:00
anschrammh
f5b68838f7 Added two new functions performing a precise blocking delay in micro and milli seconds 2023-04-13 13:23:46 +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
bfba12e43b Cleaned the wm_type_def.h file by reorganizing the types defines 2023-04-09 08:05:36 +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
0e1bed0452 Added the uint32_t type, will have to clean the mess up in this file someday 2023-04-05 07:59:12 +02:00
anschrammh
3fc2297f17 Updated the nano shell commands to use the new bluetooth modem start API which as the option to set the modem in bluetooth only mode 2023-04-05 07:58:09 +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
44edace353 Added new commands to change the CPU clock speed, as well as close the clock to some peripherals in order to make power consumption testing easier on the chip 2023-04-02 21:16:31 +02:00
d798868660 Merge branch 'master' of http://192.168.0.17/git/Th3maz1ng/W801_SDK_dev_env into HEAD 2023-03-31 16:11:35 +02:00
c04c035a4a Rephrased comment 2023-03-31 16:09:54 +02:00
anschrammh
f7c692c751 Changed the parameter passed to the size utility 2023-03-31 16:09:12 +02:00
cb4a9d77e3 Added corrections to the BLE module 2023-03-31 15:53:30 +02:00
anschrammh
e194de3eee Added the ble folder to the include paths 2023-03-26 23:03:08 +02:00
anschrammh
a20b35b600 Renamed the ble task name form bth to ble_svc 2023-03-26 23:01:21 +02:00
anschrammh
d97db47fad Reworked part of the bluetooth nano shell commands 2023-03-26 22:58:47 +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
anschrammh
5b5032ec2f Changed the parameter passed to the size utility 2023-03-14 19:34:26 +01:00
anschrammh
0ccd981c11 Added the ble folder to the include path 2023-03-14 19:27:53 +01:00
Anatole SCHRAMM
286eb408ab NimBLE memory usage analysis 2023-03-14 17:48:55 +01: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
b3174c8572 Exposed two functions in the nano shell interface to be able to print characters only or plain strings, added new commands regarding ble in the nano shell for testing purposes 2023-03-12 21:52:03 +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
2854c45848 Reworked a few existing SDK files to prepare for the ble modem and service addon, updated the nano_shell_command by adding new ones around ble 2023-03-11 23:34:02 +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
Anatole SCHRAMM
cc468797b3 Now also outputting SDK logs to UART1 pins, corrected an issue raising an error when using the nano_shell and added a workaround to be able to really stop the BT modem. Probably a bug in the SDK or in the chip ? 2023-03-08 14:04:01 +01:00