CN101853177A - Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface - Google Patents
Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface Download PDFInfo
- Publication number
- CN101853177A CN101853177A CN 201010162534 CN201010162534A CN101853177A CN 101853177 A CN101853177 A CN 101853177A CN 201010162534 CN201010162534 CN 201010162534 CN 201010162534 A CN201010162534 A CN 201010162534A CN 101853177 A CN101853177 A CN 101853177A
- Authority
- CN
- China
- Prior art keywords
- usb
- module
- driver module
- unit
- driving module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention relates to a driving device of an M2M (machine to machine) module with a USB (Universal Serial Bus) interface, which comprises a USB master control driving module provided by a WinCE (Windows Compact Edition) operating system, a USB bus driving module and a modem driving module which are arranged above the WinCE operating system and a dialing application module arranged above the modem driving module and also comprises a USB functional driving module arranged between the USB bus driving module and the modem driving module, wherein the USB functional driving module is used for connecting the USB bus driving module and a modem driving module; the USB functional driving module comprises an initialization unit, a storage unit, a function interface unit, a read thread unit and a connection status unit. The invention has the beneficial effects that due to the fact that the modem driving module can call the USB bus driving module by the function interface unit of the USB functional driving module, the M2M module with the USB interface is controlled by utilizing the modem driving module and the dialing application module above the modem driving module is realized.
Description
Technical field
The invention belongs to the computer communication technology field, specifically, relate to the drive unit of a kind of host side the M2M module of band USB interface.
Background technology
M2M (Machine to Machine) is meant that connection between the machine and correspondence in the commercial unit, M2M communicator are the equipment of realizing this correspondence.Communicating to connect of M2M communicator can be divided into " wired " and " wireless " dual mode.
The granting of China 3G (3G (Third Generation) Moblie technology) licence plate indicates that domestic communication industry formally enters the 3G epoch.Domestic 3G license has been provided 3 at present, is respectively the CDMA2000 network of telecommunications, mobile TD-SCDMA network, the WCDMA network of UNICOM.Each big 3G operator has released the characteristic service of oneself rapidly after taking 3G license, the M2M module of band USB interface is in vogue gradually at home.
In field of embedded technology, WinCE operating system is used very extensive.When the M2M module of band USB interface is used for WinCE operating system, develops this operating system corresponding driving program and just can obtain using.Device driver in the WinCE operating system has all been carried out layering usually, is divided into USB main control driver module and usb bus driver module for the USB device driver according to from the bottom up level.In order to realize function of surfing the Net, need utilize MODEM driver module and the dialing application module on it in the WinCE operating system with the M2M module of USB interface.Because early stage MODEM equipment and main frame all is to communicate by standard serial port (as RS232), therefore for the early stage MODEM equipment of compatibility, the MODEM driver module always can drive the driver module of its lower floor as standard serial port.Thereby the band M2M module of USB interface and main frame are when communicating by USB interface, MODEM driver module in the WinCE operating system can't directly communicate with the prior USB device driver module of the M2M module of being with USB interface, also just can't utilize MODEM driver module and the dialing application module on it to control the M2M module of band USB interface.
Summary of the invention
M2M module in order to make MODEM driver module in the WinCE operating system and the dialing application module on it can control the band USB interface during purpose of the present invention has proposed a kind of drive unit of the M2M module with USB interface.
To achieve these goals, technical scheme of the present invention is: a kind of drive unit of the M2M module with USB interface, comprise WinCE operating system already provided USB main control driver module and on the usb bus driver module and the MODEM driver module and on the dialing application module, it is characterized in that, also comprise the USB function driver module between usb bus driver module and MODEM driver module, be used to connect usb bus driver module and MODEM driver module; Described USB function driver module comprises initialization unit, storage unit, function interface unit, reads thread units and connection status unit, initialization unit is connected with the function interface unit with storage unit and is used for storage unit and function interface unit are carried out initialization operation, the function interface unit respectively with storage unit, read thread units and be connected with the connection status unit and finish calling and to reading the initialization operation of thread units and connection status unit, be connected with storage unit and finish calling respectively storage unit to storage unit to reading thread units; The function interface unit also is connected with the usb bus driver module with the MODEM driver module of outside respectively, be used to realize the MODEM driver module to the calling with USB function driver module by the function interface unit of function interface unit to the calling of usb bus driver module, to read thread units and connection status unit be connected with the usb bus driver module respectively be used to finish with USB function driver module by its calling to the usb bus driver module.
The invention has the beneficial effects as follows:, thereby realized utilizing MODEM driver module and the dialing application module on it to control the M2M module of band USB interface because the MODEM driver module can finish the calling of usb bus driver module by the function interface unit of USB function driver module.
Description of drawings
Fig. 1 is the module hierarchical link graph of a relation of drive unit of the present invention.
Fig. 2 is the annexation figure of the USB function driver module built-in function unit of drive unit of the present invention.
Embodiment
The present invention is described further below by specific embodiment and accompanying drawing.
As shown in Figure 1, a kind of drive unit of the M2M module with USB interface, comprise WinCE operating system already provided USB main control driver module and on the usb bus driver module and the MODEM driver module and on the dialing application module, USB function driver module between usb bus driver module and MODEM driver module, USB function driver module is used to connect usb bus driver module and MODEM driver module.
Described as shown in Figure 2 USB function driver module comprises initialization unit, storage unit, function interface unit, reads thread units and connection status unit, initialization unit is connected with the function interface unit with storage unit and is used for storage unit and function interface unit are carried out initialization operation, the function interface unit respectively with storage unit, read thread units and be connected with the connection status unit and finish calling and to reading the initialization operation of thread units and connection status unit, be connected with storage unit and finish calling respectively storage unit to storage unit to reading thread units; The function interface unit also is connected with the usb bus driver module with the MODEM driver module of outside respectively, be used to realize the MODEM driver module to the calling with USB function driver module by the function interface unit of function interface unit to the calling of usb bus driver module, to read thread units and connection status unit be connected with the usb bus driver module respectively be used to finish with USB function driver module by its calling to the usb bus driver module.
Can implement the present invention for the ease of those of ordinary skill in the art, now in conjunction with the accompanying drawings the specific implementation process of each unit in the USB function driver module be done detailed description.
Storage unit: the realization of storage unit has dual mode.
Mode one: preserve the data that read from the M2M module with static BUFFER (buffer zone).The size of this BUFFER is provided with according to concrete hardware environment, and this BUFFER is embodied as a quiet cycle formation.Concrete mode is: two variablees of initialization, represent head of the queue respectively and to tail, when when the M2M module is read data, the number that the increase of tail of the queue variable is read, when data are sent to the MODEM driver module, the head of the queue variable increases the number that transmits, and will note judging the situation of queue empty and queue full here.
Mode two: preserve the data that read from the M2M module with dynamic BUFFER.Creating one has only reading of each initiation to ask the so big static BUFFER of number, with the temporary transient data that read from the M2M module of preserving of this static state BUFFER, data are read behind this static state BUFFER again according to actual dynamic BUFFER of data number application that reads from the M2M module.In dynamic BUFFER, the form with chained list is together in series each so dynamic BUFFER at last the copying data among the static BUFFER.Here also to represent linked list head and chained list tail respectively, when slave unit reads data dynamic BUFFER be inserted in the chained list tail with two pointers, and mobile tail pointer.When the higher-layer programs request msg, return the data in the linked list head, and the slip-on head pointer, discharge this dynamic BUFFER then.
The selection of above storage unit implementation will be judged according to the hardware environment of reality, if bad judgement can all realize dual mode, and then come test performance.
Connection status unit: be used for the dialing application module when initiating dialing or disconnecting request, whether inquiry M2M module is current connects outside 3G network, if connection status changes, USB function driver module triggers the MODEM driver module that events corresponding is notified the upper strata, its specific implementation method is: send the self-defining M2M module queries connection status of ordering of M2M module manufacturer, create a thread in the dialing application module before the order of M2M module Sending dialled number, this thread regularly says the word to the M2M module and inquires the connection status of M2M module.
Initialization unit: can at first move initialization unit when USB function driver module loads, this unit carries out the initial work of current USB function driver module, and its specific implementation process has two steps:
1. at first, if the storage unit that employing mode one realizes when the operation initialization unit, create a static BUFFER, and two variablees of pointer is end to end represented in initialization.If the storage unit that the mode that adopts two realizes then needs the pointer end to end of initialization chained list.
2. then, initialization unit obtains the USB essential information of M2M module, comprises device descriptor, configuration descriptor, interface descriptor, endpoint descriptor and character string descriptor.Just can judge whether to support this equipment according to the information USB function driver module in these descriptors.Initialization unit can also send a command to configuration and the interface that the M2M module is selected needs by the usb bus driver module according to actual conditions.
Function interface unit: the function interface that this unit provides it to need for upper strata MODEM driver module.Mainly comprise with lower interface:
1.OPEN interface mainly is engaged in following operation:
The USB endpoint descriptor of the M2M module that a. obtains with initialization unit in this interface is set up the communication pipe of main frame and M2M module.
B. create (initialization) and read thread units.
2.IOCTL interface: because current USB function driver module need show the MODEM driver module to the upper strata with the form of serial port drive, so the control command in this interface need be embodied as the control command of serial port drive, the control command relevant with serial ports hardware need not realize, directly returns success.It is that this driving must realize that but the several Control order is arranged:
<1〉GET_WAIT_MASK: the incident mask value of current preservation is returned to the MODEM driver module.
<2〉SET_WAIT_MASK: current incident mask value is arranged to the value that the MODEM driver module passes over.
<3〉WAIT_ON_MASK: detect whether to have in the incident of incident mask setting and be triggered, the words that have are then returned the event flag of triggering at once and are given the MODEM driver module, otherwise wait for always, just return after the incident that is provided with in the incident mask is triggered.
<4〉GET_COMMSTATUS: the data number that returns among the current BUFFER is given the MODEM driver module.
<5〉GET_MODEMSTATUS: the state that returns current MODEM is given the MODEM driver module.
<6〉SET_TIMEOUTS: the value of time-out time being arranged to the MODEM drive module setting.
<7〉GET_TIMEOUTS: the time-out time value of preserving is returned to the MODEM driver module.
3.READ interface: the data among the storage BUFFER in the storage unit are returned to the MODEM driver module, then the slip-on head pointer.
4.WRITE interface: the MODEM driver module is passed the pipeline of writing that the data come have set up by initialization unit send to the M2M module.
Read thread units, this unit is created by the OPEN interface, regularly send read request with the pipeline of having set up of reading, read after the data according to concrete storage implementation and data are deposited in static state or dynamically among the BUFFER, and trigger events corresponding and give the MODEM driver module to the M2M module.
Those of ordinary skill in the art will appreciate that embodiment described here is in order to help reader understanding's principle of the present invention, should to be understood that protection scope of the present invention is not limited to such special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combinations that do not break away from essence of the present invention according to these technology enlightenments disclosed by the invention, and these distortion and combination are still in protection scope of the present invention.
Claims (3)
1. drive unit with the M2M module of USB interface, comprise WinCE operating system already provided USB main control driver module and on the usb bus driver module and the MODEM driver module and on the dialing application module, it is characterized in that, also comprise the USB function driver module between usb bus driver module and MODEM driver module, be used to connect usb bus driver module and MODEM driver module; Described USB function driver module comprises initialization unit, storage unit, function interface unit, reads thread units and connection status unit, initialization unit is connected with the function interface unit with storage unit and is used for storage unit and function interface unit are carried out initialization operation, the function interface unit respectively with storage unit, read thread units and be connected with the connection status unit and finish calling and to reading the initialization operation of thread units and connection status unit, be connected with storage unit and finish calling respectively storage unit to storage unit to reading thread units; The function interface unit also is connected with the usb bus driver module with the MODEM driver module of outside respectively, be used to realize the MODEM driver module to the calling with USB function driver module by the function interface unit of function interface unit to the calling of usb bus driver module, to read thread units and connection status unit be connected with the usb bus driver module respectively be used to finish with USB function driver module by its calling to the usb bus driver module.
2. the drive unit of a kind of M2M module with USB interface according to claim 1 is characterized in that described storage unit is preserved the data that read from the M2M module with static buffer.
3. the drive unit of a kind of M2M module with USB interface according to claim 1 is characterized in that described storage unit is preserved the data that read from the M2M module with dynamic buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010162534 CN101853177B (en) | 2010-05-05 | 2010-05-05 | Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010162534 CN101853177B (en) | 2010-05-05 | 2010-05-05 | Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101853177A true CN101853177A (en) | 2010-10-06 |
CN101853177B CN101853177B (en) | 2013-06-19 |
Family
ID=42804683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010162534 Expired - Fee Related CN101853177B (en) | 2010-05-05 | 2010-05-05 | Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101853177B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246618A (en) * | 2012-02-01 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for achieving universal serial bus (USB) functions on basis of embedded system |
CN103955439A (en) * | 2014-05-22 | 2014-07-30 | 东北林业大学 | Method for managing USB (universal serial bus) equipment in Android mobile Sink node software mode |
CN104796413A (en) * | 2015-04-02 | 2015-07-22 | 哈尔滨工程大学 | Grouping dynamic storage method facing Web firewall |
CN109086208A (en) * | 2018-08-06 | 2018-12-25 | 联想(北京)有限公司 | A kind of data processing method and system |
CN111913783A (en) * | 2020-10-13 | 2020-11-10 | 江苏润和软件股份有限公司 | Single-chip microcomputer USB software development system and method based on objectification |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1560748A (en) * | 2004-02-17 | 2005-01-05 | 威艾德通讯技术(深圳)有限公司 | Drive method of USB interface |
US20070005663A1 (en) * | 2005-06-16 | 2007-01-04 | Information Appliance Associates | System and method for synchronizing a blackberry with a macintosh |
CN101415270A (en) * | 2008-11-27 | 2009-04-22 | 深圳华为通信技术有限公司 | Mobile terminal and communication method for processing module thereof |
CN101493765A (en) * | 2008-01-23 | 2009-07-29 | 希姆通信息技术(上海)有限公司 | AT command debugging method and apparatus based on WINDOWS MOBILE |
-
2010
- 2010-05-05 CN CN 201010162534 patent/CN101853177B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1560748A (en) * | 2004-02-17 | 2005-01-05 | 威艾德通讯技术(深圳)有限公司 | Drive method of USB interface |
US20070005663A1 (en) * | 2005-06-16 | 2007-01-04 | Information Appliance Associates | System and method for synchronizing a blackberry with a macintosh |
CN101493765A (en) * | 2008-01-23 | 2009-07-29 | 希姆通信息技术(上海)有限公司 | AT command debugging method and apparatus based on WINDOWS MOBILE |
CN101415270A (en) * | 2008-11-27 | 2009-04-22 | 深圳华为通信技术有限公司 | Mobile terminal and communication method for processing module thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246618A (en) * | 2012-02-01 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for achieving universal serial bus (USB) functions on basis of embedded system |
CN103246618B (en) * | 2012-02-01 | 2016-02-24 | 中兴通讯股份有限公司 | Based on implementation method and the device of the USB function of embedded system |
CN103955439A (en) * | 2014-05-22 | 2014-07-30 | 东北林业大学 | Method for managing USB (universal serial bus) equipment in Android mobile Sink node software mode |
CN103955439B (en) * | 2014-05-22 | 2016-08-31 | 东北林业大学 | Android moves the method for Sink node software mode management USB device |
CN104796413A (en) * | 2015-04-02 | 2015-07-22 | 哈尔滨工程大学 | Grouping dynamic storage method facing Web firewall |
CN104796413B (en) * | 2015-04-02 | 2018-04-24 | 哈尔滨工程大学 | A kind of packet dynamic storage method of web oriented fire wall |
CN109086208A (en) * | 2018-08-06 | 2018-12-25 | 联想(北京)有限公司 | A kind of data processing method and system |
CN111913783A (en) * | 2020-10-13 | 2020-11-10 | 江苏润和软件股份有限公司 | Single-chip microcomputer USB software development system and method based on objectification |
CN111913783B (en) * | 2020-10-13 | 2021-02-02 | 江苏润和软件股份有限公司 | Single-chip microcomputer USB software development system and method based on objectification |
Also Published As
Publication number | Publication date |
---|---|
CN101853177B (en) | 2013-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101853177B (en) | Driving device of M2M (machine to machine) module with USB (Universal Serial Bus) interface | |
CN101110039B (en) | Terminal unit self-installing and self-starting system and method thereof | |
CN101609408B (en) | A kind of method and system realizing self-start of terminal equipment | |
CN202956753U (en) | Programming device and programming system of flash memory chip in embedded system | |
JP2009518703A5 (en) | ||
CN103365688A (en) | Method for automatic installation and synchronization of software between Android intelligent devices | |
CN103645945A (en) | Automatic probing and drive loading method of virtual network interface card | |
CN103777981A (en) | Multi-operation-system remote loading implementation method suitable for X86 framework | |
CN103092648B (en) | A kind of image upgrade method, system and subscriber equipment and personal computer | |
CN102820061A (en) | Embedded remote device program programmer device and method | |
CN108287733A (en) | A kind of virtual machine load startup method | |
CN101957771A (en) | Method and device for installing mobile software for multiple mobile phones simultaneously | |
CN105141686A (en) | Method and device for achieving bluetooth communication | |
CN102073524B (en) | A kind of method of wireless communication terminal and self-starting thereof | |
CN105468429A (en) | Efficient virtual cluster management method and cluster node | |
WO2010119315A1 (en) | System and method for implementing a remote input device using virtualization techniques for wireless devices | |
CN103049403B (en) | Method for communication between embedded terminal device and cell phone | |
CN104780360A (en) | Set top box debugging method and set top box debugging system | |
CN100578477C (en) | Method and system for realizing normal working of compound device | |
KR101863677B1 (en) | System and method for interfacing between terminal and smart card | |
CN102301333A (en) | System and method for remotely operating a wireless device using a server and client architecture | |
CA2790782C (en) | Method and apparatus for implementing network device function of wireless communication terminal | |
CN203352583U (en) | Navigation system based on bluetooth SD compound device | |
CN103246618B (en) | Based on implementation method and the device of the USB function of embedded system | |
CN109271287A (en) | A kind of acquisition device and method of server Serial Port Information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130619 Termination date: 20170505 |
|
CF01 | Termination of patent right due to non-payment of annual fee |