LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2004, 01:26 PM   #1
amirmk
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
RS-422 Interface programming


Hello,
I would like to write a program in linux to control five proffesional Video Tape Recorders. Can I connect a proffesional (dedicated) controller, 'copy' it's actions and put them all in a program, to control the VTRs?
No video is going in to the PC, just commands to the VCRs.
PC Linear editors cost about 15K, so i try to make the proccess cheaper.

Thank you.
 
Old 09-28-2004, 01:41 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
You need a RS-232 to RS422 converter. RS-422 is an electrical specification. Hopefully the tape recorder manual will detail the communication protocol and all you need to do is write a program to output the comands via a com port.

If you do not have any details on the communication protocol you could connect the controller to a PCs com port via the RS-232 to RS-422 converter and record the "key strokes".
 
Old 09-29-2004, 04:17 AM   #3
amirmk
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
That's exactly what i need! can you explain the proccess, can it be done simply?
Can I record the actions, and build a simple software that 'plays' the recorded code to the VTR i choose?
 
Old 09-29-2004, 08:13 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
To record the actions you need to build a "T" cable that splits the signals to the RS-232 to RS-422 converter. You didn't say if the recorder manual has any details on the communication protocol or the interface. If you do not know the pin-outs of the connector then it might take some work to figure it out. RS-422 uses 4 wires. A twisted pair for the transmit and a twisted pair for the receive. The twisted pair is a differential i.e. polarity + and - signal. The converter will probably not work if the + and - signals are reversed. It would be nice to split the RS-232 receive and transmit signal into two connectors. That way you can monitor both receive and transmit in case the controller requires some kind of response from the recorder.

You can use any terminal program to view. Hopefully the protocol uses straight ASCII characters. If not, you need to save the data and view it via a hex editor.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open source interface designer for windows for cross platform programming? dr_zayus69 Programming 1 05-15-2005 07:34 AM
Kernel programming - rerouting packets to a specific interface Solemn Phoenix Linux - Networking 2 08-16-2004 12:15 PM
I need a good programming interface for C\C++.. diam0nd Linux - Software 1 11-29-2003 04:43 AM
HTTP Interface Programming Nauseous Programming 1 08-04-2003 08:29 PM
RH 7.3 and HP pavilion 422 eluka Linux - Hardware 6 08-26-2002 05:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration