Sending Infrared Data to a PC Dongle Help Request

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys, I'm stuck again at work so I am trying to save 100000 hours of research time by just asking a hard "How do I" question. I'll try to provide as much detail as I can.

So we this little IRDA to USB dongle that plugs into a PC with WindowsXP. The device came with a bullshit CD that has a driver for the device and a digital manual for the device which tells you how to install the driver and nothing more. I installed the driver, and now I can go to "System/Hardware/Device Manager" in the control panel and see a heading called "Infrared Devices" with my device showing as being plugged in and at "location 0" therefore I know the computer is recognizing it. The device does not show as a virtual port in my COM ports unfortunately or else I'd try to talk to the dongle through hyperterminal (realterm actually).

I have no GUI/HMI provided with this IRDA/USB dongle, only the stupid driver on a CD and the device itself. I need to send data to a PC, what do I do to set up the PC to receive through the dongle now that the driver is installed? I can't find the device through hyperterminal. Any help at all would be appreciated, how do I make a virtual com port for this device or what do I have to do or at least start to do???

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What system files does the .inf file use? If you google the VID/PID of the device you will often find rebranded devices with other drivers.
There are better sniffing programs, but USBView is a free MS application that works on XP. It will show detailed information about the enumeration.
Also try plugging into a linux box, on the off chance it might recognize it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So the computer recognizes the device and I know the driver is installed. I want to rephrase my question after wasting another day on my problem. Let me frame the question. I have an atmega88 that takes data from a sensor and I need to get these numbers into my computer via infrared. I have a IR encoder and a IR transceiver on the Atmega side. I have a Sigmatel IRDA-USB Bridge device on the PC side. I am not much of a computer scientist, can I still do this having no GUI provided by the IRDA-USB device company? If I can, What is the easiest way to do this?

I am smart enough to do UART <-> RS232 and that's been the only way I've ever put data into a computer in the past but now I need to put data into a computer with IR.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That depends on how the USB enumerates. This pdf http://www.scm-pc-card.de/file/manual/Pc_Communication/irda-zio_manual_en.pdf suggests it does simulataneous enumeration as infrared device, network interface, COM port, and printer port. Are you not seeing the com port in the device manager? If it is there you should be able to open it with a terminal program.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ahh thank you again for your response. That PDF shows that for windows 98 and windows 2000 the device will work as a virtual comm port. If you look at the windows XP installation part, it only shows as a recognized device and not a comm port (look at the picture on page 14 of the pdf file just before section 7). I should have said I was running XP in my previous post. How do I make numbers from my atmega appear on my computer since I don't get any comm ports associated with the device?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ack.. forget it i'm going another way i think, this stuff is beyond my mental envelope

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, didn't scroll down enough. FWIW, it's not hard to bit bang the http://en.wikipedia.org/wiki/RC-5 protocol at 38KHz on an infrared diode on one end and decode the output from a standard detector on the other. Make the receiver e.g. an ATTiny85 running http://www.obdev.at/products/vusb/easylogger.html and it can type the data into a text window. It's not particularly fast, maybe 20 bytes per second.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, great suggestion. I have some ATTiny's in the lab just sitting around, it should work. Let me get back to you some time next week, I'll do what you suggest and hopefully I'll have some pictures to share.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is something to get you started, a cell monitor that wakes every few seconds to transmit the cell voltage using an accelerated RC5ish signal. It then wakes the next tiny up the line to give a chain of voltage broadcasts for all the cells.

They are picked up with a standard 38KHz detector with TTL output that is decoded through edge interrupts on another tiny, which puts the readings into the send buffer and they are typed into notepad as comma separated values. Not sure if I can post that code, but if you are interested I can extract the interrupt decoding routine. There are other ways to decode, probably better than mine.

Attachment(s):