Search found 38 matches

by MorseIot
Tue Jul 16, 2019 8:56 pm
Forum: ESP8266 boards
Topic: Getting MAC Address of Devices NOT connected in your network
Replies: 2
Views: 2488

Re: Getting MAC Address of Devices NOT connected in your network

I believe this requires promiscuous mode, as you say. This is supported on the ESP8266 (and ESP32) hardware, but not available in MicroPython. It would appear this wouldn't be too hard to add though -- via esp_wifi_set_promiscuous() & esp_wifi_set_promiscuous_rx_cb(). Correct, I already use with ar...
by MorseIot
Thu Jul 11, 2019 11:17 am
Forum: ESP8266 boards
Topic: Getting MAC Address of Devices NOT connected in your network
Replies: 2
Views: 2488

Getting MAC Address of Devices NOT connected in your network

configuration:

esp8266
AP mode
wifi

problem:

I need to capture mac address, Rssi etc from mobile devices close to ESP8266 without being connected
promiscuous WiFi scanned
Does anyone know Micropython code?
by MorseIot
Tue May 21, 2019 11:43 pm
Forum: ESP32 boards
Topic: URL string
Replies: 1
Views: 1850

URL string

How do I convert url string to string, example:

receive request:

Code: Select all

request = conn.recv(1024)
print(request)
result: %23%24%25%26%40%40
should be: #$%&@@

Tx
by MorseIot
Tue May 07, 2019 5:29 pm
Forum: ESP32 boards
Topic: wifi: bcn_timout,ap_probe_send_start
Replies: 2
Views: 3153

Re: wifi: bcn_timout,ap_probe_send_start

Weird errors on ESPx usually come from several sources. One is failing to close sockets when they are no longer used: you need to ensure this always happens, through every code path. Secondly internal buffers can overflow. This can happen if one peer puts data into a socket and the other fails to r...
by MorseIot
Sat Apr 27, 2019 12:49 pm
Forum: ESP32 boards
Topic: wifi: bcn_timout,ap_probe_send_start
Replies: 2
Views: 3153

wifi: bcn_timout,ap_probe_send_start

after some runtime code, socket, I get the following wifi error: bcn_timout, ap_probe_send_start, locking the ESP-32 also happens on the ESP-8266.

Is there a fix for this problem ???

Thanks
by MorseIot
Sat Apr 27, 2019 12:09 pm
Forum: ESP8266 boards
Topic: Close Socket
Replies: 4
Views: 3669

Re: Close Socket

I think this means that the other endpoint is rejecting the connection. I notice you're using a nonblocking socket. This raises at least two issues. As I understand it, SSL/TLS on nonblocking sockets is a very recent addition to MicroPython. It may or may not have issues. Secondly you can't just se...
by MorseIot
Fri Apr 26, 2019 9:41 pm
Forum: ESP8266 boards
Topic: Close Socket
Replies: 4
Views: 3669

Re: Close Socket

You have made your code hard to debug by trapping all exceptions and issuing a generic message. I would suggest at the very least getting it to issue something more meaningful so you can figure out why it's failing except Exception as e: print('Socket Except Error', e) responseBytes = None # pass T...
by MorseIot
Thu Apr 25, 2019 9:27 pm
Forum: ESP8266 boards
Topic: Close Socket
Replies: 4
Views: 3669

Close Socket

According to the sample code below, sending packet to a host on a given port, if socket error occurs, depending on the code, the socket will be closed and returns None. But when resending, always returns socket error, something wrong ??? def openSocket(host,port,send,buffer): try: _socket = socket.s...
by MorseIot
Tue Mar 26, 2019 1:08 am
Forum: ESP8266 boards
Topic: Newbie with WIFI problem
Replies: 2
Views: 2329

Re: Newbie with WIFI problem

Hi, im newbie and i am using an ESP8266 nodeMCU board. I am trying to connect to my wifi with the code: import network ssid="casa_1001" password="xxxxxxxxxxx" network.WLAN(network.AP_IF).active(False) sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.connect(ssid, password) But i am ...
by MorseIot
Mon Mar 25, 2019 4:05 pm
Forum: ESP8266 boards
Topic: Debug firmware
Replies: 2
Views: 2060

Re: Debug firmware

Illegal CPU exception? Sent from my iPhone using Tapatalk Pro Fatal Exception: Fatal exception 4(Level1InterruptCause): ÿpc1=0x400005cb, epc2=0x00000000, epc3=0x00000000, excvaddr=0x2f656369, depc=0x00000000 Fatal exception 9(LoadStoreAlignmentCause): ÿpc1=0x402123aa, epc2=0x00000000, epc3=0x000000...