[go: up one dir, main page]

CN108289039A - Reminding method, control chip, USB connecting lines and the system of download state - Google Patents

Reminding method, control chip, USB connecting lines and the system of download state Download PDF

Info

Publication number
CN108289039A
CN108289039A CN201810065264.3A CN201810065264A CN108289039A CN 108289039 A CN108289039 A CN 108289039A CN 201810065264 A CN201810065264 A CN 201810065264A CN 108289039 A CN108289039 A CN 108289039A
Authority
CN
China
Prior art keywords
data packet
data
downloaded
control
data value
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.)
Pending
Application number
CN201810065264.3A
Other languages
Chinese (zh)
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.)
Shanghai Kangfei Information Technology Co Ltd
Original Assignee
Shanghai Kangfei Information Technology 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 Shanghai Kangfei Information Technology Co Ltd filed Critical Shanghai Kangfei Information Technology Co Ltd
Priority to CN201810065264.3A priority Critical patent/CN108289039A/en
Publication of CN108289039A publication Critical patent/CN108289039A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/24Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated network management hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of reminding method of download state, control chip, USB connecting lines and system, methods to include:The data packet that S10 hosts are sent to equipment to be downloaded;S20 control chips intercept the director data packet in the data packet, and parse described instruction data packet, obtain the corresponding control instruction of different download states;Chip is controlled described in S30 according to the control instruction, control suggestion device sends out corresponding standby signal under different download states.The present invention can intuitively react the download state of current smart machine when downloading code to smart machine by suggestion device.

Description

