Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-02 Thread Lee, Lup Yuen
What makes PinePhone a phone? Because it will make Phone Calls and send
Text Messages! Today we turn NuttX on PinePhone into a Feature Phone…

1. Outgoing and Incoming Phone Calls over 4G

2. Send and receive SMS Text Messages

3. Why we prefer Encoded PDU Messages for SMS

4. Programming the 4G LTE Modem with NuttX

5. Doing all these over UART vs USB

6. Upcoming AT Modem API for robust parsing, graceful timeout (plus retry)
and notification callbacks

Read about it here...

https://lupyuen.github.io/articles/lte2

Lup


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-03 Thread Alan C. Assis
Hi Lup,

Very nice!

Are you planing to create FeaturePhone interface for PinePhone?

BR,

Alan

On 5/3/23, Lee, Lup Yuen  wrote:
> What makes PinePhone a phone? Because it will make Phone Calls and send
> Text Messages! Today we turn NuttX on PinePhone into a Feature Phone…
>
> 1. Outgoing and Incoming Phone Calls over 4G
>
> 2. Send and receive SMS Text Messages
>
> 3. Why we prefer Encoded PDU Messages for SMS
>
> 4. Programming the 4G LTE Modem with NuttX
>
> 5. Doing all these over UART vs USB
>
> 6. Upcoming AT Modem API for robust parsing, graceful timeout (plus retry)
> and notification callbacks
>
> Read about it here...
>
> https://lupyuen.github.io/articles/lte2
>
> Lup
>


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-03 Thread Lee, Lup Yuen
Thanks Alan! Yep an LVGL GUI for Feature Phone will be super helpful for
testing Phone Calls and SMS Messages on PinePhone.

First I need to figure out how to parse AT Command Responses reliably on
NuttX :-)

https://lupyuen.github.io/articles/lte2#at-modem-api

Lup

On Wed, May 3, 2023 at 8:08 PM Alan C. Assis  wrote:

> Hi Lup,
>
> Very nice!
>
> Are you planing to create FeaturePhone interface for PinePhone?
>
> BR,
>
> Alan
>
> On 5/3/23, Lee, Lup Yuen  wrote:
> > What makes PinePhone a phone? Because it will make Phone Calls and send
> > Text Messages! Today we turn NuttX on PinePhone into a Feature Phone…
> >
> > 1. Outgoing and Incoming Phone Calls over 4G
> >
> > 2. Send and receive SMS Text Messages
> >
> > 3. Why we prefer Encoded PDU Messages for SMS
> >
> > 4. Programming the 4G LTE Modem with NuttX
> >
> > 5. Doing all these over UART vs USB
> >
> > 6. Upcoming AT Modem API for robust parsing, graceful timeout (plus
> retry)
> > and notification callbacks
> >
> > Read about it here...
> >
> > https://lupyuen.github.io/articles/lte2
> >
> > Lup
> >
>


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-03 Thread Tomek CEDRO
Excellent job Lup! Congratz! :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


RE: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-03 Thread alin.jerpe...@sony.com
This is great progress !

With an UI will be easier to handle 

Best regards
Alin


-Original Message-
From: Tomek CEDRO  
Sent: den 4 maj 2023 03:38
To: dev@nuttx.apache.org
Subject: Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

Excellent job Lup! Congratz! :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info 


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-04 Thread Tomek CEDRO
On Thu, May 4, 2023 at 8:12 AM alin.jerpe...@sony.com wrote:
> This is great progress !
> With an UI will be easier to handle

Some important architectural decisions will have to take place when
designing the UI part for whole system and userland applications and
their interoperability (including external application store or
something like that in future).

I have been fighting with "mobile applications" for Android and iOS
for years and there is no good stable and coherent solution right
now.. and probably there will never be as these enforced changes seems
to be part of the design.. in fact it all seems a "moving disaster"
for me, aka "catch the rabbit" game.

I worked with native tools (Android Studio and XCode), cross platform
JavaScript (ReactNative, Vue), recently Python (Kivy). I also at some
point considered using LVGL on SDL2 then putting it all together into
a mobile application. Recently I even considered compiling whole NuttX
+ LVGL + SDL and linking into a mobile application, after seeing NuttX
+ LVGL demo on my desktop. There is still a unavoidable dependency on
a mobile platform SDK, NDK, etc, that constantly changes, and it is
hard to catch. I hope things will never get that way in NuttX :-)

NuttX as independent (mobile) platform seems unavoidable for people
that just want simple things working. Maybe even on older hardware
that will again provide week or more battery life time :-)

We just cannot get ourselves into a "modern mobile world mess" please :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-04 Thread Nathan Hartman
On Thu, May 4, 2023 at 7:52 AM Tomek CEDRO  wrote:

> On Thu, May 4, 2023 at 8:12 AM alin.jerpe...@sony.com wrote:
> > This is great progress !
> > With an UI will be easier to handle
>
> Some important architectural decisions will have to take place when
> designing the UI part for whole system and userland applications and
> their interoperability (including external application store or
> something like that in future).
>
> I have been fighting with "mobile applications" for Android and iOS
> for years and there is no good stable and coherent solution right
> now.. and probably there will never be as these enforced changes seems
> to be part of the design.. in fact it all seems a "moving disaster"
> for me, aka "catch the rabbit" game.
>
> I worked with native tools (Android Studio and XCode), cross platform
> JavaScript (ReactNative, Vue), recently Python (Kivy). I also at some
> point considered using LVGL on SDL2 then putting it all together into
> a mobile application. Recently I even considered compiling whole NuttX
> + LVGL + SDL and linking into a mobile application, after seeing NuttX
> + LVGL demo on my desktop. There is still a unavoidable dependency on
> a mobile platform SDK, NDK, etc, that constantly changes, and it is
> hard to catch. I hope things will never get that way in NuttX :-)
>
> NuttX as independent (mobile) platform seems unavoidable for people
> that just want simple things working. Maybe even on older hardware
> that will again provide week or more battery life time :-)
>
> We just cannot get ourselves into a "modern mobile world mess" please :-)
>
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>

I have seen those fast-moving-target frameworks described as having the
"lifecycle of yogurt" in multiple places around the internet.

+1 for stability!!!

Nathan


Re: Article: NuttX for PinePhone: Phone Calls and Text Messages

2023-05-04 Thread Tomek CEDRO
On Thu, May 4, 2023 at 7:47 PM Nathan Hartman wrote:
> I have seen those fast-moving-target frameworks described as having the
> "lifecycle of yogurt" in multiple places around the internet.
>
> +1 for stability!!!

Hahahah I also like and use that term, but it is not fun to work with
them :-) :-)

In one of my projects where application is supposed to work in shell
and graphical mode there are sets of functions/objects that perform
operation and those operations can be called from independent modules
that provide CLI and GUI access. There are even different GUI
frameworks possible to use (i.e. QT, FLTK, etc) by using different ui
module of the application, or none, just the CLI. Maybe this could be
kind of approach for NuttX Apps that should provide CLI interface by
default and optional GUI (i.e. LVGL) when compiled for "NuttX
Mobile"..? :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info