* Serial Port modems - can ofono help?
@ 2011-06-12 11:30 Ed W
2011-06-11 13:30 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Ed W @ 2011-06-12 11:30 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
Hi, I have a bunch of serial to usb adaptors which will be connected to
either a GPS or a serial port modem (yes such things still exist in
use). Can ofono help me detect whether a given serial port is connected
to a modem, gps or disconnected?
Thanks
Ed W
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Serial Port modems - can ofono help?
2011-06-12 11:30 Serial Port modems - can ofono help? Ed W
@ 2011-06-11 13:30 ` Denis Kenzior
2011-06-14 14:28 ` Ed W
0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2011-06-11 13:30 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
Hi Ed,
On 06/12/2011 06:30 AM, Ed W wrote:
> Hi, I have a bunch of serial to usb adaptors which will be connected to
> either a GPS or a serial port modem (yes such things still exist in
> use). Can ofono help me detect whether a given serial port is connected
> to a modem, gps or disconnected?
Not really. You can certainly integrate with oFono's udev detection
code for the usb serial port converter detection and automatically know
which ttys belong to the serial converter.
However, to my knowledge there is no way to know what is 'on the other
side'. You would need to open the tty and run a few AT commands to find
out the actual device type.
If you can combine the two above parts then you might be able to detect
modem devices automatically, Marcel had a few ideas how to do this, but
nothing concrete has been done yet.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Serial Port modems - can ofono help?
2011-06-11 13:30 ` Denis Kenzior
@ 2011-06-14 14:28 ` Ed W
2011-06-13 9:20 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Ed W @ 2011-06-14 14:28 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]
On 11/06/2011 14:30, Denis Kenzior wrote:
> Hi Ed,
>
> On 06/12/2011 06:30 AM, Ed W wrote:
>> Hi, I have a bunch of serial to usb adaptors which will be connected to
>> either a GPS or a serial port modem (yes such things still exist in
>> use). Can ofono help me detect whether a given serial port is connected
>> to a modem, gps or disconnected?
>
> Not really. You can certainly integrate with oFono's udev detection
> code for the usb serial port converter detection and automatically know
> which ttys belong to the serial converter.
Thanks could you offer me some reference to what you mean here? ie does
ofono offer me something over and above simply a udev rule firing on the
correct subsystem (and perhaps limiting by driver name if we really want
to tighten up the rule?)
> However, to my knowledge there is no way to know what is 'on the other
> side'. You would need to open the tty and run a few AT commands to find
> out the actual device type.
Agreed - I currently plan to gently probe any serial to usb devices to
see if they either a) chat without listening (GPS), b) raise various
modem lines high, c) respond to AT, ATI, ATCGSM, etc
A slight subtlety is that we need to allow for someone to plug in the
serial to usb adaptor without the modem powered on, and hence probing
might take an unknown amount of time (wow doesn't USB solve a lot of
issues...)
> If you can combine the two above parts then you might be able to detect
> modem devices automatically, Marcel had a few ideas how to do this, but
> nothing concrete has been done yet.
I need to implement something pretty imminently - just wondering if
ofono had something to help. For example is there a "probe this port
and tell me what modem is on the end" feature? That way I could point it
at my suspected serial port and ask ofono to scan it?
Thanks
Ed W
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Serial Port modems - can ofono help?
2011-06-14 14:28 ` Ed W
@ 2011-06-13 9:20 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2011-06-13 9:20 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]
Hi Ed,
> Thanks could you offer me some reference to what you mean here? ie does
> ofono offer me something over and above simply a udev rule firing on the
> correct subsystem (and perhaps limiting by driver name if we really want
> to tighten up the rule?)
>
Nope, it really doesn't. Well besides maybe an easy integration point
with GAtChat library.
>> If you can combine the two above parts then you might be able to detect
>> modem devices automatically, Marcel had a few ideas how to do this, but
>> nothing concrete has been done yet.
>
> I need to implement something pretty imminently - just wondering if
> ofono had something to help. For example is there a "probe this port
> and tell me what modem is on the end" feature? That way I could point it
> at my suspected serial port and ask ofono to scan it?
Nope, there isn't anything like that. We have plans to implement
something similar, but in the end most of our modems can be easily
detected via udev, or are on platforms with a well known configuration
(e.g. the Freerunner, etc). So the motivation to do so is not high
right now. If you manage to make this work nicely (either with oFono or
something else) we'd love to hear about it.
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-14 14:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-12 11:30 Serial Port modems - can ofono help? Ed W
2011-06-11 13:30 ` Denis Kenzior
2011-06-14 14:28 ` Ed W
2011-06-13 9:20 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.