CBMSTUFF FORUM
CommodoreServer @38400 Baud - Printable Version

+- CBMSTUFF FORUM (https://www.cbmstuff.com/forum)
+-- Forum: CBMSTUFF PRODUCTS (https://www.cbmstuff.com/forum/forumdisplay.php?fid=1)
+--- Forum: WiModem (https://www.cbmstuff.com/forum/forumdisplay.php?fid=75)
+---- Forum: Usage (https://www.cbmstuff.com/forum/forumdisplay.php?fid=77)
+---- Thread: CommodoreServer @38400 Baud (/showthread.php?tid=361)

Pages: 1 2


RE: CommodoreServer @38400 Baud - Zeropage - 03-11-2017

(03-11-2017, 09:30 AM)admin Wrote: Reset is easy - just send ATZ and all of the settings are restored to the default.  Smile

The problem I have is that the Wimodem is connected to commodoreserver at this point and anything I write is simply being forwarded.

I'm trying to  :

cbm_write(2,"+++\n",4);

before sending ATZ or ATRESET but it doesn't seem to take effect.


RE: CommodoreServer @38400 Baud - admin - 03-11-2017

Are you waiting for the "OK" response after sending "+++"? This could take some time before it response, depending on what is going on. Once you get the "OK", you can then send the ATH0 (to hang up the connection), and after that OK response, you can then send ATZ. I guess you could just send ATRESET instead of ATH0/ATZ, but that takes awhile to reboot the modem.


RE: CommodoreServer @38400 Baud - Zeropage - 03-11-2017

(03-11-2017, 12:49 PM)admin Wrote: Are you waiting for the "OK" response after sending "+++"?  This could take some time before it response, depending on what is going on.  Once you get the "OK", you can then send the ATH0 (to hang up the connection), and after that OK response, you can then send ATZ.  I guess you could just send ATRESET instead of ATH0/ATZ, but that takes awhile to reboot the modem.

Yeah, I removed the \n from the +++ command and added a 3 second sleep and that seems to work.  Thx for the tip.

I dont think I'm using the driver properly though.
if I read anything back (cbm_read(2,&receive_char,1)), it crashes my program directly afterward.
I think it may have something to do with the built-in reset of the basic pointers when I call sys49152 to init the driver.

I am trying to write a terminal that works with the 38k driver, but I have to solve this problem first.