From: Ed W <lists@wildgooses.com>
To: ofono@ofono.org
Subject: Re: Serial Port modems - can ofono help?
Date: Tue, 14 Jun 2011 15:28:36 +0100 [thread overview]
Message-ID: <4DF77014.2090002@wildgooses.com> (raw)
In-Reply-To: <4DF36DED.1020102@gmail.com>
[-- 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
next prev parent reply other threads:[~2011-06-14 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-06-13 9:20 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF77014.2090002@wildgooses.com \
--to=lists@wildgooses.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.