From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Running ofono on Raspberry Pi and SIM800
Date: Wed, 18 Oct 2017 11:53:24 -0500 [thread overview]
Message-ID: <080ef647-33b2-c6cd-7a9c-8d0004eecd96@gmail.com> (raw)
In-Reply-To: <84091508344811@web57j.yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 2010 bytes --]
Hi Arsenijs,
Just FYI, we don't top-post on this mailing list.
On 10/18/2017 11:40 AM, Pičugins Arsenijs wrote:
> Thank you, that was a great answer. I'll focus on one part for now:
>
> Is it possible for me to run ofono from command-line, without involving udev? I'm asking this because, in my application, I'm using the UART as a debugging UART for first 30 seconds of phone's boot, then, if there's no activity (or other trigger set), I enable the GSM modem and run the GSM backend. Is there a reason why ofono is not capable to be run this way (provided it's not capable of this)? Is there a way I can just do the setup that udev would normally do, but manually? If so, where should I look for pointers - code, documentation or somewhere else? (doc/sim900-modem.txt? plugins/udevng.c?)
oFono can be started any time you wish. udev is just normally used to
detect the hardware. Either via probing the USB bus, or in the case of
serial devices via external configuration (e.g. udev rules). Without
udev oFono would not know what TTY corresponds to the modem. E.g. on
some platforms it may be ttyS0 and others it would be /dev/ttySAC0, or
whatever.
The oFono plugins / modem drivers are free to do anything they want. So
if you want to hardcode the behavior, that is fine. You can always
implement your own detection logic. For example plugins/phonesim.c uses
a config file, plugins/rildev.c uses getenv. The possibilities are endless.
udev is the preferred approach, other approaches might not be palatable
to upstream.
In terms of documentation or pointers, it really depends on your
hardware setup. If you have a traditional AT command based modem with a
multiplexer, then take a look at doc/calypso-modem.txt and
plugins/calypso.c. This is the modem used on the original Freerunner.
If you have multiplexing handled by the kernel, then the SIM900 docs /
plugin might be applicable.
>
> Best regards,
> Arsenijs.
>
Regards,
-Denis
prev parent reply other threads:[~2017-10-18 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.19.1508266802.24405.ofono@ofono.org>
2017-10-18 9:49 ` Running ofono on Raspberry Pi and SIM800 =?unknown-8bit?q?Pi=C4=8Dugins?= Arsenijs
2017-10-18 16:15 ` Denis Kenzior
2017-10-18 16:40 ` =?unknown-8bit?q?Pi=C4=8Dugins?= Arsenijs
2017-10-18 16:53 ` Denis Kenzior [this message]
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=080ef647-33b2-c6cd-7a9c-8d0004eecd96@gmail.com \
--to=denkenz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox