Re: Interface between LTE devices and Linux

2018-02-13 Thread Jeffrey Walton
On Tue, Feb 13, 2018 at 10:30 AM, Bjørn Mork  wrote:
> Jeffrey Walton  writes:
>
>> In addition to GKH's answer, what I have seen...
>>
>> Some Android code to talk to the radio is written in plain java, like
>> https://chromium.googlesource.com/android_tools/+/18728e9dd5dd66d4f5edf1b792e77e2b544a1cb0/sdk/sources/android-19/com/android/internal/telephony/CommandsInterface.java
>  .
> Well, that only talks to the RIL so it is pretty high up the stack.  If
> you want the software that actually implement the 3GPP stuff, then you'd
> either give Qualcomm your right arm and your first born or you look at
> what the Osmocom guys are doing.

Oh, OK. I thought the AT commands were sent directly to the chip and
the chip parsed/decoded them. But I have to admit I've never gone
below the AT commands being sent to the radio.

Jeff

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Interface between LTE devices and Linux

2018-02-13 Thread Bjørn Mork
Jeffrey Walton  writes:

> In addition to GKH's answer, what I have seen...
>
> Some Android code to talk to the radio is written in plain java, like
> https://chromium.googlesource.com/android_tools/+/18728e9dd5dd66d4f5edf1b792e77e2b544a1cb0/sdk/sources/android-19/com/android/internal/telephony/CommandsInterface.java
 .

Well, that only talks to the RIL so it is pretty high up the stack.  If
you want the software that actually implement the 3GPP stuff, then you'd
either give Qualcomm your right arm and your first born or you look at
what the Osmocom guys are doing.

The RIL is closed source too, and it will only use some high level
protocol like QMI or AT commands to send requests to the modem firmware
anyway. You can skip both the java code and the closed source RIL and go
straight for oFono or ModeManager if you want stuff at that layer.  But
I understood the original request as wanting to see more detail at the
actual radio layer.  That's difficult.  But you might get some useful
info out of the debug interfaces.


Bjørn

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Interface between LTE devices and Linux

2018-02-13 Thread Jeffrey Walton
On Thu, Feb 8, 2018 at 12:10 PM, jjDaNiMoTh  wrote:
> Hello everyone,
>
> There is an example of LTE netdevice in the Linux source tree?
>
> In particular, I would like to know if there is any device driver that
> implements the layers required by the 3GPP standard. I imagine that it
> should exist something since Android is communicating over LTE, but I can't
> find any reference. What I fear more is that everything related to LTE is
> inside the closed device firmware, and data is sent from the TC layer into
> this black-box firmware through a sort of API. In this case, it would be
> wonderful to know where, exactly, this API is used, to try to understand
> what the firmware is doing.

In addition to GKH's answer, what I have seen...

Some Android code to talk to the radio is written in plain java, like
https://chromium.googlesource.com/android_tools/+/18728e9dd5dd66d4f5edf1b792e77e2b544a1cb0/sdk/sources/android-19/com/android/internal/telephony/CommandsInterface.java
.

The GNU Radio folks may have relevant information. I seem to recall
they work from userland and not the kernel, though.

Jeff

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Interface between LTE devices and Linux

2018-02-12 Thread Nuno Sá
On 02/08/2018 06:18 PM, Greg KH wrote:
> On Thu, Feb 08, 2018 at 06:10:59PM +0100, jjDaNiMoTh wrote:
>> Hello everyone,
>>
>> There is an example of LTE netdevice in the Linux source tree?
>>
>> In particular, I would like to know if there is any device driver that
>> implements the layers required by the 3GPP standard. I imagine that it
>> should exist something since Android is communicating over LTE, but I can't
>> find any reference.
> 
> That communication happens usually through a "dumb" serial-like
> connection to the LTE modem.  All of the modem commands are handled in
> userspace, the kernel doesn't care about anything relating to this at
> all (and it really shouldn't).
> 
>> What I fear more is that everything related to LTE is inside the
>> closed device firmware, and data is sent from the TC layer into this
>> black-box firmware through a sort of API. In this case, it would be
>> wonderful to know where, exactly, this API is used, to try to
>> understand what the firmware is doing.
> 
> Look at the Android AOSP images for the location for most of this logic,
> there should be a Telephony HAL somewhere in there that handles the
> heavy-lifting of all of this logic.
> 

As far as i know in AOSP you can look into hardware/ril for the modem
integration. There is a generic RIL daemon which interacts with a RIL
library which is vendor specific and is responsible to configure the
hardware. And that can be a problem because the vendor software most
likely is not open source but you may always give a look to the daemon
which is part of the

> Good luck!
> 
> greg k-h
> 
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Interface between LTE devices and Linux

2018-02-08 Thread Greg KH
On Thu, Feb 08, 2018 at 06:10:59PM +0100, jjDaNiMoTh wrote:
> Hello everyone,
> 
> There is an example of LTE netdevice in the Linux source tree?
> 
> In particular, I would like to know if there is any device driver that
> implements the layers required by the 3GPP standard. I imagine that it
> should exist something since Android is communicating over LTE, but I can't
> find any reference.

That communication happens usually through a "dumb" serial-like
connection to the LTE modem.  All of the modem commands are handled in
userspace, the kernel doesn't care about anything relating to this at
all (and it really shouldn't).

> What I fear more is that everything related to LTE is inside the
> closed device firmware, and data is sent from the TC layer into this
> black-box firmware through a sort of API. In this case, it would be
> wonderful to know where, exactly, this API is used, to try to
> understand what the firmware is doing.

Look at the Android AOSP images for the location for most of this logic,
there should be a Telephony HAL somewhere in there that handles the
heavy-lifting of all of this logic.

Good luck!

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Interface between LTE devices and Linux

2018-02-08 Thread jjDaNiMoTh
Hello everyone,

There is an example of LTE netdevice in the Linux source tree?

In particular, I would like to know if there is any device driver that
implements the layers required by the 3GPP standard. I imagine that it
should exist something since Android is communicating over LTE, but I can't
find any reference. What I fear more is that everything related to LTE is
inside the closed device firmware, and data is sent from the TC layer into
this black-box firmware through a sort of API. In this case, it would be
wonderful to know where, exactly, this API is used, to try to understand
what the firmware is doing.

Thank you!!

-- 
Stay open, be free.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies