Hi Cosimo
Thanks that you found time.
On Nov 15, 2010, at 3:50 PM, Cosimo Streppone via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=61729 >
>
> On Wed Sep 29 08:44:05 2010, bivanov@setcom.eu wrote:
>
>> Issues:
>
> Hi Boris, thanks for your feedback!
> Sorry for the late reply.
>
>> 1. register never work. Phone sends
>> back ERROR. I don’t need register anyway(Entered PIN after switching
>> on the phone).
>
> I'm not sure what to do here.
> Maybe an option to tell Device::Gsm to never attempt registration,
> and con
Show quoted text> sider the phone already registered?
Yes, I think that's best. You have separate register command anyway.
Show quoted text>
>> 2. Delay at sending. I think its timing issues due to fact that you
> was using slower pc while developing this module.
>
> Yes definitely :)
>
>> When I sent sms from terminal
>> it was no problem but programmatically I got "Troubles..."
>> AT+CMGS="+49XXX..XXX"<CR>
>> Here after small delay comes : ">" and then
>> we type message and press "CR":
>> And SMS send.
>> But in
>>
>> sub
>> _send_sms_text {
>>
>> $me->atsend( qq[AT+CMGS="$num"] .
>> Device::Modem::CR );
>> # Encode text
>> $text =
>> Device::Gsm::Charset::iso8859_to_gsm0338( $text );
>> # Complete
>> message sending
>> $me->atsend( $text . Device::Modem::CTRL_Z );
>> There no delay waiting for ">" as result immediately "Error".
>> So I
>> added $cReply = $me->answer('>', 2000); after first atsend to fix
>> problem.
>
> I don't know if all phones send a '>' character.
> A short delay should be sufficient.
Very good. Please add that delay.
Show quoted text>
> Can you try with '$me->wait(250)' after the first atsend()?
>
>> 3. Is it possible to log into normal file, not syslog? My
>> syslog working with -r key and nothing logged.
>
> Yes, it's possible. Look at the documentation and examples.
>
> my $gsm = Device::Gsm->new(
> log => 'file,/tmp/myfile.log',
> );
>
> Let me know, and thanks!
Thank you. Documentation has only 1 example with syslog.(Unless Im blind) Your example of "file, " wasnt really obvious for me :)
Your module working fine since September after some hacking.
Boris
Show quoted text____________________________________________________________
This message and any attachments contain confidential information and
must not be disclosed to a third party without the prior written consent of
setcom. If you have received it erroneously, please discard it and contact
us by return.
____________________________________________________________