Commit Graph
78 Commits
Author SHA1 Message Date
fa12b27438 feat(radio): Discover SBUS trainer availability (#4266)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2024-01-05 11:48:46 +10:00
b14ckyyandGitHub 5597cf6476 fix: Bluetooth power level set too low (#4019) 2023-09-23 13:50:15 +10:00
3djcandGitHub ae8e1fff8a fix: Trainer jack initialisation and driver cleanup (#3811) 2023-08-09 21:08:42 +10:00
3djcandGitHub ba56166ff5 fix(bt): BT CRC allowing reserved bytes to be sent (#3685)
* Fix BT sending crc non "byte stuffed"

* Fix
2023-06-15 10:39:14 +10:00
Raphael CoefficandGitHub 72193eda82 chore: New module/serial API (#3055)
* WiP: new module interface

* WiP: softserial timer DMA

* WiP: setup() and send() in one step

and remove methods specific to internal or external module

* fixes and extra port config

* horus targets

* module ports have moved

* T8 support (only internal module)

* fix nv14

* stupid GCC....

* disable BT

* remove nv14 telem driver

* remove old aux serial driver

* Move module buffers out of pulses.h

* Soft serial fixes and PXX1 support

* Fixed PPM module output

* Fixed CLI

* compilation fixes

* Ported bluetooth and flysky gimbal to new serial driver

* Re-enable soft-serial RX

* fixes and cleanup

* nv14 fixes

* Fix flysky gimbals

* Ghost module

* 16 bytes of RAM

* Remove getByte from module API

* Ghost cleanup

* fix: _half_duplex_input() must be called after usart init

* WiP

* more cleanup

* Remove board specific settings from PXX1 / PXX2 drivers

* A bit of PXX2 header cleanup

* Add support for OVER8 and ONEBIT

* Add some support for inverters (NV14 / EL18)

* Support NV14 power fixes in generic board

* Fix polarity handling

* Fix RX DMA

* Fix mixer not running

* Add soft-serial polarity control

* Quick fix for telemetry polling while module port is changed

* Fix bootloader DEBUG

* Fix MPM telemetry

* Fix pulse start

* DSM2 soft-serial fallback

* DSMP async module restart

* Fix CRSF LUA upstream

* Remove global variable telemetryProtocol

* Use HAL/LL constants

* Fix various issue with AFHDS3 and NV14/EL18 internal module

* Fixed S.PORT unit tests

* fix: update widx after writing at current index

* fix: init error condition

* Fix: possible infinite loop in _find_port()

* Add support for bidir S.PORT init

* Add support for "getLastByte" in HW serial driver

* PXX1: Add support for S.PORT based on IDLE callback

* Fix rebase error

* Fix softserial _rx_fifo_push()

* Add softserial support for waitForTxCompleted()

* Fix MPM flashing (internal / external)

* Fixed external MPM

* Activate RX DMA on internal module

Seems to work with serial passthrough without issues, at least on the L3R PRO.

* Fix softserial DMA on stdlcd F4 targets

* Add softserial support for 32bit timers (mostly TIM2)

* More precise soft-serial

* Fix MPM update using inverters & HW uart

* Raise S.PORT DMA/USART IRQ prio to achieve faster switching to input

* Remove useless delays

* Fix flashing external ELRS module

* Added a retry mechanism for FrSky S.PORT update

* Remove useless enableRx()

* External FrSky modules are all flashed via S.PORT

* Remove power management unit update

This was only used on the first batch of X-lite.
2023-02-09 19:44:32 +10:00
Raphael CoefficandRaphael Coeffic c7f2eb7eb7 fix: simu BT buffer overflow 2022-06-11 15:38:08 +02:00
dlktdrandRisto c802553189 Break non-verbose o/p on complete frames, add timestamp 2021-12-10 22:46:42 +01:00
dlktdrandRisto 99253efd75 Add verbose option 2021-12-10 22:46:42 +01:00
Risto 1103a3c842 Bluetooth trainer byte parsing: catch XOR state errors
In XOR state only 0x7E ^ 0x20 = 0x5E or 0x7D ^ 0x20 = 0x5D are expected.
Copy of my https://github.com/opentx/opentx/pull/8427
2021-11-27 16:26:43 +01:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
Cliff cd4de0561b Fix Bug in Bluetooth trainer channel start 2021-09-13 19:37:58 -07:00
Cliff cd5feefde9 Remove magic numbers 2021-09-13 19:37:20 -07:00
rotormanandRaphael Coeffic 78327063fb Added stdio.h to be able to compile with GNU Arm Toolchain v10 2020-q4 without errors. 2021-05-29 07:39:12 +02:00
Raphael Coeffic 1bce228910 More header fixes for COLORLCD 2021-04-18 07:57:42 +02:00
3djc 58f89bf1ba Cosmetics 2021-04-16 19:03:17 +02:00
Bertrand SongisandGitHub eb732d2721 Merge pull request #8425 from rotorman/patch-1
Bluetooth: making better use of constants
2021-04-16 18:00:54 +02:00
RistoandGitHub 4e926fcdab Bluetooth.cpp array bounds fix
Eliminates accessing array out of it's bounds - below array first element in next line, where buffer[bufferIndex-13] is used. When bufferIndex would be less than 12, out of bounds memory access would occur.
2021-04-05 18:43:31 +02:00
RistoandGitHub a04b3f377a Using new TRAINER_FRAME 2021-04-05 18:19:20 +02:00
RistoandGitHub 594e937e44 Making better use of BLUETOOTH_PACKET_SIZE
Using BLUETOOTH_PACKET_SIZE instead of literal in code.
2021-04-05 18:13:21 +02:00
Bertrand Songis 71ec1db9f6 Merge with latest 2.3 2020-06-18 11:14:07 +02:00
Bertrand Songis 8f7d3c9786 Cosmetics 2020-06-08 18:34:58 +02:00
Bertrand SongisandGitHub c3f0e2ea88 Avoid Bluetooth fifo full (and 1ms wait in the mixer task...) (#7652)
Avoid Bluetooth fifo full (and 1ms wait in the mixer task...)
2020-05-31 16:45:48 +02:00
Bertrand Songis bddccb9765 Merge with latest 2.3 2020-05-30 11:57:03 +02:00
3djcandGitHub f03429f49e More work on 2.4 sdmanager (#7445)
SD Manager continued
2020-03-18 17:47:32 +01:00
Bertrand Songis 0626b31dfe Merge with latest 2.3 2020-01-08 16:35:30 +01:00
Bertrand SongisandGitHub 16c9a92f49 Bluetooth SD logs (#7197)
Bluetooth SD logs
2019-12-16 12:22:48 +01:00
Bertrand Songis 4c484017a4 Merge from 2.3 2019-12-05 09:29:11 +01:00
Bertrand SongisandGitHub 4cdd17f0d7 MAGIC value for powerReason should be stored in RTC backup on Horus (#7096)
- Allows the radio main application to start correctly when coming from an app in RAM
- Refactoring of the `UNEXPECTED_SHUTDOWN()` process
- Saves the RTC battery as BACKUP RAM is not needed on normal shutdown
- On PWR OFF on an ALERT, the radio won't show the next alert before shutting down
- Bootloader flashable through the SD Manager
2019-11-21 11:50:33 +01:00
Bertrand Songis 42a59dca35 Compilation fix 2019-11-15 16:33:11 +01:00
Bertrand Songis 071116afeb Merge with latest 2.3 2019-11-07 15:04:45 +01:00
Bertrand SongisandGitHub 135133423a Bsongis/issue 6910 x10 express bluetooth (#6931)
[X10 Express] Bluetooth function added
2019-10-11 08:09:59 +02:00
Bertrand Songis f4f8893ae9 New UI merged 2019-08-28 20:50:14 +02:00
Bertrand Songis e7736f3fdc Replace NULL by nullptr 2019-08-28 10:28:11 +02:00
Bertrand Songis 48018f1085 More code removed 2019-08-20 12:12:28 +02:00
Raphael Coeffic 137374bd2f fix clang warnings (unused variables) 2019-08-19 08:27:05 +02:00
Bertrand SongisandGitHub 151827ada5 Bsongis/x9d+ 2019 (#6588)
X9D+ 2019 added
2019-07-26 19:18:29 +02:00
Bertrand Songis f3d15d59bb BT Flash timeout increased 2019-07-23 11:57:44 +02:00
Bertrand Songis 1a6811141f Autoupdates for the bluetooth chip 2019-07-23 09:14:58 +02:00
WismyYaoandBertrand Songis 196da35c6e Wismy/bt name fix (#6511)
Change bluetooth name to lowercase
2019-06-17 11:58:13 +02:00
Bertrand SongisandGitHub 383e723b96 Bsongis/xlite trainer modes (#6497)
More trainer modes added on XLite(S) and X9Lite
2019-06-14 21:20:22 +02:00
Bertrand SongisandGitHub 8edf77286d Bsongis/power control chip (#6445)
FRSK files support added
2019-05-27 12:23:34 +02:00
Bertrand Songis b782288e9d New bunch of translations 2019-05-13 11:41:49 +02:00
Bertrand Songis 0d1945ae21 Bluetooth update doesn't overwrite DATA space 2019-05-07 15:51:23 +02:00
Bertrand Songis daba1ffcb1 Missing initialization 2019-05-07 11:18:12 +02:00
Kilrah 4a2a196607 VC++ compilation continued 2019-05-04 12:06:56 +02:00
Bertrand Songis 14c282110d [Bluetooth] CLEAR command added 2019-04-29 09:58:40 +02:00
Bertrand Songis 6530f93e21 Powermeter / Frequency analyser exit issue 2019-04-28 22:41:58 +02:00
Bertrand Songis abb2c063db Bluetooth flash firmware finished 2019-04-28 16:46:17 +02:00
Bertrand Songis 6288617435 Bluetooth flash firmware continued 2019-04-26 10:07:15 +02:00
Bertrand Songis 30e3095a74 Bluetooth flash firmware continued 2019-04-26 08:57:19 +02:00