Monday, December 29, 2025
Monday, November 24, 2025
home assistant virtualizado
Referencias:
1) you need to learn Virtual Machines RIGHT NOW!! (NetworkChuck)
https://youtu.be/wX75Z-4MEoM?si=OrCRN-ohxtozyLQN
2) Instala Home Assistant en cualquier PC o Mac (domoticarte)
https://youtu.be/qSpvsFak9jg?si=z-P83Tua_hkcKYmK
3) How to use VirtualBox - Tutorial for Beginners (Kevin Stratvert)
https://youtu.be/nvdnQX9UkMY?si=FoFDcihOA8X_25LY
Sunday, June 8, 2025
adb
Los 10 comandos que necesito:
1)adb devices
2)adb shell (consola remota)
3)adb push filename dest(ph)
5)adb exec-out screencap -p > filename.png (se trae la imagen al PC)
6)adb shell screenrecord "/sdcard/filename.mp4"
starts...
ctrl-c (desde la PC), and then:
adb pull /sdcard/filename.mp4 .
7)adb shell input tap x y
8)adb shell input text "jorge"
9)adb shell input keyevent 4
10) adb forward tcp:12345 tcp:12345 (para tkconclient)
/dev/input/event5: EV_ABS ABS_MT_POSITION_X 00000091
/dev/input/event5: EV_ABS ABS_MT_POSITION_Y 0000007e
^C
639
strtonum() es una extension de gawk. 639
Thursday, June 5, 2025
Sunday, June 1, 2025
Using i2cdriver to [M]onitor i2c activity (sniffer)
create a bat file in Windows with the following contents:
cmd /k "C:\Program Files (x86)\Excamera Labs\I2CDriver\i2ccl.exe" COM5 m
pause
edit the COM port # that the i2cDriver is connected to, and your path to i2ccl.exe.
😎
Wednesday, May 14, 2025
Aprender algo nuevo cada dia
2025:
Lunes 5/12 - copilot y bookmarklet
Martes 5/13 - copilot y tampermonkey
Miercoles 5/14 - run Tcl scripts with python wrapper
import sys ; import tkinter
print ("Greeting from Python {}.{}.{}".format(*sys.version_info))
gui = tkinter.Tk()
gui.tk.eval(open('agrep.tcl', 'r').read())
gui.mainloop()
Sabado 5/31
Domingo 6/1
Friday, January 3, 2025
Usando picocom con el i2cdriver
sudo picocom -b 1000000 -d 8 -p 1 -y n --imap spchex /dev/ttyUSB0
enviar por ejemplo:
? para hacer un "query" del status del modulo i2cdriver
_ para hacer un reboot del modulo i2cdriver
x para obtener un 3, lo que significa que ambos SDA y SCL estan en alto, bus libre.
e para hacer un echo
Sunday, December 29, 2024
Usando el modo de Captura en el i2cdriver
En las columnas de la B a la E, se muestra el contenido de una captura entre un master que escribe un caracter "A" en un display hd44780.
La interpretacion de dicha captura se muestra en las columnas de la F a la K
Using i2cdriver to [D]rive LCD with i2c backpack
Communication with PCF8574 (Located in LCD's I2C backpack)
Use serial Port with the following parameters:
1000000,n,8,1 (COM4 in this case)
The Script:
# desc: LCD
# reboot command
Sende "_" "\x01" 5
Sleep 1
# send echo byte
Sende "e\x41" "\x01" 5
# transmit status info
Sende "?" "\x01" 5
# send START
Sende "s\x4e" "\x01" 5
# write n+1 bytes - c1 means SEND 2 bytes
# to send a 3, we need to send it dup with suffix:
# 4 and 0
Sende "\xc1\x34\x30" "\x01" 5
Sleep 1
# write n+1 bytes - c7 means SEND 8 bytes
Sende "\xc7\x34\x30\x34\x30\x24\x20\x24\x20" "\x01" 5
Sende "\xc1\xc4\xc0" "\x01" 5
Sende "\xc3\x04\x00\x14\x10" "\x01" 5
Sende "\xc3\x04\x00\xc4\xc0" "\x01" 5
Sende "\xc3\x04\x00\x64\x60" "\x01" 5
# send STOP
Sende "p" "" 1
Sende "s\x4e" "\x01" 5
Sende "\xc3\x45\x41\x15\x11" "\x01" 5
Sende "p" "" 1
