Commit Graph

392 Commits

Author SHA1 Message Date
anschrammh
e2fb8b3822 Reworked the watch's sleep feature and internal workings, added a new sleep mode when BLE is enabled, now sending the watch's battery level, voltage and state to the GadgetBridge app when it connects to the watch 2023-04-13 13:41:42 +02:00
anschrammh
9f241454c6 Finally reworked the way date and time are set so that they have the expected value and behaviour 2023-04-13 13:40:00 +02:00
anschrammh
0789cc62ad Commented debug traces out so that they are not diplayed on the serial port anymore 2023-04-13 13:38:50 +02:00
anschrammh
82ad6d16ba Added a function in the lvgl input device binding file to be able to know if the touch screen was touched or not 2023-04-13 13:37:50 +02:00
anschrammh
c885568e34 Wrapped and added new functions to the watch_peripherals module to be able to prepare the watch for different sleep modes, and being able to detect different wakeup sources. Changed the function used for the BMA456 driver required micro seconds delay 2023-04-13 13:36:48 +02:00
anschrammh
92de986dba Added a new event to the ble_service_state_change event callback function to be able to detect when a BLE master device subscribed to a particular characteristic. Also reworked the allocated buffers for the BLE stack, because of a strage issue, where it is hard for the phone to reconnect to the watch. 2023-04-13 13:34:38 +02:00
anschrammh
cfc42779dd Added new app_utils module/lib containing miscellaneous utility functions like blocking delays and such. Still need to fully implement the elapsed_ms function. 2023-04-13 13:31:54 +02:00
anschrammh
4184be2763 Changed the way the lvgl tick is handled, it was previously called from
the FreeRTOS vApplicationTickHook function and is now called by a timer
interrupt every ms. This permits to stop the timer and thus lvgl when it
is not needed.
2023-04-13 13:27:07 +02:00
anschrammh
89c33cd7f7 Updated settings screen in the simulator 2023-04-11 01:04:58 +02:00
00ca9be8e4 Updated the gitignore file 2023-04-10 21:30:23 +02:00
feb743bb58 Added the CH340 USB to serial adapter chip's datasheet 2023-04-10 21:26:58 +02:00
8c1627b9b2 Officially added the gadget bridge parser I developed to the W800_Smart_Watch firmware 2023-04-10 21:26:25 +02:00
2b80115e47 Added some functionalities on the UI side in the code blocks simulator 2023-04-10 21:24:04 +02:00
090e1a2d61 Added the API function doc comments 2023-04-10 21:23:02 +02:00
dea34c70e8 Added a persistency setting : the Activity one, which will be used to save the step counter feature (Enabled or not) as well as other activity related parameters 2023-04-10 21:21:59 +02:00
288a64d1ce Did some cleanup by removing direct access to the watch sensor for initialization, added the gadget bridge parser I coded, and other minor stuff 2023-04-10 21:20:38 +02:00
22621219f3 Corrected a potential bug, made the date and time rollers disabled when set automatic time and date is enabled. Added the set automatic time and date feature which time and dates, if enabled, are sent by the Gadget Bridge Android Application 2023-04-10 21:19:19 +02:00
1c39e02f11 Added new line at the end of the file 2023-04-10 21:17:01 +02:00
da59200c77 Minor changes, nothing major 2023-04-10 21:16:27 +02:00
92d3279eb9 Big refactoring and cleanup by removing sensors initialization code from the gfx_task.c file and moving it to the watch_peripherals.c source file. This is way more logical IMO. This change also allows to enable or disable the wrist tilt wakeup with a function call 2023-04-10 21:15:47 +02:00
b8a11a8a79 Renamed QMC5883L_Mode_Control enumeration values to make it clear they are to be used in the magnetometer API 2023-04-10 21:13:18 +02:00
efae9a917e Added a function to the pressure sensor API to be able to know if a measurement is currently being made 2023-04-10 21:12:01 +02:00
f4ffc96d5a Added the CodeBlocks project used to develop the Gadget Bridge parser code 2023-04-10 10:07:57 +02:00
3bd772837c Minor change 2023-04-10 10:02:22 +02:00
Anatole SCHRAMM
e67754b878 Minor work on the translation module, work in progress, more to be done 2023-04-05 14:47:00 +02:00
Anatole SCHRAMM
bd6d5fc6d1 Finally cleaned the wm_type_def.h file which was provided by WinnerMicro's SDK... 2023-04-05 14:27:22 +02:00
Anatole SCHRAMM
d4c516177d Added comment on modified nimble stack default value 2023-04-05 09:26:10 +02:00
anschrammh
9f7e516984 Added the uint64_t type as a typedef. Will have to do some cleanup in file as it is a mess... 2023-04-05 08:19:08 +02:00
anschrammh
4da41970a6 Registered the setTimeFormatSettingsCallback 2023-04-05 08:17:59 +02:00
anschrammh
8d408b5125 Added translations in the menu item list (on the left hand side of the configuration screen), added time format (12H/24H) setting restoration callback 2023-04-05 08:17:24 +02:00
anschrammh
d0c933c78c Added new words to translate in the enum and started to translate some of them, work in progress 2023-04-05 08:13:38 +02:00
anschrammh
92a275dc1c Slight improvement in the rf modem management for BLE 2023-04-05 08:08:15 +02:00
anschrammh
08b1b8de90 Added header with date, licence and author 2023-04-05 08:04:52 +02:00
c26a88d21c Added a function to the API allowing to register a step count indicator callback used to refresh the step counter of the watch face twice or three time a second. 2023-04-02 21:14:57 +02:00
ad61388bf6 Now starting the rf modem in bluetooth mode 2023-04-02 21:13:14 +02:00
f2b17bffd3 Added the option to only set the rf modem in bluetooth mode when starting it, this makes the power consumption drop significantly 2023-04-02 21:12:45 +02:00
6d26186bd0 Updated the readme file 2023-04-02 18:36:23 +02:00
f040e22af7 Deleted unused function prototype 2023-04-02 11:25:32 +02:00
2bfddce356 Fixed bad library path in Makefile ... 2023-03-31 10:57:09 +02:00
2650cf85f9 Merge branch 'master' of http://82.64.196.164/git/Th3maz1ng/W800_Smart_Watch 2023-03-31 10:28:39 +02:00
a7dd2b6af0 Removed blank line 2023-03-31 10:27:53 +02:00
anschrammh
1ef9face5a Updated lvgl simulated screen files 2023-03-30 13:27:24 +02:00
anschrammh
ea79af772b Halfed the BLE prefered MTU size changing it to 256 instead of 512 2023-03-30 13:26:28 +02:00
anschrammh
6a9639700b Added new functions to the watch face API such as watch_face_set_step_count_indicator or watch_face_is_in_use 2023-03-30 13:24:48 +02:00
anschrammh
61f7e21cb3 Added more information in the about section of the settings screen : battery voltage, factory reset button and other things 2023-03-30 13:16:35 +02:00
anschrammh
47753131d6 Added BLE support to the app, fixed a graphical glitch happening when
waking up the watch by touching the screen where the second hand was
jumping from the old time to the new time
2023-03-30 13:14:35 +02:00
anschrammh
3156976f7a Removed the BLE device name from this header file 2023-03-30 13:11:19 +02:00
anschrammh
b5cc52df81 Commented a trace statement in the ble service in order to keep the serial traces clean 2023-03-30 13:09:55 +02:00
anschrammh
e8583254e6 Wrapped the SDIO MMC IO busy wait statement in a function such that it can be called by any API needing it 2023-03-30 13:08:57 +02:00
anschrammh
2b79a31165 Fixed an issue when sending commands to the LCD screen while a DMA
transfer is in progress causing graphical issues
Detail :
A DMA transfer may be in progress when trying to send single byte commands to the LCD screen. This could badly configure the display as soon as the data/command select pin was set to command while the DMA was still sending data bytes.
The fix : doing a busy wait in the lcd_set_data function to be sure the bus is free to use.
2023-03-30 13:05:53 +02:00