Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
To logfile instead of a serial printer?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rottis
n00b
n00b


Joined: 06 Jul 2004
Posts: 5

PostPosted: Tue Dec 06, 2005 2:42 pm    Post subject: To logfile instead of a serial printer? Reply with quote

Hi!

I have been asked to find a solution for a problem. The problem is three alarm devices that today registers every event by printing to three seperate serial printers. The solution would be to connect the alarm devices to a linuxbox and to read from the serial tty and send all data to a logfile. I have to my help an electrician and we have read alot of instructions on how to connect which cables on which connectors on the serial cables to get wanted effect with no luck. I have tried to connect a serial mouse to the serial port and then cat the device ttyS0 and that works beutifully but when we turn the alarm on and off and it's connected to the computer it's totally silent, but when it's connected to the printer it prints the event. I assume that it is standard serial printers. I need to know how to connect the cables for the computer to understand the input and I need to know if I need any specific driver modules for this to work.

I appreciate any help or insight I might get.

/marcus
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Tue Dec 06, 2005 3:10 pm    Post subject: Reply with quote

It depends on connectors and settings on the printer and computer side. Of course they've to match. Supposing that cabling is correct you've probably to play with stty to set (at least) correct baudrate, data bits, parity and flow control settings.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
rottis
n00b
n00b


Joined: 06 Jul 2004
Posts: 5

PostPosted: Tue Dec 06, 2005 3:18 pm    Post subject: Reply with quote

Is there anywhere I can find out what I need to set to imitate a printer?

/marcus
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Tue Dec 06, 2005 3:23 pm    Post subject: Reply with quote

rottis wrote:
Is there anywhere I can find out what I need to set to imitate a printer?

/marcus

I'm afraid that the only place to look at is the printer documentation. I suppose they're old printers (I don't know of any new printer with serial interface), and probably the communication parameters are set by dip switches. If they're a litlle newer they may have a menu, using the LCD display (if present) or printing the choices on paper. Unless you know the alarms communication settings.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
rottis
n00b
n00b


Joined: 06 Jul 2004
Posts: 5

PostPosted: Thu Dec 08, 2005 8:10 am    Post subject: Reply with quote

Thanks alot. I will see if I can get the information for the settings from either the alarm company or the printermanufactor.

/marcus
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum