USB commands

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

Samuel Weinbeck samuel.weinbeck at gmail.com
Tue Feb 19 21:42:48 UTC 2013


Hi all,

I am playing around with the USB commands in SIMTrace but I'm having a
bit of trouble. I wrote a short python script to send a GET_VERSION
command. However, only the first one is received by the board.

If I run it, the first time I will see a GET_VERSION in the debug
terminal. If I try again, however many times, I do not see any output.

Why is this?

The script:

---snip---
#!/usr/bin/python
import usb.core
import usb.util

cmd="\x01\x00\x00\x00"

dev=usb.core.find(idVendor=0x16c0, idProduct=0x0762)
dev.set_configuration()
dev.write(1, cmd, 0)
---snip---




More information about the simtrace mailing list