The one without the string manipulation is working (“OK”).
The one with string manipulation is not working (“NOT OK”)
If i run the string manipulation part alone in TelitPy it works (“SKOD”).
If i compile a working (on the module) .py script to .pyo and upload with hyperterminal it’s not running … Any special settings needed for uploading .pyo with hyperterminal ?
Some questions. I didn’t do anything with GPS but why do you have to wait 10 seconds for the rawdata? If i remember right that is in 10ths of a second.
I never had to use import string to get the str.find() to work. That might be part of your issue.
Also look at importing the GPS library. GPS.getPosition() will give you everything you need without string manipulation.
If you can get it to work the CMUX setup is great and it will let you use the print command to get some feedback and see what is failing.
Also to download a .pyo you just need to reboot the device and wait a few seconds then right click on the file and choice download. Should be an option as you mentioned you already had the Telit Python package installed.
i really appreciate you answer. About the 10 sec delay… hmm i misunderstood that parameter… thought it was number of bytes to receive :roll:
I actually already used your web-page… and i was quite happy about it too…
well i put some more hours into my project today, and did a few findings.
the unrealiable behaviour of my Telit module is gone if i:
remove all none-code lines from my .py script (like " #bla bla bla")
delete before uploading a script with same name
sometimes the last byte in my script was missing. By ending the scripts with \cr it’s not a problems anymore.
the syntax of my string manipulation was wrong. The attached code is now working and gives me only Lat & Lon gps data
The upload by right-click does not work. The dos window opens and closes so fast that i can’t see what’s written there. Nothing is uploaded.
I can’t open the COM port via PythonWin. It says “error opening the com port”.
i managed to compile and upload 1 .pyo file which was also working. I used a “round solutions” tool. It somehow jams my mouse, so it’s almost impossible to use.
I will post more learnings and progressing later this week. If there’s any more comments please just let me know. Forums like this can save us a lot of time
Make sure to check your com port settings with the telit com port selection tool. It will need exclusive access to the port in order to download anything. So if you have the wrong port configured or something like hyperterminal is using it then you will see that error. Otherwise it says error communication with modem.
my development environment is now working acceptably. For some reason Win7 suddenly :shock: installed the drivers for the USB->RS232 IC located on the Sparkfun Breakout board. After that Hyperterminal would no longer communicate with the TELIT. However I tried the round solutions SW and it turned out that this had started to work now (before the driver installation my mouse got jammed when using it). Now i can compile and upload in no time…
I have some working code now, and i’m really stating to understand how the module works. I still have some issues though.
[ Charger circuit ] :
I have made a power supply with these specs:
Vin : 10-16 V
Vout: 5,5 V (supplied directly to Charger in on the TELIT)
Iout: 200 mA (limited) … actually designed for 400 mA but the LM317 got too hot…
I have mounted a Nokia BL-5F Li-ion Battery (3,7 volt, 950 mAh) on Vbat.
The charging seems to stop at 3,76 volt. However my 12volt supply is still giving 100 mA at this point. I thought the TELIT would charge at full current (in my case 200 mA) and stop when the battery voltage is 4,1 volt.
what am i doing wrong here ?
I don’t have the recommended 100uF cap in parallel with the battery. Could there be some ripple which makes the TELIT belive it’s fulley charged ?
Now your getting out of my experiences. I bought a canned solution from www.semiconductorstore.com so I didn’t need a power supply or anything. I wish I could be more help but feel free to ask if you have any more AT or Python related questions and I can try to help with those.
you can use the python string functions provided that you compile string.py located in c:\Program files\Python\Lib. Then download string.pyo to the module
Can you tell me some more things about your Charger circuit…or send me shematic…how you did it …and how to conect it with Telit…
I wanna charg my battery too but I dont know how to limit current from my charher…
And my charger is wall mobile charger for SonyEricsson P1i…it outputs 5.2V DC and 450mA…
I know that 450mA is too much for diode in Telit…but I dont know how to limmit that source…
PLEASE help…
Hi
I have made a power supply using a LM317 regulator. It’s simple but it gets a bit hot and need a cooling sink.
Therefore i have made a switch mode solution which seems to be working now. I will be happy to post my schematics in some days, but right now they are very messy.
My power supplies are working on 12-16 volt DC input (cars, boats ect.).
450 mA should be ok for the Telit Schotky diode. As far as i remember it can take 1 A absolute max. If you are sure your powersupply can’t give more than 450 mA guess it’s fine.
The charger input (+) should be connected directly to the charge pin on the Telit and of course charger GND to Telit GND. The rest is taken care of by the TELIT.
Hereby my charger design. It gives 5.44 volt and maximum 350 mA.
I use it to charge the connected Nokia BL-5F battery. As a safety the switch mode charger will be disconnected if the battery is removed.
According to Telit spec. the charger must not be connected without a battery.
I also implemented a feature so the charger can be disabled from the Telit module. This is because the Recom Switch mode device is using 7-8 mA without any load.
GPIO12 on the Telit is always high (2.7 v)
The resistor named “BSI” is an internal resistor in the nokia battery (on the 3rd. pin)