473,670 Members | 2,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6547

"BadOmen" <ba*******@hotm ail.com> skrev i meddelandet
news:Gu******** ************@ne wsc.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
comInputModeTex t or 1 comInputModeBin ary??
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.CommEve nt

' Errors
Case comEventBreak ' A Break was received.
Case comEventFrame ' Framing Error
Case comEventOverrun ' Data Lost.
Case comEventRxOver ' Receive buffer overflow.
Case comEventRxParit y ' 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 "comEvRecei ve"
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
6364
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 Remote Desktop ActiveX control in my C# app and this works fine. However i have now a new requirement for my app: multiple users have to be able to view and control the same remote desktop simultaneously using my application. Big problem:...
2
2187
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. I've found a way that works on the web, and I'm trying to get it to also work in debug mode in the IDE. The "on the web" page and my SQL database are hosted by a third party (on separate servers). Since debug mode opens IE and loads my page...
4
3885
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 <stdlib.h> int main(int argc, char* argv){ char command;
1
15622
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 CONNECTION //IMPORTANT: the logic is NOT complete, the program works only once and disconnects or freeze //One needs to modify or rewrite the program so it is fully functional for LIST and RETR
2
2487
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 here goes. First, what I am trying to accomplish is to make a program I've written automatically update itself if there is a newer version on the network. Second, my application runs on one or more computers at many geographically separated...
8
2610
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 do that I will have to change the port The Viewer is written in JAVA. The Host is written in C. The developer lists a switch option for changing the JAVA VIEWER, but I see no way to switch the port setting in the HOST. If...
1
1575
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 information. It can take abstract data types and hold them in containers, that allow you to work with sets of strings in many useful ways. It isn't that complex to understand how to use these new tools, but writing neat, fast executing code is something...
65
5250
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 than the descriptions of OOP I've read in making a case. Ie., what objective data/studies/research indicates that a particular problem can be solved more quickly by the programmer, or that the solution is more efficient in execution time/memory...
3
9052
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 windows read the URL currently displayed in each web browser and if the URL matches a particular regular expression it needs to get/set form fields displayed in the web browser. Basically I need something like Windows COM and Internet Explorer...
0
8468
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8901
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8660
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4209
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1792
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.