Set it as the homepageBookmark this site

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย

 Retrieve your password
 Sign up now
img_loading
Intelligent detection

QQ login

Just one step, get started quickly

Search
Ad delivery contact QQ68610888Ad delivery contact QQ68610888
View: 8382|Reply: 5

The OpenWrt serial port is occupied and the program cannot read the serial port data

[Copy link]
Posted at 2014-8-15 16:58 | Show all floors |Reading mode
I set the baud rate with the program, but the data sent by the serial port was intercepted, and the program I wrote myself could not receive the serial port information at all

The serial port information sent in the past is executed as a shell command, and the serial port data sent by the program can be received by the PC
How can I solve this serial communication problem?

More resources are included in this post

You need login Can you download or view without an account?Sign up now

×
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Landlord| Posted at 2014-8-15 16:59 | Show all floors
I checked the boot process of linux, and it seems that when the computer is turned on, uboot will pass the information to the kernel, and then the kernel has been occupying the serial port
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Posted at 2014-8-15 16:59 | Show all floors
It's not okay to change putty or something like that

Comments

It's not a matter of changing putty, it's that the serial port of the PC sends the routing information as a shell, and I want my application to receive it  detail Reply Posted at 2014-8-15 17:11
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Landlord| Posted at 2014-8-15 17:11 From the phone | Show all floors
S Qin Yu Han S_ Wind and Snow Posted on 2014-8-15 16:59
It's not okay to change putty or something like that

It's not a matter of changing putty, it's that the serial port of the PC sends the routing information as a shell, and I want my application to receive it
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Landlord| Posted at 2014-8-15 18:14 | Show all floors
Tie-up  
Modify /etc/inittab  

####ttyS0::askfirst:/bin/ash --login
####ttyS1::askfirst:/bin/ash --login
Just comment out the bottom two lines
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
Posted at 2014-8-15 19:06 | Show all floors
Only talk about technology, don't talk about politics! (Click for details) | Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.
You'll need to be logged in to reply to posts login | Sign up now

This version of the points rules

Shut down

Welcome to the Enshan Wireless Forum

Only talk about technology, don't talk about politics! Don't spread rumors! For you and for others.
Only talk about technology, don't talk about politics! (Click for details) Remember not to spread rumors at will, just live your life in peace, for your own good and for the good of everyone. Enshan Wireless Forum welcomes your visit, please respect each other, friendly exchanges, it is recommended to keep a normal mind to look at the comments of netizens, do not overreact.

View »

If in doubt, add an administrator QQ86788181|Mobile version|Little dark house|Archiver|Enshan Wireless Forum (Changzhou Enshan Computer Development Co., Ltd. All rights reserved) ( Su ICP No. 05084872 )

GMT+8, 2025-6-22 05:33

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表