Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promiscuous mode prevent to send UDP packet #3816

Closed
fralomb opened this issue Nov 9, 2017 · 2 comments
Closed

Promiscuous mode prevent to send UDP packet #3816

fralomb opened this issue Nov 9, 2017 · 2 comments

Comments

@fralomb
Copy link

fralomb commented Nov 9, 2017

Description

Basically i want to enable the promiscuous mode on the nodeMCU and sometimes send some UDP packets in the network to a remote server. I've tried a simple example in which the module (after having made the connection to the router) sends these UDP packets to the server and on the other side the server receives them correctly. But if i enable the promiscuous mode, by registering the callback through the wifi_set_promiscuous_rx_cb(..) function, then my UDP server no longer receives any packet from the ESP module. Moreover, by monitoring the network traffic with Wireshark no UDP packet actually does not pass any packets.
The callback registered for sniffing the packets simply ignore packets that are not a "Probe Request", but i'm wondering how this is related with the send of an UDP packet, that is connectionless and so it is not expected the reception of any kind of message. I'm a bit confused, someone can help me?

Hardware

Hardware: ESP-12E
Core Version: 2.3.0

Settings in IDE

Module: NodeMCU 1.0 (ESP-12E module)
Flash Size: 4MB
CPU Frequency: 80Mhz
Upload Using: SERIAL

@d-a-v
Copy link
Collaborator

d-a-v commented Nov 10, 2017

I don't know about this SDK function.
If you don't find any help about it, here another simple way to enable a sort of promiscuous mode while not stopping the normal behaviour of any sketch (receive through the regular API is still enabled).

@devyte
Copy link
Collaborator

devyte commented Nov 10, 2017

@fralomb no MCVE sketch provided, no details on how to reproduce the issue.
Your question is about cross-functionality with an SDK function, which is not really supported in the features offered in this repo. In addition, it is a request for help, which is off-topic. This is an issue tracker, not a support forum.
Please refer to a community forum for discussion. If you find an issue in the code hosted in this repo, please open a new issue, and fill in the requested fields.
Closing per #3655 .

@devyte devyte closed this as completed Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants