Results 1 to 9 of 9

Thread: Infrared communication

  1. #1

    Thread Starter
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Infrared communication

    my laptop has a Infrared port on it and I was wondering if I could use that to control my TV/VCR/SAT.

    How can I send and recieve Infrared data In VB .NET (VS 03) ?
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  2. #2
    Addicted Member Sheppe's Avatar
    Join Date
    Sep 2002
    Location
    Kelowna, BC
    Posts
    245
    I suspect that you'd just have to open the infrared port and begin communication using the appropriate protocols. Unfortunately, I have no experience doing this, so that's really all I have to say on the subject.
    [vbcode]
    On Error Goto Hell
    [/vbcode]
    Sheppe Pharis, MCSD
    Check out http://www.vb-faq.com
    Click here for access to the free Code-Express source code and component sharing network for VB6
    Want a better way to skin your .NET applications? Click here!

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think Infared ports accept communication not send it out.

  4. #4
    Addicted Member Sheppe's Avatar
    Join Date
    Sep 2002
    Location
    Kelowna, BC
    Posts
    245
    Originally posted by Edneeis
    I think Infared ports accept communication not send it out.


    Think about this one for a minute. They accept communication from where? Other infrared ports! Obviously they have to be able to send out data as well.
    [vbcode]
    On Error Goto Hell
    [/vbcode]
    Sheppe Pharis, MCSD
    Check out http://www.vb-faq.com
    Click here for access to the free Code-Express source code and component sharing network for VB6
    Want a better way to skin your .NET applications? Click here!

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Why? My TV doesn't send anything to the remote, the remote only sends and the TV only receives. Its one way communication.

    I mean you could be right and it could have two way communication but still the likely hood that you can get it to operate your TV or VCR is doubtful. My cable remote doesn't even work properly for one of my TVs.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    actually IR ports on computers tend to be bi-directional, as they tend to be just a replacement for wires (one example is using my mobile phone as a modem)

    one issue though is the range - there are many PDA's which can use software for controling a TV, but different IR ports have different ranges (some are less than a metre, others 10 metres)

    unfortunately I haven't got a clue how you would code for it. (my new pda for work would be much more useful then)

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I don't mean to be discouraging I think it'd kick ass if you could pull it off. That would definately be some braggin' rights.

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    it certainly would!

    I would assume that an IR port is set up as a serial port, maybe you could get input from a TV remote to find out what signals are sent... but then again, maybe not!!

  9. #9

    Thread Starter
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    actually IR ports on computers tend to be bi-directional, as they tend to be just a replacement for wires (one example is using my mobile phone as a modem)

    one issue though is the range - there are many PDA's which can use software for controling a TV, but different IR ports have different ranges (some are less than a metre, others 10 metres)

    unfortunately I haven't got a clue how you would code for it. (my new pda for work would be much more useful then)
    I have been poking around the net and I have found that:

    Most PDA's have a range of about 3 feet

    It is possible to use a computer to control things using IR*

    Serial Commuication in VB.NET Class/Example

    Serial Curcuits


    *Normal Computer IR ports dont communicate fast enough to work properly with remotes so you need to create a special one...

    I haven't done anything because I am waiting to find some one that I trust to complete the curcuit

    Thought this might be interesting for anyone else that is interested...
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width