COM port data stream to TCP

C

carmelo

Ciao a tutti,
ho un flusso di dati in input sulla porta COM che dovrei reinviare
tramite rete a pc remoti (possibilmente tramite multicast). Avete
qualche idea?

Ho già realizzato la trasmissione multicast di stringhe di caratteri,
ma questo flusso probabilmente non è un flusso di caratteri, perciò
vorrei effettuare un invio sulla rete di tutto ciò che viene ricevuto
sulla porta COM.


Spero possiate aiutarmi
Grazie
Carmelo
 
C

carmelo

Hi everybody,
I've got an input data stream on COM port which I should send in
output to remote PCs via internet. Have you got any idea?

I've developed an application for sending strings messages with
multicast, but this data stream is not a characters stream probably,
therefore I'd like to send on the net everything is received on the
COM port.


I hope you can help me
Thank you very much in advance
Carmelo
 
K

Knute Johnson

carmelo said:
Hi everybody,
I've got an input data stream on COM port which I should send in
output to remote PCs via internet. Have you got any idea?

I've developed an application for sending strings messages with
multicast, but this data stream is not a characters stream probably,
therefore I'd like to send on the net everything is received on the
COM port.


I hope you can help me
Thank you very much in advance
Carmelo

Find a copy of the JavaComm library, read the docs and write a program
to read the COM port and write to a socket or udp packets. If you are
just going to receive on the COM port you can probably just open it as a
file and read from it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,614
Members
45,289
Latest member
stfp04

Latest Threads

Top