How to Android apk information send to seial port

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Android apk information send to seial port

1,117件の閲覧回数
asick
Contributor III

We are using imx6q-sdb with oreo

how to create and include serial port details on android apk, when we press the apk option that information should send to the serial port(ttymxc0 or ttymxc2 or ttymxc3) console.

#imx6q android8 #serial_port_uart#android oreo#debug#about the android apk installation/permission

ラベル(4)
0 件の賞賛
2 返答(返信)

1,012件の閲覧回数
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, creating the implementation of Android apps is out of our scope of support.

However, you could use the following java command to execute shell commands and then perform the serial connection as it should be in a Linux terminal. However, this is a suggestion, we cannot guarantee if this will work.

Process process = Runtime.getRuntime().exec(command); 
//Where command, is the Linux command that you are willing to execute

I apologize for the inconvenience this may give you.

Best regards,
Diego.

1,012件の閲覧回数
asick
Contributor III

Thank you Diego

0 件の賞賛