完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我已经与我的PIC16F628 A接口与SIM800 A模块……所有的RX TX的控制器和GSM工作与PC终端。当我将我的PIC与GSM接口时,我可以用控制器做呼叫消息。但是我不能读取GSM模块的响应……我没有得到什么问题,因为控制器TX&GSM RX工作得很好,但是控制器不能读取GSM的响应。我得到了PROL。EM在GSM TX与PIC RX。任何帮助都将不胜感激…谢谢
以上来自于百度翻译 以下为原文 I have interfaced my pic16f628a with sim800A module...All rx tx of controller & gsm working with PC terminal. When i interface my PIC with GSM, I can able to make calls messages with controller..But i cant read the response from GSM module...I am not getting what could be the problem as controller tx & GSM rx are working excellent but controller is not able to read response from GSM..I am getting problem in GSM tx with PIC RX. Any help would be greatly appreciated...Thanks while(1) { call_receive(); } } unsigned char call_receive(void) { unsigned char i,j,temp; // START: // while(UART_Receive() != 'R'); // // temp = UART_Receive(); // if(temp != 'I') // goto START; // // temp = UART_Receive(); // if(temp != 'N') // goto START; // // temp = UART_Receive(); // if(temp != 'G') // goto START; // // // for(i=0;i<12;i++) //This length may vary as per name changes // temp = UART_Receive(); for(j=0;j<10;j++) { while(RCIF==0); RCIF = 0; cal_receive[j] = RCREG; } LED1=1; __delay_ms(5000); LED1=0; //return cal_receive[j]; calling(); __delay_ss(10); __delay_ss(10); //delay_ms ( 25000 ); hangup(); __delay_ss(10); message3(); __delay_ss(5); } |
|
相关推荐
4个回答
|
|
当你发布一个问题时,你真的应该多加小心。你发布的代码中有一半以上是被注释掉的。这意味着相关吗?在您发布的代码中没有注释,解释您期望它做什么。您关心调用一个非标准函数,即“DelayIsh”(),您没有显示或提到它所做的事情。您没有解释您是如何测试的,您期望看到的,以及您所看到的。精确接收十个字符。这种情况总是会发生吗?您没有检查错误。您只是轮询接收的字符。在开始轮询之前,你确定他们还没有开始到达吗?
以上来自于百度翻译 以下为原文 You really should take some more care when posting a question. More than half the code you posted is commented out. Is it meant to be relevant? There are no comments in the code you posted, explaining what you expect it to do. You care calling a non standard function, _delay_ss(), which you have not shown or mentioned what it does. You have not explained HOW you tested, what you expected to see, and what you did see. You appear to be waiting to receive precisely ten characters. Will this always happen? You have no checking for errors. You are just polling for received characters. Are you sure they have not started arriving before you start polling? |
|
|
|
|
|
|
|
我首先要做的就是把SIM800 A GSM模块连接到一台计算机上(例如用RS232转换器——USB),并设法使它与像PuTTY这样的终端程序一起工作。这样,你就可以辨别出问题是在硬件还是软件中,并且可以集中在故障。
以上来自于百度翻译 以下为原文 Hello The first thing I would do is connect the SIM800A GSM module to a computer (with an RS232 converter - USB for example) and try to make it work with a terminal program like PuTTY. That way you could already discern if the problem is in the hardware or software and could focus the location of the fault. |
|
|
|
您好,请您展示一下您的原理图和程序好吗?你使用外部XTAL振荡器吗?如果使用内部PIC16F628 A时钟,UART操作可能不够精确。
以上来自于百度翻译 以下为原文 Hi, Can you please show your schematic and program ? Do you use an external XTAL oscillator ? If you use the internal PIC16F628A clock it may not be accurate enough for UART operation... Regards |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 15:19 , Processed in 1.361236 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号