01-05-2018, 01:27 AM
Hi Jim
These are the commands as I'm sending them(in case it helps).
If I were to guess I would say that for whatever reason, the at*b38400 is failing, so the atdt connection string is not sent out.
These are the commands as I'm sending them(in case it helps).
If I were to guess I would say that for whatever reason, the at*b38400 is failing, so the atdt connection string is not sent out.
Code:
ser_ioctl(1, NULL);
get_wimodem_status();
get_wimodem_status();
ser_put_str("at&k1");
ser_read_str(2000);
ser_put_str("at*r0");
ser_read_str(2000);
ser_put_str("at*c0");
ser_read_str(2000);
ser_put_str("at*d0");
ser_read_str(2000);
ser_put_str("at*b38400");
ser_unload();
if (cbm_load ("v-1541.38k", getcurrentdevice (), NULL) == 0) {
printf ("V-1541.38K failed to load\n");
return 0;
}
else {
printf ("V-1541.38K loaded ok\n");
__asm__ ("jsr %w",0xc000);
}
printf ("\n");
err = cbm_open("2","2","2","");
if (err != 0) {
printf("Could not open device 2. Error: %d \n",err);
}
else
{
printf("Device 2 opened ok.\n");
}
err = cbm_write(2,"atdt commodoreserver.com:1541\n",30);
if (err == -1) {
printf("Could not write to device 2. Error: %d \n",_oserror);
}
else
{
printf("Device 2 write ok.\n%d bytes written \n",err);
}