473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Were can I learn to program a IR remote control?

I have just ordered a IR remote control that uses a serial port.
This is the one:
http://www.rbmods.com/Articles/Eksitdata/IRremote/1.php

There is some program out there I can use to con troll WinAmp,but i want to
make my one...
I have made a program that uses voice commands with MS Agent to control
WinAmp5 now I want to use a IR remote instead of MS Agent. I just need to
know how to receive the signal and handle it, how do I do that?

If some one could give me a start i would be glad.
Yours, Jonas
Jul 17 '05 #1
2 6536

"BadOmen" <ba*******@hotmail.com> skrev i meddelandet
news:Gu********************@newsc.telia.net...
I have just ordered a IR remote control that uses a serial port.
This is the one:
http://www.rbmods.com/Articles/Eksitdata/IRremote/1.php

There is some program out there I can use to con troll WinAmp,but i want to make my one...
I have made a program that uses voice commands with MS Agent to control
WinAmp5 now I want to use a IR remote instead of MS Agent. I just need to
know how to receive the signal and handle it, how do I do that?

If some one could give me a start i would be glad.
Yours, Jonas


I have now got a connection to my IR reciver (Packard Bell Fast Media)

I get the connection when I press connect and I receive events with this
function MSComm1_OnComm() when I press a button on my remote.

No I want to know how to separate each button from another on the remote and
as a beginning show witch button is pressed in a txtDisplay.Text, how do I
do that??

I can se that I receive something from the remote when i press a button
because the comEvCD is called and I get a message and a shape turns green...
I have made the message and the shape that turns green, to se if somethig is
happaning...

What exactly does comEvCD check?? The "Change in the Carrier Detect line"
that is the description in the help file does not say me a thing...

This comEvDSR is called when I press the connect button in my form.
What is this comEvDSR "Change in Data Set Ready line. This event is only
fired when DSR changes from 1 to 0" From the help file...??.

How do I use comEvReceive it is never called...

I don't know if I should have the MSComm1 with InputMode = 0
comInputModeText or 1 comInputModeBinary??
I am using this setting withMSComm1 9600,n,8,1 is that ok or is it bather to
do something else?
Private Sub MSComm1_OnComm()
Select Case MSComm1.CommEvent

' Errors
Case comEventBreak ' A Break was received.
Case comEventFrame ' Framing Error
Case comEventOverrun ' Data Lost.
Case comEventRxOver ' Receive buffer overflow.
Case comEventRxParity ' Parity Error.
Case comEventTxFull ' Transmit buffer full.
Case comEventDCB ' Unexpected error retrieving DCB]

' Events
Case comEvCD ' Change in the CD line. '*** This is called when I press a
button on my remote
shpCD.BackColor = vbGreen
MsgBox "comEvCD"
shpCD.BackColor = vbRed

Case comEvCTS ' Change in the CTS line.
MsgBox "EvCTS"

Case comEvDSR ' Change in the DSR line. '*** This is called when I connect
MsgBox "comEvDSR"

Case comEvRing ' Change in the Ring Indicator.
MsgBox "comEvRing"

Case comEvReceive ' Received RThreshold # of chars.
MsgBox "comEvReceive"
txtDisplay.Text = MSComm1.Input

Case comEvSend ' There are SThreshold number of
' characters in the transmit buffer.
MsgBox "comEvSend"

Case comEvEOF ' An EOF charater was found in the input stream
MsgBox "comEvEOF"
End Select

End Sub

Yours, Jonas
Jul 17 '05 #2
I am using WinLirc to control the remote.
I have posted under:
WinLirc problem, Sends stuff two time???
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
4
by: cpptutor2000 | last post by:
Could some C guru help me please? I am using the following program to open a SSH connection to a remote host and eventually run a program on that remote host. #include <stdio.h> #include...
1
by: verge | last post by:
hello everyone! how's it going? like everyone in here im in need of some help and good friendship along the way...take a look at this: //MODIFIED SO IT DEALS WITH WINDOWS FTP USING ACTIVE...
2
by: HC | last post by:
Hello, Folks. I am not sure if this can be done (and a brief search of this group didn't yield any results that I thought would do the trick) but if it can be done it would make my life easier so...
8
by: mikeweber3 | last post by:
I am using a shareware program to remote control a DOS 6.22 workstation from a windows viewer over the internet. It works great and I want to run concurrant sessions on the same WAN. In order to...
1
by: CoreyWhite | last post by:
C++ is different from C, because C was built to execute algorithms and solve mathematical problems quickly. C++ is designed to work with special data types that hold strings of abstract...
65
by: Chris Carlen | last post by:
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective...
3
by: Scott | last post by:
I have a requirement to control a firefox web browser from an external python program. The python program running under linux from a command shell needs to first find all open firefox web browser...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.