wizhippo / stm32f4-chibios-lwip-pppos

7 stars 9 forks source link

Great work #2

Open chradev opened 9 years ago

chradev commented 9 years ago

Hi guys,

I have just built the project (under ChibiStudio & arm-none-eabi-gcc 4.8.4 20140725 on Windows 7) with current ChibiOS ver. 3.0dev from trunk and run it on STM32F4Discovery. It works fine and I am happy to find your great solution I am looking for a long time.

There is a few unimportant shortcomings found after the first tests:

I am looking for moving ppp connection to USB HS CDC with external USB PHY (480Mbps).

Other extensions I am looking for is to add DHCP, DNS and HTTP services like in https://github.com/fetisov/lrndis project but using mostly LwIP staff.

Can you help me in my undertaking?

Best regards Chris

chradev commented 9 years ago

Hi guys,

I made some tests with higher serial speeds and succeed to connect (not very stable) up to 1.5Mbps (to Linux on VMWare VM and Windows 7 host) using FT245 USB to serial adapter. In the same situation using PL2303 connection speed was up to 460.8 Kbps. In both cases on Windows using PuTTY the speed reached was up to 2 Mbps.

Unfortunately, I have no success to connect application to Windows 7 via ppp (that is why PuTTY was used for testing). Any hints for that are welcome.

In my opinion more than 2Mlps is reachable using HS USB adapter (like FT4232), small / shielded wires and direct connection to the real host (will try with Olimex' A20-SOM-EVB). Theoretical limits is 10.2 Mbps if USART1 or USART6 is used on STM32F4xx.

A strange breaking in shell output was observed at 1.5 Mbps (not visible at 1 Mbps). The output between breaks at 1.5 Mbps was at extremely high speed while at 1 Mbps the output was uniform but not so fast.

I try to add USB CDC to application (with a shell) but without success. USB device is enumerated but trying connection with PuTTY report that the serial port is not available. I have tried to change some lwip options and thread priorities without success as well.

Unfortunately, using USB CDC instead of USART for ppp might be problematic because of loosing virtual serial port at application reset. Any hints for that are welcome as well.

Other test I made was to add web server (from ARMCM4-STM32F407-LWIP-FATFS-USB demo). Changing some lwip option have allowed me to compile and run the application but connection to the server was reset while the page was loading. Any hints for that are welcome as well.

Best regards Chris