mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 23:08:34 +03:00
Phone uses USB endpoints 4 to 6 instead of 1 to 3 now
This commit is contained in:
@@ -102,21 +102,16 @@ def handle_phone_request(dev, state):
|
||||
try:
|
||||
state = handle_msg_funcs[WAIT_RST](dev)
|
||||
except usb.USBError as e:
|
||||
print e
|
||||
print(e)
|
||||
state = handle_msg_funcs[state](dev)
|
||||
return state
|
||||
|
||||
INS = 1
|
||||
CNT = 4
|
||||
|
||||
#PHONE_DATAOUT = 0x04
|
||||
#PHONE_DATAIN = 0x85
|
||||
#PHONE_INT = 0x86
|
||||
|
||||
|
||||
PHONE_DATAOUT = 0x01
|
||||
PHONE_DATAIN = 0x82
|
||||
PHONE_INT = 0x83
|
||||
PHONE_DATAOUT = 0x04
|
||||
PHONE_DATAIN = 0x85
|
||||
PHONE_INT = 0x86
|
||||
|
||||
def send_response(dev, cmd):
|
||||
# FIXME: We could get data of length 5 as well! Implement another distinct criteria!
|
||||
|
||||
Reference in New Issue
Block a user