简体   繁体   English

Java Serial读/写Raspberry

[英]Java Serial read/write Raspberry

I'm writing an application that communicates with a 3G modem over serial port. 我正在编写一个通过串口与3G调制解调器通信的应用程序。

When I test my application with modem connected on my laptop I receive from serial port only modem responses. 当我用我的笔记本电脑上连接的调制解调器测试我的应用程序时,我只从串口接收调制解调

When I run the same application on Raspberry I receive from serial port commands that I write and modem responses. 当我在Raspberry上运行相同的应用程序时,我收到了我写的串口命令和调制解调器响应。 ( I'm using event based reading from serial port ). (我正在使用基于事件的串口读取)。

I'm using JSSC, Java 1.7 and Raspberry Model B with Noobs 1.3. 我正在使用JSSC,Java 1.7和带有Noobs 1.3的Raspberry Model B.

What can I do to receive only modem response without messages that I write to serial port ? 如果没有写入串口的消息,我该怎样才能接收调制解调器响应?

我总是使用这篇博文: http//www.irrational.net/2012/04/19/using-the-raspberry-pis-serial-port/ (您需要修改cmdline.txt和inittab)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM