-->
Page 1 of 1

CORRUPTED DATA RETURNED FROM ESP8285 WHEN IN SOFTAP MODE?

PostPosted: Sat Apr 18, 2020 12:15 am
by lakshadvio
Hello,

I have a simple code which sets ESP8285 as an AP and creates a TCP socket beween an Android App and the ESP8285 with the latter being the server. The app sends commands (strings) to the ESP8285 which are printed on the serial interface for debug. The problem is that, most of the time the messages received by the ESP8285 are truncated and/or corrupted. If I connect the same two devices to a shared AP and then create a TCP socket, the messages are received correctly.

Below are the functions which program the ESP8285 as an AP and a server, as well as the receive callback function which does not do anything rather than printing the received message to the serial interface.
Any help would be appreciated.

Re: CORRUPTED DATA RETURNED FROM ESP8285 WHEN IN SOFTAP MODE

PostPosted: Wed Mar 30, 2022 4:00 am
by zeno78
You can turn the radio off and on if you don't expect more than one client at a time.

Re: CORRUPTED DATA RETURNED FROM ESP8285 WHEN IN SOFTAP MODE

PostPosted: Tue Jun 06, 2023 6:50 am
by simoneraineop
lakshadvio wrote:Hello,

I have a simple code which sets ESP8285 as an AP and creates a TCP socket beween an Android App and the ESP8285 with the latter being the server. The app sends commands (strings) to the ESP8285 which are printed on the serial interface for debug. The problem is that, most of the time the messages received by the ESP8285 are truncated and/or corrupted. If I connect the same two devices to a shared AP and then create a TCP socket, the messages are received correctly.

https://www.kroger-feedbackx.com/https://www.tellthebell.fyi/https://www.mycfavisit.one/https://www.dgcustomerfirst.onl/https://www.helpmelogin.net/https://www.bazoocam.fyi/


Below are the functions which program the ESP8285 as an AP and a server, as well as the receive callback function which does not do anything rather than printing the received message to the serial interface.
Any help would be appreciated.



If you are experiencing corrupted data when using the ESP8285 in SoftAP mode, there could be several potential causes for this issue. Here are a few things to consider:

Power Supply: Ensure that the power supply to the ESP8285 module is stable and sufficient. Inadequate or fluctuating power can lead to data corruption during transmission.

Noise and Interference: Check for any sources of electrical noise or interference near the ESP8285 module. Strong electromagnetic fields or nearby devices emitting high-frequency signals can disrupt the data transmission and result in corrupted data.

Signal Strength and Quality: Verify that the Wi-Fi signal strength is adequate for reliable communication between the ESP8285 and the connected devices. Weak or unstable signals can cause data corruption during transmission.

Timing and Synchronization: Pay attention to timing and synchronization issues. Ensure that the sender and receiver devices are properly synchronized to avoid data corruption. This is particularly important in scenarios where data is transmitted asynchronously or at high speeds.

Firmware or Software Issues: Check for any known firmware or software issues specific to the ESP8285 module you are using. Look for firmware updates or bug fixes that may address data corruption issues. Consider reaching out to the manufacturer or the ESP8266/ESP8285 community for support and troubleshooting guidance.

Error Checking and Retransmission: Implement appropriate error checking and retransmission mechanisms in your software or firmware to detect and recover from data corruption. This can include techniques such as checksums, CRCs (Cyclic Redundancy Checks), or acknowledgments and retransmission protocols.

Debugging and Logging: Enable debug logging or diagnostic output in your code to capture additional information about the data corruption issue. This can help in identifying the root cause and implementing appropriate mitigation strategies.

Remember to consult the documentation and resources specific to your ESP8285 module and development environment for detailed guidance on troubleshooting data corruption issues in SoftAP mode.