Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Jernej Turnsek
Hi Alan,

I have meant my app is processing its own commands as long as the quit
command is entered or CTRL-C is pressed.

BR,
Jernej

On Tue, Jan 23, 2024 at 9:15 PM Alan C. Assis  wrote:

> Hi Jernej,
> by not returning to NSH do you mean after pressing Ctrl+C ?
>
> Maybe this tutorial will help:
> https://www.youtube.com/watch?v=hszt15lTsnA
>
> BR,
>
> Alan
>
> On Tue, Jan 23, 2024 at 4:56 PM Jernej Turnsek 
> wrote:
>
> > I am running an app in the foreground. I didn't have waitpid enabled.
> Now I
> > have and it works as it should.
> > BTW, my app is not exiting to nsh. Thanks.
> >
> > On Tue, Jan 23, 2024 at 7:38 PM Gregory Nutt 
> wrote:
> >
> > > Are you running app in foreground or background from NSH, i.e.,
> > >
> > > nsh> app
> > > nsh> app &
> > >
> > > The second should show this kind of interleaved behavior.  In the
> first,
> > > nsh should block until the app exits.
> > >
> > > Do you have waitpid() enabled?  The first behavior depends on the
> > > availability of waitpid()
> > >
> > > Does you app exit and return to nsh after each command?
> > >
> > > On 1/23/2024 11:19 AM, Jernej Turnsek wrote:
> > > > Hi,
> > > > I would like to develop my own builtin application to process some
> > custom
> > > > commands. This app is started from nsh over the serial console. I
> have
> > > > duplicated the code from ftpc example and when application is started
> > it
> > > > start to process stdin for commands. But this functionality is mixed
> > with
> > > > nsh own processing of commands, thus when I hit Enter, I get app>
> line,
> > > > when hit Enter again I get nsh> command line. Entering commands like
> > > > "help", I get hl on nsh and ep on my app command processor. I am
> > confused
> > > > here. I did not test ftpc example, but I presume it is not working
> > > either.
> > > > Both apps are using readline_stream API for getting the commands.
> > > >
> > > > Regards,
> > > > Jernej
> > > >
> > >
> > >
> >
>


RE: NuttX Workshop 2024 - event planning

2024-01-23 Thread alin.jerpe...@sony.com
Hi Alan,

>From my knowledge there are no conferences in that period in JP. AFAIK the 
>conferences are at the beginning of December and everybody is busy to attend 
>or organize them.
Considering vacation plans in Europe and I still think that 10-17 Jun would be 
a really good period. I will send the invitations for this Friday then we can 
talk live and decide if this date suits us all.

We already have the new logos for 2024 and I will run the website through a 
colleague (professional editor) to update it for 2024. The aim should be that 
latest on Monday we have a date for the event, dates for CFP and basic travel 
information for attendees.

Best regards
Alin

From: Alan C. Assis 
Sent: den 23 januari 2024 20:52
To: dev@nuttx.apache.org
Subject: Re: NuttX Workshop 2024 - event planning

Hi Alin, I used Google Flights to comparece prices and the values are basically 
the same from May to August. If we have some bigger embedded/computer 
conference happening in Japan around that time, we could put NuttX Workshop 
just after that,


Hi Alin,



I used Google Flights to comparece prices and the values are basically the

same from May to August.



If we have some bigger embedded/computer conference happening in Japan

around that time, we could put NuttX Workshop just after that, this way

people could participate in both events.



Let us define the date soon to give people enough time to submit proposals

and organize the flight.



For the Internet, while visiting my company in Canada I discovered

something very useful: install Airalo app and buy an eSIM with a low cost

Internet plan.

For Japan they have the lowest plan of 1GB data valid for 7 days for just

U$ 4.50 or 10GB valid for 30 days for U$ 9.00.



Best Regards,



Alan


Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Alan C. Assis
Hi Jernej,
by not returning to NSH do you mean after pressing Ctrl+C ?

Maybe this tutorial will help:
https://www.youtube.com/watch?v=hszt15lTsnA

BR,

Alan

On Tue, Jan 23, 2024 at 4:56 PM Jernej Turnsek 
wrote:

