GithubHelp home page GithubHelp logo

hongboyunquan-xt / usb-host-driver-4g-rndis-device Goto Github PK

View Code? Open in Web Editor NEW

This project forked from longtengmcu/usb-host-driver-4g-rndis-device

0.0 0.0 0.0 17.2 MB

STM32F429 USB HOST driver 4G rndis device, Realization of high speed Ethernet data communication。

License: Apache License 2.0

C++ 0.15% C 93.08% HTML 1.25% Assembly 3.60% Python 0.75% CMake 0.20% Shell 0.60% Makefile 0.25% Batchfile 0.01% DIGITAL Command Language 0.02% Module Management System 0.01% Roff 0.01% RPC 0.02% Ruby 0.01% Perl 0.01% CSS 0.01% TeX 0.01% Pawn 0.01% M4 0.03% Lex 0.01%

usb-host-driver-4g-rndis-device's Introduction

STM32 USB HOST driver 4G rndis device

It use RT-Thread 3.1.3 operating system, MCU is the stm32F429, the board is the apollo STM32F429 evk. The 4G module model is L501 it designed by the Shang Hai mobiletek. The project open used the IAR please.

Overview

The USB host driver framework is modified according to RT thread's USB host framework. The function of enumerating USB manager's combined devices is added. The driver of 4G rndis device is added. The host driver is modified in a large area to increase the stability and reliability of the driver.

Software function

  • All functions of rndis protocol are realized
  • The driver of 4G rndis device is realized
  • Ethernet packet communication based on 4G rndis device
  • The virtual serial port driver of 4G rndis device is not driven due to the limitation of the number of host channels.
  • The AT instruction interaction interface of 4G module can be realized through its own hardware serial port.
  • In the main function, the IP address of the 4G network card of the device is a fixed IP address, which is related to the 4G module. For example, the IP address of the L501 module is 192.168.1. X network segment.

Command line

  • msh />ifconfig
  • network interface device: u0 (Default)
  • MTU: 1500
  • MAC: ac 0c 29 a3 9b 6d
  • FLAGS: UP LINK_UP INTERNET_UP DHCP_DISABLE ETHARP BROADCAST
  • ip address: 192.168.0.101
  • gw address: 192.168.0.1
  • net mask : 255.255.255.0
  • dns server #0: 8.8.8.8
  • dns server #1: 0.0.0.0
  • msh />ping www.sina.com
  • 60 bytes from 111.13.103.37 icmp_seq=0 ttl=56 time=49 ms
  • 60 bytes from 111.13.103.37 icmp_seq=1 ttl=56 time=41 ms
  • 60 bytes from 111.13.103.37 icmp_seq=2 ttl=56 time=41 ms
  • 60 bytes from 111.13.103.37 icmp_seq=3 ttl=56 time=31 ms

Stability

Stable network communication for three days, no more testing

Future optimized functions

  • Keep alive timeout, by cutting off the USB host power supply, disconnect the USB device,
  • Add the USB host channel dynamic allocation release function,
  • Add the at command interface initialization 4G module, monitor the 4G module networking operation function
  • Optimize USB host protocol framework to support more kinds of USB devices

Reference material

Author

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.