logo elektroda
logo elektroda
X
logo elektroda

ESP8266 - no UDP communication with phone and computer, between modules OK

@Kamil 1890 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16656287
    @Kamil
    Level 23  
    Hello,
    About a year ago I created a device that works as follows. There are 3 modules with ESP8266. Each module is connected to a router.It is a kind of mini wireless intercom. One is at the gate, when the button is pressed the other two ESPs trigger the bell. When you press the button at the bell the gate opens.
    The whole thing is written in Arduino. The modules communicate with each other via UDP. And now for the most important part. The modules communicate with each other correctly, all udp packets arrive. However, I have a problem with communication between e.g. phone and module or computer and module. Strangely enough, everything worked fine before. A UDP frame from the phone opened the gateway. Since about a month this has stopped working. Looking for the cause I even swapped routers. Unfortunately the effect is the same, communication between modules is correct, from the phone packets escape.
    Does anyone have any hint where the problem could be?
    Best regards

    EDIT
    Actually, I have given little specifics. After work, I will try to find the code snippet responsible for UDP communication.

    From what I recall from my tests.
    The modules are assigned specific IPs to which they send data. I disabled one module and assigned the IP of the module in question to a computer running the hercules application with UDP listening. In the other module I pressed a button which should this time send a command to the computer. Unfortunately, nothing appeared in hercules. Even though, for example, a command sent from the phone ne the computer arrives in full. It looks as if these modules of mine are no longer visible to other devices on the network. Even the command ping 192.168.1.110 has no effect. Strangely enough they communicate with each other correctly.
  • ADVERTISEMENT
  • #2 16670470
    And!
    Admin of Design group
    Strange thing, maybe there was some change in the router's configuration (or software version) and some WiFi client isolation mechanism was triggered, which allows the client to connect to the Internet but not "among themselves". Another possibility is that the PC or phone may have a mechanism in place that filters certain packets (this is even more likely as the router has been changed)?
  • ADVERTISEMENT
  • #3 16964897
    mateq96
    Level 8  
    And is it possible for the modules to communicate without using a router ?
  • ADVERTISEMENT
  • #4 16966607
    And!
    Admin of Design group
    Yes, using WiFi one can be the AP to which the others connect in client mode, or you can use the connection between ESP-now modules.
  • #5 17147646
    kisoft
    Level 14  
    scan the network with a program and check if they are visible in the network
ADVERTISEMENT