> I am running an app in the foreground. I didn't have waitpid enabled. Now I
> have and it works as it should.
> BTW, my app is not exiting to nsh. Thanks.
>
> On Tue, Jan 23, 2024 at 7:38 PM Gregory Nutt  wrote:
>
> > Are you running app in foreground or background from NSH, i.e.,
> >
> > nsh> app
> > nsh> app &
> >
> > The second should show this kind of interleaved behavior.  In the first,
> > nsh should block until the app exits.
> >
> > Do you have waitpid() enabled?  The first behavior depends on the
> > availability of waitpid()
> >
> > Does you app exit and return to nsh after each command?
> >
> > On 1/23/2024 11:19 AM, Jernej Turnsek wrote:
> > > Hi,
> > > I would like to develop my own builtin application to process some
> custom
> > > commands. This app is started from nsh over the serial console. I have
> > > duplicated the code from ftpc example and when application is started
> it
> > > start to process stdin for commands. But this functionality is mixed
> with
> > > nsh own processing of commands, thus when I hit Enter, I get app> line,
> > > when hit Enter again I get nsh> command line. Entering commands like
> > > "help", I get hl on nsh and ep on my app command processor. I am
> confused
> > > here. I did not test ftpc example, but I presume it is not working
> > either.
> > > Both apps are using readline_stream API for getting the commands.
> > >
> > > Regards,
> > > Jernej
> > >
> >
> >
>


Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Jernej Turnsek
I am running an app in the foreground. I didn't have waitpid enabled. Now I
have and it works as it should.
BTW, my app is not exiting to nsh. Thanks.

On Tue, Jan 23, 2024 at 7:38 PM Gregory Nutt  wrote:

> Are you running app in foreground or background from NSH, i.e.,
>
> nsh> app
> nsh> app &
>
> The second should show this kind of interleaved behavior.  In the first,
> nsh should block until the app exits.
>
> Do you have waitpid() enabled?  The first behavior depends on the
> availability of waitpid()
>
> Does you app exit and return to nsh after each command?
>
> On 1/23/2024 11:19 AM, Jernej Turnsek wrote:
> > Hi,
> > I would like to develop my own builtin application to process some custom
> > commands. This app is started from nsh over the serial console. I have
> > duplicated the code from ftpc example and when application is started it
> > start to process stdin for commands. But this functionality is mixed with
> > nsh own processing of commands, thus when I hit Enter, I get app> line,
> > when hit Enter again I get nsh> command line. Entering commands like
> > "help", I get hl on nsh and ep on my app command processor. I am confused
> > here. I did not test ftpc example, but I presume it is not working
> either.
> > Both apps are using readline_stream API for getting the commands.
> >
> > Regards,
> > Jernej
> >
>
>


Re: NuttX Workshop 2024 - event planning

2024-01-23 Thread Alan C. Assis
Hi Alin,

I used Google Flights to comparece prices and the values are basically the
same from May to August.

If we have some bigger embedded/computer conference happening in Japan
around that time, we could put NuttX Workshop just after that, this way
people could participate in both events.

Let us define the date soon to give people enough time to submit proposals
and organize the flight.

For the Internet, while visiting my company in Canada I discovered
something very useful: install Airalo app and buy an eSIM with a low cost
Internet plan.
For Japan they have the lowest plan of 1GB data valid for 7 days for just
U$ 4.50 or 10GB valid for 30 days for U$ 9.00.

Best Regards,

Alan


Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Gregory Nutt

Are you running app in foreground or background from NSH, i.e.,

nsh> app
nsh> app &

The second should show this kind of interleaved behavior.  In the first, 
nsh should block until the app exits.


Do you have waitpid() enabled?  The first behavior depends on the 
availability of waitpid()


Does you app exit and return to nsh after each command?

On 1/23/2024 11:19 AM, Jernej Turnsek wrote:

Hi,
I would like to develop my own builtin application to process some custom
commands. This app is started from nsh over the serial console. I have
duplicated the code from ftpc example and when application is started it
start to process stdin for commands. But this functionality is mixed with
nsh own processing of commands, thus when I hit Enter, I get app> line,
when hit Enter again I get nsh> command line. Entering commands like
"help", I get hl on nsh and ep on my app command processor. I am confused
here. I did not test ftpc example, but I presume it is not working either.
Both apps are using readline_stream API for getting the commands.

