Serial Com Port Redirection

These days Bluetooth GPS units are fairly common.

But what if the device you want to interface the GPS to doesn't support Bluetooth, because it only supports serial connections?

To overcome this, a computer can relay the NMEA sentences from Bluetooth to a serial com port, turning the computer into a serial bridge.

There are a few programs but there don't appear to be any specifically designed for this. But by using com0com and com2tcp, you can do this for free.

Here's a diagram showing an example set up, assuming that the bluetooth COM port is COM42 and the serial COM port is COM1.

Here's a batch file showing the commands you'll need.

cd \com2tcp-1.3.0.0-386

start com2tcp.exe --ignore-dsr --baud 4800 \\.\COM42 2000

start com2tcp.exe --ignore-dsr --baud 4800 \\.\CNCA0 127.0.0.1 2000

start com2tcp.exe --ignore-dsr --baud 4800 \\.\COM2 2001

start com2tcp.exe --ignore-dsr --baud 4800 \\.\COM1 127.0.0.1 2001

I tried using hub4com but this didn't seem to work for me.