Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created November 11, 2021 04:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/e5b9d157ef36099293d20f42cba6f85f to your computer and use it in GitHub Desktop.
Save zhuowei/e5b9d157ef36099293d20f42cba6f85f to your computer and use it in GitHub Desktop.

SoftSIM across two computers: this doesn't work and I don't know why; can someone help

On the bluetooth computer:

sudo sdptool browse 00:11:22:33:44:55
<snip>
Service Name: SIM Access
Service RecHandle: 0x1000c
Service Class ID List:
  "SIM Access" (0x112d)
  "Generic Telephony" (0x1204)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
Profile Descriptor List:
  "SIM Access" (0x112d)
    Version: 0x0102
<snip>
sudo rfcomm connect /dev/rfcomm0 00:11:22:33:44:55 6
sudo socat /dev/rfcomm0 tcp4-listen:23366,reuseaddr

On the processing computer:

https://osmocom.org/projects/baseband/wiki/SoftSIM/12

git clone https://github.com/osmocom/softsim
sudo apt install ruby-serialport ruby-xml ruby-dbus ruby-dev
gem install --user-install smartcard
ruby src/demo_client.rb -s tcp -p 23366 --host 192.168.1.13 -t info -v 5

What happens: https://gist.github.com/zhuowei/726dfc76df87d6d5807ca37e1d515cfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment