CN107395666A - A kind of method and device of operating numerical control lathe upgrading data packet - Google Patents

A kind of method and device of operating numerical control lathe upgrading data packet Download PDF

Info

Publication number
CN107395666A
CN107395666A CN201710367172.6A CN201710367172A CN107395666A CN 107395666 A CN107395666 A CN 107395666A CN 201710367172 A CN201710367172 A CN 201710367172A CN 107395666 A CN107395666 A CN 107395666A
Authority
CN
China
Prior art keywords
machine tool
control machine
data packet
digit control
upgrading data
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
CN201710367172.6A
Other languages
Chinese (zh)
Other versions
CN107395666B (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.)
Huazhong University of Science and Technology
Wuhan Huazhong Numerical Control Co Ltd
Original Assignee
Huazhong University of Science and Technology
Wuhan Huazhong Numerical Control 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 Huazhong University of Science and Technology, Wuhan Huazhong Numerical Control Co Ltd filed Critical Huazhong University of Science and Technology
Priority to CN201710367172.6A priority Critical patent/CN107395666B/en
Publication of CN107395666A publication Critical patent/CN107395666A/en
Application granted granted Critical
Publication of CN107395666B publication Critical patent/CN107395666B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

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

Abstract

The invention discloses a kind of method and device of operating numerical control lathe upgrading data packet, methods described includes opening WIFI hot spot, establishes and communicates to connect with least one Digit Control Machine Tool, obtains the current software version information of at least one Digit Control Machine Tool;Upgrading data packet corresponding to download and the check value for obtaining the upgrading data packet;The upgrading data packet completed according to downloading, check value is calculated by default algorithm;When the check value of acquisition is identical with the check value calculated, the upgrading data packet for downloading completion is transferred to corresponding at least one Digit Control Machine Tool.This method can effectively eliminate the situation for downloading wrong AKU by hand, and time, efficiency high can be saved, improved the usage experience of user with the system software of more Digit Control Machine Tools of batch upgrade by greatly facilitating user.

Description

