My goal is to first connect via WiFi, then Ping the router to obtain CSI data, and finally send the data to the computer through UDP. However, there is not enough running space in the whole process. I wonder if there is any optimization method.
I (1096) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (1616) esp_netif_handlers: sta ip: 192.168.2.100, mask: 255.255.255.0, gw: 192.168.2.1
I (1616) wifi station: got ip:192.168.2.100
I (1616) wifi station: connected to ap SSID:pan(1) password:panning2011
I (1626) wifi:ic_enable_sniffer
ip addresss: 192.168.2.1
I (1636) wifi station: ================ CSI RECV ================
type,id,mac,rssi,rate,sig_mode,mcs,bandwidth,smoothing,not_sounding,aggregation,stbc,fec_coding,sgi,noise_floor,ampdu_cnt,channel,secondary_channel,local_timestamp,ant,sig_len,rx_state,len,first_word,data
CSI_DATA,0,3c:06:a7:14:3b:8e,-17,11,1,7,1,0,1,1,0,0,0,-96,1,11,2,385510,0,146,0,384,1,"[-110,-96,8,0,0,0,0,0,0,0,-5,-1,-19,-4,-18,-4,-18,-3,-18,-3,-18,-4,-18,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-16,-4,-16,-4,-16,-4,-16,-3,-16,-3,-16,-3,-16,-2,-16,-2,-16,-2,-16,-2,-15,-2,-15,-3,-15,-3,-8,-1,-15,-1,-15,0,-15,0,-15,1,-15,1,-15,1,-14,2,-14,2,-14,2,-14,1,-15,1,-15,1,-14,1,-14,1,-14,1,-14,1,-14,1,-14,1,-13,1,-13,0,-13,0,-14,0,-14,0,-14,-1,-13,-2,-13,-2,-4,-1,0,0,0,0,0,0,0,0,-1,-1,-5,0,-35,6,-35,6,-35,5,-35,5,-35,-2,-34,-2,-34,-2,-33,-2,-33,-3,-33,-3,-33,-3,-32,-3,-32,-3,-32,-3,-32,-4,-32,-4,-31,-4,-31,-4,-31,-3,-30,-2,-30,-2,-30,-2,-29,-1,-29,0,-29,0,-29,0,-29,0,-29,-1,-29,-2,-29,-1,-28,3,-28,2,-28,3,-28,4,-27,5,-26,6,-26,7,-26,7,-25,7,-25,7,-26,6,-26,5,-26,5,-26,5,-25,6,-25,6,-25,5,-25,5,-24,5,-24,5,-24,5,-25,4,-25,4,-26,2,-26,1,-25,0,-24,-1,-6,-1,0,0,0,0,-1,-1,-1,-1,0,0,0,0,0,0,-1,-1,-1,-1,-7,-2,-25,-7,-25,-8,-25,-9,-25,-10,-24,-11,-24,-11,-23,-11,-23,-12,-23,-13,-22,-14,-22,-15,-22,-16,-21,-17,-21,-17,-20,-18,-20,-18,-20,-18,-19,-19,-19,-19,-18,-19,-18,-20,-18,-20,-17,-21,-17,-22,-17,-22,-16,-23,-18,-21,-16,-24,-16,-24,-15,-24,-15,-24,-14,-25,-14,-25,-14,-25,-14,-26,-14,-26,-14,-27,-13,-27,-12,-28,-11,-28,-11,-28,-11,-29,-11,-29,-11,-30,-10,-30,-10,-30,-10,-31,-10,-31,-9,-32,-9,-33,-7,-33,-7,-33,-6,-34,-10,-34,-9,-34,-10,-33,-10,-34,-2,-5]"
E (1816) esp32_asio_exception: Caught exception: send_to: Not enough space!
`
First of all, it is not recommended to use UDP to transmit CSI to PC. UDP packet transmission will affect the work of CSI. It is recommended that you use UART for transmission.
You can use this example to transmit CSI data: udp_client
My goal is to first connect via WiFi, then Ping the router to obtain CSI data, and finally send the data to the computer through UDP. However, there is not enough running space in the whole process. I wonder if there is any optimization method.
env: vscode + esp-idf plugin
chip : esp32 flash: 4M
code link:
https://github.com/KOOKOKOK/template-app.git
Debug Logs
` Debug log :
I (1096) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (1616) esp_netif_handlers: sta ip: 192.168.2.100, mask: 255.255.255.0, gw: 192.168.2.1 I (1616) wifi station: got ip:192.168.2.100 I (1616) wifi station: connected to ap SSID:pan(1) password:panning2011 I (1626) wifi:ic_enable_sniffer ip addresss: 192.168.2.1 I (1636) wifi station: ================ CSI RECV ================ type,id,mac,rssi,rate,sig_mode,mcs,bandwidth,smoothing,not_sounding,aggregation,stbc,fec_coding,sgi,noise_floor,ampdu_cnt,channel,secondary_channel,local_timestamp,ant,sig_len,rx_state,len,first_word,data CSI_DATA,0,3c:06:a7:14:3b:8e,-17,11,1,7,1,0,1,1,0,0,0,-96,1,11,2,385510,0,146,0,384,1,"[-110,-96,8,0,0,0,0,0,0,0,-5,-1,-19,-4,-18,-4,-18,-3,-18,-3,-18,-4,-18,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-17,-4,-16,-4,-16,-4,-16,-4,-16,-3,-16,-3,-16,-3,-16,-2,-16,-2,-16,-2,-16,-2,-15,-2,-15,-3,-15,-3,-8,-1,-15,-1,-15,0,-15,0,-15,1,-15,1,-15,1,-14,2,-14,2,-14,2,-14,1,-15,1,-15,1,-14,1,-14,1,-14,1,-14,1,-14,1,-14,1,-13,1,-13,0,-13,0,-14,0,-14,0,-14,-1,-13,-2,-13,-2,-4,-1,0,0,0,0,0,0,0,0,-1,-1,-5,0,-35,6,-35,6,-35,5,-35,5,-35,-2,-34,-2,-34,-2,-33,-2,-33,-3,-33,-3,-33,-3,-32,-3,-32,-3,-32,-3,-32,-4,-32,-4,-31,-4,-31,-4,-31,-3,-30,-2,-30,-2,-30,-2,-29,-1,-29,0,-29,0,-29,0,-29,0,-29,-1,-29,-2,-29,-1,-28,3,-28,2,-28,3,-28,4,-27,5,-26,6,-26,7,-26,7,-25,7,-25,7,-26,6,-26,5,-26,5,-26,5,-25,6,-25,6,-25,5,-25,5,-24,5,-24,5,-24,5,-25,4,-25,4,-26,2,-26,1,-25,0,-24,-1,-6,-1,0,0,0,0,-1,-1,-1,-1,0,0,0,0,0,0,-1,-1,-1,-1,-7,-2,-25,-7,-25,-8,-25,-9,-25,-10,-24,-11,-24,-11,-23,-11,-23,-12,-23,-13,-22,-14,-22,-15,-22,-16,-21,-17,-21,-17,-20,-18,-20,-18,-20,-18,-19,-19,-19,-19,-18,-19,-18,-20,-18,-20,-17,-21,-17,-22,-17,-22,-16,-23,-18,-21,-16,-24,-16,-24,-15,-24,-15,-24,-14,-25,-14,-25,-14,-25,-14,-26,-14,-26,-14,-27,-13,-27,-12,-28,-11,-28,-11,-28,-11,-29,-11,-29,-11,-30,-10,-30,-10,-30,-10,-31,-10,-31,-9,-32,-9,-33,-7,-33,-7,-33,-6,-34,-10,-34,-9,-34,-10,-33,-10,-34,-2,-5]" E (1816) esp32_asio_exception: Caught exception: send_to: Not enough space! `