Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 907|Reply: 4

Serial port disconnect problem

[Copy link]

2

Threads

4

Posts

24

Credits

Novice

Rank: 1

Credits
24
Post time 2019-12-25 15:20:52 | Show all posts |Read mode
Edited by wing_zyy at 2019-12-25 15:27

Hi, good day,
      Recently, we use armbian on orangepi zero that is connected to a 3D printer with serial port. The OS recognize the serial port as ttyUSB0 through USB port on orangepi, but the port would be disconnected automatically, after throwing "###X_Eeferencing free block". Could someone tell us if this is because of the OS and how to solve this disconnection issue?

Thank you and best wishes.
Yuan

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

9

Threads

635

Posts

4288

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4288
Post time 2019-12-25 16:57:30 | Show all posts
MicroUSB port is used by serial console by default. You need to disable getty to make use it for some other purpose.

2

Threads

4

Posts

24

Credits

Novice

Rank: 1

Credits
24
 Author| Post time 2019-12-26 19:12:07 | Show all posts
igorpec replied at 2019-12-25 16:57
MicroUSB port is used by serial console by default. You need to disable getty to make use it for som ...

Thank you for your reply, igorpec!
What you mean is the port would not be disconnected as long as getty is closed?
But at the beginning of running kermit, the port can ben connected, and the data sent by printer can be recieved by the serial port, just after running for a while , the port is disconnected, and the period is not fixed. So it is also because of getty?

2

Threads

4

Posts

24

Credits

Novice

Rank: 1

Credits
24
 Author| Post time 2019-12-27 16:13:31 | Show all posts
It seems that getty cannot be disabled, and there is not ttyUSB0.service for the serial port that is used to connect the printer.
In getty, there are three services, which are getty@tty1.service, serial-getty@ttyGS0.service, serial-getty@ttyS0.service. which ports are these service related to? which port service is related to ttyUSB0??

9

Threads

635

Posts

4288

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4288
Post time 2019-12-27 23:30:16 | Show all posts
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-7-13 03:40 GMT+8 , Processed in 0.030398 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list