Skip Menu |

This queue is for tickets about the Device-Gsm CPAN distribution.

Report information
The Basics
Id: 21991
Status: resolved
Priority: 0/
Queue: Device-Gsm

People
Owner: cosimo [...] cpan.org
Requestors: dellr [...] mac.nospam.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.43
Fixed in: (no value)



Subject: Signal strength reading fails on Vodafone data card
(This is actually for version 1.44, but I couldn't select a higher number than 1.43 for some reason) When reading the signal strength from a Vodafone data card on a virtual com port, the module fails to extract the number. This is caused by the return value being incorrectly parsed; the function only reads the first line of the the output, which in my case consists of a '['. A quick fix to this problem is to change line 265 in Gsm.pm from ($code, $dBm) = $self->parse_answer($Device::Modem::STD_RESPONSE, 15000); to $dBm = $self->parse_answer($Device::Modem::STD_RESPONSE, 15000); This is because the parse_error function actually returns the rest of the response as a list when multiple return values are requested. Another fix could be to store the return value in an array and parse this; ($code, @dBm) = ... and join that array. As it is, $code isn't used in the function, so my fix works well...but isn't pretty.
On Mar. 10 Oct. 2006 05:58:59, xyzzy wrote: Show quoted text
> A quick fix to this problem is to change line 265 in Gsm.pm from > [...]
Would you give a try the attached version of Gsm.pm? It should fix your problem. If everything's in place, I can release it as 1.45. Thank you. -- Cosimo

Message body is not shown because it is too large.

From: troels.jensen [...] redprairie.com
On Tue Oct 17 11:49:05 2006, COSIMO wrote: Show quoted text
> On Mar. 10 Oct. 2006 05:58:59, xyzzy wrote: >
> > A quick fix to this problem is to change line 265 in Gsm.pm from > > [...]
> > Would you give a try the attached version of Gsm.pm? > It should fix your problem. > If everything's in place, I can release it as 1.45. > Thank you. >
That works fine. Thank you very much.
From: COSIMO [...] cpan.org
On Thu Oct 19 06:45:39 2006, xyzzy wrote: Show quoted text
> On Tue Oct 17 11:49:05 2006, COSIMO wrote:
> > On Mar. 10 Oct. 2006 05:58:59, xyzzy wrote: > >
> > > A quick fix to this problem is to change line 265 in Gsm.pm from > > > [...]
> > > > Would you give a try the attached version of Gsm.pm? > > It should fix your problem. > > If everything's in place, I can release it as 1.45. > > Thank you.
> > That works fine. Thank you very much.
Ok, issue resolved in v1.45, already released to CPAN. Bug closed.
Resolved in Device::Gsm v1.45, released to CPAN on 2006-10-17. http://search.cpan.org/~cosimo/Device-Gsm-1.45/