Mr. Harald Welte. Very glad you can reply me. Let me explain first, I added
simtrace-dfu-flash-latest.bin on simtrace2 through dfu-util. Also add sudo adduser
$USERNAME dialout.Do I also need to flash simtrace-cardem-dfu.bin at the same time? Does
simtrace2 need two bins? please tell me. What I want to achieve is to emulate my sim card
remotely. Keep the sim inside the card reader. Connect the mobile phone to simtrace2, so
that the mobile phone can read the card information. And the registration is successful.
Calls are available. The mode I am running is three vmbox virtual machines, one with bankd
installed, one with server installed, and the last one with client-st2 + simtrace2-utils
installed. I have not installed a shell. Do I need to install a shell on client-st2? It
shouldn't be a must-install software, right?
root@debian:/home/debian# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 008: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@debian:/home/debian# lsusb -v -d 1d50:60e3
Bus 002 Device 008: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x60e3 Osmocom SIMtrace 2
bcdDevice 0.02
iManufacturer 1 sysmocom - s.f.m.c. GmbH
iProduct 2 SIMtrace 2
iSerial 11 512031204743594e3230323037323031
bNumConfigurations 2
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0039
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 5 SIMtrace Card Emulation
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 2
bInterfaceProtocol 0
iInterface 7 CardEmulator Modem 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 1
iInterface 0
Device Firmware Upgrade Interface Descriptor:
bLength 9
bDescriptorType 33
bmAttributes 11
Will Detach
Manifestation Intolerant
Upload Supported
Download Supported
wDetachTimeout 0 milliseconds
wTransferSize 512 bytes
bcdDFUVersion 1.00
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0012
bNumInterfaces 1
bConfigurationValue 2
iConfiguration 12 firmware version
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 0
iInterface 13 0.8.1.63-968d
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
root@debian:/home/debian# ls -l /dev/bus/usb/002/008
crw-rw-r-- 1 root dialout 189, 135 6月 16 01:30 /dev/bus/usb/002/008
root@debian:/home/debian# groups debian
debian : debian root dialout cdrom floppy audio dip video plugdev netdev bluetooth lpadmin
scanner
root@debian:/home/debian# dfu-util --list
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to
http://sourceforge.net/p/dfu-util/tickets/
Found Runtime: [1d50:60e3] ver=0002, devnum=8, cfg=1, intf=1, path="2-2", alt=0,
name="UNKNOWN", serial="512031204743594e3230323037323031"
root@debian:/bin# osmo-remsim-client-st2 smo-remsim-client-st2 --usb-vendor 1d50
--usb-product 60e3 --usb-path 2-2 --usb-config 1 --client-id 1 --client-slot 1 --server-ip
192.168.2.128 --server-port 9998
DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP
connection to server at 192.168.2.128:9998
Cannot claim interface: LIBUSB_ERROR_INVALID_PARAM
DMAIN ERROR user_simtrace2.c:430 can't open USB device
This is all I do on the computer client2-st2. (The premise is that my card reader has been
connected to the server。As shown below)
I use the official card reader, but I don't know why it shows 8 ports. It may be that
my osmo-remsim-bankd -n is not set properly.
This is all my operations, please help me to correct the error. Thank you very much.
At 2023-06-15 21:53:51, "Harald Welte" <laforge(a)osmocom.org> wrote:
Hi bianfang,
On Sat, Jun 10, 2023 at 09:49:56AM -0000, bianfang85(a)163.com wrote:
root@debian:/home/debian# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 1d50:60e3 OpenMoko, Inc. Osmocom SIMtrace 2
can you shoul 'lsusb -v -d 1d50:60e3' please?
root@debian:/home/debian# osmo-remsim-client-st2
-i 192.168.2.128
DRSPRO INFO ../rspro_client_fsm.c:307 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP
connection to server at 192.168.2.128:9998
No USB device with matching VID/PID: Resource temporarily unavailable
DMAIN ERROR user_simtrace2.c:430 can't open USB device
Maybe you don't have the cardem firmware installed on the simtrace2?
--
- Harald Welte <laforge(a)osmocom.org>
https://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)