Contents | Parent Topic | Previous Topic | Next Topic


10. GSM Library

This library contains some functions for GSM SIM cards.


10.1. Using the Library

The library already loads the Scam Library, so it suffices to say:

use GSM;

Be sure that you first initialize the SCAM program with Scam::init before calling any of the functions in this library.


10.2. Variables

This library has no variables.


10.3. Functions

select_file fileid

get_response length

read_binary offset_high, offset_low, length

status length


10.4. Example

#!/usr/bin/perl

use GSM;

Scam::init();
Scam::reader("dumbmouse(wait_etu=100,conv=inverse,parity=odd)");

# Flush the serial port & the named pipe
Scam::send("dump");
Scam::recv();

Scam::reset();
($out, $err) = Scam::recv();
chomp $out; chomp $err;
print "ATR = $out\n";

# MORE TO COME


10.5. Bugs

It's the wrong season for bugs now. They will come later.


Contents | Parent Topic | Previous Topic | Next Topic