posted by oozie
Cute so far. Would be nice to have a feature thatallows retrieval of prepaid balance from the ISP.One problem: m = humod.Modem()m.connect()goes through with no error message, ppp0 shows onifconfig, but I can't see any IP addresses. Triedadding the lineusepeerdnsto /etc/ppp/peers/humod, but no success. Am postingthis having connected the modem via wvdial.My wvdial.conf:[Dialer Defaults]Modem = /dev/ttyUSB0Baud = 460800Phone = *99***1#Username = blahPassword = blahNew PPPD = yesISDN = 0Modem Type = Analogue ModemCarrier Check = NoInit1 = ATInit2 = AT^SYSCFG=14,2,3FFFFFFF,2,4Init3 = AT+CSQInit4 = AT+CGDCONT=1,"ip","internet"
This morning, no problems connecting in full, so I suppose the problem was bad signal. PyHumod connects much quicker than wvdial or vodafone-mobile-connect. Great software! And understandable too!
Hi Dirk,Thanks very much for kind words. I will look into the prepaid balance report when I'll get a chance. BTW: usepeerdns is already passed to pppd as one of the default options. You can see the list of pppd parameters if you enter >>> m.pppd_paramsin the interpreter. From there you can change them by modifying the list so e.g. m.pppd_params.remove('usepeerdns') etc.Take care!
Subscribe to Post Comments [Atom]