Wykres commitów

1436 Commity (eeb05bcc0f473ec7e5e8b3213a6ed24da124928d)

Autor SHA1 Wiadomość Data
Niccolò Izzo eeb05bcc0f ttwrplus: fix unstable baseband startup
A proper baseband reset is now issued at each startup. Now OpenRTX check
for SA868 responsiveness before proceeding with radio initialization,
eliminating unstable behaviour at boot.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo dc84908fbc ttwrplus: enable TURBO mode on SA868S
Enabled AT+TURBO command on SA868 that switches the baud rate of the
serial communication from 9600 to 115200 to get a more responsive
baseband. Bumped up the required baseband firmware version to
v1.1.0.r20.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 15f5477ae0 ttwrplus: add battery voltage readout
Add battery voltage readout through the XPowersLib library.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 82218aabce ttwrplus: enable macro menu
Modified keyboard mapping to enable macro menu, interface is still
broken as the T-TWR Plus is missing a keyboard.
Now the volume down key, mapped as the MONI button can be also used to
set the squelch level.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 4c035bbf16 ttwrplus: enable Tx capability
Enabled Tx capability on T-TWR Plus.
Since Tx requires the SA8x8 to disable the Rx stage, we check that at
least firmware v.1.1.0.r14 is present on the baseband, otherwise we
don't initialize the radio.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 4df315473f ttwrplus: add RGB LED support
Implemented WS2812C support with Zephyr driver.
Hooked up the RGB control to the existing RED and GREEN LED support.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo c60f580396 ttwrplus: add support for SA868
Add support for initializing SA868 and querying its firmware version,
created a new instance of the AT1846S class that leverages the SA8x8
serial connection as an i2c implementation.
Rx works! In the sense that the RSSI bar behaves as expected, still no
audio.

This commit was contributed by edgetriggered.

TG-553
2023-09-20 21:08:35 +02:00
Federico Amedeo Izzo e05d09f0fe ttwrplus: Set battery charging current to 500mAh to limit PMU heating and max. capacity to 80% to extend lifetime by 2.5x-3x
Reference article: https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries
2023-09-20 21:08:35 +02:00
Niccolò Izzo 8e8daa78c8 ttwrplus: implement PMU support
Begin implementing PMU, now successfully read and write registers, need
to implement button functionality, battery voltage readout, charge
detection etc.

TG-553
2023-09-20 21:08:35 +02:00
Federico Amedeo Izzo c5a63d8767 Add XPowersLib meson subproject 2023-09-20 21:08:35 +02:00
Niccolò Izzo df853c8527 ttwrplus: add support for keys using Zephyr bindings
Zephyr already provides button support based on gpios. We are mapping
Zephyr keycodes to OpenRTX therefore future targets will only need to
configure their devicetrees to have button support.

Rotary encoder readout leverages the hardware pulse counter. PTT in
this device is also bound to KEY_ESC, that matched the behaviour
observed in many commercial radios.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 9a445f3b31 Enable malloc on ESP32 BSP, specify ttwrplus battery type.
Mallocs now are working.
This radio sports a single cell Li-Po battery.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 0c27c9ce28 Enable Zephyr dynamic stack threads
Enable Zephyr dynamic stack posix threading, with stack pool of 4 and
stack size of 4096.

TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo 1f1d20e120 Update T-TWR devicetree
Updated T-TWR devicetree to reflect changes in upstream Zephyr.

