Re: AT2 module on Mac OS X

"P. A. Bagyenda" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Thanks Andreas,

  As I indicated, this was just a rough stab to get it to work for  
me. Here is what happens without these changes: Regular modem  
initialisation seems to work fine, until you try to send out a  
message. Then, for some reason, the modem is deemed (by the AT2  
module) to never answer the request. Issue the same send request from  
minicom and all works fine.

  We'd need, as you rightly point out, some form of ifdef usage to  
only make the changes for OSX (are there any OSX machines with serial  
ports anymore??). Perhaps others could try this out and advise first...

P.


On Jul 31, 2007, at 17:58, Andreas Fink wrote:

>
>
> On 30.07.2007, at 16:39, P. A. Bagyenda wrote:
>
>> For some reason, the stock AT2 SMSC module does not quite work  
>> right under OSX (bluetooth serial). After making the changes  
>> (attached), largely by inspecting minicom's code, it works fine.  
>> No time to figure out why, but perhaps somebody can take a look  
>> and make sense of it.
>>
>> P.
>>
>> <smsc_at.diff>
>
>
> This surprises me as I wrote that part under MacOS X...(however not  
> as bluetooth serial).
>
> Looking at your diff, I can't see much difference except the tios  
> initialisation (which I copied over from AT1 module...) and that  
> you clear O_NDELAY with a fcntl after the open (). (by the way,  
> dont use C++ style in a  C programm like initializing a variable n  
> in the middle of a block).
>
> As this patch per se could break stuff on other platforms, it would  
> be advisable to only change what's really needed. And so far I  
> can't see what that would be.
>
>
> Andreas Fink
>
> Fink Consulting GmbH
> Global Networks Schweiz AG
> BebbiCell AG
>
> ---------------------------------------------------------------
> Tel: +41-61-6666330 Fax: +41-61-6666331  Mobile: +41-79-2457333
> Address: Clarastrasse 3, 4058 Basel, Switzerland
> E-Mail:  [email protected]
> www.finkconsulting.com www.global-networks.ch www.bebbicell.ch
> ---------------------------------------------------------------
> ICQ: 8239353 MSN: [email protected] AIM: smsrelay Skype: andreasfink
> Yahoo: finkconsulting SMS: +41792457333
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.