Reminding method, control chip, USB connecting lines and the system of download state
Technical field
The present invention relates to data downloading field, espespecially the reminding method of download state, control chip, USB connecting lines and it is System.
Background technology
With the development of science and technology smart machine has development at full speed, such as mobile phone, tablet computer, smartwatch, intelligence The miscellaneous smart machine of bracelet etc. emerges one after another, when producing these smart machines, there are one extremely important step, Code is downloaded to them.
When factory downloads code to smart machine at present, it is generally adopted by multi-path download mode, i.e. a computer simultaneously It is downloaded to more smart machines.Its download state is shown by LCD, when the equipment downloaded simultaneously is fewer, work Making personnel can also distinguish which platform device downloads finishes or the error of which platform device downloads by computer, but what ought be downloaded simultaneously sets When standby more, operating personnel may not allow to distinguish, and need, according to the unit type shown on computer, to find corresponding intelligence at this time Energy equipment leads to inefficiency it is done so that being easy error.
Therefore, in order to allow staff to understand the download state of smart machine at a glance, the present invention provides one kind Reminding method, control chip, USB connecting lines and the system of download state.
Invention content
The object of the present invention is to provide a kind of reminding method of download state, chip, USB connecting lines and system are controlled, When downloading code to smart machine, the download state of current smart machine can be intuitively reacted by suggestion device.
Technical solution provided by the invention is as follows:
The present invention provides a kind of reminding methods of download state, including step:S10 hosts are sent to equipment to be downloaded Data packet;S20 control chips intercept the director data packet in the data packet, and parse described instruction data packet, obtain difference The corresponding control instruction of download state;Chip is controlled described in S30 according to the control instruction, control suggestion device is sent out under difference Corresponding standby signal under load state.
Preferably, step S20 is specifically included:Chip is controlled described in S201 whether to judge in the data packet containing request class Type is default request type, and the described instruction data packet that value request is default value request;S202 is if it does, the control chip Described instruction data packet is intercepted and parsed, the data value in described instruction data packet is obtained;Chip then basis is controlled described in S203 The data value obtains the corresponding control instruction of the data value;
The data value includes:The download state is corresponding first data value, the download shape when not being downloaded Corresponding third data value, institute when corresponding second data value, the download state is have downloaded completion when state is is downloading It is corresponding 4th data value when downloading error to state download state;The control instruction includes:First data value is corresponding The corresponding third control of first control instruction, corresponding second control instruction of second data value, the third data value refers to It enables, corresponding 4th control instruction of the 4th data value.
Preferably, include step before step S10:The download state of equipment to be downloaded described in S00 Host Detections, and according to Request type, value request and data value in director data packet is arranged in the download state, the backward equipment to be downloaded send out Send the download state corresponding director data packet.
Preferably, further include step after step S30:S50 sends out the device downloads to be downloaded when the suggestion device When error after corresponding standby signal, the control chip disconnects the company with the equipment to be downloaded after the first preset duration It connects, and after the second preset duration, is attached again with the equipment to be downloaded.
Preferably, further include step after step S30:The control chip will in data packet except described instruction data packet with Outer data packet is transmitted to the equipment to be downloaded.
The present invention also provides a kind of control chips, including:Data interception module is sent when host to equipment to be downloaded When data packet, described instruction data packet is intercepted;Data resolution module obtains different downloads for parsing described instruction data packet The corresponding control instruction of state;Control module, for according to the control instruction, control suggestion device to send out different download states Under corresponding standby signal.
Preferably, the control chip further includes:Judgment module, for whether judging in the data packet containing request class Type is default request type, and the described instruction data packet that value request is default value request;The data interception module, for blocking Cut described instruction data packet;The data resolution module is additionally operable to and parses described instruction data packet, obtains described instruction data Data value in packet;The data resolution module is additionally operable to, according to the data value, obtain the corresponding control of the data value and refer to It enables.
Preferably, the control chip further includes:Processing module sends out described to be downloaded set for working as the suggestion device Standby to download when error after corresponding standby signal, after the first preset duration, disconnection to be downloaded is set the control chip with described Standby connection, and after the second preset duration, be attached again with the equipment to be downloaded.
Preferably, the control chip further includes:Data forwarding module, for described instruction data packet will to be removed in data packet Data packet in addition is transmitted to the equipment to be downloaded.
The present invention also provides a kind of USB connecting lines, and control chip, the control are equipped on the USB connecting lines Chip includes;Data interception module intercepts described instruction data packet when the data packet that host is sent to equipment to be downloaded;Number According to parsing module, for parsing described instruction data packet, the corresponding control instruction of different download states is obtained;Control module is used According to the control instruction, control suggestion device sends out corresponding standby signal under different download states.
Preferably, the control chip further includes:Judgment module, for whether judging in the data packet containing request class Type is default request type, and the described instruction data packet that value request is default value request;The data interception module, the number It is additionally operable to intercept and parse described instruction data packet according to parsing module, obtains the data value in described instruction data packet;The number According to parsing module, it is additionally operable to, according to the data value, obtain the corresponding control instruction of the data value.
Preferably, the control chip further includes:Processing module sends out described to be downloaded set for working as the suggestion device Standby to download when error after corresponding standby signal, after the first preset duration, disconnection to be downloaded is set the control chip with described Standby connection, and after the second preset duration, be attached again with the equipment to be downloaded.
Preferably, the control chip further includes:Data forwarding module, for described instruction data packet will to be removed in data packet Data packet in addition is transmitted to the equipment to be downloaded.
The present invention also provides a kind of prompt system of download state, including host, equipment to be downloaded, control chip, carry Showing device, USB connecting lines, the control chip are electrically connected with the suggestion device;The host by the USB connecting lines with The equipment connection to be downloaded;The control chip is mounted on the USB connecting lines;Or the control chip is mounted on described On the usb connecting port of host or the control chip is mounted on the usb connecting port of the equipment to be downloaded;The master Machine includes packet sending module, the data packet for being sent to the equipment to be downloaded;The control chip includes:Data are blocked Module is cut, when the data packet that host is sent to equipment to be downloaded, intercepts described instruction data packet;Data resolution module is used for Described instruction data packet is parsed, the corresponding control instruction of different download states is obtained;Control module, for being referred to according to the control It enables, control suggestion device sends out corresponding standby signal under different download states.
Preferably, the control chip further includes:Judgment module, for whether judging in the data packet containing request class Type is default request type, and the described instruction data packet that value request is default value request;The data interception module, the number It is additionally operable to intercept and parse described instruction data packet according to parsing module, obtains the data value in described instruction data packet;The number According to parsing module, it is additionally operable to, according to the data value, obtain the corresponding control instruction of the data value.
Preferably, the host includes:Detection module, the download state for detecting the equipment to be downloaded;Data packet Setup module, for according to the download state, request type, value request and data value in director data packet to be arranged;Data Packet sending module, for sending the corresponding director data packet of the download state to the equipment to be downloaded.
The data value includes:The download state is corresponding first data value, the download shape when not being downloaded Corresponding third data value, institute when corresponding second data value, the download state is have downloaded completion when state is is downloading It is corresponding 4th data value when downloading error to state download state;
The control instruction includes:Corresponding first control instruction of first data value, second data value correspond to The second control instruction, corresponding 4th control of the corresponding third control instruction of the third data value, the 4th data value Instruction.
Preferably, the control chip further includes:Processing module sends out described to be downloaded set for working as the suggestion device Standby to download when error after corresponding standby signal, after the first preset duration, disconnection to be downloaded is set the control chip with described Standby connection, and after the second preset duration, be attached again with the equipment to be downloaded.
Preferably, the control chip further includes:Data forwarding module, for described instruction data packet will to be removed in data packet Data packet in addition is transmitted to the equipment to be downloaded.
Reminding method, control chip, USB connecting lines and the system of a kind of download state provided through the invention, can Bring following at least one advantageous effect:
1, control chip can identify specific director data packet, i.e., request type is default request type, and value request is The director data packet of default value request, and it is worth to corresponding control instruction, control prompt according to the data in director data packet Device sends out corresponding standby signal under different download states.User can pre-set data value in director data packet and right The download state answered, such as data value 0X4 indicate that download state is that smart machine has connected host but do not start to download, the control After coremaking piece gets 0X4 this data value, suggestion device can be controlled and open blue lamp;Data value 0X3 indicates that download state is intelligence Can equipment downloading, after the control chip gets 0X3 this data value, suggestion device opening green light and red can be controlled Lamp;Data value 0X2 indicates that download state has been downloaded for smart machine and finishes that the control chip gets this data value of 0X2 Afterwards, suggestion device can be controlled and open green light;Data value 0X1 indicates that download state is that smart machine download mistake, the control occurs After coremaking piece gets 0X1 this data value, suggestion device can be controlled and open red light;In this way, user is sent out by suggestion device Different standby signals, you can know the download state of current smart machine, not need as in the past, searched by computer The download situation of each smart machine, then searches corresponding smart machine by unit type, improves the effect of staff Rate, and do not allowed when searching corresponding smart machine by the method error-prone.
2, it when Host Detection malfunctions to the device downloads to be downloaded, is manually reattached without user described to be downloaded Equipment, the control chip can disconnect the connection with the equipment to be downloaded after the first preset duration automatically, then second It re-establishes and connect with the equipment to be downloaded automatically after preset duration.Improve the intelligence in entire downloading process.
3, the control chip may be mounted on USB connecting lines, and when suggestion device sends out standby signal, user can Corresponding smart machine is more easily found by USB connecting lines.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of prompt of download state Method, above-mentioned characteristic, technical characteristic, advantage and its realization method for controlling chip, USB connecting lines and system give furtherly It is bright.
Fig. 1 is a kind of flow chart of one embodiment of the reminding method of download state of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the reminding method of download state of the present invention;
Fig. 3 is a kind of structural schematic diagram of one embodiment of control chip of the present invention;
Fig. 4 is a kind of structural schematic diagram of one embodiment of the prompt system of download state of the present invention.
Drawing reference numeral explanation:
1- control chip, 11- data interceptions module, 12- data resolution modules, 13- control modules, 14- processing modules, 15- judgment modules, 16- data forwarding modules, 2- hosts, 3- equipment to be downloaded, 4- suggestion devices, 5-USB connecting lines.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, control is illustrated below The specific implementation mode of the present invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, so that simplified form is easy to understand, there is identical structure or function in some figures Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
As shown in Figure 1, a kind of one embodiment of the reminding method of download state of the present invention, including:
The download state of equipment to be downloaded described in S00 Host Detections, and according to the download state, director data packet is set In request type, value request and data value, rear send the corresponding instruction number of the download state to the equipment to be downloaded According to packet.
The data packet that S10 hosts are sent to equipment to be downloaded;
S20 control chips intercept the director data packet in the data packet, and parse described instruction data packet, obtain difference The corresponding control instruction of download state;
Chip is controlled described in S30 according to the control instruction, control suggestion device sends out corresponding under different download states Standby signal.
Specifically, after smart machine is connected to host by USB connecting lines, host can be examined by USB connecting lines Survey the download state of the equipment to be downloaded;The download state can be divided into four classes:1, it has connected but does not download;2, under It carries;3, completion has been downloaded;4, error is downloaded.After the download state for detecting the equipment to be downloaded, host meeting basis waits for down It carries the download state residing for equipment and sends out corresponding director data packet, under different download states, director data packet also can be It is different.
Later, control chip can in the data packet that host is sent to equipment to be downloaded, by described instruction data package capture, Then analysis instruction data packet obtains the corresponding control instruction of different conditions, and controls suggestion device and send out different download states Under corresponding standby signal.The suggestion device can be the LED light of different colours.For example, 1, download state be have connected but When not downloading, standby signal is to open blue lamp, sends out blue light;2, download state is when downloading, and standby signal is that opening is green Lamp and red light, send out green light and feux rouges;3, download state is when having downloaded completion, and standby signal is to open green light, sends out green light; 4, download state is when downloading error, and standby signal is to open red light, sends out feux rouges.
Through the invention, user can intuitively know current equipment to be downloaded by the standby signal that suggestion device is sent out Download progress.Without as before, by checking the download progress of each equipment on host, then according to the model of equipment Find corresponding smart machine.
As shown in Fig. 2, a kind of one embodiment of the reminding method of download state of the present invention, including:
The download state of equipment to be downloaded described in S00 Host Detections, and according to the download state, director data packet is set In request type, value request and data value, rear send the corresponding instruction number of the download state to the equipment to be downloaded According to packet.
The data packet that S10 hosts are sent to equipment to be downloaded;
Chip is controlled described in S201 and judges whether to contain in the data packet request type to preset request type, and is asked Value is the described instruction data packet of default value request;
S202 is obtained in described instruction data packet if it does, the control chip intercepts and parse described instruction data packet Data value;
Chip is controlled described in S203 then according to the data value, obtains the corresponding control instruction of the data value;
Chip is controlled described in S30 according to the control instruction, control suggestion device sends out corresponding under different download states Standby signal.
Data packet in data packet in addition to described instruction data packet is transmitted to described to be downloaded by control chip described in S40 Equipment.
If not containing, S40 is thened follow the steps;
S50 is when the suggestion device the is sent out device downloads to be downloaded error after corresponding standby signal, the control Coremaking piece after the first preset duration, disconnect with the connection of the equipment to be downloaded, and after the second preset duration, again with institute Equipment to be downloaded is stated to be attached.
It is intelligently set specifically, the equipment to be downloaded includes smart mobile phone, smartwatch, Intelligent bracelet, tablet computer etc. Standby, host is typically downloaded by USB line when to device downloads code to be downloaded, and data packet is generally SETUP data Packet.
In order to make under different download states, suggestion device sends out different standby signals, and one is provided in the present embodiment The value of the special SETUP packets of kind, the field of request type is 2, indicates that the data packet is the request bag of manufacturer;Request field Value request is 0XFE, indicates suggestion device in order to control;Data value is hexadecimal number, is converted to last three after binary number Position controls suggestion device respectively.Suggestion device is by taking LED light as an example, the corresponding standby signals of data value 0X4 (binary number 100) To send out blue lamp;The corresponding standby signals of data value 0X3 (binary number 011) are to send out green light and red light;Data value 0X2 (binary number 010) corresponding standby signal is to send out green light;The corresponding prompt letters of data value 0X1 (binary number 001) Number to send out red light;
, can be according to current download state after Host Detection to the download state of the equipment to be downloaded, setting instruction number According to request type, value request and the data value in packet;Such as:Download state is that when having connected but not downloading, request type is arranged For 2, value request 0XFE, data value is 0X4 (the first data value);Download state is when downloading, and setting request type is 2, value request 0XFE, data value are 0X3 (the second data value);Download state is when having downloaded completion, and setting request type is 2, value request 0XFE, data value are 0X2 (third data value);Download state be download error when, setting request type be 2, Value request is 0XFE, and data value is 0X1 (the 4th data value).
The control chip may be configured as the director data packet that interception request type is 2, value request is 0XFE.Host is to waiting for Download equipment send director data packet when, control chip can interception request type be 2, the director data packet that value request is 0XFE, Then its data value is obtained, according to data value, sends out corresponding control instruction.Such as data value is in the director data packet received 0X2 (third data value), then can send out a control instruction for opening green light.After suggestion device receives control instruction, can only it open Green light, the standby signal that user sends out according to suggestion device can determine whether that the download progress of this current equipment to be downloaded is to download It completes.
The download state of the equipment to be downloaded described in the Host Detection is the device downloads error to be downloaded, described to carry Showing device is sent out when the device downloads to be downloaded error after corresponding standby signal, and control chip to be downloaded can also be set to described It is standby to be reconnected.Its first preset duration and the second preset duration can be by user's sets itselfs as needed.
Later, the data in addition to director data packet can be forwarded a packet to equipment to be downloaded by the control chip.Make to wait for down The data packet of host transmission can be received by carrying equipment.
As shown in figure 3, a kind of one embodiment of control chip of the present invention, including:
Data interception module 11 intercepts described instruction data packet when the data packet that host 2 is sent to equipment 3 to be downloaded;
Data resolution module 12 is electrically connected with the data interception module 11, for parsing described instruction data packet, obtains The corresponding control instruction of different download states;
Control module 13 is electrically connected with the data resolution module 12, for according to the control instruction, control prompt dress It sets 4 and sends out corresponding standby signal under different download states.
Preferably, the control chip 1 further includes:Judgment module 15 is electrically connected with the data resolution module 12, is used for Judge whether to contain in the data packet request type to preset request type, and the described instruction that value request is default value request Data packet;The data interception module 11 is for intercepting described instruction data packet;The data resolution module 12 is additionally operable to parse Described instruction data packet obtains the data value in described instruction data packet;The data resolution module 12 is additionally operable to according to Data value obtains the corresponding control instruction of the data value.
The data value includes:The download state is corresponding first data value, the download shape when not being downloaded Corresponding third data value, institute when corresponding second data value, the download state is have downloaded completion when state is is downloading It is corresponding 4th data value when downloading error to state download state;
The control instruction includes:Corresponding first control instruction of first data value, second data value correspond to The second control instruction, corresponding 4th control of the corresponding third control instruction of the third data value, the 4th data value Instruction.
Preferably, the control chip 1 further includes:Processing module 14 is electrically connected with the control module 13, for working as institute It is that the equipment 3 to be downloaded downloads error to state host 2 and detect the download state of the equipment to be downloaded 3, and the suggestion device 4 is sent out Go out the equipment to be downloaded 3 to download when error after corresponding standby signal, the control chip 1 breaks after the first preset duration The connection with the equipment 3 to be downloaded is opened, and after the second preset duration, is attached again with the equipment 3 to be downloaded.
Preferably, the control chip 1 further includes:Data forwarding module 16 is electrically connected with the judgment module 15, is used for Data packet in addition to described instruction data packet is transmitted to the equipment to be downloaded 3.
Specifically, in the present embodiment, the control chip 1 can be arranged on USB line, can also be arranged in host 2 At USB interface or at the USB interface of equipment to be downloaded 3.In addition to this, also can the control chip 1 be made one kind having two The device of end interface, one end may be connected to host 2, and the other end is connected to USB interface;Or one end is connected to equipment 3 to be downloaded, The other end is connected to USB interface;The device is equipped with LED light, when it is desired to be used, only need to be by USB to realize prompt facility The input port of the device is accessed in one end of connecting line 5, and the delivery outlet of the device is connected in equipment 3 to be downloaded;Or by institute The input port for stating device is connected to the download output port of host 2, and the output port of the device is connected to USB connecting lines 5 The other end of one end, USB connecting lines 5 is connected to equipment 3 to be downloaded.
It controls chip 1 and intercepts director data packet, and the prompt that suggestion device 4 sends out response is controlled according to director data packet The step of signal, can refer to the embodiment of the above method, and details are not described herein again.
The present invention also provides a kind of embodiments of USB connecting lines:
Control chip 1 is installed, the control chip 1 is connected with suggestion device 4 on the USB connecting lines 5.Preferably, Any position on USB connecting lines 5 can be arranged in the control chip 1, and its purpose is to play to intercept director data packet Effect.
The concrete structure of the control chip 1 can refer to above-described embodiment, and details are not described herein again.
As shown in figure 4, the present invention also provides a kind of embodiment of the prompt system of download state, including host 2, wait for down Equipment 3, control chip 1, suggestion device 4, USB connecting lines 5 are carried, the control chip 1 is electrically connected with the suggestion device 4;Institute Host 2 is stated to connect with the equipment 3 to be downloaded by the USB connecting lines 5;The control chip 1 is mounted on the USB connections On line 5;Or the control chip 1 is mounted on the usb connecting port of the host 2 or the control chip 1 is mounted on described On the usb connecting port of equipment 3 to be downloaded;The control chip 1 includes:Data interception module 11, when host 2 is set to be downloaded When the data packet of standby 3 transmission, described instruction data packet is intercepted;Data resolution module 12 is obtained for parsing described instruction data packet To the corresponding control instruction of different download states;Control module 13, for according to the control instruction, control suggestion device 4 to be sent out Go out corresponding standby signal under different download states.
Preferably, the control chip 1 further includes:Judgment module 15, for whether judging in the data packet containing ask the visitor in It is default request type to seek type, and the described instruction data packet that value request is default value request;The data interception module 11, The data resolution module 12 is additionally operable to intercept and parse described instruction data packet, obtains the data in described instruction data packet Value;The data resolution module 12 is additionally operable to, according to the data value, obtain the corresponding control instruction of the data value.
Preferably, the host 2 includes:Detection module, the download state for detecting the equipment to be downloaded 3;Data Packet setup module, for according to the download state, request type, value request and data value in director data packet to be arranged;Number According to packet sending module, for sending the corresponding director data packet of the download state to the equipment 3 to be downloaded.
Preferably, the control chip 1 further includes:Processing module 14 detects described to be downloaded set for working as the host 2 Standby 3 download state is that the equipment 3 to be downloaded downloads error, and the suggestion device 4 sends out and set out under the equipment to be downloaded 3 After corresponding standby signal of staggering the time, the control chip 1 disconnects the company with the equipment 3 to be downloaded after the first preset duration It connects, and after the second preset duration, is attached again with the equipment 3 to be downloaded.
Preferably, the control chip 1 further includes:Data forwarding module, being used for will be in addition to described instruction data packet Data packet is transmitted to the equipment to be downloaded 3.
Specifically, when downloading code to equipment 3 to be downloaded, host 2 can be by USB to 3 transmission data of equipment to be downloaded Packet can send out specific director data when host 2 detects the download state of the equipment to be downloaded 3 to equipment 3 to be downloaded Packet.
Described instruction data packet includes that download state is corresponding first director data packet when having connected but not downloading;It downloads State is the corresponding second director data packet just in downloading process, and download state is to download corresponding third instruction when being completed Data packet, download state are corresponding 4th director data packet when downloading mistake.When control chip 1 receives director data packet When, the download state of current equipment 3 to be downloaded can be got according to director data packet, and send out by suggestion device 4 corresponding Prompt.User is non-by checking the download state of the current equipment 3 to be downloaded of standby signal i.e. can be known that suggestion device 4 is sent out It is often convenient, and do not allow error-prone.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of reminding method of download state, which is characterized in that including step:
The data packet that S10 hosts are sent to equipment to be downloaded;
S20 control chips intercept the director data packet in the data packet, and parse described instruction data packet, obtain different downloads The corresponding control instruction of state;
Chip is controlled described in S30 according to the control instruction, control suggestion device sends out corresponding prompt under different download states Signal.
2. a kind of reminding method of download state according to claim 1, which is characterized in that step S20 is specifically included:
Chip is controlled described in S201 and judges whether to contain in the data packet request type to preset request type, and value request is The described instruction data packet of default value request;
S202 obtains the number in described instruction data packet if it does, the control chip intercepts and parse described instruction data packet According to value;
Chip is controlled described in S203 then according to the data value, obtains the corresponding control instruction of the data value;
The data value includes:The download state is that corresponding first data value, the download state are when not being downloaded Corresponding second data value when downloading, the download state be downloaded corresponding third data value when completion, it is described under Load state is corresponding 4th data value when downloading error;
The control instruction includes:Corresponding first control instruction of first data value, second data value corresponding Two control instructions, the corresponding third control instruction of the third data value, corresponding 4th control instruction of the 4th data value.
3. a kind of reminding method of download state according to claim 1, which is characterized in that include step before step S10 Suddenly:
The download state of equipment to be downloaded described in S00 Host Detections, and according to the download state, be arranged in director data packet Request type, value request and data value.
4. a kind of reminding method of download state according to claim 3, which is characterized in that further include after step S30 Step:
Chip is controlled described in S40, and the data packet in data packet in addition to described instruction data packet is transmitted to described to be downloaded set It is standby.
5. a kind of reminding method of download state according to claim 1, which is characterized in that further include after step S30 Step:
S50 is when the suggestion device the is sent out device downloads to be downloaded error after corresponding standby signal, the control core Piece disconnects the connection with the equipment to be downloaded, and after the second preset duration, waited for again with described after the first preset duration Equipment is downloaded to be attached.
6. a kind of apply in a kind of control chip of the reminding method of download state according to any one of claims 1 to 5, It is characterized in that, including:
Data interception module intercepts director data packet when the data packet that host is sent to equipment to be downloaded;
Data resolution module obtains the corresponding control instruction of different download states for parsing described instruction data packet;
Control module, for according to the control instruction, control suggestion device to send out corresponding prompt letter under different download states Number.
7. a kind of control chip according to claim 6, which is characterized in that the control chip further includes:
Judgment module, for judging whether to contain in the data packet request type to preset request type, and value request is pre- If the described instruction data packet of value request;
The data interception module, for intercepting described instruction data packet;
The data resolution module is additionally operable to and parses described instruction data packet, obtains the data value in described instruction data packet;
The data resolution module is additionally operable to, according to the data value, obtain the corresponding control instruction of the data value;
The data value includes:The download state is that corresponding first data value, the download state are when not being downloaded Corresponding second data value when downloading, the download state be downloaded corresponding third data value when completion, it is described under Load state is corresponding 4th data value when downloading error;
The control instruction includes:Corresponding first control instruction of first data value, second data value corresponding Two control instructions, the corresponding third control instruction of the third data value, corresponding 4th control instruction of the 4th data value.
8. a kind of apply in a kind of USB connecting lines of the reminding method of download state according to any one of claims 1 to 5, Control chip is installed on the USB connecting lines, which is characterized in that the control chip includes;
Data interception module intercepts described instruction data packet when the data packet that host is sent to equipment to be downloaded;
Data resolution module obtains the corresponding control instruction of different download states for parsing described instruction data packet;
Control module, for according to the control instruction, control suggestion device to send out corresponding prompt letter under different download states Number.
9. a kind of apply in a kind of download state of the reminding method of download state according to any one of claims 1 to 5 Prompt system, including host, equipment to be downloaded, control chip, suggestion device, USB connecting lines, it is characterised in that:
The control chip is electrically connected with the suggestion device;The host to be downloaded is set by the USB connecting lines with described Standby connection;
The control chip is mounted on the USB connecting lines;Or the control chip is mounted on the connecting pins USB of the host On mouth or the control chip is mounted on the usb connecting port of the equipment to be downloaded;
The host includes:
Packet sending module, the data packet for being sent to the equipment to be downloaded;
The control chip includes:
Data interception module intercepts described instruction data packet when the data packet that host is sent to equipment to be downloaded;
Data resolution module obtains the corresponding control instruction of different download states for parsing described instruction data packet;
Control module, for according to the control instruction, control suggestion device to send out corresponding prompt letter under different download states Number.
10. a kind of prompt system of download state according to claim 9, which is characterized in that the host includes:
Detection module, the download state for detecting the equipment to be downloaded;
Data packet setup module, request type, value request sum number for according to the download state, being arranged in director data packet According to value;
The data value includes:The download state is that corresponding first data value, the download state are when not being downloaded Corresponding second data value when downloading, the download state be downloaded corresponding third data value when completion, it is described under Load state is corresponding 4th data value when downloading error;
The control instruction includes:Corresponding first control instruction of first data value, second data value corresponding Two control instructions, the corresponding third control instruction of the third data value, corresponding 4th control instruction of the 4th data value.
CN201810065264.3A 2018-01-23 2018-01-23 Reminding method, control chip, USB connecting lines and the system of download state Pending CN108289039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810065264.3A CN108289039A (en) 2018-01-23 2018-01-23 Reminding method, control chip, USB connecting lines and the system of download state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810065264.3A CN108289039A (en) 2018-01-23 2018-01-23 Reminding method, control chip, USB connecting lines and the system of download state

