>"Stephen E. Hutson" <[EMAIL PROTECTED]> wrote: > >Carlo, > >It's been a long time for me, but are you disconnecting with an "ATH" >+ terminator command to the modem, before trying to close the >connection? > >Steve
I tried both the ways: after the modem successfully dialed the phone number: serial1.close or serial1.write "ATH1" + chr(13)//on-hook/off-hook: not being sure, I tried also ATH0. serial1.close Same result: I have to restart the mac to get a phone/internet connection. Now, my brother tested my app. He has got a Intel-iMac that uses the same Apple External Modem I use: he did not see any problem at all, even dialing several times. Therefore I'd say that this Apple External Modem is not totally fit for my oldish iMac. Yet, Internet Connect doesnt run into this problem (if used BEFORE dialing thru my app). Thanks for answering, Carlo >On Mar 14, 2007, at 2:00 a.m., Carlo Rubini wrote: > > > I recently added an Apple External Modem (USB), and now, after > > dialing (succesfully or unseccesfully) a number, I cant close the > > port. Even using the Internet Connect pane and clicking Connect no > > connection happens anymore, and clicking the Disconnect button, in > > the menuBar the strip 'Disconnecting' goes on forever. > > ForceQuitting Internet Connect does not solve the problem. I have > > to restart the machine. > > > > Using the Internal Modem everything works all right. > > On an old PowerMac with an external Modem plugged in the Modem port > > everything works all right. > > > > I must add that making sinple modem-calls (ex. AT&FI6) and closing > > the port, everything is all right; i.e. I can again open and write > > another command line. > > > > The open/close code is as follows: > > > > Serial1.SerialPort = System.SerialPort(selectedPort) > > serial1.baud = 9 //14400 > > if serial1.open then > > serial1.write "AT&FDT776655" + chr(13)//the modem connects and > > dials the number > > end if > > > > > > In a pushButton (and in a timer): > > timerClose.mode = 0 > > serial1.write "AT&F" + chr(13)//restore factory settings, just in case > > serial1.flush > > serial1.close > > > > After pushing the close button, trying again to dial/connect, > > either from my app or from Internet Connect, fails. Restart needed. > > > > I'm using RB 5.5.5 and OS 10.4.5 > > > > Any suggestion welcome. Thanks, > > > > -- > Carlo _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
