On 11/3/02 5:23 AM, "Ted Spencer" <tedspencer@...> wrote: >> From the nimble fingers of Heather Donahue (maclists@...) (3/11/02 > 1:13 AM) came... > >> Then I changed my code around to read and write to my modem port. I got the >> same poor results. After sending 'ATZ' I got no response, until I sent it >> again. Then I got an 'ATZ\rOK\r' >> >> I'm going to incorporate the Apple SerialSample code that R.P. mentioned >> into a new project to try and initialize the modem port. If I can get that >> to work properly I'll introduce that code into my Stamp Editor code. Since >> the SerialSample is tested code (and compiles and works fine under Project >> Builder) it shouldn't be to difficult to port to BASIC. Although, maybe I >> should try and modify the C code first to see if it will work with the Stamp >> Device. > > Could you be missing something as simple as a <cr> or <lf> that would be the > proper command terminator? I do believe that WRITE # will not send either of > these, while a PRINT# will... I sent a string terminated with a CR so it should have worked. I think I know why now why it didn't. Thanks to your other post suggesting that the Stamp device might not be responding fast enough. I couldn't do it the way you mentioned so I had tried using a loop counting microseconds to add a small delay. I thought it didn't work, that just complicated things for me. Turns out it was a delay I needed. I just made the mistake of counting 20 for 20 milliseconds, it should have been 20000 for 20000 microseconds or 20 milliseconds, Doh! That also effected my reset procedure so that would have caused even more trouble when trying to program it. The other thing that confused me is that the Stamp echoes even if it's powered off. I never would have expected that. The Stamp must have an internal loopback, I know it's not the KeySpan adapter. Thanks to everyone for their help, I'd still be at it with out it. Now I can get back to actually writing the code to identify different Stamp models. (Of course I still have a way to go before a full working application is finished. I have until January so I'm sure I'll finish it. It's Sunday, time to rest.)