This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gicharu

Pages: [1]
1
Scripting Languages / Connect to 3G modem using Pyserial
« on: April 05, 2014, 02:51:32 PM »
The following code is supposed to work on my modem, ie dial #777 and start a PPP connection. Am using Pyserial on Python3. However, all I get is " 'b" on CMD, and the modem doesnt do anything. Any ideas?

Code: [Select]
import serial
from time import sleep
ser = serial.Serial('COM25')
ser.write('+++'.encode())
sleep(1)
ser.write('+++'.encode())
sleep(1)
at_command='ATDT#777\r\n'
ser.write(at_command.encode())
sleep(1)

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.