TG-553
2023-09-20 21:08:35 +02:00
Silvano Seva 67f6d56168 Display driver for ttwrplus 2023-09-20 21:08:35 +02:00
Silvano Seva dd13732343 Fix some compilation warnings generated by xtensa-espressif-gcc 2023-09-20 21:08:35 +02:00
Silvano Seva ebc5910015 Renamed "bcd2bin" utility to "bcdToBin" to avoid conflicting with Zephyr includes 2023-09-20 21:08:35 +02:00
Silvano Seva 7ce3a8a605 Fix compilation error caused by voiceprompts data section definitions 2023-09-20 21:08:35 +02:00
Silvano Seva 7c2c61f948 Added Lilygo T-TWR Plus target, using stub drivers. 2023-09-20 21:08:35 +02:00
Silvano Seva 21a93911da Added support for ESP32-S3 MCU using Zephyr RTOS 2023-09-20 21:08:35 +02:00
Marco 467ad6bd7a Fix regression in memory mode
Show frequency in memory mode when not receiving M17
2023-09-17 13:00:12 +02:00
Marco 1a7d62fb42 Add UI and check for CAN on RX 2023-09-16 19:14:17 +02:00
marco f425a4c740 Fix M17 Call Info flickering during reception 2023-09-15 19:41:48 +02:00
Silvano Seva c49ae03d01 Audio stream: fixed missing NULL pointer check in audio device driver selection. 2023-09-13 22:26:41 +02:00
Silvano Seva 8fe9837035 Implemented rxSquelchOpen() function for M17 opmode handler, returning true in case of valid stream data. 2023-09-12 17:47:49 +02:00
Silvano Seva 0adab74255 M17: workaround to avoid UI glitches when a new dst callsign is set.
When a new dst callsign is set, the rtx configuration data structure is
updated and this may trigger false setting of the lsfOk variable to true,
causing the M17 info screen to appear for a very small, but noticeable,
amount of time.
2023-09-12 17:47:49 +02:00
marco 22afe0ecde Port changes for M17 Call Info to module17 2023-09-12 17:47:49 +02:00
Marco 7a67768c8d Show M17 stream information on receive 2023-09-12 17:47:49 +02:00
Marco a3fbe34b30 Add symbols for M17 stream data display 2023-09-12 17:47:49 +02:00
Marco dc0114e7e2 Retrieve M17 source, destination and extended callsign data from LSF 2023-09-12 17:47:49 +02:00
Marco a0f5d55cc1 Add M17 stream information to rtxStatus struct 2023-09-12 17:47:49 +02:00
Marco 74f7912b4c Fix M17 callsign decoder sometimes causing crashes 2023-09-12 17:47:49 +02:00
tarxvf 9d141b8f93 Fix emulator screenshot 2023-09-11 12:22:08 +02:00
Niccolò Izzo 3860894bff
Implement macro menu without keyboard
Adapt UI for radios that do not have a keyboard, add macro menu UI code
that can only use KEY_ENTER and KEY_UP, KEY_DOWN.

TG-553
2023-09-10 12:12:13 +02:00
Silvano Seva 5ea94ee1af Improved management of FM audio volume on MD-UV3x0.
Fix #160.
2023-09-08 16:14:11 +02:00
Silvano Seva dd46a48cd1 Improved conversion law in MD-3x0 and MD-UV3x0 platform_getVolumeLevel().
Rewritten the conversion law from ADC measurement in mV and normalized
0-255 output, adding a linearization if the pseudo-logarithmic output
curve of the potentiometer.

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2023-09-08 16:02:53 +02:00
marco d7578c4441 Refactor ui sizes
This changes line 3 to line 3 large and adds
two new lines, line 3 and line 4, similar to
line 1 and line 2
2023-09-04 15:12:18 +02:00
Wojciech Kaczmarski ffdc04be3e `m17crypto_t` update
m17crypto_t now conforms to M17 spec
2023-09-04 12:24:05 +02:00
Silvano Seva 6dd0a718e0 Fixed bug in M17 opmode handler causing missing audio output 2023-08-30 18:04:25 +02:00
Silvano Seva c9cd620530 Audio codec: added function returning the codec's current operational status 2023-08-30 18:04:25 +02:00
Silvano Seva 8dc1cba1f7 Removed sources of old audio stream drivers, updated stub audio driver 2023-08-30 18:04:25 +02:00
Silvano Seva cd936ea216 Audio devices table for linux and GDx targets 2023-08-30 18:04:25 +02:00
Silvano Seva fc5e3b0bce Audio stream: cleanup dead streams while searching for an empty slot 2023-08-30 18:04:25 +02:00
Silvano Seva e610979ac7 Codec2: second round of refactoring and implemented proper access contention in codec_startEncode() 2023-08-30 18:04:25 +02:00
Silvano Seva 5b3e136127 Audio codec: using a single condition variable for queue wait management. 2023-08-30 18:04:25 +02:00
Silvano Seva dd118d0a87 Adapted voice prompt and M17 code to new codec2 API 2023-08-30 18:04:25 +02:00
Silvano Seva 94fdd1090b Refactoring and improvement of codec2 module 2023-08-30 18:04:25 +02:00
Silvano Seva 344aa46da7 Audio devices table for MDx 2023-08-30 18:04:25 +02:00
Silvano Seva 2b1d3236d3 Audio devices table for Module17 2023-08-30 18:04:25 +02:00
Silvano Seva 7d90d15a5f Adapt code to the new audio stream API. 2023-08-30 18:04:25 +02:00