Regards,
Jernej





Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Jernej Turnsek
Never mind. I have found a solution in the Nuttx Shell documentation, where
the CONFIG_SCHED_WAITPID option is described to force synchronous builtin
app execution, instead of asynchronous.

On Tue, Jan 23, 2024 at 6:19 PM Jernej Turnsek 
wrote:

> Hi,
> I would like to develop my own builtin application to process some custom
> commands. This app is started from nsh over the serial console. I have
> duplicated the code from ftpc example and when application is started it
> start to process stdin for commands. But this functionality is mixed with
> nsh own processing of commands, thus when I hit Enter, I get app> line,
> when hit Enter again I get nsh> command line. Entering commands like
> "help", I get hl on nsh and ep on my app command processor. I am confused
> here. I did not test ftpc example, but I presume it is not working either.
> Both apps are using readline_stream API for getting the commands.
>
> Regards,
> Jernej
>


Builtin app with its own command processor on stdin

2024-01-23 Thread Jernej Turnsek
Hi,
I would like to develop my own builtin application to process some custom
commands. This app is started from nsh over the serial console. I have
duplicated the code from ftpc example and when application is started it
start to process stdin for commands. But this functionality is mixed with
nsh own processing of commands, thus when I hit Enter, I get app> line,
when hit Enter again I get nsh> command line. Entering commands like
"help", I get hl on nsh and ep on my app command processor. I am confused
here. I did not test ftpc example, but I presume it is not working either.
Both apps are using readline_stream API for getting the commands.

Regards,
Jernej


Re: NuttX Workshop 2024 - event planning

2024-01-23 Thread Tomek CEDRO
On Tue, Jan 23, 2024 at 10:37 AM Alin.Jerpelea wrote:
> For every event we had weekly meetings to plan the event. For all past events 
> those meetings were hosted Friday 19:00-20:00.
> I will send the invitation ASAP for the meeting to all people that expressed 
> interest to help with the event.
> I propose that we start the meetings this Friday if this works for everybody

TANK U :-)

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


RE: NuttX Workshop 2024 - event planning

2024-01-23 Thread alin.jerpe...@sony.com
Hi Tomek,

For every event we had weekly meetings to plan the event. For all past events 
those meetings were hosted Friday 19:00-20:00.

I will send the invitation ASAP for the meeting to all people that expressed 
interest to help with the event.

I propose that we start the meetings this Friday if this works for everybody

Best regards
Alin


From: Tomek CEDRO 
Sent: den 22 januari 2024 22:10
To: dev@nuttx.apache.org
Subject: Re: NuttX Workshop 2024 - event planning

On Mon, Jan 22, 2024 at 8: 10 AM Alin Jerpelea wrote: > time is flying and we 
are almost at the end of January > I think that we should have a live meeting 
to plan the website and open the > CFP to give people time plan the trip. I
ZjQcmQRYFpfptBannerStart
Caution : This email originated from outside of Sony.
Do not click links or open any attachments unless you recognize the sender and 
know the content is safe. Please report phishing if unsure.
ZjQcmQRYFpfptBannerEnd

On Mon, Jan 22, 2024 at 8:10 AM Alin Jerpelea wrote:

> time is flying and we are almost at the end of January

> I think that we should have a live meeting to plan the website and open the

> CFP to give people time plan the trip. I would recommend to host the event

> Thursday-Friday to avoid the jet-lag and encourage local participation .



On the other international conferences that I help to organize and

execute we have an online all-hand-on-deck meeting every two weeks for

several months in advance.. while closer to the event there may be

more meetings as required.



We can use google calendar + meet + docs.. or we could use existing

Discord server for meetings?



How about initial meeting this week? What would be preferred day and UTC time?



Wednesday around 20:00 UTC would be best for me but I can adapt :-) I

am CET (UTC+1) and in summer time CEST (UTC+2) timezone (Warsaw Time).



I can also help in updating the even website :-)



Tomek



ps/2: Twitch.TV platform gets popular and I think we should create

NuttX profile there and also use for live stream in addition to

YouTube?



--

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