5

using wvdial to compare AT command output

view full story
linux-howto

http://serverfault.com – I am using wvdial to connect to 3G network. Sample conf is below. I want to add an if clause. If the Serial Number of the device is not my serial number it should not connect. Serial number can be shown by AT+CGSN. How can I implement such "if ( AT+CGSN == 123456789 ); then" clause using wvdial? Can I? What are other ways? Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = ATE0V1&D2&C1S0=0+IFC=2,2 Stupid Mode = 1 Modem TYPE = Analog Modem ISDN = 0 Modem = /dev/ttyUSB0 Baud = 460800 Init1 = ATZ Dial Command = ATDT Phone = *99# Init5 = AT+CGDCONT=1,"IP","mgbs"; use (HowTos)