Search found 14 matches

by jimako
Thu May 10, 2018 7:23 pm
Forum: ESP8266 boards
Topic: nmap shows active microcontrollers
Replies: 4
Views: 769

Re: nmap shows active microcontrollers

kfricke wrote:
Thu May 10, 2018 3:34 pm
You’re are using TCP SYN scan technique of nmap. It can even detect a device with no open port like your ESP.

So yes it can see the device in this state. The ESP network interface should be disabled to deactivate the device detection.
I see. Thank you for the explanation.
by jimako
Thu May 10, 2018 12:32 pm
Forum: ESP8266 boards
Topic: nmap shows active microcontrollers
Replies: 4
Views: 769

Re: nmap shows active microcontrollers

kfricke wrote:
Wed May 09, 2018 10:53 pm
Following the code example you are posting your station interface is set to be active (True).
Yes, it is set to active so that I can connect to the network. Does that mean that it should also be discoverable (respond to requests) with nmap?

Thanks.
by jimako
Wed May 09, 2018 2:05 pm
Forum: ESP8266 boards
Topic: nmap shows active microcontrollers
Replies: 4
Views: 769

nmap shows active microcontrollers

Doing a scan using nmap an ESP is discoverable. I was wondering if anyone can shed some light on why this happens. The ESP is configured as STA_IF and AP_IF is disabled. ap_if = network.WLAN(network.AP_IF) sta_if = network.WLAN(network.STA_IF) ap_if.active(False) sta_if.active(True) The nmap command...
by jimako
Mon Apr 23, 2018 4:46 pm
Forum: MicroPython pyboard
Topic: best approach for an application config file
Replies: 16
Views: 8539

Re: best approach for an application config file

You can also use good ole python. This works well for read-only configuration information. Just create a python module and import it. That is my preferred method as well. And here is an example on how I use it, in case somebody is looking how to use this method. Create a `config.py` file: WIFI_SSID...
by jimako
Sun Apr 22, 2018 7:43 am
Forum: ESP8266 boards
Topic: Different behavior of sensor between boards
Replies: 4
Views: 1022

Re: Different behavior of sensor between boards

Indeed, after switching the sensor to an external power supply, the fluctuations are gone, and the measurements are back to normal. If you have access to an oscilloscope you could check for noise on the DHT11 power line. Otherwise experiment with decoupling capacitors. Thanks. According to the datas...
by jimako
Thu Apr 19, 2018 4:46 pm
Forum: ESP8266 boards
Topic: Different behavior of sensor between boards
Replies: 4
Views: 1022

Re: Different behavior of sensor between boards

At first I thought that something may be wrong with the timings of the Amica module which affect the one-wire bit banging which causes the error. However, after looking into the dht driver of MicroPython https://github.com/micropython/micropython/blob/master/drivers/dht/dht.py this wouldn't be possi...
by jimako
Thu Apr 19, 2018 1:49 pm
Forum: ESP8266 boards
Topic: Different behavior of sensor between boards
Replies: 4
Views: 1022

Different behavior of sensor between boards

I have a simple script that uses the `dht` library to read values of dht11 and push them to a server. I first developed this on a NodeMCU v3 board and it is working fine. I ordered another dev board but instead of the NodeMCU v3, they sent me a NodeMCU Amica. Even though I thought that they are the ...
by jimako
Sun Jan 01, 2017 8:41 pm
Forum: ESP8266 boards
Topic: TMP100 library - Please critique
Replies: 10
Views: 3770

Re: TMP100 library - Please critique

Thanks guys for your valuable feedback. I will incorporate the changes in the code.
by jimako
Thu Dec 29, 2016 7:18 pm
Forum: ESP8266 boards
Topic: TMP100 library - Please critique
Replies: 10
Views: 3770

Re: TMP100 library - Please critique

Hm but the number is made out of 12 bits. Also (for my understanding) wouldn't importing ustruct module consume more resources than those bitwise operations?
by jimako
Wed Dec 28, 2016 3:25 pm
Forum: ESP8266 boards
Topic: TMP100 library - Please critique
Replies: 10
Views: 3770

Re: TMP100 library - Please critique

Thank you for your comments. You are right, I neglected negative numbers. Thanks for the two's complement code too!