Project

General

Profile

Feature #5103

Provide a sample sim.xml file

Added by rousseau about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/04/2021
Due date:
% Done:

0%

Spec Reference:

Description

./demo_server.rb uses a sim.xml file (default filename).
No such file is provided in the git repository.

I suggest to provide a sample sim.xml file so it is possible to play with the software and use the sample file as a starting point.

sim.xml sim.xml 57.9 KB fixeria, 04/04/2021 12:24 PM

History

#1 Updated by fixeria about 1 month ago

I've got this sample (see attachment) from tsaitgaist a few years ago, and I think we can include it as 'doc/examples/sim.xml'.

#2 Updated by rousseau about 1 month ago

Using the provided sim.xml I can make softsim to work. Great!

On the server side I have:

± ./demo_server.rb -t sim
Previous socket exists, deleting it...
[ATR] 3b 0a 41 00 3f 43 00 01 50 29 01 02
[APDU] > a0 a4 00 00 02 3f 00
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 3f 00 01 00 00 00 00 00 0a 93 04 08 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 7f 20
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 7f 20 02 00 00 00 00 00 0a 93 00 1b 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 6f 07
[APDU] < 9f 0f
[APDU] > a0 c0 00 00 0f
[APDU] < 00 00 00 09 6f 07 04 00 14 f0 14 01 02 00 00 90 00
[APDU] > a0 b0 00 00 09
[APDU] < 08 49 06 20 27 71 40 14 69 90 00
[APDU] > a0 f2 00 00 00
[APDU] < 67 17
[APDU] > a0 a4 00 00 02 3f 00
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 3f 00 01 00 00 00 00 00 0a 93 04 08 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 7f 20
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 7f 20 02 00 00 00 00 00 0a 93 00 1b 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 88 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[APDU] < 9f 0c
[APDU] > a0 c0 00 00 0c
[APDU] < 3e f3 b1 5f 53 88 11 65 4c 79 38 00 90 00
[APDU] > a0 f2 00 00 00
[APDU] < 67 17
[APDU] > a0 a4 00 00 02 3f 00
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 3f 00 01 00 00 00 00 00 0a 93 04 08 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 7f 20
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 7f 20 02 00 00 00 00 00 0a 93 00 1b 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 88 00 00 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11
[APDU] < 9f 0c
[APDU] > a0 c0 00 00 0c
[APDU] < cc 7b 20 d1 58 42 8d c5 97 48 f4 00 90 00
[APDU] > a0 f2 00 00 00
[APDU] < 67 17
[APDU] > a0 a4 00 00 02 3f 00
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 3f 00 01 00 00 00 00 00 0a 93 04 08 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 7f 20
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 7f 20 02 00 00 00 00 00 0a 93 00 1b 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 88 00 00 10 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22
[APDU] < 9f 0c
[APDU] > a0 c0 00 00 0c
[APDU] < 9f fd 64 2f d3 e1 5a f0 8d 5c 1c 00 90 00
[APDU] > a0 f2 00 00 00
[APDU] < 67 17
[APDU] > a0 a4 00 00 02 3f 00
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 3f 00 01 00 00 00 00 00 0a 93 04 08 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 a4 00 00 02 7f 20
[APDU] < 9f 17
[APDU] > a0 c0 00 00 17
[APDU] < 00 00 00 00 7f 20 02 00 00 00 00 00 0a 93 00 1b 04 00 83 8a 83 8a 00 90 00
[APDU] > a0 88 00 00 10 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
[APDU] < 9f 0c
[APDU] > a0 c0 00 00 0c
[APDU] < d0 c6 4c 2f 40 35 82 a4 de 2d 34 00 90 00
device disconnected

On the client side I have:

± ./demo_client.rb 
ATR: 3B 0A 41 00 3F 43 00 01 50 29 01 02
IMSI : 460027217044196
some KCs (RAND SRES Kc):
  - 00000000000000000000000000000000 3EF3B15F 538811654C793800
  - 11111111111111111111111111111111 CC7B20D1 58428DC59748F400
  - 22222222222222222222222222222222 9FFD642F D3E15AF08D5C1C00
  - 33333333333333333333333333333333 D0C64C2F 403582A4DE2D3400

I propose to add the sim.xml file in the git repository.

Maybe the file could be added as 'src/sim.xml' as that is where ./demo_server.rb is looking for it by default.

#3 Updated by tsaitgaist about 1 month ago

  • Status changed from New to Resolved
  • Assignee set to tsaitgaist

there is no personal data is this demo file. I don't mind it being shared.
I included it in the repo (see https://git.osmocom.org/softsim/commit/?id=477d45587e60bb2388fa622bb05f7425e4b84fa2 ).

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)