Communications between *nix system and non-*nix system

Communications between *nix system and non-*nix system

Post by Visine » Tue, 24 Jun 1997 04:00:00



Hi, I hope someone can help with a problem i am having with a serial
communications program that i am writing.

The problem is this:
  After initializing the modem and sending the dial string, the program
  displays the same since they are echoed back from the modem. After
  the CONNECT 57600 (or whichever) message is displayed, print
  operations to stdout are no longer displayed.

I know that the modem is receiving data because the print statements
work in gdb. I also know that data can be transmitted as verified with
gdb. Also, this only happens when i connect to non-*nix systems
ie. DATAPAC.

Any thoughts or suggestions would be greatly appreciated.

 
 
 

Communications between *nix system and non-*nix system

Post by James Youngma » Sat, 28 Jun 1997 04:00:00



> The problem is this:
>   After initializing the modem and sending the dial string, the program
>   displays the same since they are echoed back from the modem. After
>   the CONNECT 57600 (or whichever) message is displayed, print
>   operations to stdout are no longer displayed.

How is this a problem?   Just use ATE0.

 
 
 

Communications between *nix system and non-*nix system

Post by Andrew Gabri » Sun, 29 Jun 1997 04:00:00




Quote:>Hi, I hope someone can help with a problem i am having with a serial
>communications program that i am writing.

>The problem is this:
>  After initializing the modem and sending the dial string, the program
>  displays the same since they are echoed back from the modem. After
>  the CONNECT 57600 (or whichever) message is displayed, print
>  operations to stdout are no longer displayed.

What were you expecting?
Any further echo would be coming from the remote end now, not the
modem. If this is what you are expecting, then problem might be any/all
of: wrong parity for remote end; modem set to change DTE speed to DCE
speed on connect; remote end broken; etc.

Quote:>I know that the modem is receiving data because the print statements
>work in gdb. I also know that data can be transmitted as verified with
>gdb.

I don't understand what you mean.

Quote:> Also, this only happens when i connect to non-*nix systems
>ie. DATAPAC.

Gosh, does DATAPAC really support 57600?

Try using 'cu' or 'cu -e' and see if that works.

--

Consultant Software Engineer

 
 
 

1. System functions in BSD and others *nix systems.

Hi all
I was writeing simple program for school using system funcions
msgget, msgsnd and msgrcv. This program run fine on other OS
i tested it on debian,RedHat and SunOS on my FreeBSD box
the resaults are bad. Are the system funcion different in FBSD?
This is my simple program
--- queue.h ---
#define ONE ftok("/home/bigstar/one.c" , '0')
struct data {
  int mtype;
  int mtext;

--- one.c ---
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <stdio.h>
#include <unistd.h>
#include "queue.h"
int main()
{
  int q, i;
  struct data msg;
  q=msgget(ONE,IPC_CREAT|0660);
  msg.mtype = 1;
  msg.mtext = 5;
  for (i=0; i<10; i++)
  {
    msgsnd(q, &msg, sizeof(msg), 0);
    sleep(1);
  }

--- two.c ---
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <stdio.h>
#include <unistd.h>
#include "queue.h"
int main()
{
  int q, i;
  struct data msg;
  q=msgget(ONE,IPC_CREAT|0666);
  for (i=0; i<10; i++)
  {
    msgrcv(q, &msg, sizeof(msg), 0, 0);
    printf("I recive: %d \n", msg.mtext);
   }

When i run ./one | ./two on FreeBSD i get
 I recive: 671473920
and sa on as i wrote on other tested OS it works fine.
Anyone know where the problem is?
BS.

2. rp-ppoe on solaris 7 sparc

3. Apple the not so *nix *nix

4. Dual CPU's

5. Mess up *nix system?

6. SUMMARY NIS clients with NIS+ server

7. renice on *nix systems

8. Solaris 8 net-install

9. P.O.S system for *nix

10. Non-*nix OS built on linux kernel?

11. Moving disks from a non-PCI system to a PCI system

12. Converting a non Raid redhat system to a Linux system with disk mirroring

13. Does any Know How To FTP between a Unix system and a Non Unix operating system.