ARMmbed / wifi-ism43362

ISM43362 WiFi driver
17 stars 22 forks source link

Regression, second TCP connection closes the first TCP connection #63

Closed marcuschangarm closed 3 years ago

marcuschangarm commented 5 years ago

I'm running the latest Pelion Device Management client together with a custom application that uses TCP. After Pelion client is connected I start my application. Both Pelion and my application use DNS.

Before commit https://github.com/ARMmbed/wifi-ism43362/commit/7d1e2f9a516614e4090d7fc11a95c00e3d4366b9 everything worked fine, both applications could connect and send data concurrently. After the commit, Pelion client loses connection at exactly the same time my application starts. My application runs fine but Pelion client fails to reconnect.

Platform: DISCO_F413ZH with latest wifi firmware. Compiler: GCC

LMESTM commented 5 years ago

You mention it's the latest one, but better check: C3.5.2.5.STM firmware version is the latest one - do you confirm this is the version you use ? In case update is needed, there is a small (Windows) utility and readme here: https://www.st.com/resource/en/utilities/inventek_fw_updater.zip

LMESTM commented 5 years ago

@marcuschangarm would you be able to activate traces in ISM drivers files here and here and reproduce your issue ?

marcuschangarm commented 5 years ago

@LMESTM I've sent you an email with the trace.

jeromecoutant commented 5 years ago

@michalpasztamobica @SeppoTakalo as regression could come from #61

jeromecoutant commented 4 years ago

Hi

I'm running the latest Pelion Device Management client together with a custom application that uses TCP.

Does Pelion client use TCP as well or UDP ?

@JeanMarcR

JeanMarcR commented 4 years ago

Pelion client can use either TCP or UDP. The choice is done during registration. You can specify TCP or UDP in the configuration file : mbed_cloud_client_user_config.h (for instance TCP connection : #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP).

JeanMarcR commented 4 years ago

Hi all I would like to run a Pelion Device Management client. But I obtain the following error message: client_error(16) -> Failed to read credentials from storage.

JeanMarcR commented 4 years ago

Hi all, I'm running the latest Pelion Device Management client together with a custom application that uses TCP. I'm obtaining a system error message because the ism43362 thread stack size is too small (1024 bytes). I'm increasing the stack size up to 2048 bytes -> no crash. By default the ism43362 thread stack size = 4096 bytes. It is possible to change this value (parameter "ism43362.read-thread-stack-size" ) in mbeb_app.json.

Platform: DISCO_L475E with latest wifi firmware. Compiler: GCC

Best regards

JeanMarcR commented 4 years ago

Hi all, I'm joining an example of two TCP/IP connections :

Platform: DISCO_L475E with latest wifi firmware. Compiler: GCC

This example is specifying a problem with the WiFi modem. Indeed, a valid AT request (R0) is receiving an error message from the WiFi modem. Best regards.

jeromecoutant commented 3 years ago

Closing as a workaround has been provided