Microchip
直播中

张晶晶

7年用户 219经验值
私信 关注
[问答]

串行中断使用sim800拍照无法触发

我正在尝试将PIC16F与SIM800接口。它在没有使用SIM800和PIC之间的串行中断的情况下工作良好。但是现在,串行中断在PC终端上运行良好,但只要我用TTL与SIM800接口,就无法触发。可能的bug是什么?我尝试过不同的拖延。串行中断在PIC和PC终端之间很好,但不是SIM800,任何人都可以引导我通过它。

以上来自于百度翻译


      以下为原文

    I am trying to interface pic16f with sim800. It works all fine without using serial interrupt between sim800 & pic. But now, Serial interrupt works fine with PC terminal but as long as i interface with sim800 using TTL, I am unable to trigger. What could be the possible bug? I have tried with different delays. Serial interrupt works excellent between pic and PC terminal but not with sim800...can anyone please guide me through it.

回帖(3)

王焕树

2019-2-22 14:34:12
你已经问了完全相同的问题,Atttp://www. McCHIP.COM/FoMss/FordPas/10039 79.请不要启动关于同一个问题的多个主题,一旦得到了两个答案流,它就会变得非常混乱。

以上来自于百度翻译


      以下为原文

    You have already asked exactly the same question at http://www.microchip.com/forums/FindPost/1003979
Please don't start multiple topics about the same question, it gets very confusing, once you get two streams of answers.
举报

刘桂兰

2019-2-22 14:51:49
对。。我为此道歉。

以上来自于百度翻译


      以下为原文

    yes.. i apologies for this. 
举报

李雨晨

2019-2-22 15:09:21
一旦你得到了两个答案流,它就变得非常混乱。是的,它已经发生了:-你用SIM800发送数据的范围来验证了吗?另外,你应该验证你能从你的PIC发送(TX)数据到SIM800能与终端程序通信是好的,但它不允许你的线路是正确的,你使用正确的电压水平,发送正确的命令和正确的线路终止字符。U测试?你需要提到你已经测试过的,你期待什么,你看到了什么。还提到了已经预期的工作。(例如,您可能已经成功发送了SMS,或者任何证明您的SIM800正在接收来自PIC的输入)

以上来自于百度翻译


      以下为原文

    it gets very confusing, once you get two streams of answers.
Yes, it already happened  :-)

Have you verified with e.g. a scope that the sim800 is sending data at all ?
 
Also you should verify that you can send (TX) data from your PIC to the sim800
Being able to communicate with the terminal program is good, but it does not grant that your wiring is correct, that you use correct voltage levels, send correct commands and correct line termination characters.
 
How are you testing ?
You need to mention what you already tested, what did you expect, what did you see.
Also mention what already works as expected. (e.g. possibly you already could send an SMS successfully, or whatever proves that your sim800 is receiving input from the PIC)
举报

更多回帖

发帖
×
20
完善资料,
赚取积分