Is the NuttX BLE Stack broken? //was: Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-10 Thread Alan C. Assis
Hi Lwazi, I don't know about CC2564, but BLE Stack was working recently to ESP32, ESP32C3, nRF52, etc Is it related to this issue: https://github.com/apache/nuttx/issues/8767 BR, Alan On 3/9/23, Lwazi Dube wrote: > On Wed, 8 Mar 2023 at 13:16, Alan C. Assis wrote: >> >> >> Welcome back go

Re: NuttX Hardware

2023-03-10 Thread Alan C. Assis
Ok, so we need to organize a way to ship these boards to someone that will distribute it or that is interested to help to create a farm test bench. BR, Alan On 3/10/23, Gregory Nutt wrote: > they can't hand carry any significant amount of boards. This probably > 5-6 freight boxes of boards.

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Sebastien Lorquet
Hello, Thank you for this good change for better posix compliance. In my setup nsh is used via a stm32h7 serial port. I have my updated custom apps with your changes and everything works as expected. I am using readline. For better coverage I also tested CLE (with history) with NSH and did

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
I'm guessing it is around 5-6 freight boxes of hardware, perhaps more.  It is not really possible to hand carry any meaningful part of that. On 3/10/2023 6:54 AM, Alan C. Assis wrote: Hi Tomek, That is a good idea too! Greg, my uncle and my cousin will be in Costa Rica in the following

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
they can't hand carry any significant amount of boards.  This probably 5-6 freight boxes of boards.  I will not be giving or sending anyone individual boards.  Take all or none. On 3/10/2023 6:54 AM, Alan C. Assis wrote: Hi Tomek, That is a good idea too! Greg, my uncle and my cousin will

Hardware Listing

2023-03-10 Thread Alan C. Assis
Hi Everyone, I updated the Brennan spreadsheet with all boards existing on NuttX currently. Please find the link below: https://docs.google.com/spreadsheets/d/1fiOiC7vo6AC5IYdZqJ3WG0KGEXS1zwW4owMO1q1IaTo/edit?usp=sharing For future reference a did a quick shell script to do this work, just

Re: NuttX Hardware

2023-03-10 Thread Alan C. Assis
Hi Greg, Yes, I understand and agree! Maybe if it was possible to Apache take care of if for us, it should be the best of the word, because it shouldn't be tied to a single person, but a Apache NuttX Library. I'm CC the Apache Secretary, maybe he could give us some idea. BTW, I'm interested to

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
Thank you for this good change for better posix compliance. The TERMIOS changes are basically good and does help with POSIX compliance, but the console ECHO behavior is not and has nothing to do with POSIX compliance.  POSIX does not deal with implementation.  We can look at standard

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
How do you plan to handle incoming vt100 escape sequences.  I see you kludged around one, but there are hundreds.  TheY are used in BAS, pdcurses and other apps extensively. You are ruining that critical vt100 capability and breaking a lot of things Has anyone done any serious CLE

Re: NuttX Hardware

2023-03-10 Thread Nathan Hartman
Earlier someone said they might be traveling to Costa Rica. Perhaps they would be willing to come to you and pick up the boxes? On Fri, Mar 10, 2023 at 8:44 AM Gregory Nutt wrote: > I don't think we should "distribute them".Certainly I don't want > that job. I suggested something like a

Changes in Common Line Editor

2023-03-10 Thread Qi3 Huang 黄齐
Hi all: I've submitted a new patch to GitHub (https://github.com/apache/nuttx-apps/pull/1650), in this is to maintain the cursor position in cle's internal instead of query from terminal, this avoid the query operation before each line read operation. Then the cle's behavior is much

Re: Changes in Common Line Editor

2023-03-10 Thread Sebastien Lorquet
Well, there it is https://github.com/apache/nuttx-apps/issues/1653 Note that I dont get this behaviour with readline. We can continue to discuss this in the issue. Sebastien Le 10/03/2023 à 11:47, Sebastien Lorquet a écrit : Hi, I have tested CLE and noticed this side effect. My system

Re: NuttX Hardware

2023-03-10 Thread Alan C. Assis
Hi Tomek, That is a good idea too! Greg, my uncle and my cousin will be in Costa Rica in the following weeks. Maybe we can ask them to get some boards with you, but of course not many boards because otherwise they will have headache in the airport when returning to Brazil. What do you think?

Re: NuttX Hardware

2023-03-10 Thread Sebastien Lorquet
Hello, I think that, in order to organize, people need a better idea of what "around 5-6 freight boxes of hardware, perhaps more" means exactly. That would help plan what is needed to get them to another location. Sebastien Le 10/03/2023 à 14:51, Alan C. Assis a écrit : Hi Greg, Yes, I

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Xiang Xiao
The only problem is that terminal is optional: https://github.com/apache/nuttx/blob/master/drivers/serial/Kconfig#L167-L174 So, if the user doesn't enable CONFIG_SERIAL_TERMIOS in defconfig, readline will stop working due to failure to disable ECHO. Three option here: 1. Remove SERIAL_TERMIOS

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
Earlier someone said they might be traveling to Costa Rica. Perhaps they would be willing to come to you and pick up the boxes? Sure!  I would need some advance notice because there are no boxes yet.  The boards are all in small plastic storage boxes (aka, Tupperware) and I need to bag,

[Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
Hello everyone: I had submit a PR in last week https://github.com/apache/nuttx/pull/8691, this change makes NuttX align with other posix compatible system like linux. This improved experience like telnet and WAMR's repl, but also introduced some issues: 1. Don't echo again in

Re: Changes in Common Line Editor

2023-03-10 Thread Sebastien Lorquet
Hi, I have tested CLE and noticed this side effect. My system has background tasks at boot. these tasks write messages on the console. At boot, a DHCP thread gets an IP after a delay. When I typed the help command, the first h appeared twice: at first position of the line, and also at the

Re: Changes in Common Line Editor

2023-03-10 Thread Gregory Nutt
On 3/10/2023 4:55 AM, Sebastien Lorquet wrote: Well, there it is https://github.com/apache/nuttx-apps/issues/1653 Note that I dont get this behaviour with readline. We can continue to discuss this in the issue. Sebastien There are bandaid fixes going in that try to recover from the primary

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
I don't think we should "distribute them".    Certainly I don't want that job.  I suggested something like a library where people can check and return boards.  But I don't want to be a librarian either. Shipping is very difficult here.  There is no home pickup of mail and all of the post

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Sebastien Lorquet
Definitely a good thing we get the opportunity to talk about these changes on this list, then. We need technical overview from several people to determine the best way to do things. Sebastien Le 10/03/2023 à 14:49, Gregory Nutt a écrit : Thank you for this good change for better posix

RE: [Breaking change] Echo character by serial driver

2023-03-10 Thread spudaneco
How do you plan to handle incoming vt100 escape sequences.  I see you kludged around one, but there are hundreds.  TheY are used in BAS, pdcurses and other apps extensively.You are ruinking that critical vt100 capability and breaking a lot of thingsSent from my Galaxy Original message

Re: Hardware Listing

2023-03-10 Thread Alan C. Assis
I already sent Editor permission for all those listed in the Spreasheet. If someone else here is interested to help, just ping me. BR, Alan On 3/10/23, Alan C. Assis wrote: > Hi Everyone, > > I updated the Brennan spreadsheet with all boards existing on NuttX > currently. > > Please find the

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
I think that, in order to organize, people need a better idea of what "around 5-6 freight boxes of hardware, perhaps more" means exactly. That would help plan what is needed to get them to another location. I won't know how many boxes there would be until they are bagged and boxed.

Re: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
nsh over usb works with readline/cle now. In face, isconsole in current implementation is more like a very tiny `line driver` inside the serial driver. That is very interesting.  The serial driver (drivers/usbdev/cdcacm.c).  Does not include any of your change. It does not use

答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
Emm, I confirmed that one of my test platform (esp32c3), its cdcacm driver implement the uart_ops, but rp2040 seems not. CLE should works since it will override the content from driver ECHO if over serial driver, but readline shouldn't echo input. I'll test more to confirm it.

答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
> Telnet is the same. It does not use any of the changes to serial.c. It > redirects stdin and stdout to the socket interface exchages raw data > with the host. It has now TERMIOS support. I'm sure telnet will echo input itself, so it works with some display issues before.

Re: 答复: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 10:05 AM, Qi3 Huang 黄齐 wrote: Thanks for point that, so my change will affect them by serial.c since it's in common logic (excatly, is in uart_read()). You are right.  But that is not true of telnet, is it?

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
Earlier someone said they might be traveling to Costa Rica. Perhaps they would be willing to come to you and pick up the boxes? Sure! I would need some advance notice because there are no boxes yet. The boards are all in small plastic storage boxes (aka, Tupperware) and I need to bag, label, and

Re: NuttX Hardware

2023-03-10 Thread Brennan Ashton
If this is something people really do want. I'm happy to hold them in the US and help lend out and cover this shipping to get it from Costa Rica. Sounds like from a customs and tax standpoint that might be easier? --Brennan. On Fri, Mar 10, 2023, 10:02 AM Gregory Nutt wrote: > Earlier someone

Re: Hardware Listing

2023-03-10 Thread raiden00pl
Hi Alan, please add me to the Spreasheet. pt., 10 mar 2023 o 14:53 Alan C. Assis napisał(a): > I already sent Editor permission for all those listed in the Spreasheet. > > If someone else here is interested to help, just ping me. > > BR, > > Alan > > On 3/10/23, Alan C. Assis wrote: > > Hi

答复: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
Thanks for point that, so my change will affect them by serial.c since it's in common logic (excatly, is in uart_read()). 发件人: Gregory Nutt 发送时间: 2023年3月10日 23:58:29 收件人: dev@nuttx.apache.org 主题: Re: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by

Re: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
nsh over usb works with readline/cle now. In face, isconsole in current implementation is more like a very tiny `line driver` inside the serial driver. That is very interesting.  The serial driver (drivers/usbdev/cdcacm.c).  Does not include any of your change. It does not use serial.c . 

Re: Hardware Listing

2023-03-10 Thread Alan C. Assis
Done! Thank you! On 3/10/23, raiden00pl wrote: > Hi Alan, please add me to the Spreasheet. > > pt., 10 mar 2023 o 14:53 Alan C. Assis napisał(a): > >> I already sent Editor permission for all those listed in the Spreasheet. >> >> If someone else here is interested to help, just ping me. >> >>

Re: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
Emm, I confirmed that one of my test platform (esp32c3), its cdcacm driver implement the uart_ops, but rp2040 seems not. CLE should works since it will override the content from driver ECHO if over serial driver, but readline shouldn't echo input. I'll test more to confirm it. cdcacm.c

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Xiang Xiao
On Fri, Mar 10, 2023 at 10:39 PM Gregory Nutt wrote: > > On 3/10/2023 8:12 AM, Xiang Xiao wrote: > > The only problem is that terminal is optional: > > > https://github.com/apache/nuttx/blob/master/drivers/serial/Kconfig#L167-L174 > > So, if the user doesn't enable CONFIG_SERIAL_TERMIOS in

答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
I think I should give a simple brief of questions mentioned: 1. How to handle so many vt100 commands ? There aren't many vt100 commands actually used, current implementation can meet nearly all requirment in apps (only pdcurse need test, I'll have a test soon). If we really need to handle

Re: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 9:08 AM, Qi3 Huang 黄齐 wrote: I think I should give a simple brief of questions mentioned: 1. How to handle so many vt100 commands ? There aren't many vt100 commands actually used, current implementation can meet nearly all requirment in apps (only pdcurse need test, I'll have

Re: Is the NuttX BLE Stack broken? //was: Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-10 Thread Lwazi Dube
Hi Alan, If it is working on other platforms, no problem, I will fix my devices later if I get a chance. I will put some details here in case someone with my setup runs into the same issue. After posting my message I downloaded 9.0.0 and 10.0.0 and tested the releases (9 works and 10 is broken).

Re: Is the NuttX BLE Stack broken? //was: Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-10 Thread Alan C. Assis
Hi Lwazi, Thank you very much taking time to test it and confirming that it is not working. BTW, by working I mean "ble scanning" was working. I think we need some better application example on NuttX to test BLE. AFAIK our stack is too limited currently. BR, Alan On 3/10/23, Lwazi Dube

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 8:12 AM, Xiang Xiao wrote: The only problem is that terminal is optional: https://github.com/apache/nuttx/blob/master/drivers/serial/Kconfig#L167-L174 So, if the user doesn't enable CONFIG_SERIAL_TERMIOS in defconfig, readline will stop working due to failure to disable ECHO.

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
Isn't the default setting of ECHO disabled? My understanding is the ECHO is always /disabled /unless it is specifically /enabled /in the TERMIOS settings. No, it depends on isconsole: https://github.com/apache/nuttx/blob/master/drivers/serial/serial.c#L1303-L1308

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
Isn't the default setting of ECHO disabled? My understanding is the ECHO is always /disabled /unless it is specifically /enabled /in the TERMIOS settings. No, it depends on isconsole: https://github.com/apache/nuttx/blob/master/drivers/serial/serial.c#L1303-L1308

