SparkFun Forums 

Where electronics enthusiasts find answers.

Tips and questions relating to the GPS modules from SFE
By vgnulinux
Hi All,
I am a newbie and facing problem with the Telit SE867-AGPS chip evaluation board.

I have two evaluation boards with me. One for Telit GE865-QUAD chip EVK2 for GSM and GPRS operations and second for SE867-AGPS EVB-867 board. The boards are connecte to my laptop using RS232 to USB connector. EVK2 is available on COM4 and EVB on COM32. Both boards respond properly using terminals(I use rsterm from roundsolutions) i.e EVK2 proper response of AT commands and SE867 relaying location information of itself.

The real problem comes when python is used for creating programs for these two boards. Using Telit COM port selection tool I configure python builtin libraries to communicate with the modules i.e MDM on COM4 for AT commands and SER2 on COM32 for reading location information.
The python import statement imports MDM library with no issues and sending of AT commands and receiving its responce works just fine but somehow importing SER2 does not work and throws errors.
An interactive windows responce of import statement shows error for SER2
>>> import MDM
>>> import SER2
Traceback (innermost last):
File "<interactive input>", line 1, in ?
File "C:\Program Files\Python\Lib\", line 48, in ?
raise StandardError, 'ERROR opening the COM port.!'
StandardError: ERROR opening the COM port.!

I am unable to understand why this error occurs.
To solve the issue I tried restarting the PC and the devices, uninstalling/reinstalling the drivers, uninstalling/reinstalling COM ports, uninstalling/reinstalling PythonWin IDE etc. All my attempts to resolve the issue were unseccussful.
Can someone please guide me to understand and solve the issue ?