UPDATE: The wifi module im using was connected to a toy drone the tx/rx pins was being used for telemetry back and fourth from the drone app to the wifi module then the drones flight controller, the flight controller was originally sending information on the same wifi rx pin in the form of UDP that im trying to accomplish now but because I don't have the flight controller anymore I cant hook it back up to sniff the packets that the (fc) was sending to the wifis rx pins if so I could maybe sniff the packets using wireshark and figure out what to send on the. no maybe not as I think the UDP var needs to be binded first. hhhm or something like this maybe,could this possibly work? Serial.write(COMPLETE_UDP_DATAGRAM_PACKET) I know there are UDP libraries available but they all seem to use wifi modules that aren't connected via serial rx/tx.ĭo I need to construct a udp packet containing port and ip of the device I want to receive the message to if so how would I do this using arduino but only sending the info on the arduino serial tx line, also not sure if the constructed packet should be in binary or hex Im sure I have to send a UDP packet (header plus data) to the device I want to send the udp message to IE.the UDP monitor app im using on android. So must be a way to send data back to the android app by using the modules rx wire just like the flight controller did that was previously connected. 2 are for the power, other 2 wires are tx and rx, I believe they are used as serial as I can receive from the modules tx thats connected directly to arduinos rx serial when I send a udp message on port 5000 to ip 192.168.0.1 from a (UDP app on android). This is the exact same model first link below. At this point im just trying to send anything that can be received by another device that is connected on the same wifi network, the wifi module im using I cant seem to find any information on as the wifi module was taken out of a cheap chinese drone. I have a 5G wifi module hooked up to a arduino nano 33 ble via RX/TX pins, I can send UDP packets from a UDP monitor app on android using port 50000 over UDP and receive them on the wifi modules tx pin that is connected to arduino's rx pin and print it on the serial monitor using baud speed of 115200 but I can't send any packets or anything for that matter on the modules rx pin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |