Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-18 Thread will sanfilippo
Yes, the code chains mbufs together so that if you have data length extension enabled you will be able to send larger PDUs (and receive them as well). Note: there is a limit on how small the mbufs can be with nimble as the controller code assumes contiguous space for certain types of packets

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-18 Thread Khaled Elsayed
Hi If Nimble with LE Data Packet Length Extension feature enabled, would mbuf block size of 100 still work? Could a PDU occupy more than one mbuf (e.g. two consecutive blocks)? Best, Khaled On Fri, Jun 16, 2017 at 9:08 PM, will sanfilippo wrote: > Alfred: > > Another thing

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread marko kiiskila
> On Jun 16, 2017, at 1:56 PM, marko kiiskila wrote: > > > and the target I had: > newt target create native-blehostd > newt target set native-blehostd app="@apache-mynewt-core/apps/blehostd" > newt target set native-blehostd bsp="@apache-mynewt-core/hw/bsp/native" > newt

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Christopher Collins
On Fri, Jun 16, 2017 at 10:08:21PM +0200, Alfred Schilken wrote: > BTW: > every now and then I get this timeout error: > > newtmgr -c ble0c stat ble_gattc > Error: Timeout waiting for host <-> controller sync > > I’m using a microbit running the blehci, connected via adafruit FT232H with >

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread marko kiiskila
> On Jun 16, 2017, at 1:08 PM, Alfred Schilken wrote: > ... > As an alternative, I tried to use the blehostd on a Raspberry Pi zero W with > these settings: > > syscfg.vals: >OS_MAIN_TASK_PRIO: 1 > ># Disable logging. Writing lots of log output to the UART seems

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Alfred Schilken
Hi Will, hi Chris, thanks for your hints. I thought it would be less risky only to reduce the counts and not the size of the buffers. I tweaked a bit with the values of MSYS_1 and found this is working for my current app: MSYS_1_BLOCK_COUNT: 10 # was 12 MSYS_1_BLOCK_SIZE: 180 # was

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread will sanfilippo
Alfred: Another thing with the nimble stack. The mbuf block size of 292, which Chris shows reduced to 200, is much larger than it needs to be. I am not sure what the smallest size actually is, but you can set it to 100 bytes and it should work. This can get you more buffers and/or reduce your

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Christopher Collins
Hi Alfred, On Fri, Jun 16, 2017 at 07:02:47PM +0200, Alfred Schilken wrote: > Hello all, I’m experimenting with mynewt for several weeks now and I’m > especially impressed by the statistics, logging and image update > functionality. > I’m having problems with getting all the statistics using

What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Alfred Schilken
Hello all, I’m experimenting with mynewt for several weeks now and I’m especially impressed by the statistics, logging and image update functionality. I’m having problems with getting all the statistics using newtmgr via BLE. I took bleprph as base, added ADC and enabled several stats, logs and