CommodoreServer @38400 Baud
#11
(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.
The Workshop -  http://home.reidspace.com/ 

Reply
#12
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.
Reply
#13
(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.
The Workshop -  http://home.reidspace.com/ 

Reply




Users browsing this thread: 1 Guest(s)