A kind of method and device of operating numerical control lathe upgrading data packet
Technical field
The present invention relates to a kind of method and device of operating numerical control lathe upgrading data packet.
Background technology
At present, with the rapid development of numerical control machine tool technique, present numerically-controlled machine tool system software is gradually perfect, its The method of middle numerically-controlled machine tool system software upgrading has following several:
1. upgraded using USB flash disk
Selection, which is upgraded using USB flash disk, it is necessary to arrive first, downloads upgrading APMB package in numerical control producer website or official's Dropbox, then By the USB port of USB flash disk insertion numerically-controlled machine tool system, upgraded in numerical control software upgrading interface selection AKU.This upgrading side Following defect be present in method:Online by hand is needed to download AKU.Download is likely to occur human factor and causes to download mistake by hand The situation of AKU (version of download package mismatches with target version).Now upgraded, digital control system can prompt version not Matching, operator needs to surf the Net again again download AKU and copies USB flash disk to.And if more Digit Control Machine Tools need to rise Level, then need all repeatedly upgrading operations, upgrading efficiency on every lathe low.
2. use network upgrade
If user workshop is mounted with workshop network and workshop master control (industrial computer), then user can just pass through workshop The digital control system upgrading software installed in master control carries out networking upgrading.Using this upgrading mode, user can receive numerical control The software upgrading notice of producer, realize automatic upgrading and the batch upgrade of digital control system.It is most of at present to use but its problem is Family workshop is fitted without workshop network, does not possess the condition made in this way.
It can be seen that Digit Control Machine Tool data upgrading implementation method operation of the prior art is all more complicated, it is impossible to convenient, fast Get Digit Control Machine Tool upgrading data packet.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State a kind of method and device of operating numerical control lathe upgrading data packet of problem.
In a first aspect, the embodiment of the present invention provides a kind of method of operating numerical control lathe upgrading data packet, including:
WIFI hot spot is opened, establishes and communicates to connect with least one Digit Control Machine Tool, obtains working as at least one Digit Control Machine Tool Preceding software version information;
Upgrading data packet corresponding to download and the check value for obtaining the upgrading data packet;
The upgrading data packet completed according to downloading, check value is calculated by default algorithm;
When the check value of acquisition is identical with the check value calculated, the upgrading data packet for downloading completion is transferred to Corresponding at least one Digit Control Machine Tool.
In one embodiment, described establish communicates to connect, including:
Receive transmission control protocol TCP socket and the port numbers that the Digit Control Machine Tool is sent;
According to the TCP socket, Digit Control Machine Tool IP is parsed, according to the Digit Control Machine Tool IP and port numbers and the number Control lathe establishes TCP communication connection.
In one embodiment, the current software version information for obtaining at least one Digit Control Machine Tool, including:
Coding request is sent at least one Digit Control Machine Tool;
Receive current software version information and free disk space information that at least one Digit Control Machine Tool returns.
In one embodiment, the upgrading data packet for downloading completion is transferred to corresponding at least one numerical control Lathe, including:
Parse the type of the upgrading data packet;
Whether the type and at least one Digit Control Machine Tool for judging the upgrading data packet match;
The upgrading data packet is transferred to at least one Digit Control Machine Tool to match.
In one embodiment, the upgrading data packet for downloading completion is being transferred to corresponding at least one number After controlling lathe, methods described also includes:
Execution updating operation is sent to instruct at least one Digit Control Machine Tool;The updating operation instruction is automatic upgrading Instruction, notice upgrade command, manual upgrade command.
In one embodiment, the upgrading data packet completed according to downloading, check value, bag are calculated by default algorithm Include:
The upgrading data packet and the type of the upgrading data packet check value obtained completed according to downloading, are calculated by making a summary Method calculates check value, and the type of check value of the type of the check value calculated with obtaining is identical;The type of the check value For one or more of:MD5 values, SHA1 values, crc value.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, and the terminal includes:
Communication module, for opening WIFI hot spot, establish and communicate to connect with least one Digit Control Machine Tool;
Acquisition module, for obtaining the current software version information of at least one Digit Control Machine Tool;
Download module, for downloading corresponding upgrading data packet and obtaining the check value of the upgrading data packet;
Computing module, for downloading the upgrading data packet completed according to download module, calculated and verified by default algorithm Value;
Transport module, for when the check value of acquisition is identical with the check value calculated, the liter of completion will to be downloaded DBMS bag is transferred to corresponding at least one Digit Control Machine Tool.
In one embodiment, the communication module includes:
Receiving submodule, for receiving transmission control protocol TCP socket and the port numbers that the Digit Control Machine Tool is sent;
Communicate submodule, for the TCP socket received according to receiving submodule, Digit Control Machine Tool IP is parsed, according to institute State Digit Control Machine Tool IP and port numbers and establish TCP communication with the Digit Control Machine Tool and be connected.
In one embodiment, the acquisition module, including:
Sending submodule, for sending coding request at least one Digit Control Machine Tool;
Acquisition submodule, for receiving current software version information and the available magnetic that at least one Digit Control Machine Tool returns Disk space information.
In one embodiment, the transport module, including:
Analyzing sub-module, for parsing the type of the upgrading data packet;
Judging submodule, the type of the upgrading data packet parsed for judging analyzing sub-module and at least one numerical control Whether lathe matches;
Submodule is transmitted, for by the judged result according to judging submodule, the upgrading data packet to be transferred into phase At least one Digit Control Machine Tool matched somebody with somebody.
In one embodiment, the terminal also includes:
Sending module, instructed for sending execution updating operation at least one Digit Control Machine Tool;The updating operation Instruct as automatic upgrade command, notice upgrade command, manual upgrade command.
In one embodiment, the computing module, specifically for according to the upgrading data packet and acquisition for downloading completion The type of the upgrading data packet check value, check value is calculated by digest algorithm, and the type of the check value calculated is with obtaining The type of the check value taken is identical;The type of the check value is one or more of:MD5 values, SHA1 values, crc value.
The third aspect, the embodiment of the present invention provide a kind of method of Digit Control Machine Tool upgrading data packet, including:
Communicated to connect by WIFI, send current version information to mobile terminal;
Receive the respective upgrades packet that mobile terminal is sent.
In one embodiment, it is described to be communicated to connect by WIFI, including:
TCP socket and port numbers are sent to the mobile terminal;
TCP communication is established with the mobile terminal to be connected.
In one embodiment, it is described transmission current version information to mobile terminal, including
Receive the coding request that the mobile terminal is sent;
Asked according to the coding, send current software version information and free disk space information.
In one embodiment, methods described also includes:Receive the execution updating operation instruction that mobile terminal is sent.
Fourth aspect, the embodiment of the present invention provide a kind of Digit Control Machine Tool, including:
Sending module, for being communicated to connect by WIFI, current version information is sent to mobile terminal;
Receiving module, for receiving the respective upgrades packet of mobile terminal transmission.
In one embodiment, the sending module, including communication submodule, for sending TCP socket and port numbers To the mobile terminal;TCP communication is established with the mobile terminal to be connected.
In one embodiment, the sending module, in addition to:
Receiving submodule, the coding request sent for receiving the mobile terminal;
Sending submodule, for the coding request received according to receiving submodule, send current software version information With free disk space information.
In one embodiment, the receiving module, it is additionally operable to receive the execution updating operation instruction that mobile terminal is sent.
5th aspect, the embodiment of the present invention provide system, including the mobile terminal as any one of above-mentioned embodiment With the Digit Control Machine Tool as any one of above-mentioned embodiment.
The beneficial effect of above-mentioned technical proposal provided in an embodiment of the present invention comprises at least:
A kind of method and device of operating numerical control lathe upgrading data packet provided in an embodiment of the present invention, methods described include WIFI hot spot is opened, establishes and communicates to connect with least one Digit Control Machine Tool, obtains the Current software version of at least one Digit Control Machine Tool This information;Upgrading data packet corresponding to download and the check value for obtaining the upgrading data packet;The ascending series completed according to downloading According to bag, check value is calculated by default algorithm;When the check value of acquisition is identical with the check value calculated, completed downloading The upgrading data packet be transferred to corresponding at least one Digit Control Machine Tool.This method passes through mobile terminal and Digit Control Machine Tool WLAN WIFI communication connections are established, and obtain the current software version information of Digit Control Machine Tool, and are believed according to current version Breath, then in upgrading data packet corresponding to wide area network or mobile network environment download, and obtain the check value of the upgrading data packet; By calculating its check value in the default algorithm of mobile terminal, when the check value of acquisition is identical with the check value calculated, then lead to Cross WLAN WIFI communication connections and be rapidly transferred to corresponding Digit Control Machine Tool;Can effectively it be eliminated using this method The situation of wrong AKU is downloaded by hand, and greatly facilitating user can be saved with the system software of more Digit Control Machine Tools of batch upgrade Save time, efficiency high, improve the usage experience of user.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for operating numerical control lathe upgrading data packet provided in an embodiment of the present invention;
Fig. 2 is that mobile phone provided in an embodiment of the present invention obtains Digit Control Machine Tool version information and downloading data flow chart;
Fig. 3 is step S103 provided in an embodiment of the present invention flow chart;
Fig. 4 is mobile phone provided in an embodiment of the present invention and Digit Control Machine Tool interaction schematic diagram;
Fig. 5 is a kind of block diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the block diagram of communication module 51 provided in an embodiment of the present invention;
Fig. 7 is the block diagram of acquisition module 52 provided in an embodiment of the present invention;
Fig. 8 is the block diagram of transport module 54 provided in an embodiment of the present invention;
Fig. 9 is a kind of flow chart of the method for Digit Control Machine Tool upgrading data packet provided in an embodiment of the present invention;
Figure 10 is a kind of block diagram of Digit Control Machine Tool provided in an embodiment of the present invention;
Figure 11 is the block diagram of sending module 101 provided in an embodiment of the present invention;
Figure 12 is a kind of schematic diagram of system provided in an embodiment of the present invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
The technical scheme that the embodiment of the present disclosure provides, is related to two sides:Mobile terminal and Digit Control Machine Tool, wherein, mobile terminal Communicated to connect by being established with Digit Control Machine Tool, the version information current for obtaining numerically-controlled machine tool system software, corresponding to download Upgrading data packet and the check value for obtaining the upgrading data packet, according to the upgrading data packet of download, its check value is verified, When being verified, above-mentioned data AKU is transferred to Digit Control Machine Tool;Digit Control Machine Tool, display screen can be carried, for passing through It is connected with mobile terminal, sends its own system software version information to mobile terminal, and receive the above-mentioned number of mobile terminal transmission According to AKU, to realize the upgrading of numerically-controlled machine tool system software data.It can effectively eliminate and download mistake upgrading by hand The situation of bag, greatly facilitating user can be with the system software of more Digit Control Machine Tools of batch upgrade, and transmission speed is quickly, saves Time, customer upgrade cost is reduced, improve the usage experience of user.Above-mentioned data AKU refers to compare Digit Control Machine Tool system The newer edition system software of system software current version or current version may be used also to the difference AKU of redaction To be system patch etc..
The embodiment of the present invention is directed to the user for not installing workshop network, there is provided a kind of operating numerical control lathe upgrading data packet Method, shown in reference picture 1, may comprise steps of S101~S104;
S101, WIFI hot spot is opened, establish and communicate to connect with least one Digit Control Machine Tool, obtain at least one Digit Control Machine Tool Current software version information;
Upgrading data packet corresponding to S102, download simultaneously obtains the check value of the upgrading data packet;
S103, the upgrading data packet completed according to download, pass through default algorithm and calculate check value;
S104, when the check value of acquisition is identical with the check value calculated, will download complete the upgrading data packet At least one Digit Control Machine Tool corresponding to being transferred to.
Above-mentioned steps are described in detail below:
Wherein mobile terminal can be such as mobile phone, Ipad, HPC etc., can also be intelligent glasses, intelligent watch, The wearable device products such as Intelligent bracelet, intelligent ring, the disclosure are implemented not limit this.
In the default distance range of Digit Control Machine Tool in S101, the network share of mobile terminal is opened, establishes WIFI Focus, Digit Control Machine Tool is waited to be connected to the WIFI hot spot, so as to establish communication connection;If the Digit Control Machine Tool had connected State mobile terminal, then when Digit Control Machine Tool is in the range of the mobile terminal WIFI signal coverage distance, Digit Control Machine Tool can be certainly It is dynamic to be connected to mobile terminal.And currently attached Digit Control Machine Tool list can be checked by mobile terminal.Mobile terminal and numerical control The mode of the foundation connection of lathe can also such as have USB, bluetooth, infrared etc..Mobile terminal is connected by being established with Digit Control Machine Tool After connecing, pass through the above-mentioned Digit Control Machine Tool current software version information of possessed authority acquiring.
According to obtained version information in S102, under wide area network or mobile network environment, corresponding upgrading data are downloaded Bag.For example mobile phone is when getting numerical control producer and having the cnc system software of redaction, according to obtaining above-mentioned multiple Digit Control Machine Tools Version number, a software matrix to be downloaded is generated, then user can take mobile phone connecting wan in family or directly move Under dynamic network environment, upgrading data packet corresponding to download, and be retrieved as preventing upgrading data packet file from damaging in downloading process, Or the check value maliciously distorted and set.
In S103, multiple upgrading data packets corresponding to completing will be downloaded, it is multiple right to be calculated by default algorithm The check value answered.
In S104, according to a upgrading data packet, the check value got in S102 steps and S103 steps are fallen into a trap The check value calculated is compared, when the two is identical, then it is assumed that be verified, it was demonstrated that the upgrading data packet is complete, is incited somebody to action The upgrading data packet being verified is transferred to one or more corresponding Digit Control Machine Tool.
It is provided in an embodiment of the present invention that WLAN WIFI communication connections are established by mobile terminal and Digit Control Machine Tool, and The current software version information of Digit Control Machine Tool is obtained, and according to current version information, then in wide area network or mobile network environment Upgrading data packet corresponding to download, and obtain the check value of the upgrading data packet;By being calculated in the default algorithm of mobile terminal Its check value, communicated to connect quickly when the check value of acquisition is identical with the check value calculated, then by WLAN WIFI Ground is transferred to corresponding Digit Control Machine Tool;The situation for downloading wrong AKU by hand, pole can be effectively eliminated using this method Big facilitates user to be saved time, efficiency high with the system software of more Digit Control Machine Tools of batch upgrade, improved making for user With experience.
In one embodiment, established and communicated to connect by WIFI in above-mentioned steps S101, such as can open movement The WIFI hot spot of terminal, broadcast is sent by default agreement and port numbers, and receive the information of Digit Control Machine Tool response, to the letter Whether breath goes verification legal according to default agreement, when legal, stops sending broadcast, so as to establish communication connection.
Above-mentioned foundation communication connection, such as the transmission control protocol (Transmission sent by receiving Digit Control Machine Tool Control Protocol, TCP) socket and port numbers, TCP be a kind of connection-oriented, reliable, based on byte stream biography Defeated layer communication protocol.Other can establish the agreement of communication connection, and the embodiment of the present disclosure is not limited this.
In one embodiment, after mobile terminal establishes TCP communication with Digit Control Machine Tool to be connected, step S102 can be specific It is embodied as:Coding request is sent at least one Digit Control Machine Tool;Receive the current of at least one Digit Control Machine Tool return Software version information and free disk space information.Shown in reference picture 2, such as mobile phone sends to Digit Control Machine Tool and obtains Digit Control Machine Tool The instruction of current system software version information, coding are as follows:
IP=192.168.0.10&PORT=9988&CMD_LENGTH=70&OP=7&PATH=/c/hnc 8_ 1.26.00.tar
Wherein:IP and PORT is ip addresses and the port numbers of numerically-controlled machine tool system to be upgraded;CMD_LENGTH is that order disappears Length is ceased, unit is " byte ";OP is to upgrade control word, and control word means a upgrading programmable logic controller (PLC) for 7 in this example (Programmable Logic Controller, PLC);PATH is AKU path.
Digit Control Machine Tool replys current software version information and available disk space information after receiving, and the coding of reply is such as Under:
IP=192.168.0.10&PORT=9988&CMD_LENGTH=100&CONTENT_REQ=C NC_VER | | FREE_DISK_SPACE&CONTENT_RET=NULL
Wherein:CONTENT_REQ is the data of acquisition request, and the request data in this example is CNC software versions and residue Disk space;CONTENT_RET is the request data returned, and this example is that request of data encodes (unsolicited feedback encoding), therefore CONTENT_RET is sky.
After mobile terminal receives above-mentioned coding, for example mobile phone can be taken connecting wan in family or pass through mobile network Upgrading data packet corresponding to download.
In one embodiment, step S104 by download complete the upgrading data packet be transferred to corresponding to it is above-mentioned at least One Digit Control Machine Tool, shown in reference picture 3, including step S301~S303:
S301, the parsing upgrading data packet type;
Whether S302, the type for judging the upgrading data packet and at least one Digit Control Machine Tool match;
S303, the upgrading data packet is transferred to at least one Digit Control Machine Tool to match.
The upgrading data packet that above-mentioned download is completed can be a file or multiple files, can successively will be more Individual file is transferred to above-mentioned Digit Control Machine Tool, until all files are transmitted.
Can circulate and carry out single file transmission, can also batch be transmitted, but in transmission single file or batch Before file, the type of above-mentioned upgrading data packet is parsed, according to different types of Digit Control Machine Tool, such as:Engine lathe, conventional milling Bed, driller center etc., judge the type of upgrading data packet, whether match with the Digit Control Machine Tool type being connected, if number of targets The machine tool type and upgrading data packet type of control system mismatch, then will not be transferred to the Digit Control Machine Tool;It is transferred to upon a match Digit Control Machine Tool.Such as the memory space inadequate when Digit Control Machine Tool end, stop transmission file.
In one embodiment, the upgrading data packet for downloading completion is being transferred to corresponding at least one number After controlling lathe, shown in reference picture 1, in addition to:
S105, transmission perform updating operation and instructed at least one Digit Control Machine Tool;The updating operation instruction is certainly Dynamic upgrade command, notice upgrade command, manual upgrade command.
Automatic upgrade command:Mobile terminal detects Digit Control Machine Tool software system by being interacted with Digit Control Machine Tool software systems When system version is less than latest edition (whether inspect periodically in default download address has renewal), it can download ground from default automatically Upgrading data packet is downloaded in location, after being then verified, is transferred to the Digit Control Machine Tool, and perform upgrading.
Notice upgrading:When mobile terminal detects that Digit Control Machine Tool software systems version is less than latest edition, it can eject logical Know and ask the user whether to upgrade.If user confirms upgrading, automatic to download upgrading data packet upgrading.
Upgrading manually:When user is unwilling to be upgraded to latest edition automatically, upgrading mode manually may be selected.
In the present embodiment, after the completion of numerically-controlled machine tool system software upgrading, mobile terminal can also be received and upgraded successfully Feedback message.
In one embodiment, transmission file needs to ensure that Digit Control Machine Tool receives the upgrading data packet number that mobile terminal is sent According to correctness and integrality, before upgrading data packet file transmission is carried out, according to download complete upgrading data packet and acquisition Above-mentioned upgrading data packet check value type, check value is calculated by digest algorithm, the type of the check value calculated with The type of the check value of acquisition is identical;The type of above-mentioned check value is one or more of:MD5 values, SHA1 values, crc value.
In the present embodiment, data check is to ensure the integrality of upgrading data packet data, with a kind of algorithm ratio specified The check value calculated such as digest algorithm to initial data.After the completion of download, mobile terminal calculates one with same algorithm Secondary check value, if as the check value provided with upgrading data packet, it is complete to illustrate data.
MD5 can be that any file (no matter its size, form, quantity) produces one same unique " numeral refers to Line ", if anyone has done any change to file, its MD5 value i.e. corresponding " digital finger-print " can all change.Than Such as the data AKU of download, and its MD5 value is obtained simultaneously and is:BA507262AC4BAC9F0CD579E22906F6CC, then In mobile terminal by the data AKU to download, calculate its MD5, if matched, the provable packet be it is complete, Otherwise it is what is distorted.
It is explained below by one embodiment, shown in reference picture 4, mobile terminal is such as mobile phone, mobile phone and numerical control Lathe establishes TCP connections, and mobile terminal sends request numerical control system information, receives the digital control system information that Digit Control Machine Tool returns; Mobile terminal is according to above-mentioned digital control system information, upgrading data packet corresponding to download, and after being verified, push AKU is given Digit Control Machine Tool, receive the push result of return;Then the instruction for performing upgrading is sent to Digit Control Machine Tool, finally receives Digit Control Machine Tool Updating result.The situation for downloading wrong AKU by hand can be effectively eliminated, greatly facilitating user can rise in batches The system software of more Digit Control Machine Tools of level, saves time, efficiency high, improves the usage experience of user.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of mobile terminal, by the mobile terminal is solved Certainly the principle of problem is similar to a kind of method of operating numerical control lathe upgrading data packet of previous embodiment, therefore the mobile terminal Implementation may refer to the implementation of preceding method, repeats part and repeats no more.
Following is a kind of mobile terminal provided in an embodiment of the present invention, can be used for performing the upgrading of aforesaid operations Digit Control Machine Tool The embodiment of the method for packet.
Shown in reference picture 5, above-mentioned mobile terminal includes:
Communication module 51, for opening WIFI hot spot, establish and communicate to connect with least one Digit Control Machine Tool;
Acquisition module 52, for obtaining the current software version information of at least one Digit Control Machine Tool;
Download module 53, for downloading corresponding upgrading data packet and obtaining the check value of the upgrading data packet;
Computing module 54, for downloading the upgrading data packet completed according to download module, school is calculated by default algorithm Test value;
Transport module 55, for when the check value of acquisition is identical with the check value calculated, will download described in completing Upgrading data packet is transferred to corresponding at least one Digit Control Machine Tool.
In one embodiment, shown in reference picture 6, the communication module 51 includes:
Receiving submodule 511, for receiving transmission control protocol TCP socket and the port that the Digit Control Machine Tool is sent Number;
Communicate submodule 512, for the TCP socket received according to receiving submodule, parses Digit Control Machine Tool IP, according to The Digit Control Machine Tool IP and port numbers are established TCP communication with the Digit Control Machine Tool and are connected.
In one embodiment, shown in reference picture 7, the acquisition module 52, including:
Sending submodule 521, for sending coding request at least one Digit Control Machine Tool;
Acquisition submodule 522, for receiving current software version information that at least one Digit Control Machine Tool returns and can Use disk space information.
In one embodiment, shown in reference picture 8, the transport module 55, including:
Analyzing sub-module 551, for parsing the type of the upgrading data packet;
Judging submodule 552, for judge analyzing sub-module parsing upgrading data packet type with it is described at least one Whether Digit Control Machine Tool matches;
Submodule 553 is transmitted, for by the judged result according to judging submodule, the upgrading data packet to be transferred into phase At least one Digit Control Machine Tool of matching.
In one embodiment, shown in reference picture 5, the terminal also includes:
Sending module 56, instructed for sending execution updating operation at least one Digit Control Machine Tool;The upgrading behaviour Make instruction as automatic upgrade command, notice upgrade command, manual upgrade command.
In one embodiment, the computing module 54, specifically for downloading the upgrading data completed according to download module The type of bag and the upgrading data packet check value obtained, calculates check value, the check value calculated by digest algorithm Type with obtain check value type it is identical;The type of the check value is one or more of:MD5 values, SHA1 values, Crc value.
On the mobile terminal in above-described embodiment, wherein modules perform the concrete mode operated and are somebody's turn to do relevant It is described in detail in the embodiment of method, explanation will be not set forth in detail herein.
According to the third aspect of the embodiment of the present disclosure, the embodiment of the present invention provides a kind of side of Digit Control Machine Tool upgrading data packet Method, shown in reference picture 9, including step S901~S902:
S901, communicated to connect by WIFI, send current version information to mobile terminal;
S902, receive the respective upgrades packet that mobile terminal is sent.
In one embodiment, it is described to be communicated to connect by WIFI, including:
TCP socket and port numbers are sent to the mobile terminal;
TCP communication is established with the mobile terminal to be connected.
In one embodiment, it is described transmission current version information to mobile terminal, including
Receive the coding request that the mobile terminal is sent;
Asked according to the coding, send current software version information and free disk space information.
In one embodiment, methods described also includes:Receive the execution updating operation instruction that mobile terminal is sent.
According to the fourth aspect of the embodiment of the present disclosure, the embodiment of the present invention provides a kind of Digit Control Machine Tool, shown in reference picture 10, Including:
Sending module 101, for being communicated to connect by WIFI, current version information is sent to mobile terminal;
Receiving module 102, for receiving the respective upgrades packet of mobile terminal transmission.
In one embodiment, the sending module 101, shown in reference picture 11, including communication submodule 1011, for sending out TCP socket and port numbers are sent to the mobile terminal;TCP communication is established with the mobile terminal to be connected.
In one embodiment, the sending module 101, shown in reference picture 11, in addition to:
Receiving submodule 1012, the coding request sent for receiving the mobile terminal;
Sending submodule 1013, for the coding request received according to receiving submodule, send current software version Information and free disk space information.
In one embodiment, the receiving module 102, the execution updating operation for being additionally operable to receive mobile terminal transmission refer to Order.
According to the 5th of the embodiment of the present disclosure the aspect, the embodiment of the present invention provides a kind of system, shown in reference picture 12, including Mobile terminal as described in above-mentioned embodiment and the Digit Control Machine Tool as described in above-mentioned embodiment.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (12)

  1. A kind of 1. method of operating numerical control lathe upgrading data packet, it is characterised in that including:
    WIFI hot spot is opened, establishes and communicates to connect with least one Digit Control Machine Tool, obtain the current soft of at least one Digit Control Machine Tool Part version information;
    Upgrading data packet corresponding to download and the check value for obtaining the upgrading data packet;
    The upgrading data packet completed according to downloading, check value is calculated by default algorithm;
    When the check value of acquisition is identical with the check value calculated, the upgrading data packet for downloading completion is transferred to correspondingly At least one Digit Control Machine Tool.
  2. 2. the method as described in claim 1, it is characterised in that described establish communicates to connect, including:
    Receive transmission control protocol TCP socket and the port numbers that the Digit Control Machine Tool is sent;
    According to the TCP socket, Digit Control Machine Tool IP is parsed, according to the Digit Control Machine Tool IP and port numbers and the numerical control machine Bed establishes TCP communication connection.
  3. 3. the method as described in claim 1, it is characterised in that the current software version for obtaining at least one Digit Control Machine Tool Information, including:
    Coding request is sent at least one Digit Control Machine Tool;
    Receive current software version information and free disk space information that at least one Digit Control Machine Tool returns.
  4. 4. the method as described in claim 1, it is characterised in that be transferred to the upgrading data packet for downloading completion corresponding At least one Digit Control Machine Tool, including:
    Parse the type of the upgrading data packet;
    Whether the type and at least one Digit Control Machine Tool for judging the upgrading data packet match;
    The upgrading data packet is transferred to at least one Digit Control Machine Tool to match.
  5. 5. the method as described in claim 1, it is characterised in that be transferred to correspondingly by the upgrading data packet for downloading completion At least one Digit Control Machine Tool after, methods described also includes:
    Execution updating operation is sent to instruct at least one Digit Control Machine Tool;The updating operation instruction refers to for automatic upgrading Make, notify upgrade command, manual upgrade command.
  6. 6. the method as described in claim 1, it is characterised in that according to the upgrading data packet for downloading completion, pass through default calculation Method calculates check value, including:
    The upgrading data packet and the type of the upgrading data packet check value obtained completed according to downloading, pass through digest algorithm meter Check value is calculated, the type of check value of the type of the check value calculated with obtaining is identical;The type of the check value be with Lower one or more:MD5 values, SHA1 values, crc value.
  7. A kind of 7. mobile terminal, it is characterised in that including:
    Communication module, for opening WIFI hot spot, establish and communicate to connect with least one Digit Control Machine Tool;
    Acquisition module, for obtaining the current software version information of at least one Digit Control Machine Tool;
    Download module, for downloading corresponding upgrading data packet and obtaining the check value of the upgrading data packet;
    Computing module, for downloading the upgrading data packet completed according to download module, check value is calculated by default algorithm;
    Transport module, for when the check value of acquisition is identical with the check value calculated, the ascending series of completion will to be downloaded Corresponding at least one Digit Control Machine Tool is transferred to according to bag.
  8. 8. terminal as claimed in claim 7, it is characterised in that the communication module includes:
    Receiving submodule, for receiving transmission control protocol TCP socket and the port numbers that the Digit Control Machine Tool is sent;
    Communicate submodule, for the TCP socket received according to receiving submodule, Digit Control Machine Tool IP is parsed, according to the number Control lathe IP and port numbers are established TCP communication with the Digit Control Machine Tool and are connected.
  9. 9. terminal as claimed in claim 7, it is characterised in that the acquisition module, including:
    Sending submodule, for sending coding request at least one Digit Control Machine Tool;
    Acquisition submodule, for receiving current software version information and the available disk sky that at least one Digit Control Machine Tool returns Between information.
  10. 10. terminal as claimed in claim 7, it is characterised in that the transport module, including:
    Analyzing sub-module, for parsing the type of the upgrading data packet;
    Judging submodule, the type of the upgrading data packet parsed for judging analyzing sub-module and at least one Digit Control Machine Tool Whether match;
    Submodule is transmitted, for by the judged result according to judging submodule, the upgrading data packet to be transferred into what is matched At least one Digit Control Machine Tool.
  11. 11. terminal as claimed in claim 7, it is characterised in that the terminal also includes:
    Sending module, instructed for sending execution updating operation at least one Digit Control Machine Tool;The updating operation instruction For automatic upgrade command, notice upgrade command, manual upgrade command.
  12. 12. terminal as claimed in claim 11, it is characterised in that the computing module, specifically for what is completed according to downloading The type of upgrading data packet and the upgrading data packet check value obtained, calculates check value by digest algorithm, calculates Check value type with obtain check value type it is identical;The type of the check value is one or more of:MD5 Value, SHA1 values, crc value.
