Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Hardware
author message
Serial-Port Remode Control
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
Fudeba
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.caetano.eng.br/
posts: 35
since: 31 Oct, 2003
1. Serial-Port Remode Control
Reply to this topic with quote Modify your message
This weekend I received my new video capture board... and a remote control was bundled with it.
There is a IR sensor which is designed to be attached to the serial port. I connected it on Serial Port COM2. The control has an IR emmiter, as any common remote control.
I want to develop a program to receive information from the remote control, based in the trial-and-error approach (hit the button and verify what is the input in the serial port), using OS/2's DosDevIOctl to COM2.
But I could not understand how can I do it... Every code sample about serial port shows me a terminal program, how to comm between two computers and so on... and I do not have a clue on how to read the data sent by the remote control.
Any ideas? This could be the base for a generic OS/2 remote control application, and define a standard remote control API so other programs could benefit from the remote control.

Regards,

Date: 29 Sep, 2004 on 03:55
ecs1
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 5
since: 07 Jul, 2004
2. Re:Serial-Port Remode Control
Reply to this topic with quote Modify your message
The serial port can transmit any character of decimal value 0 to 255. So a terminal program is useful to transmit text that is encoded in ASCII characters. For example you type an "A" and the other side receives an "A". That's the simplest way to transmit data through an RS-232. When you are dealing with devices like your remote, most developers design a protocol to transmit data. These protocols are nothing but an organized series of decimal numbers (0-255). The strings of data may include a start indicator, numbers of bytes to follow and a CRC for data integrity checks. The trick for you is to figure out this potocol before you can write any code. It's not impossible, but it can be a lot of work and the vendor (most likely) is not going to help you. You may want to search the internet to see if there is any open source available for this device. You may be able to extract the necessary info from that.
Date: 29 Sep, 2004 on 20:26
DavidG
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 171
since: 04 Apr, 2004
3. Re:Serial-Port Remode Control
Reply to this topic with quote Modify your message

Fudeba (29 Sep, 2004 03:55):

But I could not understand how can I do it... Every code sample about serial port shows me a terminal program, how to comm between two computers and so on... and I do not have a clue on how to read the data sent by the remote control.

Regards,


Could you tell me what terminal program and where it is found?

David

Date: 30 Sep, 2004 on 00:28
Fudeba
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.caetano.eng.br/
posts: 35
since: 31 Oct, 2003
4. Re:Serial-Port Remode Control
Reply to this topic with quote Modify your message
The only "comm" application which "talks" to the remote control is the one that comes with Pinnacle PCTV card...
Anyway, I already figured out how it works. Testing the Remote Control program under ODIN and using SIO serial drivers and "Poor Man's Line Monitor", I was able to view the data / connection type used for the device.
Soon I'll release something... And will try to make it extensible to other serial-port based remote controls.

Regards,

Date: 30 Sep, 2004 on 01:57
Serial-Port Remode Control
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com 2000-2004