| |

VerySource

 Forgot password?
 Register
Search
View: 1658|Reply: 6

vxworks serial operation

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2020-3-16 20:00:02
| Show all posts |Read mode
I am a novice, just contacted vxworks, and perform 2 serial communication under vxworks
Open using tty0, tty1, etc.
And call the read function to read the serial data
Now I do n’t know when the serial port receives the data, so the read function is always stopped there. How can I read the serial port data to avoid an endless loop? (Due to limitations, it is not considered to read the data separately.)
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-5 17:45:01
| Show all posts
Can you be more specific?
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2020-7-12 12:45:01
| Show all posts
select
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-14 09:30:01
| Show all posts
Because the status of the serial port is wrong, you can see if the status is wrong, otherwise you have to wait there!

It is best to attach the original code
Reply

Use magic Report

0

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-7-28 13:15:01
| Show all posts
Wait for I/O device with select
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-8-7 15:30:01
| Show all posts
xiexie
Get it done, use select
Let me ask again, who has used the PC-LINT tool?
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-8-7 15:45:02
| Show all posts
Everyone who has used PC-LINT tool?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list