B4J Question RS232 Port

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I haven't really played around with B4J just yet but wondering if the following is possible..

First of all I have some software (not written by me) and it only communicates on RS232.
So I was wondering if I could create a Virtual RS232 port that will wait for a incoming connection (from the above software) in a B4J application and then capture the incoming data and connect to a IP and Port and pass the same data through ?

Cut a long story short, basically trying to convert a RS232 port to a TCP/IP port using B4J.

Anyone know if that is possible using B4J ?
 

dilettante

Active Member
Licensed User
Longtime User
I doubt you can do this sort of thing very conveniently using B4J alone, and it may not even be possible using Java.

You'd need a device driver similar to the one described at MixW Serial Port Bridge to create a pair of "loopback COMx ports." Then you could use a B4J program to bridge from one side of the loopback to TCP.

I believe I have seen software for Windows that does the entire job too, creating a single virtual COM port and mapping it to a TCP port.
 
Upvote 0
Top