Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2021 04:22
What would you like to do?

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
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
sudo rfcomm connect /dev/rfcomm0 00:11:22:33:44:55 6
sudo socat /dev/rfcomm0 tcp4-listen:23366,reuseaddr

On the processing computer:

git clone
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 -t info -v 5

What happens:

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