Sunday, June 8, 2025

adb

 Los 10 comandos que necesito:

https://www.hexnode.com/mobile-device-management/help/how-to-execute-adb-commands-on-android-devices-remotely/#screen-recording-using-adb 

1)adb devices
2)adb shell (consola remota)
3)adb push filename   dest(ph)

4)adb pull source(ph) dest-path
adb pull /storage/sdcard0/Pictures/Screenshots/Screenshot1.png .

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)

YouTube video:

 

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