[PyHumod] pyhumod and huawei 1556

35 views
Skip to first unread message

Teddy Limousin

unread,
Apr 19, 2010, 6:00:49 PM4/19/10
to pyhumod
hello I would like to know if the pyhumod library works with the modem
huawei 1556,

I have ubuntu 9.10 and I plug in the modem and configure it to work
with my internet service
provider. but when I try the code

>>> import humod
>>> m=humod.Modem()
>>> m.show_model()

the application just stays there and nothing happens

can you help me please, should I install a specific driver to work
with the modem?

thanks in advance.

--
You received this message because you are subscribed to the Google Groups "pyhumod" group.
To post to this group, send email to pyh...@googlegroups.com.
To unsubscribe from this group, send email to pyhumod+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyhumod?hl=en.

oozie

unread,
Apr 19, 2010, 6:33:52 PM4/19/10
to pyh...@googlegroups.com
Hi,

On Mon, Apr 19, 2010 at 11:00 PM, Teddy Limousin <monga...@gmail.com> wrote:
> hello I would like to know if the pyhumod library works with the modem
> huawei 1556,
>
> I have ubuntu 9.10 and I plug in the modem and configure it to work
> with my internet service
> provider. but when I try the code
>
>>>> import humod
>>>> m=humod.Modem()
>>>> m.show_model()
>
> the application just stays there and nothing happens

PyHumod will hang if there is no response from the usb port. By
default PyHumod looks for /dev/ttyUSB* files and assumes that the one
with the lowest number is the modem and takes the one with the highest
for a control port.

How many /dev/ttyUSB* files do you see? What happens when you connect
to each of them with say minicom or other software for accessing
serial ports?

> can you help me please, should I install a specific driver to work
> with the modem?
>
> thanks in advance.

--
best regards,
oozie
http://ooz.ie/

Teddy Limousin

unread,
Apr 19, 2010, 6:52:48 PM4/19/10
to pyh...@googlegroups.com
my modem is mounted in ttyUSB0

I used dmesg | grep tty, and got the result:

[ 1344.672595] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 1344.672953] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB1
[ 1344.673283] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB2

so I think it is mounted correctly, could it be another problem

I tried with another library called gammu and it worked very well

what can I do?
--

Teddy Limousin

unread,
Apr 19, 2010, 6:54:20 PM4/19/10
to pyh...@googlegroups.com
could the python version be the problem, I`m using python 2.6 under ubuntu 9.10

regards

Teddy Limousin

unread,
Apr 19, 2010, 7:09:20 PM4/19/10
to pyh...@googlegroups.com
if i use minicom I`m able to send the message



--
Teddy Limousin

oozie

unread,
Apr 20, 2010, 7:21:02 AM4/20/10
to pyh...@googlegroups.com
Hi,

On Tue, Apr 20, 2010 at 12:09 AM, Teddy Limousin <monga...@gmail.com> wrote:
> if i use minicom I`m able to send the message

OK, that's good news. If /dev/ttyUSB0 is responsive this is probably
the modem port.
Now see which of the remaining ports is functional - only one of them will be.

If it turns out to be /dev/ttyUSB2, try to instantiate the modem like this:

mod = humod.Modem('/dev/ttyUSB0', '/dev/ttyUSB2')

to overwrite the default /dev/ttyUSB1 for control port.

--
best regards,
oozie
http://ooz.ie/

Reply all
Reply to author
Forward
0 new messages