Publications (1)

Publication Number Publication Date
CN108289039A true CN108289039A (en) 2018-07-17

Family

ID=62835720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810065264.3A Pending CN108289039A (en) 2018-01-23 2018-01-23 Reminding method, control chip, USB connecting lines and the system of download state

Country Status (1)

Country Link
CN (1) CN108289039A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292836A1 (en) * 2008-05-21 2009-11-26 Realtek Semiconductor Corp. Data access device and method for communication system
CN101998158A (en) * 2009-08-14 2011-03-30 深圳Tcl新技术有限公司 Method for implementing intelligent downloading by network television and network television
CN104808768A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Prompting method and prompting device for file transfer progress and mobile terminal
CN105893218A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Prompting method and device of file downloading status

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292836A1 (en) * 2008-05-21 2009-11-26 Realtek Semiconductor Corp. Data access device and method for communication system
CN101998158A (en) * 2009-08-14 2011-03-30 深圳Tcl新技术有限公司 Method for implementing intelligent downloading by network television and network television
CN104808768A (en) * 2015-04-15 2015-07-29 广东欧珀移动通信有限公司 Prompting method and prompting device for file transfer progress and mobile terminal
CN105893218A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Prompting method and device of file downloading status

Similar Documents

Publication Publication Date Title
CN101170438B (en) A remote serial port debugging method and its system
CN104008008B (en) A kind of method of multiplexing debugging serial ports in linux system
CN113138779B (en) FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN103517375B (en) A kind of to multiple mobile equipment identification, the method for communication and device
CN105471973A (en) Remote monitoring method and remote monitoring system based on indicating lamp color of monitored object
CN105893311A (en) Universal serial bus interface drive configuration method and device
CN108957164A (en) A kind of test device and test method of buckle
CN110347539B (en) Test method, device, system, computing device and medium applied to server
CN107977290A (en) The test method and test system in a kind of MIPI circuits
CN103840879B (en) A kind of optical fiber office is to recognition methods, device and system
CN202931339U (en) Device for controlling power supply of power supply equipment
CN108289039A (en) Reminding method, control chip, USB connecting lines and the system of download state
CN109728976A (en) A kind of SCD file Quadratic Imaginary circuit correctness automatic check method and tool
WO2025102991A1 (en) Automatic identification circuit for external device to type-c interface, electronic device, server, and identification method
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN105676052A (en) A method and system for serial port line sequence identification
CN215375738U (en) Wire harness detection device and wire harness detection system
CN108062268A (en) A kind of automatic test has method, test fixture and the device of RS232RS485 general purpose interfaces
CN105553859A (en) System and method for enabling SFP modules to be adaptive to interfaces
CN108449741A (en) The method of bluetooth equipment quickly connected
CN101459919B (en) Network selecting method and apparatus
CN112859660B (en) Equipment synchronization control method, device, terminal and system
CN209158405U (en) A kind of wireless teaching system of robot
CN114499701A (en) A communication distance indication method for field testing of wireless modules
CN106584862A (en) 3D printing WIFI control system with built-in Web service and control method thereof

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180717