mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +03:00
Sniffer with ringbuf, works SOMETIMES
* Sniffer uses phone endpoints for communication and the ringbuffer
routines the phone communication uses
* Most times the Usart1 interrupt is not triggered, and therefore
no values are recorded
This commit is contained in:
@@ -7,6 +7,7 @@ import phone
|
||||
from contextlib import closing
|
||||
|
||||
from util import HEX
|
||||
from constants import PHONE_WR, PHONE_RD, PHONE_INT, SIM_WR, SIM_RD, SIM_INT
|
||||
|
||||
def find_dev():
|
||||
dev = usb.core.find(idVendor=0x03eb, idProduct=0x6004)
|
||||
@@ -30,14 +31,6 @@ def pattern_match(inpt):
|
||||
else:
|
||||
return inpt
|
||||
|
||||
SIM_WR = 0x1
|
||||
SIM_RD = 0x82
|
||||
SIM_INT = 0x83
|
||||
|
||||
PHONE_WR = 0x4
|
||||
PHONE_RD = 0x85
|
||||
PHONE_INT = 0x86
|
||||
|
||||
ERR_TIMEOUT = 110
|
||||
|
||||
def poll_ep(dev, ep):
|
||||
|
||||
Reference in New Issue
Block a user