How to connect ONE comport to another one port
Kingtuts
Posts: 6
Hi I have a problem, I have an RFID USB version and I am trying to connect it with a Parallax BS2 rev J module/ micrcontroller. Of course this cant be done very easily, unless some one knows a cheap method (besides buying an Serial RFID version). I was told that one could connect these two devices with the proper USB host, which at the moment is my laptop. But in order for this to work I need to connect the com ports. I downloaded Com Port Redirector. 4.3.0.3 by Lantronix, and Im not sure what to do next. Some guidance would be appreciated.
Comments
Whoever is going to help you will need to know which reader you're using.
Edit: I just noticed you also asked this question in the Basic Stamp forum. It's against forum rules to cross post.
However, you could create your own COM port redirector in the language of your choice. I'd start with the VB.NET sample application referenced in the RFID manual. Get the VB.NET/PC wired up to the RFID and verified. Then modify the VB.NET app to accept commands from the COM port rather than the GUI.
If you can't exchange it then try getting a refund so you can purchase the Serial module.
Where did you purchase it from and do you still have your receipt?
Still give Parallax money but instead of buying the RFID reader buy a Propeller board and use it to read from the inexpensive RFID readers.
You could even have the Propeller send the data over serial to the BS2 if you wanted it to (I know someone who could help you with the Propeller code).
Pleas post it here, others may benefit from this, which is what keeps the forum wheel turning. I can get you past the driver signing issues.
This project is in my wheelhouse and I'd have a pretty hard time putting together a proof of concept in a single evening. I hope you got it working...
http://www.ftdichip.com/Support/Documents/AppNotes/AN_132_Re-Assigning_COM_Port_Numbers_Using_Registry.pdf
In .NET world instantiate two serial ports, 4 and 5, using a console application. In the Data_Received event of COM4 do a write to COM5. On Data_Received in COM 5 to a write to COM4. I imagine it's no more than 20 lines of code if even that. This solution depends on the BS2 code functioning properly and the USB RFID and Serial RFID use the same protocol.
If you had one on hand, you could use Parallax's Memory Stick Datalogger to act as a USB host for the RFID reader and that could be controlled by the BS2.