Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

did anybody play with python and window mobile broadband?

12 views
Skip to first unread message

News123

unread,
Mar 18, 2010, 5:20:38 AM3/18/10
to
Hi,


I'd like to use a mobile broadband device with a windows python app.
Did anybody play already with python and the window mobile broadband
interface?

I'm looking for examples:
- how to connect/disconnect a mobile broadband device (currently I use
rasdial. not sure it's the best solution)
- to obtain the device's current mode (GPRS / EDGE / . . . )
- to obtain the current signal level

Thanks a lot for any pointers

N

Sanjiva P.

unread,
Mar 18, 2010, 5:26:24 AM3/18/10
to
On 03/18/2010 10:20 AM, News123 wrote:
> I'm looking for examples:
> - how to connect/disconnect a mobile broadband device (currently I use
> rasdial. not sure it's the best solution)
> - to obtain the device's current mode (GPRS / EDGE / . . . )
> - to obtain the current signal level
>
> Thanks a lot for any pointers

Well no examples,but most or all of it should work through AT commands.

Did you try plugging the mobile broadband interface in?

egl...@gmail.com

unread,
Mar 18, 2010, 6:07:22 AM3/18/10
to
On 18 мар, 11:20, News123 <news1...@free.fr> wrote:
> I'd like to use a mobile broadband device with a windows python app.
> Did anybody play already with python and the window mobile broadband
> interface?
>

There was a discussion on this subject in some local forum recently. I
assume you're using PythonCE, right?

The best solution proposed there was to use ctypes and WinAPI. You can
find a relatively high level APIs to set up a connection (without need
to go too low level with AT commands) and make your own wrapper.

A good starting point can be found here: http://msdn.microsoft.com/en-us/library/bb416346.aspx
(it's not the only way to to things, btw).

--
regards,
eGlyph

News123

unread,
Mar 18, 2010, 3:29:37 PM3/18/10
to
Hi Sanjiva,


Sanjiva P. wrote:
> On 03/18/2010 10:20 AM, News123 wrote:
>> I'm looking for examples:
>> - how to connect/disconnect a mobile broadband device (currently I use
>> rasdial. not sure it's the best solution)
>> - to obtain the device's current mode (GPRS / EDGE / . . . )
>> - to obtain the current signal level
>>
>> Thanks a lot for any pointers
>
> Well no examples,but most or all of it should work through AT commands.

Thanks, yes AT commands would be fine.
How can I send AT commands, while another application / connection
mnager is using the modem?


I just don't know how to send AT commands to a connected modem.


>
> Did you try plugging the mobile broadband interface in?

What do you mean with pluggging in?

ctypes?
or something else?


bye


N

News123

unread,
Mar 18, 2010, 3:32:23 PM3/18/10
to
Hy Eglyph,

egl...@gmail.com wrote:
> On 18 мар, 11:20, News123 <news1...@free.fr> wrote:
>> I'd like to use a mobile broadband device with a windows python app.
>> Did anybody play already with python and the window mobile broadband
>> interface?
>>
>
> There was a discussion on this subject in some local forum recently. I
> assume you're using PythonCE, right?

No I'm using C-Python on a small windows PC (Atom) with a USB Boradband
modem.

Could you forward me the discussion in case you remember the forum?


>
> The best solution proposed there was to use ctypes and WinAPI. You can
> find a relatively high level APIs to set up a connection (without need
> to go too low level with AT commands) and make your own wrapper.
>
> A good starting point can be found here: http://msdn.microsoft.com/en-us/library/bb416346.aspx
> (it's not the only way to to things, btw).

Thanks, I'll read into it.

bye

N


0 new messages