Compile for ESP01
Closed this issue · 2 comments
Hello,
ESP01 is ultra compact and dispose wifi 2.4ghz and one serial port (that can be connected to mavlink), it can be perfect for test OPENDRONEID Wifi only version.
Does anybody can help me to compile opendrone id for esp01 ?
I found esp01 firmware that enable to output wifi raw packets:
wifi_set_channel(5);
uint8_t packetH[36]={
0x80, 0x00, //Frame Control
0x00, 0x00, //Duration
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, //Receiver Address= Destination Address
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, //Transmitter Address= Source Address
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, //BSSID
0x00, 0x00, //Sequence control
0x01, 0x02, 0x02, 0x03,0x03,0x03,0x04,0x04, //Body
0x05, 0x03, 0x02, 0x01 //FCS
};
wifi_send_pkt_freedom(packetH,sizeof(packetH),0);
esp-open-sdk
https://projetsdiy.fr/esp-01-esp8266-flasher-firmware-origine/
https://github.com/pulkin/esp8266-injection-example
Also:
https://github.com/spacehuhn/esp8266_beaconSpam/blob/master/README.md
https://github.com/spacehuhn/esp8266_beaconSpam/blob/master/esp8266_beaconSpam/esp8266_beaconSpam.ino
https://github.com/tabarra/ESP8266-ABS/blob/master/esp8266_abs/esp8266_abs.ino
http://arduino.esp8266.com/Arduino/versions/2.3.0/
https://github.com/spacehuhn/esp8266_beaconSpam/blob/master/esp8266_beaconSpam/esp8266_beaconSpam.ino
https://github.com/tabarra/ESP8266-ABS/blob/master/esp8266_abs/esp8266_abs.ino
AFAIK wifi_send_pkt_freedom
is not supported in recent Espressif SDKs. I don't think we should rely on functionality that's not supported or depend on outdated and potentially insecure libraries.
Although not exactly the ESP8266, there has for some time been example SW available here for transmitting drone ID signals on the ESP32 HW:
https://github.com/sxjack/uav_electronic_ids