CN108366131A - Data transmission method, device, terminal and storage medium - Google Patents

Data transmission method, device, terminal and storage medium Download PDF

Info

Publication number
CN108366131A
CN108366131A CN201810203509.4A CN201810203509A CN108366131A CN 108366131 A CN108366131 A CN 108366131A CN 201810203509 A CN201810203509 A CN 201810203509A CN 108366131 A CN108366131 A CN 108366131A
Authority
CN
China
Prior art keywords
control chip
firmware upgrade
chip
port
touch apparatus
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
Application number
CN201810203509.4A
Other languages
Chinese (zh)
Other versions
CN108366131B (en
Inventor
杨起源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810203509.4A priority Critical patent/CN108366131B/en
Publication of CN108366131A publication Critical patent/CN108366131A/en
Priority to PCT/CN2018/118087 priority patent/WO2019174307A1/en
Application granted granted Critical
Publication of CN108366131B publication Critical patent/CN108366131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses data transmission method, device, terminal and storage mediums.This method includes:Main device module listen to control chip in listening port port value change after, obtain correspond to control chip current USB descriptors;Main device module determines the chip communication port with control chip communication, and send firmware upgrade packet to control chip based on the chip communication port according to the current USB descriptors;Control chip transfers the firmware upgrade packet to touch apparatus communication port corresponding with the chip communication port, so that touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.Main device module accurately can transmit firmware upgrade packet to touch apparatus in the case of being realized using above-mentioned technical proposal without carrying out complicated software development or modification hardware frame, to in the case where ensureing that touch apparatus effectively can carry out firmware upgrade, the exploitation maintenance difficulties of developer are reduced, hardware use cost is saved.

Description

Data transmission method, device, terminal and storage medium
Technical field
The present embodiments relate to the communication technology more particularly to data transmission method, device, terminal and storage mediums.
Background technology
It is thus easy, conveniently, naturally realize currently, be provided with the touch apparatus of touch function on many intelligent terminals Human-computer interaction, and then have also been enlarged the application field of the intelligent terminal with touch function.Figure 1A is intelligent in the prior art The structure connection diagram of touch apparatus and other assemblies in terminal, currently, the other assemblies of touch apparatus and intelligent terminal have Just like connection structure shown in figure 1A.
Referring to Figure 1A, the control chip in intelligent terminal passes through the first USB (Universal Serial Bus, general string Row bus) interface 11 is connected directly with touch apparatus, and combines USB switch 13 and intelligent terminal by secondary USB interface 12 The main device module of upper setting is connected, wherein main device module can be personal computer PC EM equipment module, Android device Android modules or external equipment module, intelligent terminal can embody difference by set different main device modules Function.Based on above-mentioned connection structure, it can be achieved that the data interaction of touch apparatus intelligent terminal main device module.Usually, it touches It touches after equipment and control chip connect by connect the first usb 11, the communication protocol A that when data interaction is followed is by touching The self-defined formation of equipment production firm;And control the communication followed when the main device module data interaction of chip and intelligent terminal Agreement B is by the self-defined formation of intelligent terminal production firm.
To needing to carry out firmware upgrade to the touch apparatus being arranged on during the exploitation and use of intelligent terminal, To improve the compatibility in touch apparatus and intelligent terminal between other modules, and then promote the using experience degree of intelligent terminal. When in the prior art, to touch apparatus firmware upgrade, the firmware upgrade packet that will be stored in main device module is needed to be sent to tactile Equipment is touched, but since the data interaction of each equipment in above-mentioned connection structure uses different agreements, main device module can not be accurate To touch apparatus transmit firmware upgrade packet.In view of the above-mentioned problems, technical staff proposes following improved methods:1) one is uses The mode of software development ensures the accuracy of data transmission, but this kind of mode needs to follow between touch apparatus and control chip Communication protocol A carry out detailed parsing and need to write a large amount of code realizing logic to following the number of different communication protocol According to being transmitted, to realize the secondary development to touch apparatus and then realize the firmware upgrade to touch apparatus, exploitation is increased The exploitation maintenance difficulties of personnel;2) Figure 1B is the structure connection for carrying out firmware upgrade after improving in the prior art convenient for touch apparatus Schematic diagram, the transport protocol by the way of changing hardware frame in Figure 1B when unitized firmware upgrade, but this kind of mode needs Additional 2nd USB switch 14 is added between touch apparatus and control chip, by touch apparatus and storage touch apparatus firmware PC modules, Android modules or the external equipment module of upgrade package are connected directly, and additionally add hardware use cost.
Invention content
An embodiment of the present invention provides data transmission method, device, terminal and storage mediums, with without carrying out complexity The firmware upgrade to touch apparatus can be realized in the case of software development or modification hardware frame, reduce the exploitation of developer Maintenance difficulties save the hardware use cost of intelligent terminal.
In a first aspect, an embodiment of the present invention provides data transmission method, this method includes:
Main device module listen to control chip in listening port port value change after, obtain correspond to the control The current universal serial interface USB descriptors of coremaking piece;
The main device module determines the chip communication with the control chip communication according to the current USB descriptors Port, and firmware upgrade packet is sent to the control chip based on the chip communication port;
The control chip transfers the firmware liter to touch apparatus communication port corresponding with the chip communication port Grade packet, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
Second aspect, the embodiment of the present invention additionally provide data transmission device, which includes:
Acquisition module, after the port value for listening to listening port in control chip in main device module changes, Obtain the current universal serial interface USB descriptors for corresponding to the control chip;
Sending module, for according to the current USB descriptors, determining the chip communication end with the control chip communication Mouthful, and firmware upgrade packet is sent to the control chip based on the chip communication port;
Transfer module, for transferring the firmware liter to touch apparatus communication port corresponding with the chip communication port Grade packet, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, which includes input unit, further includes:
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors so that one or more of processors Realize data transmission method provided in an embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program, the program realize data transmission method provided in an embodiment of the present invention when being executed by processor.
The embodiment of the present invention by main device module listen to control chip in listening port port value change after, Obtain the current universal serial interface USB descriptors for corresponding to the control chip;According to the current USB descriptors, determine With it is described control chip communication chip communication port, and based on the chip communication port to the control chip transmission firmware Upgrade package;It controls chip and transfers the firmware upgrade packet to touch apparatus communication port corresponding with the chip communication port, So that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade, is solved using above-mentioned technical proposal and touched in transmission During the firmware upgrade packet for touching equipment, the agreement difference that the data interaction of each equipment uses causes main device module can not The technical issues of accurately transmitting firmware upgrade packet to touch apparatus realizes without carrying out complicated software development or modification hardware Main device module accurately can transmit firmware upgrade packet to touch apparatus in the case of frame, to ensure touch apparatus energy In the case of enough effectively progress firmware upgrades, the exploitation maintenance difficulties of developer are reduced, the hardware for saving intelligent terminal uses Cost.
Description of the drawings
Figure 1A is the structure connection diagram of touch apparatus and other assemblies on intelligent terminal in the prior art;
Figure 1B is the structure connection diagram for carrying out firmware upgrade after improving in the prior art convenient for touch apparatus;
Fig. 2 is the flow diagram of the data transmission method in the embodiment of the present invention one;
Fig. 3 is the flow diagram of the data transmission method in the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram of the data transmission device in the embodiment of the present invention three;
Fig. 5 is the structural schematic diagram of the terminal in the embodiment of the present invention four.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 2 is the flow chart for the data transmission method that the embodiment of the present invention one provides, and the present embodiment is applicable to use intelligence The firmware upgrade packet stored in main device module in energy terminal carries out the touch apparatus in intelligent terminal the feelings of firmware upgrade Condition, this method can be executed by data transmission device, which is realized by software and/or hardware, and be configured at intelligent end On end.Data transmission method as shown in Figure 2, specifically includes:
S101, main device module listen to control chip in listening port port value change after, acquisition corresponds to The current USB descriptors of the control chip.
When being used for the firmware upgrade of touch apparatus based on data transmission method provided in this embodiment, set without changing to touch The standby connection structure with other assemblies in intelligent terminal, thus, it can be said that the company of touch apparatus and other assemblies in intelligent terminal Binding structure is still as shown in Figure 1A, controls and passes through usb 1 physical connection between chip and touch apparatus.In the present embodiment, may be used Using control chip as the host in USB host-guest architectures, touch apparatus is as the equipment in USB host-guest architectures, when control chip With touch apparatus when being attached for the first time, control chip can enumerate the USB descriptors of touch apparatus and be stored in control chip In.
In addition, carrying out physics by secondary USB interface 12 and USB switch 13 between control chip and main device module Connection, wherein selecting switch of the USB switch 13 as a multichannel, the control by controlling chip connect main device module In any module.The present embodiment can be using main device module as the host in USB host-guest architectures, and control chip is as USB master From the equipment of structure.
It is understood that main device module can give tacit consent to acquisition control chip itself after being connect for the first time with control chip USB descriptors, but follow-up main device module can still control the port value of the listening port on chip with active sniffing, to judge this Whether the port value of listening port changes, and when the port value of listening port changes, and main device module obtains control Data information in coremaking piece in setting memory space corresponding with listening port, main device module is based on the number in the present embodiment It is believed that ceasing the current USB descriptors of acquisition control chip that can be direct or indirect, wherein the current USB is described as being equivalent to The USB descriptors of the touch apparatus stored in control chip.
S102, the main device module determine the chip with the control chip communication according to the current USB descriptors Communication port, and firmware upgrade packet is sent to the control chip based on the chip communication port.
In this step, the firmware upgrade of the touch apparatus of touch apparatus supplier offer is provided in main device module Packet, to carry out firmware upgrade to touch apparatus.The chip communication port specifically can be regarded as main device module to control core Piece needed when the transmission of firmware upgrade packet the communication port of foundation, which can specifically be obtained based on main device module The current USB descriptors obtained determine.Due to the practical USB descriptors for touch apparatus of current USB descriptors, so control chip The firmware upgrade packet that a virtual touch apparatus passively receives main device module transmission can be regarded as at this time.
Specifically, mark is included at least in the USB descriptors of the touch apparatus stored in main device module enumerate control chip Quasi- descriptor, HID (Human Interface Devices, human interface device) device descriptors and HID report descriptions Symbol.Wherein, standard descriptor includes in the configures descriptor that each configuration information of touch apparatus is described, each configuration information Including the corresponding interface descriptor of each interface, the corresponding port descriptor in each port that includes in each interface, pass through mark Port descriptor in quasi- descriptor, the chip communication port of the true oriented control chip transmission firmware upgrade packet of main device module.
S103, the control chip transfer described solid to touch apparatus communication port corresponding with the chip communication port Part upgrade package, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
In the present embodiment, since the current USB descriptors acquired in main device module can specifically regard touch apparatus as USB descriptors, therefore, main device module are substantially equivalent to touch according to the chip communication port that current USB descriptors determine When equipment directly carries out physical connection with main device module by the way of USB interface, the passive main device module that receives sends number According to required communication port, in that case, control chip is equivalent to a void between main device module and touch apparatus Quasi- touch apparatus, at this point, control chip itself is not necessarily to carry out any processing to the firmware upgrade packet of reception, so that it may pass through touch Equipment communication port transfers the firmware upgrade packet to touch apparatus, so that touch apparatus can be consolidated based on the firmware upgrade packet Part upgrades, wherein the touch apparatus communication port is substantially identical as chip communication port, but is specifically located at touch apparatus On, the data transmission that progress firmware upgrade packet transmission has been together constituted with the chip communication port being arranged on control chip is logical Road.
The embodiment of the present invention by main device module listen to control chip in listening port port value change after, Obtain the current universal serial interface USB descriptors for corresponding to the control chip;According to the current USB descriptors, determine With it is described control chip communication chip communication port, and based on the chip communication port to the control chip transmission firmware Upgrade package;It controls chip and transfers the firmware upgrade packet to touch apparatus communication port corresponding with the chip communication port, So that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade, is solved using above-mentioned technical proposal and touched in transmission During the firmware upgrade packet for touching equipment, the agreement difference that the data interaction of each equipment uses causes main device module can not The technical issues of accurately transmitting firmware upgrade packet to touch apparatus realizes without carrying out complicated software development or modification hardware Main device module accurately can transmit firmware upgrade packet to touch apparatus in the case of frame, to ensure touch apparatus energy In the case of enough effectively progress firmware upgrades, the exploitation maintenance difficulties of developer are reduced, the hardware for saving intelligent terminal uses Cost.
Embodiment two
Fig. 3 is the flow diagram of data transmission method provided by Embodiment 2 of the present invention, and the present embodiment is in above-mentioned each reality The basic field of the technical solution of example is applied, preferably by " main device module is according to the current USB descriptors, determining and institute The chip communication port of control chip communication is stated, and firmware upgrade is sent to the control chip based on the chip communication port Packet " is further refined as that " main device module determines described solid to control chip transmission according to the standard descriptor Chip communication port needed for part upgrade package;The main device module choose in the HID report descriptors with target reporting mark Know the corresponding report descriptor of code, as transmit the firmware upgrade packet according to target data transformat;As the HID When the standard identifier of device identifier in device descriptor and the touch apparatus matches, the main device module according to The target data transformat is to firmware upgrade packet described in the chip communication port transmission ".
Further, also additional " the control chip receives what triggering generated for the technical solution of the embodiment of the present invention When firmware upgrade instructs, the communication control information preserved in more new settings memory space, and adjust the device memory institute The technical solution of the port value of corresponding listening port " is become with further describing the port value of listening port of control chip The operation of change.
Further, the technical solution of the embodiment of the present invention " will obtain the current USB descriptions for corresponding to the control chip Symbol " is further refined as " sending reset request to the control chip, and receiving the external interrupt of the control chip feedback After signal, instructed to the control chip sending device acquisition of information;The control chip is obtained based on apparatus information acquiring to refer to Enable the current USB descriptors of feedback ".
Data transmission method as shown in Figure 3, includes the following steps:
When S201, control chip receive the firmware upgrade instruction that triggering generates, preserved in more new settings memory space Communication control information, and adjust the port value of listening port corresponding to the device memory.
In this step, and control chip can receive since what the trigger action of user was formed consolidates touch apparatus The firmware upgrade instruction of part upgrading.After control chip receives firmware upgrade instruction, preserved in more new settings memory space Communication control information, while adjusting the port value of the listening port corresponding to the device memory.Wherein, setting storage is empty Between for storing communication control information, and main device module directly or indirectly obtains control by the setting memory space Current USB descriptors in chip.
It should be noted that corresponding with the device memory in control chip communication control information determination control chip The port value of listening port changes.And main device module controls prison corresponding with the device memory in chip by monitoring The port value of port is listened to determine whether the communication control information in control chip is changed.That is, if setting The communication control information preserved in memory space is changed, then correspondingly, control chip in the device memory The port value of corresponding listening port can also change, and main device module will be stored empty with the equipment for controlling chip at this time Between corresponding listening port port value, as the follow-up foundation for obtaining the current USB descriptors in control chip.Wherein, It can be stored in control chip to control chip as USB host-guest architectures to set the communication control information stored in memory space In the corresponding USB host-guest architectures of host in each equipment USB descriptors;It can also be the sheet for storing each USB descriptors Ground storage address.
Further, each by include in the USB descriptor sequence tables of stored USB descriptors in acquisition control chip Equipment identification information in USB descriptors;When setting the communication control information stored in memory space as USB descriptors, from The target device identification information with setting identification information match is searched in each equipment identification information, and will include the mesh The target USB descriptors of marking device identification information are updated as communication control information into the setting memory space;Alternatively, working as It is USB descriptors when address is locally stored to set the communication control information stored in memory space, will be set comprising the target Address is locally stored as communication control information update to the setting memory space in the target USB descriptors of standby identification information In.
Illustratively, it is assumed that when controlling hypotactic as the USB host of chip, equipment corresponding with control chip For touch apparatus, other equipment 1, other equipment 3 ..., other equipment n, then can be understood as in controlling chip accordingly There are the USB of a USB descriptor comprising touch apparatus, the USB descriptors of n other equipment and control chip itself to retouch State the USB descriptor sequence tables that symbol is formed.Each USB descriptors include an equipment identification information in the list;Work as control After chip receives firmware upgrade instruction, need to search from each equipment identification information for including in USB descriptor sequence tables Equipment identification information corresponding with setting identification information (namely touch apparatus identification information) as target device identification information, And it is updated the target USB descriptors comprising the target device identification information as communication control information to setting memory space In;Or the address that is locally stored for storing target USB descriptors is updated as communication control information to setting memory space In.
Further, the firmware upgrade, which instructs, is:User generates by the touch interface of the touch apparatus touches The first upgrade command;Alternatively, second liter that user generates the triggering of upgrading control on & off switch in the main device module Grade instruction;Alternatively, when the ident value of the pattern switching identifier in the control chip code logic realization is upgrading ident value The corresponding third upgrade command generated.
S202, main device module listen to control chip in listening port port value change after, to the control Chip send reset request, and receive it is described control chip feedback external interrupt signal after, to the control chip transmission Apparatus information acquiring instructs.
S203, the control current USB descriptor of the chip based on apparatus information acquiring instruction feedback is obtained;Its In, the current USB descriptors are determined by the communication control information.
In S202 and S203, main device module listen to control chip in listening port port value change after, Reset request is sent to control chip.After control chip receives the reset request, control chip can be anti-to main device module Present external interrupt signal.After main device module receives the external interrupt signal, sent to control chip for obtaining control The apparatus information acquiring of the USB descriptors of chip instructs.
After control chip receives apparatus information acquiring instruction, main device module can be by obtaining device memory In communication control information, when communication control information be USB descriptors when, by the USB descriptors (namely target USB descriptors) As current USB descriptors;When communication control information be when address is locally stored of USB descriptors, obtain this and be locally stored ground The USB descriptors (namely target USB descriptors) stored in location are used as current USB descriptors.
It should be noted that wherein current USB descriptors include at least:Standard descriptor, human interface device HID reports Descriptor and HID device descriptor.
S204, the main device module determine to the control chip according to the standard descriptor and transmit the firmware Chip communication port needed for upgrade package.
Include in configures descriptor corresponding with touch apparatus, each configuration information each is stored in standard descriptor The corresponding port descriptor in each port for including in the corresponding interface descriptor of a interface, each interface, passes through standard descriptor In port descriptor, the chip communication port of main device module true oriented control chip transmission firmware upgrade packet.
S205, the main device module choose report corresponding with target reporting identification code in the HID report descriptors Descriptor, as transmit the firmware upgrade packet according to target data transformat.
Can include that a variety of different function operate corresponding report descriptor in HID report descriptors, main device module is logical The report identification code report descriptor corresponding with target reporting identification code searched and include in HID report descriptors is crossed, with true Oriented control chip transmit firmware upgrade packet when according to data transmission format.
S206, judge device identifier in HID device descriptor and the touch apparatus standard identifier whether phase Matching;If it is, executing S207.
Include the device identifier for identifying the device type in HID device descriptor.When in HID device descriptor When device identifier is identical as the standard identifier of touch apparatus, it is determined that current USB descriptors are that the USB of touch apparatus is described Symbol controls the firmware upgrade packet that the touch apparatus that chip can be virtual as one receives main control device transmission at this time.
S207, main device module are according to the target data transformat to firmware described in the chip communication port transmission Upgrade package.
S208, the control chip transfer described solid to touch apparatus communication port corresponding with the chip communication port Part upgrade package, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
The embodiment of the present invention has further refined main device module and has obtained in control chip current USB descriptors and to control Coremaking piece sends the operation of firmware upgrade packet, and the changed operation of port value of the listening port of additional control chip, into The perfect technical solution of data transmission method of one step, solves during transmitting the firmware upgrade packet of touch apparatus, respectively The agreement difference that the data interaction of a equipment uses causes main device module accurately not transmit firmware upgrade packet to touch apparatus The technical issues of, main device module can be accurate in the case of realizing without carrying out complicated software development or modification hardware frame True transmits firmware upgrade packet to touch apparatus, thus in the case where ensureing that touch apparatus effectively can carry out firmware upgrade, The exploitation maintenance difficulties for reducing developer, save the hardware use cost of intelligent terminal.
Embodiment three
Fig. 4 is the structural schematic diagram for the data transmission device that the embodiment of the present invention three provides, and the present embodiment is applicable to adopt Firmware upgrade is carried out to the touch apparatus in intelligent terminal with the firmware upgrade packet stored in the main device module in intelligent terminal The case where, which includes:Acquisition module 301, sending module 302 and transfer module 303.
Wherein, acquisition module 301, the port value for listening to listening port in control chip in main device module occur After change, the current universal serial interface USB descriptors for corresponding to the control chip are obtained;
Sending module 302 is logical with the chip of the control chip communication for according to the current USB descriptors, determining Believe port, and firmware upgrade packet is sent to the control chip based on the chip communication port;
Transfer module 303, it is described solid for being transferred to touch apparatus communication port corresponding with the chip communication port Part upgrade package, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
The embodiment of the present invention by main device module listen to control chip in listening port port value change after, Acquisition module 301 obtains the current USB descriptors for corresponding to the control chip;Sending module 302 is described according to current USB Symbol is determined the chip communication port with control chip communication, and is sent to the control chip based on the chip communication port Firmware upgrade packet;Transfer module 303 transfers firmware upgrade packet to touch apparatus communication port corresponding with chip communication port, with So that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.It is solved using above-mentioned technical proposal and is touched in transmission During the firmware upgrade packet of equipment, the agreement difference that the data interaction of each equipment uses causes main device module accurate The technical issues of really transmitting firmware upgrade packet to touch apparatus realizes without carrying out complicated software development or modification hardware cell Main device module accurately can transmit firmware upgrade packet to touch apparatus in the case of frame, to ensure that touch apparatus can In the case of effectively carrying out firmware upgrade, reduce the exploitation maintenance difficulties of developer, save the hardware use of intelligent terminal at This.
Further, the current USB descriptors include:Standard descriptor, human interface device HID report descriptors with And HID device descriptor;
Correspondingly, the sending module 302, including:
Determination unit, for according to the standard descriptor, determining to the control chip and transmitting the firmware upgrade packet Required chip communication port;
Selection unit, for choosing report descriptor corresponding with target reporting identification code in the HID report descriptors, As transmit the firmware upgrade packet according to target data transformat;
Transmission unit, for the standard mark when device identifier and the touch apparatus in the HID device descriptor Symbol is known when matching, according to the target data transformat to firmware upgrade packet described in the chip communication port transmission.
Further, the device further includes:
Module is adjusted, for when the control chip receives the firmware upgrade instruction that triggering generates, more new settings to be deposited The communication control information preserved in storage space, and adjust the port value of listening port corresponding to the device memory.
Further, the adjustment module, including:
First acquisition unit, for obtaining in the control chip each USB descriptors in stored USB descriptor sequences table Equipment identification information;
Updating unit, for searching the target device with setting identification information match from each equipment identification information Identification information, and updated the target USB descriptors comprising the target device identification information as communication control information to institute It states in setting memory space;Alternatively,
The address that is locally stored of target USB descriptors comprising the target device identification information is believed as communication control In breath update to the setting memory space.
Further, in the device, the firmware upgrade instruction is:
The first upgrade command that user generates by the touch interface of the touch apparatus touches;Alternatively,
The second upgrade command that user generates the triggering of upgrading control on & off switch in the main device module;Alternatively,
The ident value of pattern switching identifier in the control chip code logic realization corresponds to when being upgrading ident value The third upgrade command of generation.
Further, the acquisition module 301, including:
Transmission unit for sending reset request to the control chip, and receives the outer of the control chip feedback After portion's interrupt signal, instructed to the control chip sending device acquisition of information;
Second acquisition unit, it is described current based on apparatus information acquiring instruction feedback for obtaining the control chip USB descriptors;
Wherein, the current USB descriptors are determined by the communication control information
Above-mentioned data transmission device can perform any embodiment data presented transmission method of the present invention, have execution data The corresponding function module of transmission method and advantageous effect.
It is understood that for the structural schematic diagram of the intelligent terminal for having touch apparatus in Figure 1A, acquisition module 301 are configured in main device module;Sending module 302 is configured in main device module;Transfer module 303 is configured in control In coremaking piece;Adjustment module is configured in control chip.
Example IV
Fig. 5 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides, as shown in figure 5, the embodiment of the present invention Four terminals provided, including:Input unit 401, processor 402 and storage device 403.Wherein, input unit 401 is for connecing Receive the firmware upgrade packet of touch apparatus supplier.Processor in the terminal can be one or more.It is handled with one in Fig. 5 For device 402, the input unit 401 in the terminal can pass through bus or other modes processor 402 and storage device 403 are connected, and processor 402 is connected with storage device 403 also by bus or other modes, to be connected by bus in Fig. 5 For.
In the present embodiment, the processor 402 in terminal can monitor control chip in listening port port value whether It changes;The current USB descriptors in control chip can also be obtained;It can also be determined and be controlled according to current USB descriptors The chip communication port of chip;It is also based on chip communication port and sends firmware upgrade packet to control chip.
Storage device 403 in the terminal is used as a kind of computer readable storage medium, can be used for storing one or more Program, described program can be software program, computer executable program and module, such as data transmission in the embodiment of the present invention Corresponding program instruction/the module of method (for example, the module in attached data transmission device shown in Fig. 4, including:Acquisition module 301, sending module 302 and transfer module 303).Processor 402 is stored in the software journey in storage device 403 by operation Sequence, instruction and module are realized in above method embodiment to execute various function application and the data processing of terminal Data transmission method.
Storage device 403 may include storing program area and storage data field, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data field can be stored uses created data etc. (such as according to equipment Firmware upgrade packet, each USB descriptors, USB descriptor sequences table, target reporting identification code in above-described embodiment and standard mark Know symbol etc.).In addition, storage device 403 may include high-speed random access memory, can also include nonvolatile memory, A for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, it deposits Storage device 403 can further comprise that the memory remotely located relative to processor 402, these remote memories can pass through net Network is connected to equipment.The example of above-mentioned network include but not limited to internet, intranet, LAN, mobile radio communication and A combination thereof.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, it should The data transmission method that the embodiment of the present invention one or embodiment two provide, this method are realized when program is executed by data transmission device Including:Main device module listen to control chip in listening port port value change after, obtain correspond to the control The current universal serial interface USB descriptors of chip;The main device module is according to the current USB descriptors, determining and institute The chip communication port of control chip communication is stated, and firmware upgrade is sent to the control chip based on the chip communication port Packet;The control chip transfers the firmware upgrade packet to touch apparatus communication port corresponding with the chip communication port, So that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of data transmission method, which is characterized in that including:
Main device module listen to control chip in listening port port value change after, obtain correspond to the control core The current universal serial interface USB descriptors of piece;
The main device module determines the chip communication port with the control chip communication according to the current USB descriptors, And firmware upgrade packet is sent to the control chip based on the chip communication port;
The control chip transfers the firmware upgrade packet to touch apparatus communication port corresponding with the chip communication port, So that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
2. according to the method described in claim 1, it is characterized in that, the current USB descriptors include:Standard descriptor, people Machine interface equipment HID report descriptors and HID device descriptor;
Correspondingly, the main device module according to the current USB descriptors, determines that the chip with the control chip communication leads to Believe port, and firmware upgrade packet is sent to the control chip based on the chip communication port, including:
The main device module is determined and is transmitted needed for the firmware upgrade packet to the control chip according to the standard descriptor Chip communication port;
The main device module chooses report descriptor corresponding with target reporting identification code in the HID report descriptors, makees For transmit the firmware upgrade packet according to target data transformat;
It is described when the standard identifier of device identifier and the touch apparatus in the HID device descriptor matches Main device module is according to the target data transformat to firmware upgrade packet described in the chip communication port transmission.
3. according to the method described in claim 1, being monitored it is characterized in that, being listened in control chip in the main device module Before the port value of port changes, further include:
When the control chip receives the firmware upgrade instruction that triggering generates, the communication control that preserves in more new settings memory space Information processed, and adjust the port value of listening port corresponding to the device memory.
4. according to the method described in claim 3, it is characterized in that, the communication control preserved in the more new settings memory space Information, including:
Obtain the equipment identification information of each USB descriptors in stored USB descriptor sequences table in the control chip;
The target device identification information with setting identification information match is searched from each equipment identification information, and will include The target USB descriptors of the target device identification information are updated as communication control information into the setting memory space; Alternatively,
Address is locally stored as communication control information more in target USB descriptors comprising the target device identification information Newly in the setting memory space.
5. according to the method described in claim 3, it is characterized in that, firmware upgrade instruction is:
The first upgrade command that user generates by the touch interface of the touch apparatus touches;Alternatively,
The second upgrade command that user generates the triggering of upgrading control on & off switch in the main device module;Alternatively,
The ident value of pattern switching identifier in the control chip code logic realization is corresponded to when being upgrading ident value and is generated Third upgrade command.
6. according to the method described in claim 3, it is characterized in that, described obtain the current USB for corresponding to the control chip Descriptor, including:
To the control chip send reset request, and receive it is described control chip feedback external interrupt signal after, to institute State control chip sending device acquisition of information instruction;
Obtain the control current USB descriptor of the chip based on apparatus information acquiring instruction feedback;
Wherein, the current USB descriptors are determined by the communication control information.
7. a kind of data transmission device, which is characterized in that including:
Acquisition module obtains after the port value for listening to listening port in control chip in main device module changes Corresponding to the current universal serial interface USB descriptors of the control chip;
Sending module, for according to the current USB descriptors, determining the chip communication port with the control chip communication, And firmware upgrade packet is sent to the control chip based on the chip communication port;
Transfer module, for transferring the firmware upgrade to touch apparatus communication port corresponding with the chip communication port Packet, so that the touch apparatus is based on the firmware upgrade packet and carries out firmware upgrade.
8. device according to claim 7, which is characterized in that the current USB descriptors include:Standard descriptor, people Machine interface equipment HID report descriptors and HID device descriptor;
Correspondingly, the sending module, including:
Determination unit, for according to the standard descriptor, determining and being transmitted needed for the firmware upgrade packet to the control chip Chip communication port;
Selection unit, for choosing report descriptor corresponding with target reporting identification code in the HID report descriptors, as Transmit the firmware upgrade packet according to target data transformat;
Transmission unit, for the standard identifier when device identifier and the touch apparatus in the HID device descriptor When matching, according to the target data transformat to firmware upgrade packet described in the chip communication port transmission.
9. a kind of terminal, including input unit, which is characterized in that further include:
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors so that one or more of processors are realized Data transmission method as described in any one of claim 1-6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The data transmission method as described in any one of claim 1-6 is realized when execution.
CN201810203509.4A 2018-03-13 2018-03-13 Data transmission method, device, terminal and storage medium Active CN108366131B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810203509.4A CN108366131B (en) 2018-03-13 2018-03-13 Data transmission method, device, terminal and storage medium
PCT/CN2018/118087 WO2019174307A1 (en) 2018-03-13 2018-11-29 Data transmission method and apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810203509.4A CN108366131B (en) 2018-03-13 2018-03-13 Data transmission method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108366131A true CN108366131A (en) 2018-08-03
CN108366131B CN108366131B (en) 2020-10-02

