Ctrl-C on socket data causing reset and no way to trap SIGINT

matherp
Posts: 5
Joined: Mon Dec 21, 2020 8:03 pm

Ctrl-C on socket data causing reset and no way to trap SIGINT

Postby matherp » Sat Feb 06, 2021 8:05 pm

I've set up a simple socket to talk to a remote application and need to transmit binary data. However, whenever the remote application sends anything which isn't ascii this cause a complete reset of the ESP32. Is there some way to set up the socket to allow binary data without any interpretation? Attached below the diagnostic when the the data includes ctrl-C (binary 3).

The socket code is cut and paste from the TCP server example program and works perfectly for normal ascii

Help appreciated

Code: Select all

I (14445) wifi station: Socket accepted ip address: 192.168.1.96
Guru Meditation Error: Core  1 panic'ed (Double exception)
Core 1 register dump:
PC      : 0x4008cf0f  PS      : 0x00040236  A0      : 0x80082ac4  A1      : 0x3fff0060
A2      : 0xfff7b1dc  A3      : 0xffffffff  A4      : 0x3ffb3d88  A5      : 0x3ffb3d94
A6      : 0xfff7b1dc  A7      : 0xffffffff  A8      : 0x3ffb3d98  A9      : 0x00000000
A10     : 0x011b039d  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x0123635e
A14     : 0x00000000  A15     : 0x00000000  SAR     : 0x0000000c  EXCCAUSE: 0x00000002
EXCVADDR: 0x0123634e  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff

Who is online

Users browsing this forum: Bing [Bot] and 167 guests