CN201710367172.6A 2017-05-23 2017-05-23 Method and device for operating upgrading data packet of numerical control machine tool Active CN107395666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710367172.6A CN107395666B (en) 2017-05-23 2017-05-23 Method and device for operating upgrading data packet of numerical control machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710367172.6A CN107395666B (en) 2017-05-23 2017-05-23 Method and device for operating upgrading data packet of numerical control machine tool

Publications (2)

Publication Number Publication Date
CN107395666A true CN107395666A (en) 2017-11-24
CN107395666B CN107395666B (en) 2020-09-18

Family

ID=60338434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710367172.6A Active CN107395666B (en) 2017-05-23 2017-05-23 Method and device for operating upgrading data packet of numerical control machine tool

Country Status (1)

Country Link
CN (1) CN107395666B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807609A (en) * 2017-11-29 2018-03-16 武汉华中数控股份有限公司 A kind of Digit Control Machine Tool servo parameter optimization method based on big data
CN110162488A (en) * 2018-11-15 2019-08-23 深圳乐信软件技术有限公司 Buffer consistency method of calibration, device, server and storage medium
CN110874231A (en) * 2018-09-04 2020-03-10 中兴通讯股份有限公司 Method, device and storage medium for updating terminal version
CN111176696A (en) * 2019-12-31 2020-05-19 泰斗微电子科技有限公司 Method and device for upgrading memory chip, terminal equipment and medium
CN111767065A (en) * 2019-04-02 2020-10-13 北京精雕科技集团有限公司 Batch remote upgrading and downgrading method and system for machine tool numerical control software
CN111813425A (en) * 2019-04-12 2020-10-23 顺丰科技有限公司 Equipment upgrading method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101733678A (en) * 2009-12-04 2010-06-16 北京数码大方科技有限公司 Graphical control system of numerical control machine and method
CN102045201A (en) * 2010-12-27 2011-05-04 北京锐安科技有限公司 Automatic upgrading method and system of intranet server cluster
WO2014169054A1 (en) * 2013-04-10 2014-10-16 Illumio, Inc. Distributed network management using a logical multi-dimensional label-based policy model
CN205644241U (en) * 2016-04-15 2016-10-12 惠州市物联微电子有限公司 Intelligence lathe online upgrade of mill module
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system
CN106339236A (en) * 2016-08-17 2017-01-18 西安拓奇电子科技有限公司 Software upgrading method, client, interphone and soft upgrading system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101733678A (en) * 2009-12-04 2010-06-16 北京数码大方科技有限公司 Graphical control system of numerical control machine and method
CN102045201A (en) * 2010-12-27 2011-05-04 北京锐安科技有限公司 Automatic upgrading method and system of intranet server cluster
WO2014169054A1 (en) * 2013-04-10 2014-10-16 Illumio, Inc. Distributed network management using a logical multi-dimensional label-based policy model
CN205644241U (en) * 2016-04-15 2016-10-12 惠州市物联微电子有限公司 Intelligence lathe online upgrade of mill module
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system
CN106339236A (en) * 2016-08-17 2017-01-18 西安拓奇电子科技有限公司 Software upgrading method, client, interphone and soft upgrading system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807609A (en) * 2017-11-29 2018-03-16 武汉华中数控股份有限公司 A kind of Digit Control Machine Tool servo parameter optimization method based on big data
CN110874231A (en) * 2018-09-04 2020-03-10 中兴通讯股份有限公司 Method, device and storage medium for updating terminal version
CN110162488A (en) * 2018-11-15 2019-08-23 深圳乐信软件技术有限公司 Buffer consistency method of calibration, device, server and storage medium
CN110162488B (en) * 2018-11-15 2022-02-11 深圳乐信软件技术有限公司 Cache consistency checking method, device, server and storage medium
CN111767065A (en) * 2019-04-02 2020-10-13 北京精雕科技集团有限公司 Batch remote upgrading and downgrading method and system for machine tool numerical control software
CN111813425A (en) * 2019-04-12 2020-10-23 顺丰科技有限公司 Equipment upgrading method, device, equipment and storage medium
CN111176696A (en) * 2019-12-31 2020-05-19 泰斗微电子科技有限公司 Method and device for upgrading memory chip, terminal equipment and medium
CN111176696B (en) * 2019-12-31 2023-10-27 泰斗微电子科技有限公司 Memory chip upgrading method and device, terminal equipment and medium