Family

ID=63003897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810203509.4A Active CN108366131B (en) 2018-03-13 2018-03-13 Data transmission method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN108366131B (en)
WO (1) WO2019174307A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019174307A1 (en) * 2018-03-13 2019-09-19 广州视源电子科技股份有限公司 Data transmission method and apparatus, terminal and storage medium
CN111221009A (en) * 2018-11-23 2020-06-02 青岛海信移动通信技术股份有限公司 Switching method of positioning chip, mobile terminal and computer storage medium
CN114153368A (en) * 2021-12-07 2022-03-08 Oppo广东移动通信有限公司 Application control method and system
CN114185609A (en) * 2021-11-04 2022-03-15 深圳市德明利技术股份有限公司 Method and device for processing equipment configuration information, storage medium and processor

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033770A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Touch screen firmware upgrading method and device for mobile terminal
CN102646048A (en) * 2012-05-03 2012-08-22 中兴通讯股份有限公司 Method for upgrading firmware of touch screen of mobile terminal and device
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
CN103577213A (en) * 2012-08-09 2014-02-12 深圳市中兴移动通信有限公司 Method for upgrading touch screen firmware of intelligent terminal
CN105094880A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 USB driving method, computer and compound equipment
CN106168863A (en) * 2015-05-19 2016-11-30 义隆电子股份有限公司 Computer device with touch control chip and updating method of touch control chip
CN106502743A (en) * 2016-11-01 2017-03-15 捷开通讯(深圳)有限公司 The upgrade method of the touch-screen firmware of electronic equipment and update device, electronic equipment
CN107368219A (en) * 2017-07-12 2017-11-21 广州视源电子科技股份有限公司 Touch-responsive method, chip and smart machine

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130087747A (en) * 2012-01-30 2013-08-07 삼성전자주식회사 Display apparatus, upgrade apparatus, display system including the same and the control method thereof
CN105718281B (en) * 2015-07-29 2019-04-12 中科创达软件科技(深圳)有限公司 A kind of touch screen firmware upgrade method and device
CN108366131B (en) * 2018-03-13 2020-10-02 广州视源电子科技股份有限公司 Data transmission method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033770A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Touch screen firmware upgrading method and device for mobile terminal
WO2012079301A1 (en) * 2010-12-17 2012-06-21 中兴通讯股份有限公司 Method and device for upgrading touch screen firmware of mobile terminal
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
CN102646048A (en) * 2012-05-03 2012-08-22 中兴通讯股份有限公司 Method for upgrading firmware of touch screen of mobile terminal and device
CN103577213A (en) * 2012-08-09 2014-02-12 深圳市中兴移动通信有限公司 Method for upgrading touch screen firmware of intelligent terminal
CN105094880A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 USB driving method, computer and compound equipment
CN106168863A (en) * 2015-05-19 2016-11-30 义隆电子股份有限公司 Computer device with touch control chip and updating method of touch control chip
CN106502743A (en) * 2016-11-01 2017-03-15 捷开通讯(深圳)有限公司 The upgrade method of the touch-screen firmware of electronic equipment and update device, electronic equipment
CN107368219A (en) * 2017-07-12 2017-11-21 广州视源电子科技股份有限公司 Touch-responsive method, chip and smart machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019174307A1 (en) * 2018-03-13 2019-09-19 广州视源电子科技股份有限公司 Data transmission method and apparatus, terminal and storage medium
CN111221009A (en) * 2018-11-23 2020-06-02 青岛海信移动通信技术股份有限公司 Switching method of positioning chip, mobile terminal and computer storage medium
CN111221009B (en) * 2018-11-23 2023-10-13 青岛海信移动通信技术有限公司 Switching method of positioning chip, mobile terminal and computer storage medium
CN114185609A (en) * 2021-11-04 2022-03-15 深圳市德明利技术股份有限公司 Method and device for processing equipment configuration information, storage medium and processor
CN114153368A (en) * 2021-12-07 2022-03-08 Oppo广东移动通信有限公司 Application control method and system

