j2bdd | 19 Jun 2013 09:55
Picon
Favicon

tcp write buffering

 

Hi Greg,

I am using Nuttx/uIP in my project which needs both interactive TCP communication between PC host and embedded host, and high throughput data transferring. There is a telnet server in the embedded host. The telnet session from a Window host is slow due to the delayed ACK problem (no problem if telnet from Linux host). Even I checked the "disable Nagle's Alogrithm (CP_NODELAY option)" in putty. Also I checked CONFIG_NET_TCP_SPLIT=y, the result is the same. The only workaround is to set CONFIG_NET_TCP_SPLIT_SIZE to a small value, such as 2. But this will have a great impact on the performance. It looks like the only solution is to implement TCP write buffering. I have tried to do so without success. I am lack of the knowledge about TCP/IP and its implementation, it is a big cha llenge to me. Do you have any plan to implement TCP write buffering? It is so valuable to the stack running on modern MCU.

Best Regards.

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
Michael James | 18 Jun 2013 21:54
Picon
Favicon

ferror() logic

 


Been chasing an issue with ostream in uclibc++ and found what I believe is a logic problem with ferror().

When opening a stream, ferror() gets called by uclibc++/incl ude/fstream at line 184:
      if (ferror(fp))
      {
        fclose(fp);
        fp = 0;
        return 0;
      }

And ferror() should return true if there are any errors otherwise false. But it looks like ferror() has the logic reversed:
     return (stream->fs_flags & __FS_FLAG_EOF) == 0;
Shouldn't this be a "not equals"??

Thanks,
Michael




__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
Alan Carvalho de Assis | 18 Jun 2013 14:51
Picon
Gravatar

KINETIS_TSI: Fix small issues on TSI header [1 Attachment]

 
[Attachment(s) from Alan Carvalho de Assis included below]

Hi Greg,

While creating a TSI driver I find out small issues on header file.

Please check attached file.

Best Regards,

Alan

__._,_.___

Attachment(s) from Alan Carvalho de Assis

1 of 1 File(s)

Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
ziggurat29 | 18 Jun 2013 00:37
Favicon
Gravatar

mmcsd spi, mounting, and error codes....

 

hi group; I am attempting a new port for a board, and am trying to get the mmcsd driver going at the moment. I have made all sorts of spi related setup, and am ready to test, so why not try to mount, right?

I do have fat and I do have a
/dev/mmcsd0
however, when mounting, I get error 19

nsh> mount -t vfat /dev/mmcsd0 /mnt/fs
nsh: mount: mount failed: 19

Q: is there a friendly list of error codes? or a compile option to show them nicely (even if I only use this while developing, and shut it off later)

Q: normally I have to specify some partition number, but I don't see how to do that in this command

Q: is there a better way to test than my simply trying to mount

any pointers are appreciated!

-dave

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
Gregory N | 15 Jun 2013 00:06
Picon
Favicon
Gravatar

NuttX 6.28 and NxWidgets 1.8 Released

 

Today, June 11, 2013, I released versions 6.28 and 1.8 of the NuttX and NxWidgets packages.

Release notes and download links for the NuttX 6.28 tarballs can be found here: https://sourceforge.net/projects/nuttx/files/nuttx/nuttx-6.28/

Release notes and down links for NxWidgets 1.8 can be found here: https://sourceforge.net/projects/nuttx/files/NxWidgets/NxWidgets-1.8/

Please do checkout the release notes. There a a lot of great contributions by a lot of great people.

Greg

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
Gregory N | 12 Jun 2013 02:04
Picon
Favicon
Gravatar

Running NuttX in a board powered by kinetis KL25Z128

 

Alan Carvalho de Assis just shared this link with me: http://www.youtube.com/watch?v=GVHW6ce8e5U

I think this is pretty remarkable because the KL25Z is a Cortex-M0+ device with only 16KB of SRAM.

If you want more information about what Alan is doing, you should talk to him directly.

Thanks, Alan.
Greg

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
ziggurat29 | 10 Jun 2013 20:01
Favicon
Gravatar

Netduino Plus 2 porting advice...

 

I am sitting down now to attempt a port of Nuttx to the Netduino Plus 2 board, and so am asking for some advice:

a) has this already been done/attempted, so I shouldn't bother
b) is it wise for me to clone an existing port, and modify it?
1) if so, which
2) if not, then I should try from scratch?

I've done only these things so far:
* setup an ubuntu vm as my build machine
* setup code sourcery
* deployed nuttx
* built teensy++ (as a sanity check of my build environment since that is a currently supported board, and I happened to have a board laying around; otherwise irrelevant since it is a totally different processor)
* burned image and connected to nsh and ran a couple commands
* built stm32f4discovery (similar processor, but I don't have a board, but I can build stock config to completion, so my toolchain is probably complete)

Otherwise I am a nuttx noob, please by all means do advise/educate me on all matters.

Thanks!
-ziggurat29

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
Gregory N | 10 Jun 2013 20:00
Picon
Favicon
Gravatar

ROS

 

I just noticed that Qiang Yu has announced his port of ROS to NuttX. This is under RGMP, but I suspect that it should be usable in NuttX with or without RGMP: https://groups.google.com/forum/m/?fromgroups#!topic/ros-sig-embedded/Esf1Hfv5NOY

Greg

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
marktxx | 9 Jun 2013 17:14
Picon
Favicon

Raspberry Pi port?

 

Has anyone ported/tried NuttX on Raspberry Pi?
[Please don't argue that it runs Linux already. This is a very inexpensive HW platform that could be used for an embedded training class. It would better to expose the students to a real RTOS instead of a general purpose OS. We don't need the GUI stuff anyway.]

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
scottrnpe | 6 Jun 2013 21:45
Picon

Disconnection bug in nuttx/arch/arm/src/stm32/stm32_otgfshost.c

 

Hi Greg,
There is a bug stm32_otgfshost.c that prevents the USB disconnection event from being detected. In the function stm32_gint_disconnected on line 2179:

if (!priv->connected)
should be
if (priv->connected)

I'm not sure if you want a patch for a single character change, if you do I can get one created.
Thanks,
Scott

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___
petteriaimonen | 4 Jun 2013 08:39
Picon

Patches (NXWidgets, STM32 DMA)

 

Hi,

http://koti.kapsi.fi/jpa/stuff/other/nuttx-patches/patches_12/

0001-0003 are small NXWidgets improvements.

0004 and 0005 go together. They implement a fallback mechanism so that if DMA transfer is not possible due to CCM memory, normal programmed transfer is used instead. 0004 implements the basic function to check if DMA is possible, and 0005 adds the fallback for the SPI driver.

Also I must warn that I don't have the hardware to test 0004&0005 on anything but STM32F4, even though they affect also STM32F1 and STM32F2.

--
Petteri

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___

Gmane