Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Comunication between Unix & PC

0 views
Skip to first unread message

Prestige Atlantic

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
Hi,

I'm doing a C program to sent data to foreign program in a PC. My C
program is develop in Unix OS and the program run on Unix machine. C program
will sent data through a MUX port & link to Serial Port of PC. My program
will listen the status of the port, if the port is clear, C program will
dump data to the port. After sent data, C program will drop into listen mode
to receive data from PC.
What problem I face is the Unix cannot get any reply from the PC but I have
use an emulation software to test the reply of the foreign program in PC,
it's working.

Is this the correct protocol to use? Does nature of Unix that time sharing
process affect the communication?
Can someone help me on this?

Thanks
Low

jims

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
Look at kermit or a file transfer protocol (like x/y/zmodem etc)
You can even get PCAnywhere for unix !!

--
Ji...@kingswayscotland.demon.co.uknospam

remove nospam to contact me

Prestige Atlantic <pre...@tm.net.my> wrote in article
<384b4...@news.tm.net.my>...

Ken Foskey

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
Prestige Atlantic wrote:
>
> Hi,
>
> I'm doing a C program to sent data to foreign program in a PC. My C
> program is develop in Unix OS and the program run on Unix machine. C program
> will sent data through a MUX port & link to Serial Port of PC. My program
> will listen the status of the port, if the port is clear, C program will
> dump data to the port. After sent data, C program will drop into listen mode
> to receive data from PC.
> What problem I face is the Unix cannot get any reply from the PC but I have
> use an emulation software to test the reply of the foreign program in PC,
> it's working.
>
> Is this the correct protocol to use? Does nature of Unix that time sharing
> process affect the communication?
> Can someone help me on this?
>
> Thanks
> Low

Big enough cross post for you...

Why not use Sockets. Network setup is easily defined and sockets
programming is not hard once you get a leg up.

--

Thanks
Ken Foskey
http://www.zipworld.com.au/~waratah/

Neil Cherry

unread,
Dec 6, 1999, 3:00:00 AM12/6/99
to
On Mon, 6 Dec 1999 13:50:45 +0800, Prestige Atlantic wrote:
>Hi,
>
> I'm doing a C program to sent data to foreign program in a PC. My C
>program is develop in Unix OS and the program run on Unix machine. C program
>will sent data through a MUX port & link to Serial Port of PC. My program
>will listen the status of the port, if the port is clear, C program will
>dump data to the port. After sent data, C program will drop into listen mode
>to receive data from PC.
>What problem I face is the Unix cannot get any reply from the PC but I have
>use an emulation software to test the reply of the foreign program in PC,
>it's working.
>
>Is this the correct protocol to use? Does nature of Unix that time sharing
>process affect the communication?
>Can someone help me on this?

Your description leaves something to be desired (it's a bit confusing).

But it sounds like Unix is sending data to a PC, then waiting for a
response.

Is the PC receiving the data? If it is, is it valid? Then is the PC
sending data?

Unix communication can handle anything you throw at it, but you had
better know how to program it. Programming under Unix requires you to
think a bit differently. Normally one forks a separate process to
handle the reading and writting. While the main process handles
everything else.

--
Linux Home Automation Neil Cherry nch...@home.net
http://members.home.net/ncherry (Text only)
http://meltingpot.fortunecity.com/lightsey/52 (Graphics GB)


0 new messages