use GSM;
Be sure that you first initialize the SCAM program with
Scam::init before calling any of the
functions in this library.
select_file fileidfileid is an integer representation of the
two byte file ID. Will return the response to the SELECT_FILE command that
is sent to the card.
length bytes of the response data of the last command.
Returns the response.
read_binary offset_high offset_low length
length bytes of the currently selected file starting at
the byte pointed to by offset_high offset_low.
Returns the response.
length bytes of information on the SIM status, using
the STATUS command.
#!/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