Also Published As

Publication number Publication date
CN107395666B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN107395666A (en) A kind of method and device of operating numerical control lathe upgrading data packet
CN109768970B (en) Configurable universal protocol generation method
CN100527080C (en) Method for software program synchronization
CN108206997B (en) Bluetooth connection method and device
US6360145B1 (en) Vehicle platform-portable controller
CN111371638A (en) Intelligent equipment testing method and device, server and storage medium
CN110120970B (en) Data processing method and device based on Internet of vehicles and gateway system
CN107797807A (en) Generate method, apparatus, terminal, server and the system of container
CN111651180B (en) Firmware updating method and device, processor and intelligent gateway equipment
CN103257869B (en) A kind of ECU program smart download method
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN108271150A (en) Support while more mobile phones carried out the method and system of brush machine or data dump
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN112698640B (en) ECU upgrading test system
CN114363225A (en) MTQQ protocol-based device debugging mode, system and storage medium
CN114567552A (en) Vehicle-mounted V2X equipment upgrading method and device, computer equipment and storage medium
CN105530323B (en) File upgrading method, related equipment and system
CN112995657B (en) Camera module testing method, device and system
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN115515012A (en) Key burning method and device, electronic equipment board card and storage medium
CN101197959B (en) Terminal control method, system and equipment
WO2020119732A1 (en) Adjusting and testing method and apparatus for communication device networking
CN114326673A (en) Vehicle remote diagnosis method and device, connector and storage medium
KR20150043732A (en) System and method for software update of vehicle controller
CN103309941A (en) Application update method, device and 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