答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
nsh over usb works with readline/cle now. In face, isconsole in current implementation is more like a very tiny `line driver` inside the serial driver. 发件人: Gregory Nutt 发送时间: 2023年3月10日 23:09:12 收件人: dev@nuttx.apache.org 主题: [External Mail]Re: [Breaking

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
I think my biggest concern with the solution is that it effectively makes it impossible to received any out-of-band data: Any encoded, context-dependent, escaped data will be echoed back to the host unconditionally making it impossible to receive cleanly. We have already seen this in escape

Re: NuttX Hardware

2023-03-10 Thread Alan C. Assis
I think Givebutter could be a good option according with comments: https://givebutter.com/blog/gofundme-alternatives I was search for alternatives to gofundme to see what are the best options. There is also Jotform that doesn't appear on this listing. BR, Alan On 3/10/23, Nathan Hartman

Re: NuttX Hardware

2023-03-10 Thread Alan C. Assis
Hi Brennan, I think it should be nice if you can receive it. About the shipping costs, I'll happy to help too! BR, Alan On 3/10/23, Brennan Ashton wrote: > If this is something people really do want. I'm happy to hold them in the > US and help lend out and cover this shipping to get it from

Re: NuttX Hardware

2023-03-10 Thread Nathan Hartman
Does anyone know how to set up some kind of online pot that people can put some money into without too much hassle? On Fri, Mar 10, 2023 at 1:27 PM Alan C. Assis wrote: > Hi Brennan, > > I think it should be nice if you can receive it. > > About the shipping costs, I'll happy to help too! > >

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 7:44 PM, Huang Qi wrote: >> The ECHO behavior can be disabled ONLY if TERMIOS are enabled. >> TERIMIOS is now required by POSIX and, further, if TERMIOS is not >> system, many features are now broken.  Like hiding the password when >> logging into NSH. > Yes maybe we should

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 7:44 PM, Huang Qi wrote: >> The ECHO behavior can be disabled ONLY if TERMIOS are enabled. >> TERIMIOS is now required by POSIX and, further, if TERMIOS is not >> system, many features are now broken.  Like hiding the password when >> logging into NSH. > Yes maybe we should

Re: Changes in Common Line Editor

2023-03-10 Thread Huang Qi
> There are bandaid fixes going in that try to recover from the primary bad > fix. That is not > good. That is only making things worse. We need to fix > the root cause of the problem > no just change the behavior of individual apps to hide the problem. The root > cause is > that the serial

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread 黄 齐
I'm Qi Huang, changed to a new mailbox to avoid messing massge in mail titile. > If isconsole is set and TERMIOS is not, then it will always echo the > input. The CR-LF behavior only depends on isconsole and can't be > changed even if TERMIOS is enabled. If TERMIOS enabled, the CR-LF

RE: [Breaking change] Echo character by serial driver

2023-03-10 Thread Huang Qi
> That 1Kb number seems large to me. Most of that is in the lower-half, > UART driver, right? If so then the size would vary dramatically from > chip-to-chip. I prefer to select it by Kconfig, most morden platforms doesn't make sense for 1Kb but still many chips in source tree with very small

答复: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Qi3 Huang 黄齐
> I think my biggest concern with the solution is that it > effectively makes > it impossible to received any out-of-band data: Any > encoded, > context-dependent, escaped data will be echoed back to the > host > unconditionally making it impossible to receive cleanly. But this behavior can

Re: 答复: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
On 3/10/2023 5:30 PM, Qi3 Huang 黄齐 wrote: I have to agree that the code is looking better all of the time. Many of the obvious problems that I saw just a couple of days ago have been addressed.  Many of the things I have complained about in this thread have been fixed.  But there are probably

RE: [Breaking change] Echo character by serial driver

2023-03-10 Thread Huang Qi
>> The ECHO behavior can be disabled ONLY if TERMIOS are enabled. >> TERIMIOS is now required by POSIX and, further, if TERMIOS is not >> system, many features are now broken. Like hiding the password when >> logging into NSH. > Yes maybe we should select TERMIOS if some features really

Re: NuttX Hardware

2023-03-10 Thread Brennan Ashton
For the initial shipment if I do it I would prefer to not take donations, it is not worth the complications for tax things. --Brennan On Fri, Mar 10, 2023, 11:13 AM Alan C. Assis wrote: > I think Givebutter could be a good option according with comments: > >

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Xiang Xiao
On Sat, Mar 11, 2023 at 9:51 AM Gregory Nutt wrote: > > On 3/10/2023 7:44 PM, Huang Qi wrote: > > >> The ECHO behavior can be disabled ONLY if TERMIOS are enabled. > > >> TERIMIOS is now required by POSIX and, further, if TERMIOS is not > > >> system, many features are now broken. Like