From 76504e0a6e7689d374b557e054299281bdb9c951 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Tue, 7 Dec 2010 00:24:32 +0100 Subject: Split all things into a more "library-like" package Signed-off-by: Sylvain Munaut --- README | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'README') diff --git a/README b/README index 41978b6..7f45759 100644 --- a/README +++ b/README @@ -4,12 +4,12 @@ This utility allows to : - one where you specify every parameter manually : -./pySim.py -n 26C3 -c 49 -x 262 -y 42 -i -s +./pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -i -s - one where they are generated from some minimal set : -./pySim.py -n 26C3 -c 49 -x 262 -y 42 -z -j +./pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z -j With and , the soft will generate 'predictable' IMSI and ICCID, so make sure you choose them so as not to @@ -23,9 +23,14 @@ This utility allows to : * Interact with SIMs from a python interactive shell (ipython for eg :) -import pySim -sl = pySim.SerialSimLink(device='/dev/ttyUSB0', baudrate=9600) -print sl.read_binary(['3f00', '7f20', '6f07']) # Print IMSI -print sl.run_gsm('00112233445566778899aabbccddeeff') # Run A3/A8 +from pySim.transport.serial import SerialSimLink +from pySim.commands import SimCardCommands +sl = SerialSimLink(device='/dev/ttyUSB0', baudrate=9600) +sc = SimCardCommands(sl) + # Print IMSI +print sc.read_binary(['3f00', '7f20', '6f07']) + + # Run A3/A8 +print sc.run_gsm('00112233445566778899aabbccddeeff') -- cgit v1.2.3