Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Sunday, August 14, 2016

Allow 65536 threads with 65536 tcp ports listening



Thread-65532 tcp_port= 65531
Thread-65533 tcp_port= 65532
Thread-65534 tcp_port= 65533
Thread-65535 tcp_port= 65534
Thread-65536 tcp_port= 65535
active threads 62547
join

Saturday, April 25, 2015

ESP8266 ESP-01 esptool.py no Linux


A primeira ferramenta para o ESP-01 no Linux é o esptool.py.
No esptool dá para fazer a manutenção completa do ESP-01

root@murix-System-Product-Name:~/Downloads# wget https://raw.githubusercontent.com/themadinventor/esptool/master/esptool.py
--2015-04-25 17:33:39--  https://raw.githubusercontent.com/themadinventor/esptool/master/esptool.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.27.75.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.27.75.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23964 (23K) [text/plain]
Saving to: ‘esptool.py’

100%[===============================================================================================================================>] 23.964      --.-K/s   in 0,006s 

2015-04-25 17:33:40 (3,88 MB/s) - ‘esptool.py’ saved [23964/23964]

root@murix-System-Product-Name:~/Downloads# chmod +x esptool.py



root@murix-System-Product-Name:~/Downloads# ./esptool.py --port /dev/ttyUSB0 read_mac
Connecting...
MAC: 18:fe:34:9f:13:f3
root@murix-System-Product-Name:~/Downloads#


https://github.com/nodemcu/nodemcu-firmware/releases/tag/0.9.6-dev_20150406

root@murix-System-Product-Name:~/Downloads# ./esptool.py --port /dev/ttyUSB0 write_flash 0x0 nodemcu_integer_0.9.6-dev_20150406.bin
Connecting...
Erasing flash...
Writing at 0x00066400... (100 %)

Leaving...
root@murix-System-Product-Name:~/Downloads#

Sunday, October 5, 2014

MBED FRDM-KL25Z USB HID com Python

Tutorial de como usar a KL25Z como um dispositivo USB HID usando a plataforma da MBED.
E a comunicação usando Python com USB lib.

Friday, March 21, 2014

Interface TAP para Windows e a internet das coisas (IoT)

As interfaces TAP servem com uma placa de rede virtual para injetar pacotes de rede diretamente no kernel do sistema operacional. No caso do Linux isso já é bastante antigo e comum de ser feito. No Windows isso era impossível até pouco tempo atrás.