I have an application that receives a continuous stream of bits at 1200 bauds but does not have recognizable start or stop bits. The data is 8 bits long and has to be framed by recognizing a specific byte. The normal UART functions therefore do not work reliably. At the moment I pre-process the data with a PIC MCU which 'walks' along the bits one at a time until the UART recognizes the framing is correct. It is 100% reliable but the data is then passed on to an ESP8266 for formatting and sending to WiFi as JSON messages. I would like to eliminate the PIC if possible but for me to emulate the bit walking, it is necessary to reset the UART within the period of one bit so it sees the next arriving bit as a potential start bit. The algorithm is basically "if the byte isn't 0x66, stop the UART, wait half a bit time, restart the UART again then see if it frames 0x66. If not, repeat the process". There are further integrity checks to confirm framing was successful.
Question, is there a way I can do all this in an ESP8266 so I can eliminate the PIC?
I'm using Arduino IDE 2.3.3 but it doesn't allow low level access to the UART functions and I'm not sure sending "serial.begin" commands will do the reset I need.
Brian.
Fast reset of UART
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 1 guest
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!