pip install hidapi
- Generate a
HexRegisterValues.txtfile in the TICS Pro app or use the example provided file - Run
./lmx.py HexRegisterValues.txt
To capture and replay commands from the TICS Pro app:
- Assume you have VirtualBox VM with TICS Pro running
modprobe usbmon- Connect the USB device to the VM
lsusb, note the Bus and Device ID, e.g. "Bus 001 Device 031: ID 2047:0301 Texas Instruments MSP430 HID Datapipe Example" → Bus 1, Device 31- Start Wireshark, select usbmonX device, where X = Bus ID
- Add filter
usb.device_address == 31where the number is the Device number noted before - Select USB Communications → Write all registers in TICS Pro
- Save the packets to .pcapng
- Run
tcpdump -r log.pcapng -x > log.txt - Run
./try.py log.txt
- Print
holder.scad - Use 2.5x6 screws for plastic, e.g. Bossard 3034063 or 2000156
dos2unix HexRegisterValues.txtcat HexRegisterValues.txt | sed -re "s/^R/\"/" -e "s/\t0x/\":\"/g" -e "s/$/\",/g"- add
{}to make it a json object - save to
config/pll/lmx/registers.json
cat /tmp/LMX-C-doubler_lowspurs.txt.json | tr -d \", | sed -re "s/^/R/" -e "s/:/\t0x/" > LMX-C-doubler_lowspurs.txt
