Commit Graph

114 Commits

Author SHA1 Message Date
Frank Kunz
f311239c9c Add new AP hardware support OpenEPaperLink_ESP32-PoE-ISO_AP (#431)
* Fix filesystem mutex handling

This fixes the re-initialization of the filesystem mutex when the dyn storage
module is reinitialized. Using xSemaphoreCreateMutex would cause a memory leak
when the begin function is called multiple times and a semaphore leakage could
be caused by the re-initialization of the global fsMutex variable while the
semaphore is taken.

The fsMutex should not be taken while the logLine function is called as this
would cause a nested take of the fsMutex, which causes a deadlock.

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Fix hard coded littlefs in json upload

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Add new AP hardware support OpenEPaperLink_ESP32-PoE-ISO_AP

This is based on Olimex ESP32-PoE-ISO
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open-source-hardware

It has a SD Card slot that is used to store all filesystem data on SD.
Use the prepare_sdcard.sh script to copy all needed data to an empty
SD card that is formatted with FAT filesystem. The AP firmware will format
the SD if an unformatted or from formatted card is used. This can be used
to intially prepare an empty SD card for usage.

For tag communication a ESP32-C6-WROOM-1(U) is used with the following
connection scheme:

ESP32-PoE-ISO  |  ESP32-C6-WROOM-1
---------------+------------------
  GPIO5        |    EN
  GPIO13       |    GPIO9
  GPIO36       |    GPIO3
  GPIO4        |    GPIO2
  GPIO33       |    GPIO24
  GPIO32       |    GPIO25
               |    GPIO8 pullup 5.1k

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Avoid error message log print when parsers.json is missing

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Workaround for IEEE802.15.4 modem stuck issue

The ESP32-C6 esp-idf based modem firmware can run into a case where it
does not receive data anymore from the tags. This can be detected when
it starts to print

"receive buffer full, drop the current frame"

and does not recover from that. In such a case a modem reset is triggered.

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Add OpenEPaperLink_ESP32-PoE-ISO_AP to release build

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Add OpenEPaperLink_ESP32-PoE-ISO_AP to condidional build

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

* Add Ethernet support

The ethernet support allows to make the network/internet connection
via LAN cable instead of WiFi. LAN is preferred, if a LAN cable is
connected and a valid IP configuration via DHCP can be obtained, WiFi
is switched off. If the LAN cable is disconnected, a fall back to
WiFi is done.

Use those defines in platform.ini for PHY settings:
ETHERNET_PHY_POWER: IO pin where the PHY can be switched of/on, can be
                    -1 if not used.
ETHERNET_CLK_MODE: PHY clock mode, see eth_clock_mode_t in ETH.h
ETHERNET_PHY_MDC: PHY MDC pin
ETHERNET_PHY_MDIO: PHY MDIO pin
ETHERNET_PHY_TYPE: PHY type, see eth_phy_type_t in ETH.h

Limitations:
- only DHCP is supported, no static IP configuration for LAN so far.
- If GPIO0 is used for one of the ETHERNET_CLK_MODE modes, then GPIO0
  cannot be used to clear the WiFi configuration.

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>

---------

Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>
Co-authored-by: Frank Kunz <mailinglists@kunz-im-inter.net>
2025-03-27 00:48:05 +01:00
Skip Hansen
6637405358 Added optional (compile time) debug logging to C6 & H2. 2025-03-25 08:12:53 -07:00
Skip Hansen
32c74ba5b4 Added support for Elecrow C6 wireless module. 2025-03-25 08:09:26 -07:00
atc1441
1584f35624 Improved 4inchAP 2025-03-23 13:55:41 +01:00
Skip Hansen
bb36185066 C6 Ver 001f - fix #410 & other C6 improvements
1. Only call esp_ieee802154_receive_handle_done() when ack != NULL.
2. Add 2 millisecond timeout for all SubGhz MISO wait loops to
   prevent watchdog timeouts when/if bad things happen (none observed
   during testing)
3. Make CC1101 detection more robust and less intrusive by testing
   MISO and CSn before trying to read chip version number.
4. Remove useless "error" messages which occur during normal operation.
5. Added missing \r in some log messages for EOL consistency.
2024-12-17 07:17:47 -08:00
Skip Hansen
1871f53b5a Fix #403: missing esp_ieee802154_receive_handle_done() function call causing stop of ZigBee reception. 2024-12-07 15:11:47 -08:00
Skip Hansen
7735612a16 Enable SubGhz, changed CC1101 pin assigments for the Lilygo T-Panel. 2024-11-16 13:51:02 -08:00
mhwlng
8ff9826b3d add support for lilygo t-panel (#370)
* add support for lilygo t-panel

add support for lilygo t-panel (the rs485 version with an ESP32-S3 and ESP32-G2)
https://www.lilygo.cc/products/t-panel-s3

* refactor

* moved gfx library to lib2 folder and removed examples

* removed lib2\Arduino_GFX-1.3.7 and switch to moononournation/GFX Library for Arduino@^1.4.9

* added lilygo lib2\Arduino_GFX-1.3.7 back and removed all unused files. went from 166 files to 15 files!
2024-09-27 17:49:56 +02:00
Skip Hansen
5c421648d1 Accept CC1101 chip version 4 was well as 20. Fixes Yellow APs
built with modules with older CC1101 chips.  Version 4 and 20
should cover all chips made from 2007 to 2021.
2024-07-16 13:48:04 -07:00
atc1441
76b6cc6d4c Update of release ESP32-C6 With SubGhz and Version increase 2024-07-11 20:04:23 +02:00
atc1441
cc6c0cb8f2 Fixed non working Zigbee and SubGhz 2024-07-10 10:15:05 -07:00
Skip Hansen
99fe067ba8 Another frequency error correction fix, FreqErr uint8_t -> uint8_t. 2024-06-26 09:21:59 -04:00
atc1441
f11f8e31fc Update syncedproto.c 2024-06-19 16:40:34 +02:00
jjwbruijn
ea92165c22 Spring cleaning, moved files to the org repo 2024-05-25 22:37:06 +02:00
Skip Hansen
319814ac73 Fix Freq correction bug: the error accumulator must be signed! (#325) 2024-05-21 20:10:35 +02:00
jjwbruijn
9dc15c28d4 moved seldom used radio's to the org repo 2024-05-10 01:07:38 +02:00
Skip Hansen
9cce7c2e33 SubGhz C6 fixes: CRC error & automatic xtal frequency error correction (#314)
* Added subGhz fixed channel support to tag config, added line accidentally dropped in pr7 merge.

* C6 - Fixed CRC error detection, added xtal frequency error
correction support. The xtal on commercial tags is assumed
to be better than those on crapy CC1101 modules.
2024-05-09 06:36:06 +02:00
atc1441
b5a3c8db24 BLE Fix 2024-05-05 15:52:14 +02:00
atc1441
8bdf24f2c2 TLSR Improvements 2024-04-25 09:30:10 +02:00
atc1441
c1171b2e99 Better TLSR Deep Sleep 2024-04-25 01:41:10 +02:00
jjwbruijn
a876609806 Fixed stupid mistake 2024-04-21 23:03:33 +02:00
jjwbruijn
f1010ad3cc Added support for Newton M3 4.2 Yellow #273 2024-04-20 21:02:48 +02:00
Skip Hansen
d40ef83d03 SubGhz radio fixes. (#288)
* SubGhz radio fixes.
1. Don't for sending of BLOCK_MAX_PARTS parts for subGhz.
2. Fix CC1101 module detection logic.
3. Mitigate for lost CC1101 interrupts.

* Enabled SubGhz for OpenEPaperLink_Mini_AP_v4.
2024-04-19 10:21:36 +02:00
atc1441
7a8773ca07 Update tagtype_db.cpp 2024-04-12 09:01:11 +02:00
jjwbruijn
abee7a8c93 Fixed nRF Bootloader PIO 2024-04-10 23:03:13 +02:00
Jelmer
43e4bafa81 Merge pull request #286 from kelchm/core-dir-improvements
Fix core directory interpolation and cleanup dependencies
2024-04-10 21:43:38 +02:00
jjwbruijn
5f77358bd0 Fixed transfers that wouldn't validate properly if size%99==0 2024-04-10 21:23:03 +02:00
Matthew Kelch
5bf5ef8678 use more robust gitignore for core packages 2024-04-06 15:07:58 -04:00
Matthew Kelch
0b18e90c83 core package cleanup + gitignore (for nrf52811_Platformio_AP) 2024-04-06 14:07:42 -04:00
Matthew Kelch
0c0761d0ba correct interpolation value for local core dir 2024-04-06 13:31:07 -04:00
Matthew Kelch
073dd0c50a Add support for M3 2.9 BW Variant (#278) 2024-04-05 13:48:58 +02:00
atc1441
889d6b53c4 Added build option for Espressif ESP Thread Border Router /Zigbee Gateway including ESP32-H2 AP Firmware 2024-03-26 22:20:13 +01:00
jjwbruijn
98d9dc61f3 fixes #275 - battery voltage display snafu 2024-03-20 13:45:33 +01:00
jjwbruijn
a861b40545 M3 v0027 re-release, including M3 1.3 peghook support 2024-03-14 19:03:14 +01:00
Skip Hansen
5d7d97fca6 Add support for SubGhz radio. Working end to end for tag registration. (#270) 2024-03-10 09:45:43 +01:00
jjwbruijn
f233d90b86 M3 Universal v0027 2024-03-04 19:04:15 +01:00
jjwbruijn
e2870825cf 88MZ100 v0028 - bugfix and commands 2024-03-03 21:56:00 +01:00
Jelmer
b29907a725 Merge pull request #242 from VstudioLAB/M3_58-26-29FREEZER
M3 58 26 29 freezer
2024-02-27 00:36:03 +01:00
Vstudio LAB
e4ed0b13db Delete ARM_Tag_FW/Newton_M3_nRF52811/$PROJECT_DIR directory 2024-02-26 22:55:48 +01:00
VstudioLAB
6b67f6df2b updates 2024-02-26 22:24:48 +01:00
jjwbruijn
d3b9abf56a M2 7.5" v0027 fw 2024-02-26 01:27:40 +01:00
atc1441
65558360ef Added offline lines to TLSR FW, If the AP is not found the display will draw 5 lines to notify the user 2024-02-20 18:12:44 +01:00
atc1441
9bbd30b783 Fixed TLSR No AP useless refresh 2024-02-16 16:04:49 +01:00
jjwbruijn
691b688f46 added magic numbers to M2 7.5" 2024-02-16 01:17:11 +01:00
Jelmer
3d125c415f mkfs.OEPL README.md 2024-02-15 23:36:35 +01:00
jjwbruijn
f2dc16953d beta v0027 M2-7.5" FW 2024-02-15 18:51:10 +01:00
jjwbruijn
f38e121c94 More OEPLFS stuff for 88MZ100 2024-02-15 18:34:22 +01:00
VstudioLAB
f83667bcce Added support for the 2.6 BWR 2024-02-15 13:25:58 +01:00
VstudioLAB
bee51a23b6 5.85" Initial support and general preparation for BW only compatibility. 2024-02-15 00:09:25 +01:00
VstudioLAB
a787ac6ddf M3 5.85" cleanning 2024-02-14 22:09:50 +01:00