泰利特GM862-GPS软件。 [英] Telit GM862-GPS software.

查看:88
本文介绍了泰利特GM862-GPS软件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..我是新来的..论坛里的每个人都可以指导我..谢谢..

i我目前正在做一个关于telit gm862-gps的项目..

i必须使用PYTHON来编写一个软件程序。

请任何人教我或告诉我如何开始这个程序..

i需要开始通过编写GPIO1引脚程序和发送短信的程序..
如果论坛中的任何人都可以向我展示或指导我如何编写它,那么
i真的很有用..

谢谢..

解决方案


大家好..我是新来的..论坛里的每个人都可以指导我一起..谢谢..

i目前正在做一个关于telit gm862-gps的项目..

i必须使用PYTHON编写一个软件程序。

好​​心的是有人教我或告诉我如何开始这个程序..

i需要通过编写GPIO1引脚程序和发送短信的程序来开始.. i真的很有用..

谢谢你..



我在这方面有很多经验:


配置GPIO引脚1方向(输入或输出)

MDM.send(' 'AT#GPIO = 1,1 \'',0)#pin 1设置为输出高位

zx = MDM.receive(5)

#now reset因此LED关闭

MDM.send(''AT#GPIO = 1,2 \'',0)针对引脚状态的#ask模块

zx = MDM.recieve(5)#并捕获回复


检查您的硬件是否正确 - 我强烈建议使用光隔离器进行调试和爱好使用,节省大量组件和麻烦。


请仔细阅读有关GPIO1的软件用户手册,我知道它有一个特殊的功能,或者它只能在一个方向上工作。很长一段时间以来我不得不用我的业余爱好服务器改变任何硬件...


如果您只想通过打开LED发出新的短信到达信号,那么试试::

(不要忘记首先将格式配置为文本和存储到SIM中)

MDM.send(''AT + CMGL = ALL\ n'',0) #ask获取所有短信的列表

zx = MDM.recieve(5)#并捕获回复

zx.split(",")#break up逗号的回复
$ z $ b表示zx中的zxlines:#step through split string

if(zxlines.find(" UNREAD")!p -1):#if然后有任何新的短信

MDM.send(AT#GPIO = 1,1,1 \ n,0)#设置引脚高

ab = MDM.receive(5)

MOD.sleep(10)#wait a /

MDM.send(" AT#GPIO = 1,0,1 \ n",0)

ab = MDM.receive(5)


希望这会有所帮助。



我有很多经验区域:


配置GPIO引脚1方向(输入或输出)

展开 | 选择 | 换行 | 行号


< blockquote>


感谢您分享您的经验。如果您使用代码标签,它会更有帮助。请参阅回复指南。谢谢!



我明白你的意思了。这更容易阅读。


hi everyone.. i am new here.. can everyone in the forum guide me along.. thanks..
i am currently doing a project on telit gm862-gps..
i have to use PYTHON to write a software program.
kindly anyone teach me or show me how to start off the program..
i need to get started off by writing a program of GPIO1 pin and a program on sending SMSes..
i would really appericate if anyone in the forum can show me or guide me how to write it..
THANK YOU..

解决方案

hi everyone.. i am new here.. can everyone in the forum guide me along.. thanks..
i am currently doing a project on telit gm862-gps..
i have to use PYTHON to write a software program.
kindly anyone teach me or show me how to start off the program..
i need to get started off by writing a program of GPIO1 pin and a program on sending SMSes..
i would really appericate if anyone in the forum can show me or guide me how to write it..
THANK YOU..

I have a LOT of experience in this area:

configure the GPIO pin 1 direction (input or output)
MDM.send(''AT#GPIO=1,1\n'',0) # pin 1 set high as output
zx = MDM.receive(5)
#now reset it so LED is off
MDM.send(''AT#GPIO=1,2\n'',0) #ask module for pin status
zx = MDM.recieve(5) # and capture the reply

Check that your hardware is correct - I strongly advise using opto-isolators for debug and hobby use, save a lof of components and hassles.

Please double check with the software user manual about GPIO1, i know it has a special function , or it can only work in one direction. Its a long time since I had to change any hardware with my hobby server...

If you simply want to signal a new SMS arrival by turning on an LED, then try::
(dont forget to configure the format to text and storage into SIM first)
MDM.send(''AT+CMGL=ALL\n'',0) #ask for a list of ALL sms
zx = MDM.recieve(5) # and capture the reply
zx.split(",") # break up the reply by commas
for zxlines in zx: # step through the split string
if (zxlines.find("UNREAD")!p -1): # if there are any new sms then
MDM.send("AT#GPIO=1,1,1\n",0) # set the pin high
ab= MDM.receive(5)
MOD.sleep(10) #wait a bit
MDM.send("AT#GPIO=1,0,1\n",0)
ab= MDM.receive(5)

Hope this helps.


I have a LOT of experience in this area:

configure the GPIO pin 1 direction (input or output)

Expand|Select|Wrap|Line Numbers


Thank you for sharing your experience. It would help even more if you would use code tags. See reply guidelines. Thanks!

I see what you mean. That is a lot easier to read.


这篇关于泰利特GM862-GPS软件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