Also Published As

Publication number Publication date
WO2019174307A1 (en) 2019-09-19
CN108366131B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN108366131A (en) Data transmission method, device, terminal and storage medium
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
CN106970790B (en) Application program creating method, related equipment and system
CN106411619A (en) Wireless equipment upgrading method based on low-power-consumption wide area network
CN113347225B (en) OTA (over the air) upgrading method and server for terminal equipment of Internet of things
CN103024773A (en) Method, management device and system for upgrading software of wireless router
CN102567061B (en) The method and system of televisor and the two-way upgrading of telepilot
CN102984586A (en) Management method and device for intelligent television applications
CN110635944A (en) Cluster network configuration method and device, electronic equipment and storage medium
CN103324501A (en) Efficient remote updating method for node software of wireless sensor network
CN104317764A (en) Real-time control method for asynchronous messages of 1553B bus
CN104991806A (en) Remote firmware upgrading system and method for single-chip microcomputer program
WO2013097481A1 (en) Method and system for identifying file type
CN104376711A (en) Method and device for rapidly configuring infrared remote control at mobile terminal
CN106502808A (en) A kind of method of copied files, device and terminal
CN111866277A (en) Electric quantity display method, device, equipment and storage medium of wireless earphone
CN110401561B (en) Server positioning method, system, equipment and computer readable storage medium
WO2020098457A1 (en) Narrow band device upgrading method, mobile terminal and readable storage medium
CN102736926B (en) The upgrade method of a kind of task based access control template and device, batch upgrading system
US10757692B2 (en) Method for determining network standard in wireless communications network, access point device, terminal device, and radio network controller
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN105262604A (en) Virtual machine migration method and equipment
IL272881B2 (en) Method and device for wireless communications
CN105071953A (en) Internet-of-things intelligent equipment firmware and application upgrading method
CN109471651A (en) A kind of firmware upgrade method, gateway and firmware upgrade system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant