New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finding serial port name #2
Comments
When I plug in my IrDA adapter dmesg tells me this:
So my adapter already attaches to a serial port by itself at /dev/ttyUSB0. After you plugged in your USB irda adapter you need to run Now run Hope this helps! |
I also got the same problems. I have I have followed the guide from https://rigacci.org/wiki/doku.php/doc/appunti/hardware/irda_usb_dapter for the KS-959. From http://sparcher.blogspot.com/2016/11/howto-some-experience-with-usb-irda.html for the MA-620, and I got no luck on both. The adapter just blinking when there is an IR light from the 3DS, but I cannot write or read any data (there is not even garbage data when I check the serial port using Putty). I have also try to use I think your IrDA Adapter (UIR-22) is a special case where it works without needing any setup. For reference this is the
|
Does your ma-620 irda adapter appear as a serial port in device manager in windows? |
Nope even though the MA-620 uses a PL2303 USB to UART chip, Windows won't detect it. There is no MA-620 driver for Windows 7 and beyond. I even try to force install the PL2303 driver to the device but still no luck. |
I also have already try to use the MA-620 serial port ( |
Thanks for your tips @agtbaskara I noticed that we have the same USB dongle and I'm starting to think that a layer or something is missing, cause the system doesn't recognize it as a serial port |
@DebbyX3 I tried both of my adapters to a Windows XP Virtual Machine. After installing the proper drivers, both were detected as Infrared Devices rather than Serial/COM devices. I also already tried to use IrCOMM2k (Windows version of ircomm-tty) and still no luck. For reference, here the screenshot of both device properties: |
@agtbaskara could you open the com port in that was created using Ircomm2k and point a random ir tv remote at the irda adapter? |
@HubSteven I have tried using Putty with the 3DS on the COM port created by IrCOMM2k, and there is no garbage data, only an empty terminal. I also tried to read/sniff the 3DS while communicating with Circle Pad Pro, and it is still empty. Besides Putty, I also use a simple python script that directly reads and prints the serial data, but still no luck. |
When you send data using the terminal do you see the ir led flicker of the irda adapter? You can check this by using the camera on your phone. Make sure your room is completely dark. |
I think to run the program we need an adapter that can directly translate Serial data to Infrared Signal.
One of them is a DIY board, and one of them is a quite old product. If this adapter works with 3DS, we theoretically can port this project to an Arduino by utilizing the MCP2120+IR Transceiver. A similar project has been done before for the PSP in here https://trandi.wordpress.com/2010/01/09/irda_mcp2120_tfdu4300_ftdi_ttl-232_capacitor_crystal_7-3728/. EDIT: This website also has a good resource for future implementation https://www.societyofrobots.com/electronics_irda_tutorial.shtml |
I've actually thought of the same thing; to implement everything in hardware instead of software. Unfortnutaly I've bever had the time to do so but it's definitely possible. Btw I've discovered why you PL2303 based adapter gets recognized as an irda device instead instead of an vcp (virtual com port). According to the datasheet of the pl2303 in your case there is an external ROM chip connected to the pl2303 which sets a custom pid and vid. Thats why brute forcing the vcp driver didnt work. If you disconnect this ROM it will return to the orginal pid and vid of the vcp driver. Could you make a picture of the PCB of the adapter? |
There is a light every few seconds, but I believe this light is some kind of heartbeat signal for IrDA device discovery rather than the output from serial terminal. |
I don't think making the MA-620 adapter detected as a COM port in Windows will help much. The adapter was already detected as a Serial port in Linux, and I already tried to use it before. Anyway, here is the PCB: |
Hmmm, it really surprises me that one of the leds flickers when you don't send any data, this shouldn't happen when the device is configured as a com port. From what I can see on the PCB is seems both leds are connected directly to tx and rx of the prolific chip. Do you have access to an oscilloscope, that way we can probe what is actually being send. You could also try to remove the 8 legged chip above the pl2303. This will make it a normal usb serial device again in windows. |
Is the IR sensor bidirectional? |
Looks like it can only send IR data, like most phones. |
These two are compatible, easy to get and confirmed to be working: |
Hi, I finally managed to get a USB to IrDA device (they're so difficult to find) but I have some troubles finding or maybe binding my device with a serial port.
Tried my USB dongle with the last Ubuntu release, but I had no luck cause the drivers were not present anymore, so I had to stick with an older version, Ubuntu 15. This version recognizes and installs the drivers just fine.
Usb dongle specs using
dmesg
:with
lsusb
:and using
ifconfig -a
Also, I attached the dongle using:
sudo irattach irda0 -s
and then triedsudo irdadump
to see if the device is working, which it is because it displays various messages waiting for a connection with a device such an old infrared phone. Unfortunately i don't have an old device that supports IrDA so i can't really try this part, but at this point I'm pretty confident that the USB dongle is at least working.The problem is that I can't find or can't figure out how to attach the dongle with a serial port, since your script uses this to communicate.
I tried using
ircomm
or/andircomm-tty
to create a port of some sort, but honestly at this point I don't really know what I was doing (to my understanding ircomm creates virtual ports).I tried using various ports in your code (I'm referring to 3ds.py since it seems the most basic and I read in the other issue to try blasting a remote control to see if something is captured), such as ttyS0 or ttyS1, also tried using
ircomm
ports but didn't work.Depending on the port tried, 3ds.py shows:
or just hangs waiting for IR signals that doesn't receive even when I blast a remote control.
Do you have any suggestions about the serial port situation? How did you managed to use your USB dongle as a serial device?
Thank you!!
The text was updated successfully, but these errors were encountered: