Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Great work #2

Open
chradev opened this issue Mar 14, 2015 · 1 comment
Open

Great work #2

chradev opened this issue Mar 14, 2015 · 1 comment

Comments

@chradev
Copy link

chradev commented Mar 14, 2015

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:

  • connection to the echo server is refused by remote even without other once (will test more);
  • after closing shell session new one can be established after some time or resetting the board;
  • the speed is quite low even after setting USART to work at 115200 kbps (will try higher).

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
Copy link
Author

chradev commented Mar 16, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant