CA3081051C - Data upgrade method and system - Google Patents

Data upgrade method and system Download PDF

Info

Publication number
CA3081051C
CA3081051C CA3081051A CA3081051A CA3081051C CA 3081051 C CA3081051 C CA 3081051C CA 3081051 A CA3081051 A CA 3081051A CA 3081051 A CA3081051 A CA 3081051A CA 3081051 C CA3081051 C CA 3081051C
Authority
CA
Canada
Prior art keywords
upgrade
data packet
data
received
instruction
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.)
Expired - Fee Related
Application number
CA3081051A
Other languages
French (fr)
Other versions
CA3081051A1 (en
Inventor
Linfeng Hong
Yongyou YANG
Qijun XIE
Qingyun Di
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.)
Institute of Geology and Geophysics of CAS
Original Assignee
Institute of Geology and Geophysics of CAS
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 Institute of Geology and Geophysics of CAS filed Critical Institute of Geology and Geophysics of CAS
Publication of CA3081051A1 publication Critical patent/CA3081051A1/en
Application granted granted Critical
Publication of CA3081051C publication Critical patent/CA3081051C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • EFIXED CONSTRUCTIONS
    • E21EARTH DRILLING; MINING
    • E21BEARTH DRILLING, e.g. DEEP DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS
    • E21B44/00Automatic control systems specially adapted for drilling operations, i.e. self-operating systems which function to carry out or modify a drilling operation without intervention of a human operator, e.g. computer-controlled drilling systems; Systems specially adapted for monitoring a plurality of drilling variables or conditions

Abstract

ABS TRACT The present invention provides a data upgrade method and system, and the method includes the following steps of: when data upgrade is to be carried out on circuit modules, receiving a mode switching instruction broadcasted by a control terminal; each of the circuit modules having a different identification number; receiving an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy according to a preset receiving sequence; when a current circuit module receives the upgrade data packet, judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packe; and when the target circuit module receives the upgrade data packet, carrying out data upgrade using the upgrade data packet. Date Recue/Date Received 2020-05-15

Description

Attorney Ref: 1541P 002CA01 Data Upgrade Method and System Technical Field The present invention belongs to the technical field of petroleum drilling, and particularly relates to a data upgrade method and system.
Background Art As reservoir development is more and more difficult and reservoir development methods, reservoir geological conditions and other factors have imposed higher and higher requirements on drilling techniques, the rotary steering drilling technique has been favored by drilling workers because of its high drilling accuracy and economic benefits.
Rotary steering drilling is generally implemented by a downhole rotary steering tool which includes a plurality of circuit modules each having an independent controller, and during joint debugging, later well site testing and in-site practical drilling of the rotary steering tool, it is required to carry out data upgrade and debugging on the circuit modules to ensure the drilling accuracy.
However, in the prior art, not every circuit module has an external mechanical port, so that during data upgrade, it needs to disassemble the tool to upgrade each circuit module in sequence. In addition, after the upgrade is completed, it needs to reassemble all the circuit modules to test the overall functionality of the rotary steering tool, which wastes both time and labor and may cause damages to the circuit because of repeated disassembly and assembly.
Summary of the Invention Aiming at the problems in the prior art, embodiments of the present invention provide a data upgrade method and system for solving the technical problem in the prior art that during data upgrade of a downhole rotary steering tool, it needs to disassemble the tool to upgrade each circuit module independently in sequence and then reassemble all the circuit modules, which leads to low efficiency and causes damages to the circuit because of disassembly and assembly.
The present invention provides a data upgrade method applicable to a downhole rotary steering tool, the rotary steering tool comprises at least two circuit modules, and each circuit module is connected to another circuit module through a Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 communication interface and comprises a processor supporting in-application programming TAP, characterized by comprising the following steps of: when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting, by a control terminal, a mode switching instruction to the circuit modules;
switching, by the circuit modules, from the operation mode to an upgrade mode according to the received mode switching instruction; sending, by the control terminal, an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; judging, by the circuit modules, whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy; and if the upgrade state broadcast instruction sent by the control terminal is not received within the preset second period of time, switching from the upgrade mode to the operation mode, and sending a working mode change notification message to the control terminal; the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; and each of the circuit modules having a different identification number; when a current circuit module receives the upgrade data packet, judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, forwarding the upgrade data packet to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; when the target circuit module receives the upgrade data packet, carrying out data upgrade using the upgrade data packet; wherein, the carrying out data upgrade using the upgrade data packet comprises: recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet; updating a total length of received data; judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not; if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not; if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal; judging whether an upgrade
2 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal; after receiving the upgrade completion instruction, sending, by the control terminal, a mode switching instruction to the circuit modules; switching, by the circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction; wherein, if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, sending, by the circuit module, a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, judging, by the circuit module, whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit module does not receive the remaining chucked data packet in time.
Further, after the switching, by the circuit modules, from the operation mode to the upgrade mode according to the received mode switching instruction, the method further comprises the following steps of: sending a mode switching acknowledgement instruction to the control terminal according to a preset sending sequence;
judging, by the control terminal, whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time or not, and if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasting the mode switching instruction; and after N
times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, quitting the upgrade process, and sending circuit module disconnection prompt information to a user, N being not smaller than
3.
Further, judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, comprising: acquiring the working mode identifier of the upgrade data packet, and judging whether the working mode Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 identifier is consistent with a preset upgrade mode identifier; if the working mode identifier is consistent with the preset upgrade mode identifier, comparing the identification number of the target circuit module with an identification number of the current circuit module, and if the identification number of the target circuit module is consistent with the identification number of the current circuit module, determining that the upgrade data packet is an upgrade data packet for the current circuit module;
and if the identification number of the target circuit module is not consistent with the identification number of the current circuit module, determining that the upgrade data packet is not an upgrade data packet for the current circuit module.
Further, after the upgrade data packet is matched with the target circuit module, the method further comprises the following steps of: judging, by the target circuit module, whether the upgrade data packet is an upgrade data packet received for the first time or not, and if so, entering an upgrade locking mode; and in the upgrade locking mode, if the upgrade state broadcast instruction sent by the control terminal is received, directly forwarding the upgrade state broadcast instruction to an adjacent circuit module.
Further, if the upgrade acknowledgement instruction is not received within the preset third period of time, the method further comprises the following steps of:
ending the upgrade, and sending a third exception prompt instruction to the control terminal, the third exception prompt instruction comprising: no upgrade acknowledgement instruction is received; after the upgrade is ended, automatically exiting, by the target circuit module, from the upgrade mode and entering the operation mode, and sending a notification message to the control terminal;
broadcasting, by the control terminal, a mode switching instruction to non-target circuit modules according to the received notification message, and switching, by the non-target circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction; sending, by the target circuit module and the non-target circuit modules, a mode switching acknowledgement instruction to the control terminal; and if the control terminal does not receive the mode switching acknowledgement instructions sent by all the circuit modules, sending the circuit module disconnection prompt information to the user.
Further, after the switching, by the circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction, the method further comprises the following steps of: sending the mode switching acknowledgement instruction to the control terminal; and if the control terminal does not receive the
4 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 mode switching acknowledgement instructions sent by all the circuit modules, sending the circuit module disconnection prompt information to the user.
Further, when the rotary steering tool and the circuit modules communicate via a wireless transmission device, the wireless transmission device comprises: a first communication module connected with the control terminal, and a second communication module connected with the downhole rotary steering tool;
wherein, when data upgrade is to be carried out on the circuit modules in the operation mode, before the broadcasting, by the control terminal, a mode switching instruction to the circuit modules, the method further comprises the following steps of: sending a test data packet to the second communication module via the first communication module, and judging whether a first message sent by the second communication module is received within a preset six period of time, the first message indicating that a correct data packet is received; if the first message is received within the six period of time, sending a second message, which is used for indicating that a wireless transmission channel is successfully established, to the control terminal; and if the first message is not received within the six period of time, sending a third message, which is used for indicating that a wireless transmission channel is not successfully established, to the control terminal.
A data upgrade system, characterized by comprising: a control terminal and a rotary steering tool, wherein the rotary steering tool comprises at least two circuit modules, and each circuit module is connected to another circuit module through a communication interface and comprises a processor supporting in-application programming TAP; wherein the control terminal is used for, when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting a mode switching instruction to the circuit modules; the circuit modules switch from the operation mode to an upgrade mode according to the received mode switching instruction; the control terminal is used for sending an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; the circuit modules are used for judging whether the upgrade state broadcast instruction is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by a sending unit based on a chunked transfer strategy, the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; and each of the circuit modules having a different identification number; when a current circuit module receives the upgrade data packet,
5 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not the upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; and when the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet; the control terminal, after receiving the upgrade completion instruction, sends a mode switching instruction to the circuit modules; the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction; wherein, the carrying out data upgrade using the upgrade data packet comprises: recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet; updating a total length of received data; judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not; if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not; if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal;
judging whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal;
if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, the circuit module is further used for: sending a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising:
the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, the circuit module is further used for:
judging whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit
6 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 module does not receive the remaining chucked data packet in time.
Further, the circuit modules are further used for: sending a mode switching acknowledgement instruction to the control terminal according to a preset sending sequence, the control terminal is further used for: judging whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time; if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasting the mode switching instruction; after N times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, quitting the upgrade process; and sending a circuit module disconnection prompt information to a user, N being not smaller than 3.
Further, when the rotary steering tool and the circuit modules communicate via a wireless transmission device, the wireless transmission device comprises: a first communication module and a second communication module; the first communication module is installed in a wireless diagnosis connector connected with the control terminal; the second communication module is connected with the downhole rotary steering tool; the first communication module comprises: an electric power transmission control unit, a first communication control unit and an electromagnetic induction primary coil; and the second communication module comprises: an electric power reception control unit, a second communication control unit and an electromagnetic induction secondary coil; wherein, the electric power transmission control unit is connected with the electromagnetic induction primary coil and used for transmitting electric power from the electromagnetic induction primary coil to the electromagnetic induction secondary coil; the first communication control unit is used for controlling transmission of data between the electromagnetic induction primary coil and the electromagnetic induction secondary coil, and the data is transmitted with the electric power as a carrier, the data comprising: a passthrough packet or an instruction packet, the passthrough packet comprising: an upgrade data packet and an operation data packet; and the instruction packet comprising: a test data packet; the electric power reception control unit is connected with the electromagnetic induction secondary coil and used for transmitting electric power from the electromagnetic induction secondary coil to the electromagnetic induction primary coil; the second communication control unit is used for controlling transmission of the data between the electromagnetic induction secondary coil and the electromagnetic induction primary coil; when data upgrade is to be carried out on the circuit modules
7 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 in the operation mode, before the control terminal broadcasts the mode switching instruction to the circuit modules, the first communication module is specifically used for: sending the test data packet to the second communication module, and judging whether a first message sent by the second communication module is received within a preset six period of time, the first message indicating that a correct data packet is received; if the first message is received within the six period of time, sending a second message, which is used for indicating that a wireless transmission channel is successfully established, to the control terminal; and if the first message is not received within the six period of time, sending a third message, which is used for indicating that a wireless transmission channel is successfully established, to the control terminal.
The present invention provides a data upgrade method and system applicable to a downhole rotary steering tool, wherein the rotary steering tool includes at least two circuit modules, and each circuit module is connected to another circuit module through a communication interface and includes a processor supporting in-application programming TAP. Therefore, even if some circuit modules do not have external mechanical ports, they still can receive upgrade data packets forwarded by other circuit modules, so that data upgrade can be implemented without disassembling the rotary guide tool, providing convenience and preventing damages to the circuit caused by repeated disassembly and assembly.
In another aspect, this document discloses a data upgrade method applicable to a downhole rotary steering tool, wherein the rotary steering tool comprises at least two circuit modules, and the at least two circuit modules are connected through a communication interface and each of the at least two circuit modules comprises a processor supporting in-application programming (TAP), the method comprising:
when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting, by a control terminal, a mode switching instruction to the circuit modules; switching, by the circuit modules, from the operation mode to an upgrade mode according to the received mode switching instruction; sending, by the control terminal, an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; judging, by the circuit modules, whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy; and if the upgrade state broadcast instruction sent by the control terminal is not received within the
8 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 preset second period of time, switching from the upgrade mode to the operation mode, and sending a working mode change notification message to the control terminal; the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; and each of the circuit modules having a different identification number;
when a current circuit module receives the upgrade data packet, judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, forwarding the upgrade data packet to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; when the target circuit module receives the upgrade data packet, carrying out data upgrade using the upgrade data packet;
wherein the carrying out data upgrade using the upgrade data packet comprises:
recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet;

updating a total length of received data; judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not;
if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not; if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal; judging whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal; after receiving the upgrade completion instruction, sending, by the control terminal, a mode switching instruction to the circuit modules; switching, by the circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction; wherein, if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, sending, by the circuit module, a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and
9 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 if the total length of received data is not consistent with the total length of data of the upgrade data packet, judging, by the circuit module, whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit module does not receive the remaining chucked data packet in time.
In another aspect, this document discloses a data upgrade system, comprising:
a control terminal and a downhole rotary steering tool, wherein the rotary steering tool comprises at least two circuit modules, the at least two circuit modules are connected through a communication interface and each of the at least two circuit modules comprises a processor supporting in-application programming (TAP); wherein the control terminal is used for, when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting a mode switching instruction to the circuit modules; the circuit modules switch from the operation mode to an upgrade mode according to the received mode switching instruction; the control terminal is used for sending an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; the circuit modules are used for judging whether the upgrade state broadcast instruction is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by a sending unit based on a chunked transfer strategy, the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; and each of the circuit modules having a different identification number; when a current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not the upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; and when the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet; the control terminal, after receiving the upgrade completion instruction, sends a mode switching instruction to the circuit modules; the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction; wherein the carrying out Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 data upgrade using the upgrade data packet comprises: recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet; updating a total length of received data; judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not; if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not; if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal; judging whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal; if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, the circuit module is further used for: sending a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, the circuit module is further used for: judging whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit module does not receive the remaining chucked data packet in time.
Brief Description of the Drawings FIG. 1 is a schematic diagram illustrating connection of circuit modules of a rotary steering tool provided by an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a data upgrade method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a data upgrade system provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram showing the structure of a wireless transmission Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 device during wireless transmission provided by an embodiment of the present invention; and FIG. 5 is a schematic diagram showing the structure of an electromagnetic induction coil provided by an embodiment of the present invention.
Detailed Description of the Invention In order to solve the technical problem in the prior art that during data upgrade of a downhole rotary steering tool, it needs to disassemble the tool to upgrade each circuit module independently in sequence and then reassemble all the circuit modules, which leads to low efficiency and causes damages to circuit modules because of disassembly and assembly, the present invention provides a data upgrade method and system.
The technical scheme of the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
Embodiment 1 This embodiment provides a data upgrade method applicable to a downhole rotary steering tool, wherein the rotary steering tool includes at least two circuit modules, and each circuit module is connected to another circuit module through a communication interface; as shown in FIG.1, the rotary steering tool includes a circuit module 1, a circuit module 2, a circuit module 3, a circuit module 4, a circuit module 5, ..., and a circuit module N; the circuit module 1, the circuit module 2, the circuit module 3, the circuit module 4, the circuit module 5, ..., and the circuit module N are connected through communication interfaces, and the circuit module 1 is also connected with a control terminal 6 through a communication interface, and the control terminal 6 may be an industrial control computer. Each circuit module has an arm processor which supports in-application programming TAP, i.e., the processor is capable of getting new code and reprograming itself in the system.
The communication interface may include: a serial port, an I2C interface, a serial peripheral interface (SPI), the Ethernet, a contactless unit, a CAN interface, etc.; and the contactless unit may include: a contactless electric power transmission circuit, a contactless electric power reception circuit, a contactless signal transmission circuit, an electromagnetic induction coil, etc.
Here, the circuit module 1, the circuit module 2, the circuit module 3, the circuit module 4, the circuit module 5, ..., and the circuit module N may include: a bus module, a contactless signal transmission module, a contactless electric power Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 transmission control module, a contactless primary side information transmission control module, a contactless electric power reception control module, a contactless secondary side information transmission control module, a central control module, an attitude measurement module, a hydraulic drive control module, etc. When the circuit modules are to be connected, the following specific connection is adopted: the bus module is connected to the contactless signal transmission module through a serial port, the contactless signal transmission module is connected to the contactless electric power transmission module, the contactless information transmission module is connected to the contactless secondary side information transmission module through a contactless unit (an electromagnetic induction coil), the contactless secondary side information transmission module is connected to the central control module through a serial port, and the central control module is connected to the attitude measurement module through an I2C interface, and is connected to the hydraulic drive module through a CAN interface.
Based on the connection described above, as shown in FIG. 2, the data upgrade method provided by this embodiment includes the following steps: S110, when data upgrade is to be carried out on the circuit modules in an operation mode, the control terminal broadcasts a mode switching instruction to the circuit modules; and the circuit modules switch from the operation mode to an upgrade mode according to the received mode switching instruction; as an alternative embodiment, the circuit modules and the downhole rotary steering tool may be connected in a wired manner, or the circuit modules and the downhole rotary steering tool may be connected in a wireless manner and communicate using a wireless transmission device. In the case of wired connection, when data upgrade is to be carried out on the circuit modules in the operation mode, the method is specifically implemented as follows: when the system is in the operation mode, the circuit modules are also in the operation mode and data upgrade is to be carried out on the circuit modules, the control terminal broadcasts a mode switching instruction to all the circuit modules so as to switch the circuit modules from the operation mode to the upgrade mode. Then, after receiving the mode switching instruction, the circuit modules switch from the operation mode to the upgrade mode according to the mode switching instruction.
Here, for the purpose of distinction, each circuit module has a different identification number, for example, the module circuit 1 may have an identification number of 1, the module circuit 2 may have an identification number of 2, etc.
As an alternative embodiment, when the circuit modules have switched from the Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 operation mode to the upgrade mode, the circuit modules send a mode switching acknowledgement instruction to the control terminal according to a preset sending sequence.
The preset sending sequence may be an order of values of the identification numbers of the module circuits, for example, an order of values from large to small, or an order of values from small to large. The preset sending sequence may also be an order of distances of the module circuits from the control terminal, for example, an order of distances from far to near, or an order of distances from near to far.
The control terminal judges whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time, and if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasts the mode switching instruction to all the circuit modules, and after N times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, determines that corresponding circuit modules are disconnected, then quits the upgrade process, and sends circuit module disconnection prompt information to a user to prompt the user to make corresponding actions, wherein N is not smaller than 3, and the fifth period of time may be 10 to 50 ms. S111, the control terminal sends an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; after receiving the mode switching acknowledgement instructions sent by all the circuit modules, the control terminal sends the upgrade state broadcast instruction to the circuit modules at intervals of the preset first period of time, and the upgrade state broadcast instruction is used for informing the circuit modules to remain in the upgrade mode; the first period of time may be 3s.
After all the circuit modules enter the upgrade mode, the circuit modules judge whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time, and if so, reset a countdown of the second period of time and wait to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy, the upgrade data packet including m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier. The second period of time may be 10 s. That is, when the control terminal transmits an upgrade data packet based on the chunked transfer strategy, the circuit modules receive the upgrade data packet which includes m chunked data packets, m being an integer greater than 1.
If the upgrade state broadcast instruction sent by the control terminal is not Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 received within the second period of time, all the circuit modules exit from the upgrade mode and enter the operation mode, and send a working mode change notification message to the control terminal.
Therefore, in the cases such as the control terminal is halted or a communication exception occurs, the circuit modules in the rotary steering tool can be restored to the operation mode as soon as possible, thereby ensuring the proper operation of the rotary steering tool. S112, when a current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; for any circuit module, when the current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to the identification number of the target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to the preset forwarding strategy until the upgrade data packet is matched with the target circuit module.
Among others, the current circuit module is any one of the circuit modules.
Here, in order to prevent errors, before judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, the method further includes the following steps: a working mode identifier of the upgrade data packet is acquired, whether the working mode identifier is consistent with a preset upgrade mode identifier or not is judged, and if the working mode identifier is consistent with the preset upgrade mode identifier, it indicates that the received data packet is an upgrade data packet; and if the working mode identifier is not consistent with the preset upgrade mode identifier, it indicates that the received data packet is not an upgrade data packet.
As an alternative embodiment, the judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, includes: the identification number of the target circuit module is compared with an identification Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 number of the current circuit module, and if the identification number of the target circuit module is consistent with the identification number of the current circuit module, it is determined that the upgrade data packet is an upgrade data packet for the current circuit module; and if the identification number of the target circuit module is not consistent with the identification number of the current circuit module, it is determined that the upgrade data packet is not an upgrade data packet for the current circuit module.
For example, when the upgrade data packet arrives at a circuit module i, the circuit module i receives the upgrade data packet and firstly performs header recognition, and if a recognized Mode is A, it is determined that the data packet is an upgrade data packet. Then, a circuit module identification number, i.e. a Target value, in the upgrade data packet is acquired, and if the Target value is not equal to i, it indicates that the upgrade data packet is not an upgrade data packet for the circuit module i, and the upgrade data packet is forwarded to an adjacent circuit module.
It should be noted that, when the upgrade data packet is forwarded to an adjacent circuit module, it is forwarded to an adjacent circuit module that has never received the upgrade data packet, but not an adjacent circuit module that has received the upgrade data packet.
For example, assuming that adjacent circuit modules of the circuit module i are a circuit module i-1 and a circuit module i+1, the circuit module i receives an upgrade data packet forwarded by the circuit module i-1, so when the Target value of the upgrade data packet is not equal to i, the upgrade data packet is forwarded to the circuit module i+1 but not the circuit module i-1.
Specifically, assuming that data upgrade is to be carried out on the circuit module 3, referring to FIG. 1, a forwarding process is as follows:
1) when the upgrade data packet arrives at the circuit module 1, the circuit module 1 receives the upgrade data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit module 1, and the data packet is forwarded to the circuit module 2;
2) when the data packet arrives at the circuit module 2, the circuit module 2 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit module 2, and the data packet is forwarded to the circuit module 3 and the circuit Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 module 5;
3) when the data packet arrives at the circuit module 5, the circuit module 5 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit module 5, however, at this time, the data packet is not to be forwarded because the circuit module 5 does not have any adjacent circuit module other than the circuit module 2; and 4) when the data packet arrives at the circuit module 3, the circuit module 3 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is an upgrade data packet sent to the circuit module 3, and thus the upgrade data packet is successfully matched with a circuit module.
As an alternative embodiment, after the upgrade data packet is matched with the target circuit module, the target circuit module judges whether the upgrade data packet is an upgrade data packet received for the first time or not, and if so, enters an upgrade locking mode; in the upgrade locking mode, if the upgrade state broadcast instruction sent by the control terminal is received, the upgrade state broadcast instruction is not parsed and is directly forwarded to an adjacent circuit module.
Here, the upgrade data packet has a format as shown in Table 1:
Table 1 Mode Target Len Data The system has two working modes: the upgrade mode and the operation mode.
Therefore, in Table 1, Mode is the header of the data packet and used for identifying the working mode, for example, a Mode value of A indicates an upgrade data packet, and a Mode value of B indicates an operation data packet.
In this way, if the circuit modules of the rotary steering tool are in the operation mode, the header of the data packet is marked as the operation mode. If all the circuit modules of the rotary steering tool are switched to the upgrade mode, the header of the data packet is marked as the upgrade mode. If the mode does not match, the data packet will be dropped. The is for ensuring that in the operation mode, the proper operation of the rotary steering tool system is not affected, and data packets which do not need to be parsed can be rejected as fast as possible.
Target is an identification number of a module circuit, and is used for identifying a target circuit module corresponding to the data packet, for example, if a data packet Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 needs to be transmitted to the circuit module 2, the Target value is 2. Among others, when the Target value is 255, it indicates that the target module corresponding to the data packet is all of the circuit modules, and the data packet can be referred to as a broadcast data packet. When the Target value is 0, it indicates that the data packet is an acknowledgement packet sent to the control terminal by the circuit modules.
Len is used for recording the length of data of the data packet, facilitating data reading and processing.
Data is the data content of the data packet. Data has different formats in different modes, and in the operation mode, the data format may be predefined according to the functions of the circuit modules of the rotary steering tool.
Therefore, the upgrade data packet sent by the control terminal to the circuit modules may have a data format as shown in Table 2:
Table 2 Mode Target This Data Len Data Len Position __ BIN_Fiie A 3 Len Data Here, if the length of data of the upgrade data packet is too long, in this embodiment, the upgrade data packet may be transmitted by means of chunked transfer to prevent errors caused by an excessive long data packet, and the upgrade data packet needs to be divided into a plurality of chunked data packets in advance.
Data Len in the figure is then the total length of valid data in the entire upgrade packet, i.e. the sum of lengths of BIN Files of all chunked data packets.
Position is the position of the chunked data packet in the entire upgrade packet, i.e., the position number that identifies the chunked data packet. After the target circuit module receives the data packets, the BIN_Files may be assembled according to an order of the position numbers of the chunked data packet.
This_Data Len is the length of BIN File in each chunked data packet. S113, when the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet.
When the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet.
Specifically, as the control terminal transmits the upgrade data packet by means of chunked transfer, after the target circuit module receives the upgrade data packet, the method further includes the following steps:

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 the target circuit module judges whether an upgrade mode exit instruction sent by the control terminal is received or not, and if the upgrade mode exit instruction is received, stops upgrading. If the upgrade mode exit instruction is not received, data upgrade is carried out using the upgrade data packet.
Specifically, the carrying out data upgrade using the upgrade data packet, includes: a length of data This Data Len and a position number Position of each chucked data packet and a total length of data of the upgrade data packet Data Len carried by each chucked data packet are recorded and stored.
Here, because the length of each upgrade data packet is different from others, with the total length of data of the upgrade data packet Data Len carried by each chucked data packet, it is very convenient to detect whether the chucked data packets belong to the same upgrade data packet or not, and if two chucked data packets do not belong to the same upgrade data packet, the control terminal can be notified in time, and upgrade failure which causes incorrect operation of the program is prevented.
For example, assuming that an upgrade data packet has a length of data of 1000, Data Len is 1000, and the upgrade data packet needs to be divided into three chunked data packets to be transmitted, the first chunked data packet has a length of 400, the second chunked data packet has a length of 400, and the third chunked data packet has a length of 200, then the first chunked data packet has a data format as shown in Table 3, and the second chunked data packet has a data format as shown in Table 4, and the third chunked data packet has a data format as shown in Table 5:
Table 3 1000 1 400 BIN File Table 4 1000 2 400 BIN File Table 5 1000 3 200 BIN File BIN File in Table 3 is the 1st to 400-th bytes, BIN File in Table 4 is the 401-st to 800-th bytes, and BIN_File in Table 5 is the 801-st to 1000-th bytes.
After reception is completed, a total length of received data Receive Data Len is updated, and Receive Data Len should be equal to the sum of all of the This Data Lens; whether the total length of data of the upgrade data packet Data Len carried by each chucked data packet is consistent or not is judged; and if the total length of data of the upgrade data packet Data_Len carried by each chucked data packet is consistent, whether the total length of received data Receive Data Len is Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 consistent with the total length of data of the upgrade data packet Data Len or not is judged.
If the total length of data of the upgrade data packet Data Len carried by each chucked data packet is not consistent, the method further includes the following steps:
a first exception prompt instruction is sent to the control terminal, and the upgrade is ended; the first exception prompt instruction including: the target circuit module receives an upgrade data packet with an inconsistent total length of data.
Further, if the total length of received data Receive Data_Len is consistent with the total length of data of the upgrade data packet Data Len, an upgrade start notification message is sent to the control terminal; whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not is judged, and if the upgrade acknowledgement instruction is received, upgrade is carried out with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, an upgrade completion instruction is sent to the control terminal; the third period of time may be
10 to 60 ms.
After receiving the upgrade completion instruction, the control terminal sends a mode switching instruction to the circuit modules; the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction, and send a mode switching acknowledgement instruction to the control module; and if the control terminal does not receive the mode switching acknowledgement instructions sent by all the circuit modules, circuit module disconnection prompt information is sent to a user.
As an alternative embodiment, if the upgrade acknowledgement instruction is not received within the preset third period of time, the method further includes the following steps: the upgrade with the data packet is ended, and a third exception prompt instruction is sent to the control terminal, the third exception prompt instruction including: no upgrade acknowledgement instruction is received.
After the upgrade with the data packet is ended, the target circuit module automatically exits from the upgrade mode and enters the operation mode, and sends a notification message to the control terminal; the control terminal broadcasts a mode switching instruction to non-target circuit modules according to the received notification message, and the non-target circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction; the target circuit module and the non-target circuit modules send a mode switching Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 acknowledgement instruction to the control terminal after switching to the operation mode; and if the control terminal does not receive the mode switching acknowledgement instructions sent by all the circuit modules, the circuit module disconnection prompt information is sent to the user to prompt the user to make actions.
If the mode switching acknowledgement instructions sent by all the circuit modules are received by the control terminal, the upgrade process is quit.
As an alternative embodiment, when the total length of received data Receive Data Len is not consistent with the total length of data of the upgrade data packet Data Len, the method further includes the following steps:
whether a remaining chunked data packet is received within a preset fourth period of time or not is judged, and if the remaining chunked data packet is not received within the fourth period of time, a second exception prompt instruction is sent to the control terminal, the second exception prompt instruction including: the target circuit module does not receive the remaining chucked data packet in time; the fourth period of time may be 10 to 50 ms.
Here, the instructions sent by the circuit modules to the control terminal have a data format as shown in Table 6:
Table 6 Mode Target A 3 Len Type Data The instructions sent by the circuit modules to the control terminal include:
the first exception prompt instruction, the second exception prompt instruction, the third exception prompt instruction, the mode switching acknowledgement instruction and the upgrade completion instruction.
The instructions sent by the control terminal to the circuit modules include:
the upgrade mode exit instruction, the upgrade acknowledgement instruction and the mode switching instruction.
Among others, Type indicates the above instruction types. For example: a Type value of A indicates the upgrade mode exit instruction, a Type value of B
indicates the upgrade acknowledgement instruction, a Type value of C indicates the mode switching instruction, a Type value of D indicates the first exception prompt instruction, a Type value of E indicates the second exception prompt instruction, a Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Type value of F indicates the mode switching acknowledgement instruction, a Type value of G indicates the third exception prompt instruction, and a Type value of H
indicates the upgrade completion instruction. The values of A, B, C, D, E, F, G and H
are all in the range of 0-255, and are different from each other.
As an alternative embodiment, when the rotary steering tool and the circuit modules communicate via the wireless transmission device, it needs to test a wireless channel corresponding to the wireless communication device in advance to ensure the reliability of the wireless channel. Among others, referring to FIG. 4, the wireless transmission device includes a first communication module and a second communication module, wherein the first communication module is installed in a wireless diagnosis connector 41, the wireless diagnosis connector 41 is connected with the downhole rotary steering tool through a threaded connection or a snap-in connection, the wireless diagnosis connector 41 is connected with the control terminal 6 through a communication interface (such as a serial port or a USB
interface), and the wireless diagnosis connector 41 is also connected with an external power supply module.
The second communication module is connected with the downhole rotary steering tool, and the second communication module is specifically installed at an end of the downhole rotary steering tool towards an out-of-hole direction.
Still referring to FIG. 4, the first communication module includes: an electric power transmission control unit 42, a first communication control unit 43 and an electromagnetic induction primary coil 44; and the second communication module includes: an electric power reception control unit 45, a second communication control unit 46 and an electromagnetic induction secondary coil 47;
the power transmission control unit 42 is connected with the external power supply module, the external power supply module supplies power to the power transmission control unit 42, and the power transmission control unit 42 is used for supplying power to the first communication control unit 43 and the electromagnetic induction primary coil 44.
Specifically, the electric power transmission control unit 42 includes an inverter and a primary resonance compensator for converting direct current into alternating current; and the frequency and transmission power of the alternating current may be configured and adjusted through the control terminal 6.
The electric power transmission control unit 42 is connected with the electromagnetic induction primary coil 44 and used for transmitting electric power Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 from the electromagnetic induction primary coil 44 to the electromagnetic induction secondary coil 47; the first communication control unit 43 is used for controlling transmission of data (data sending and data receiving) between the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47;
here, the data is transmitted with electric power as a carrier, and the data is transmitted to the electromagnetic induction secondary coil 47 along with electric power; the data includes: a passthrough packet or an instruction packet; the passthrough packet encapsulates an upgrade data packet, and the instruction packet includes: a test data packet or another instruction packet.
Similarly, the electric power reception control unit 45 is connected with the electromagnetic induction secondary coil 47 and used for transmitting electric power from the electromagnetic induction secondary coil 47 to the electromagnetic induction primary coil 44; and the electric power reception control unit 45 includes: a secondary resonance compensator and a voltage shaper; the second communication control unit 46 is used for controlling transmission of the data (data sending and data receiving) between the electromagnetic induction secondary coil 47 and the electromagnetic induction primary coil 44.
The electric power reception control unit 45 and the second communication control unit 46 are connected with the circuit modules, the electric power reception control unit 45 is used for supplying power to the circuit modules, and the second communication control unit 46 is used for supplying power to and communicating with the circuit modules.
Here, the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47 form an electromagnetic induction coil, and the sectional view of the electromagnetic induction coil is shown in FIG. 5.
It should be noted that, when installed, the upper and lower edges of the electromagnetic induction primary coil 44 should be aligned with the upper and lower edges of the electromagnetic induction secondary coil 47 as viewed in the cross section, the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47 are coaxial as viewed in the axial direction, and the two coils have the same number of turns.
After the wireless transmission device is installed, the wireless transmission device may be started for data upgrade. When data upgrade is to be carried out on the circuit modules in the operation mode, before the control terminal broadcasts a mode switching instruction to the circuit modules, it needs to test whether a wireless Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 transmission channel is capable of transmitting data packets properly, and the method further includes the following steps: a test data packet is sent to the second communication module via the first communication module, and whether a first message sent by the second communication module is received within a preset six period of time or not is judged, wherein the first message indicates that a correct data packet is received, and the first message may have a message identifier of a;
if the first message is received within the six period of time, a second message, which is used for indicating that a wireless transmission channel is successfully established, is sent to the control terminal, wherein the second message may have a message identifier of e; and the six period of time may be: 10 to 60 ms; and if the first message is not received within the six period of time, a third message, which is used for indicating a wireless transmission channel is not successfully established, is sent to the control terminal, wherein the third message may have a message identifier off Among others, the sending the test data packet to the second communication module via the first communication module, includes: the test data packet is sent from the electromagnetic induction primary coil 44 to the electromagnetic induction secondary coil 47 via the first communication control unit 43 in the first communication module.
Meanwhile, after the wireless transmission device is powered on and started, the second communication control unit 46 in the second communication module also judges whether a test data packet is received within a preset seventh period of time, wherein the seventh period of time may be 60 to 120 ms; if the second communication control unit 46 in the second communication module does not receive the test data packet within the seventh period of time, a fourth message is sent to the electromagnetic induction primary coil 44, wherein the fourth message indicates that no data packet is received, and the fourth message may have a message identifier of d;
if the second communication control unit 46 in the second communication module receives the test data packet with an incorrect checksum, a fifth message is sent to the electromagnetic induction primary coil 44, wherein the fifth message indicates that a data packet with a check error is received, and the fifth message may have a message identifier of b; and if the checksum is correct, the first message, which indicates that a correct data packet is received, is sent to the electromagnetic primary coil 44.
Here, the test data packet and data packets for transmitting the messages (the first message to the fifth message) may be referred to as an instruction packet, which would not be sent to the circuit modules in the downhole rotary steering tool.

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Here, during transmission of a passthrough packet (an operation data packet or an upgrade data packet), in order to check the upgrade data packet or the operation data packet, the upgrade data packet or the operation data packet needs to be encapsulated in the passthrough packet to transmitted, wherein the passthrough data packet has a format as shown in Table 7:
Table 7 Header TYPE LEN MESSAGE CRC
In table 7, when TYPE is P, it indicates that the data packet is a passthrough packet, and then MESSAGE is an operation data packet or an upgrade data packet;
and when TYPE is Q, it indicates that the data packet is an instruction packet, and then the content of MESSAGE is a message identifier SubType of an instruction packet. CRC is the check of the data packet and is used for checking the data packet.
LEN is the length of the data packet.
The structure of the instruction packet may refer to Table 8:
Table 8 Header TYPE LEN SubType CRC
In Table 8, SubType is a message identifier, for example, when the message is a first message, SubType has a value of a; and when SubType has a value of c, it indicates that the packet is a test data packet.
When the wireless transmission channel is successfully established, the first communication module sends a passthrough packet in the data format as shown in Table 7 to the second communication module, and the second communication module receives the passthrough packet, extracts MESSAGE in the data packet to obtain the passthrough packet, and then sends the passthrough packet to the circuit modules to carry out data upgrade or execute an operation instruction; and the data upgrade method is completely as same as the upgrading method for wired transmission described above and will not be repeated here.
Further, as the upgrade data packet is also transmitted by means of chucked transfer, the upgrade data packet is also checked during transmission; when the first communication module sends chunked upgrade data packets to the second communication module, the second communication module checks each chunked upgrade data packet individually, and if the check result is incorrect, a fifth message is Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 sent to the first communication module; the first communication module resends the chunked upgrade data packet after receiving the fifth message, and if the fifth message is still received after a present number of times of resending, a system error message is sent to the control terminal, and the control terminal pushes prompt information to prompt an operator; wherein, the preset number of times is three.
Similarly, when the second communication module determines that the check result is correct, an acknowledgement message is sent to a first communication module, and the first check module sends a next chunked upgrade data packet after receiving the acknowledgement message.
When the first communication module does not receive any message (a check result or an acknowledgement message) sent by the second communication module within a preset eighth period of time, it is determined that the upgrade has an error, and the upgrade process is quit.
Therefore, in the case of either wired transmission or wireless transmission, even if some circuit modules do not have external mechanical ports, they still can receive upgrade data packets forwarded by other circuit modules, so that data upgrade can be implemented without disassembling the rotary guide tool, providing convenience and preventing damages to the circuit caused by repeated disassembly and assembly;
in addition, the control terminal sends the upgrade data packet by means of chunked transfer, so that for a large upgrade data packet, the transmission error rate can be reduced, and the accuracy of the upgrade data packet is further improved.
Based on the same inventive concept, the present invention further provides a data upgrade system, which is described in detail in Embodiment 2.
Embodiment 2 This embodiment provides a data upgrade system, and as shown in FIG. 3, the data upgrade system includes: a control terminal 6 and a downhole rotary steering tool 32, wherein the rotary steering tool 32 includes at least two circuit modules, and each circuit module is connected to another circuit module through a communication interface; as shown in FIG.1, the rotary steering tool includes a circuit module 1, a circuit module 2, a circuit module 3, a circuit module 4, a circuit module 5, ..., and a circuit module N; the circuit module 1, the circuit module 2, the circuit module 3, the circuit module 4, the circuit module 5, ..., and the circuit module N are connected through communication interfaces, and the circuit module 1 is also connected with the control terminal 6 through a communication interface, and the control terminal 6 may be an industrial control computer. Each circuit module has an arm processor which Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 supports TAP, i.e., the processor is capable of getting new code and reprograming itself in the system.
The communication interface may include: a serial port, an I2C interface, a serial peripheral interface (SPI), the Ethernet, a contactless unit, a CAN interface, etc.; and the contactless unit may include: a contactless electric power transmission circuit, a contactless electric power reception circuit, a contactless signal transmission circuit, an electromagnetic induction coil, etc.
Here, the circuit module 1, the circuit module 2, the circuit module 3, the circuit module 4, the circuit module 5, ..., and the circuit module N may include: a bus module, a contactless signal transmission module, a contactless electric power transmission control module, a contactless primary side information transmission control module, a contactless electric power reception control module, a contactless secondary side information transmission control module, a central control module, an attitude measurement module, a hydraulic drive control module, etc. When the circuit modules are to be connected, the following specific connection is adopted:
the bus module is connected to the contactless signal transmission module through a serial port, the contactless signal transmission module is connected to the contactless electric power transmission module, the contactless information transmission module is connected to the contactless secondary side information transmission module through a contactless unit (an electromagnetic induction coil), the contactless secondary side information transmission module is connected to the central control module through a serial port, and the central control module is connected to the attitude measurement module through an I2C interface, and is connected to the hydraulic drive module through a CAN interface.
Based on the above connection, as an alternative embodiment, the circuit modules and the downhole rotary steering tool may be connected in a wired manner, or the circuit modules and the downhole rotary steering tool may be connected in a wireless manner and communicate using a wireless transmission device. In the case of wired connection, when data upgrade is to be carried out on the circuit modules in the operation mode, the system is specifically implemented as follows: when the system is in the operation mode, the circuit modules are also in the operation mode and data upgrade is to be carried out on the circuit modules, the control terminal 6 broadcasts a mode switching instruction to all the circuit modules, and the circuit modules switch from the operation mode to the upgrade mode after receiving the mode switching instruction.

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Here, for the purpose of distinction, each circuit module has a different identification number, for example, the module circuit 1 may have an identification number of 1, the module circuit 2 may have an identification number of 2, etc.
As an alternative embodiment, when the circuit modules have switched from the operation mode to the upgrade mode, the circuit modules send a mode switching acknowledgement instruction to the control terminal according to a preset sending sequence.
The preset sending sequence may be an order of values of the identification numbers of the module circuits, for example, an order of values from large to small, or an order of values from small to large. The preset sending sequence may also be an order of distances of the module circuits from the control terminal, for example, an order of distances from far to near, or an order of distances from near to far.
The control terminal 6 judges whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time, and if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasts the mode switching instruction to all the circuit modules, and after N times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, determines that corresponding circuit modules are disconnected, then quits the upgrade process, and sends circuit module disconnection prompt information to a user to prompt the user to make corresponding actions; wherein N is not smaller than 3.
After receiving the mode switching acknowledgement instructions sent by all the circuit modules, the control terminal 6 sends the upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time, and the upgrade state broadcast instruction is used for informing the circuit modules to remain in the upgrade mode; the first period of time may be 3 s.
After all the circuit modules enter the upgrade mode, the circuit modules judge whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time, and if so, reset a countdown of the second period of time and wait to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy, the upgrade data packet including m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier. The second period of time may be 10 s.
That is, when the control terminal 6 transmits an upgrade data packet based on Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 the chunked transfer strategy, the circuit modules receive the upgrade data packet which includes m chunked data packets, m being an integer greater than 1.
If the upgrade state broadcast instruction sent by the control terminal 6 is not received within the second period of time, all the circuit modules exit from the upgrade mode and enter the operation mode, and send a working mode change notification message to the control terminal 6. Therefore, in the cases such as the control terminal 6 is halted or a communication exception occurs, the circuit modules in the rotary steering tool can be restored to the operation mode as soon as possible, thereby ensuring the proper operation of the rotary steering tool.
For any circuit module, when the current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to the identification number of the target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to the preset forwarding strategy until the upgrade data packet is matched with the target circuit module.
Here, in order to prevent errors, before judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, a working mode identifier of the upgrade data packet is acquired, whether the working mode identifier is consistent with a preset upgrade mode identifier or not is judged, and if the working mode identifier is consistent with the preset upgrade mode identifier, it indicates that the received data packet is an upgrade data packet; and if the working mode identifier is not consistent with the preset upgrade mode identifier, it indicates that the received data packet is not an upgrade data packet.
As an alternative embodiment, the judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, includes: the identification number of the target circuit module is compared with an identification number of the current circuit module, and if the identification number of the target circuit module is consistent with the identification number of the current circuit module, it is determined that the upgrade data packet is an upgrade data packet for the current circuit module; and if the identification number of the target circuit module is not consistent with the identification number of the current circuit module, it is determined that the upgrade data packet is not an upgrade data packet for the current Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 circuit module.
For example, when the upgrade data packet arrives at a circuit module i, a receiving unit of the circuit module i receives the upgrade data packet and firstly performs header recognition, and if a recognized Mode is A, it is determined that the data packet is an upgrade data packet. Then, a circuit module identification number, i.e. a Target value, in the upgrade data packet is acquired, and if the Target value is not equal to i, it indicates that the upgrade data packet is not an upgrade data packet for the circuit module i, and the upgrade data packet is forwarded to an adjacent circuit module.
It should be noted that, when the upgrade data packet is forwarded to an adjacent circuit module, it is forwarded to an adjacent circuit module that has never received the upgrade data packet, but not an adjacent circuit module that has received the upgrade data packet.
For example, assuming that adjacent circuit modules of the circuit module i are a circuit module i-1 and a circuit module i+1, the circuit module i receives an upgrade data packet forwarded by the circuit module i-1, so when the Target value of the upgrade data packet is not equal to i, the upgrade data packet is forwarded to the circuit module i+1 but not the circuit module i-1.
Specifically, assuming that data upgrade is to be carried out on the circuit module 3, referring to FIG. 1, a forwarding process is as follows:
1) when the upgrade data packet arrives at the circuit module 1, the circuit module 1 receives the upgrade data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit module 1, and the data packet is forwarded to the circuit module 2;
2) when the data packet arrives at the circuit module 2, the circuit module 2 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit module 2, and the data packet is forwarded to the circuit module 3 and the circuit module 5;
3) when the data packet arrives at the circuit module 5, the circuit module 5 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is not an upgrade data packet sent to the circuit Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 module 5, however, at this time, the data packet is not to be forwarded because the circuit module 5 does not have any adjacent circuit module other than the circuit module 2; and 4) when the data packet arrives at the circuit module 3, the circuit module 3 receives the data packet and performs header recognition, and a recognized Mode is A, indicating a program upgrade data packet, and a recognized Target is 3, so that it is determined that the data packet is an upgrade data packet sent to the circuit module 3, and thus the upgrade data packet is successfully matched with a circuit module.
As an alternative embodiment, after the upgrade data packet is matched with the target circuit module, the target circuit module judges whether the upgrade data packet is an upgrade data packet received for the first time or not, and if so, enters an upgrade locking mode; in the upgrade locking mode, if the upgrade state broadcast instruction sent by the control terminal 6 is received, the upgrade state broadcast instruction is not parsed and is directly forwarded to an adjacent circuit module.
Here, the upgrade packet has a format shown in Table 1:
Table 1 Mode Target Len Data The system has two working modes: the upgrade mode and the operation mode.
Therefore, in Table 1, Mode is the header of the data packet and used for identifying the working mode, for example, a Mode value of A indicates an upgrade data packet, and a Mode value of B indicates an operation data packet.
Target is an identification number of a module circuit, and is used for identifying a target circuit module corresponding to the data packet, for example, if a data packet needs to be transmitted to the circuit module 2, the Target value is 2. Among others, when the Target value is 255, it indicates that the target module corresponding to the data packet is all of the circuit modules, and the data packet can be referred to as a broadcast data packet. When the Target value is 0, it indicates that the data packet is an acknowledgement packet sent to the control terminal by the circuit modules.
Len is used for recording the length of data of the data packet, facilitating data reading and processing.
Data is the data content of the data packet. Data has different formats in different modes, and in the operation mode, the data format may be predefined according to the functions of the circuit modules of the rotary steering tool.
Therefore, the upgrade data packet sent by the control terminal to the circuit module may have a data format as shown in Table 2:

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Table 2 Mode Target This Data Len Data Len Position __ BIN_Fiie A 3 Len Data Here, if the length of data of the upgrade data packet is too long, in this embodiment, the upgrade data packet may be transmitted by means of chunked transfer to prevent errors caused by an excessive long data packet, and the upgrade data packet needs to be divided into a plurality of chunked data packets in advance.
Data Len in the figure is then the total length of valid data in the entire upgrade packet, i.e. the sum of lengths of BIN Files of all chunked data packets.
Position is the position of the chunked data packet in the entire upgrade packet, i.e., the position number that identifies the chunked data packet. After the target circuit module receives the data packets, the BIN_Files may be assembled according to an order of the position numbers of the chunked data packet.
This_Data Len is the length of BIN File in each chunked data packet.
When the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet.
Specifically, as the control terminal 6 transmits the upgrade data packet by means of chunked transfer, after the target circuit module receives the upgrade data packet, the target circuit module judges whether an upgrade mode exit instruction sent by the control terminal is received or not, and if the upgrade mode exit instruction is received, stops upgrading. If the upgrade mode exit instruction is not received, data upgrade is carried out using the upgrade data packet.
Specifically, the carrying out data upgrade using the upgrade data packet, includes: a length of data This Data Len and a position number Position of each chucked data packet and a total length of data of the upgrade data packet Data Len carried by each chucked data packet are recorded and stored.
Here, because the length of each upgrade data packet is different from others, with the total length of data of the upgrade data packet Data Len carried by each chucked data packet, it is very convenient to detect whether the chucked data packets belong to the same upgrade data packet or not, and if two chucked data packets do not belong to the same upgrade data packet, the control terminal can be notified in time, and upgrade failure which causes incorrect operation of the program is prevented.
For example, assuming that an upgrade data packet has a length of data of 1000, Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Data Len is 1000, and the upgrade data packet needs to be divided into three chunked data packets to be transmitted, the first chunked data packet has a length of 400, the second chunked data packet has a length of 400, and the third chunked data packet has a length of 200, then the first chunked data packet has a data format as shown in Table 3, and the second chunked data packet has a data format as shown in Table 4, and the third chunked data packet has a data format as shown in Table 5:
Table 3 1000 1 400 BIN File Table 4 1000 2 400 BIN File Table 5 1000 3 200 BIN File BIN File in Table 3 is the 1st to 400-th bytes, BIN File in Table 4 is the 401-st to 800-th bytes, and BIN_File in Table 5 is the 801-st to 1000-th bytes.
After reception is completed, a total length of received data Receive Data Len is updated, and Receive Data Len should be equal to the sum of all of the This Data Lens; then whether the total length of data of the upgrade data packet Data Len carried by each chucked data packet is consistent or not is judged;
and if the total length of data of the upgrade data packet Data Len carried by each chucked data packet is consistent, whether the total length of received data Receive Data Len is consistent with the total length of data of the upgrade data packet Data Len or not is judged.
If the total length of data of the upgrade data packet Data Len carried by each chucked data packet is not consistent, a first exception prompt instruction is sent to the control terminal 6, and the upgrade is ended; the first exception prompt instruction including: the target circuit module receives an upgrade data packet with an inconsistent total length of data.
Further, if the total length of received data Receive Data_Len is consistent with the total length of data of the upgrade data packet Data Len, an upgrade start notification message is sent to the control terminal; whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not is judged, and if the upgrade acknowledgement instruction is received, upgrade is carried out with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, an upgrade completion instruction is sent to the control terminal.

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 After receiving the upgrade completion instruction, the control terminal 6 sends a mode switching instruction to the circuit modules; the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction, and send a mode switching acknowledgement instruction to the control module; and if the control terminal 6 does not receive the mode switching acknowledgement instructions sent by all the circuit modules, the circuit module disconnection prompt information is sent to the user.
As an alternative embodiment, if the upgrade acknowledgement instruction is not received within the preset third period of time, the upgrade with the data packet is ended, and a third exception prompt instruction is sent to the control terminal 6, the third exception prompt instruction including: no upgrade acknowledgement instruction is received.
After the upgrade with the data packet is ended, the target circuit module automatically exits from the upgrade mode and enters the operation mode, and sends a notification message to the control terminal 6;
the control terminal 6 broadcasts a mode switching instruction to non-target circuit modules according to the received notification message, and the non-target circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction; the target circuit module and the non-target circuit modules send a mode switching acknowledgement instruction to the control terminal after switching to the operation mode.
If the control terminal 6 does not receive the mode switching acknowledgement instructions sent by all the circuit modules, the circuit module disconnection prompt information is sent to the user to prompt the user to make actions.
If the control terminal 6 receives the mode switching acknowledgement instructions sent by all the circuit modules, the upgrade process is quit.
As an alternative embodiment, when the total length of received data Receive Data Len is not consistent with the total length of data of the upgrade data packet Data Len, whether a remaining chunked data packet is received within a preset fourth period of time or not is judged, and if the remaining chunked data packet is not received within the fourth period of time, a second exception prompt instruction is sent to the control terminal, the second exception prompt instruction including: the target circuit module does not receive the remaining chucked data packet in time.
Here, the instructions sent by the circuit modules to the control terminal have a data format as shown in Table 6:

Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Table 6 Mode Target A 3 Len Type Data The instructions sent by the circuit modules to the control terminal 6 include: the first exception prompt instruction, the second exception prompt instruction, the third exception prompt instruction, the mode switching acknowledgement instruction and the upgrade completion instruction.
The instructions sent by the control terminal to the circuit modules include:
the upgrade mode exit instruction, the upgrade acknowledgement instruction and the mode switching instruction.
Among others, Type indicates the above instruction types. For example: a Type value of A indicates the upgrade mode exit instruction, a Type value of B
indicates the upgrade acknowledgement instruction, a Type value of C indicates the mode switching instruction, a Type value of D indicates the first exception prompt instruction, a Type value of E indicates the second exception prompt instruction, a Type value of F indicates the mode switching acknowledgement instruction, a Type value of G indicates the third exception prompt instruction, and a Type value of H
indicates the upgrade completion instruction. The values of A, B, C, D, E, F, G and H
are all in the range of 0-255, and are different from each other.
As an alternative embodiment, when the rotary steering tool and the circuit modules communicate via the wireless transmission device, it needs to test a wireless channel corresponding to the wireless communication device in advance to ensure the reliability of the wireless channel. Among others, referring to FIG. 4, the wireless transmission device includes a first communication module and a second communication module, wherein the first communication module is installed in a wireless diagnosis connector 41, the wireless diagnosis connector 41 is connected with the downhole rotary steering tool through a threaded connection or a snap-in connection, the wireless diagnosis connector 41 is connected with the control terminal 6 through a communication interface (such as a serial port or a USB
interface), and the wireless diagnosis connector 41 is also connected with an external power supply module.
The second communication module is connected with the downhole rotary steering tool, and the second communication module is specifically installed at an end Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 of the downhole rotary steering tool towards an out-of-hole direction.
Still referring to FIG. 4, the first communication module includes: an electric power transmission control unit 42, a first communication control unit 43 and an electromagnetic induction primary coil 44; and the second communication module includes: an electric power reception control unit 45, a second communication control unit 46 and an electromagnetic induction secondary coil 47;
the power transmission control unit 42 is connected with the external power supply module, the external power supply module supplies power to the power transmission control unit 42, and the power transmission control unit 42 is used for supplying power to the first communication control unit 43 and the electromagnetic induction primary coil 44.
Specifically, the electric power transmission control unit 42 includes an inverter and a primary resonance compensator for converting direct current into alternating current; and the frequency and transmission power of the alternating current may be configured and adjusted through the control terminal 6.
The electric power transmission control unit 42 is connected with the electromagnetic induction primary coil 44 and used for transmitting electric power from the electromagnetic induction primary coil 44 to the electromagnetic induction secondary coil 47; the first communication control unit 43 is used for controlling transmission of data (data sending and data receiving) between the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47;
here the data is transmitted with electric power as a carrier, and the data is transmitted to the electromagnetic induction secondary coil 47 along with electric power; the data includes: a passthrough packet or an instruction packet; the passthrough packet encapsulates an upgrade data packet, and the instruction packet includes: a test data packet or another instruction packet.
Similarly, the electric power reception control unit 45 is connected with the electromagnetic induction secondary coil 47 and used for transmitting electric power from the electromagnetic induction secondary coil 47 to the electromagnetic induction primary coil 44; and the electric power reception control unit 45 includes: a secondary resonance compensator and a voltage shaper; the second communication control unit 46 is used for controlling transmission of the data (data sending and data receiving) between the electromagnetic induction secondary coil 47 and the electromagnetic induction primary coil 44.
The electric power reception control unit 45 and the second communication Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 control unit 46 are connected with the circuit modules, the electric power reception control unit 45 is used for supplying power to the circuit modules, and the second communication control unit 46 is used for supplying power to and communicating with the circuit modules.
Here, the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47 form an electromagnetic induction coil, and the sectional view of the electromagnetic induction coil is shown in FIG. 5.
It should be noted that, when installed, the upper and lower edges of the electromagnetic induction primary coil 44 should be aligned with the upper and lower edges of the electromagnetic induction secondary coil 47 as viewed in the cross section, the electromagnetic induction primary coil 44 and the electromagnetic induction secondary coil 47 are coaxial as viewed in the axial direction, and the two coils have the same number of turns.
After the wireless transmission device is installed, the wireless transmission device may be started for data upgrade. When data upgrade is to be carried out on the circuit modules in the operation mode, before the control terminal broadcasts a mode switching instruction to the circuit modules, it needs to test whether a wireless transmission channel is capable of transmitting data packets properly, and the method further includes the following steps: a test data packet is sent to the second communication module via the first communication module, and whether a first message sent by the second communication module is received within a preset six period of time or not is judged, wherein the first message indicates that a correct data packet is received, and the first message may have a message identifier of a;
if the first message is received within the six period of time, a second message, which is used for indicating that a wireless transmission channel is successfully established, is sent to the control terminal, wherein the second message may have a message identifier of e; and the six period of time may be: 10 to 60 ms; and if the first message is not received within the six period of time, a third message, which is used for indicating that a wireless transmission channel is not successfully established, is sent to the control terminal, wherein the third message may have a message identifier off Among others, the sending the test data packet to the second communication module via the first communication module, includes: the test data packet is sent from the electromagnetic induction primary coil 44 to the electromagnetic induction secondary coil 47 via the first communication control unit 43 in the first Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 communication module.
Meanwhile, after the wireless transmission device is powered on and started, the second communication control unit 46 in the second communication module also judges whether a test data packet is received within a preset seventh period of time, wherein the seventh period of time may be 60 to 120 ms; if the second communication control unit 46 in the second communication module does not receive the test data packet within the seventh period of time, a fourth message is sent to the electromagnetic induction primary coil 44, wherein the fourth message indicates that no data packet is received, and the fourth message may have a message identifier of d;
if the second communication control unit 46 in the second communication module receives the test data packet with an incorrect checksum, a fifth message is sent to the electromagnetic induction primary coil 44, wherein the fifth message indicates that a data packet with a check error is received, and the fifth message may have a message identifier of b; and if the checksum is correct, the first message, which indicates that a correct data packet is received, is sent to the electromagnetic primary coil 44.
Here, the test data packet and data packets for transmitting the messages (the first message to the fifth message) may be referred to as an instruction packet, which would not be sent to the circuit modules in the downhole rotary steering tool.
Here, during transmission of a passthrough packet (an operation data packet or an upgrade data packet), in order to check the upgrade data packet or the operation data packet, the upgrade data packet or the operation data packet needs to be encapsulated in the passthrough packet to transmitted, wherein the passthrough data packet has a format as shown in Table 7:
Table 7 Header TYPE LEN MESSAGE CRC
In Table 7, when TYPE is P, it indicates that the data packet is a passthrough packet, and then MESSAGE is an operation data packet or an upgrade data packet;
and when TYPE is Q, it indicates that the data packet is an instruction packet, and then the content of MESSAGE is a message identifier SubType of an instruction packet. CRC is the check of the data packet and is used to checking the data packet.
LEN is the length of the data packet.
The structure of the instruction packet may refer to Table 8:
Table 8 Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 Header TYPE LEN SubType CRC
In Table 8, SubType is a message identifier, for example, when the message is a first message, SubType has a value of a; and when SubType has a value of c, it indicates that the packet is a test data packet.
When the wireless transmission channel is successfully established, the first communication module sends a passthrough packet in the data format as shown in Table 7 to the second communication module, and the second communication module receives the passthrough packet, extracts MESSAGE in the data packet to obtain the passthrough packet, and then sends the passthrough packet to the circuit modules to carry out data upgrade or execute an operation instruction; and the data upgrade method is completely as same as the upgrading method for wired transmission described above and will not be repeated here.
Further, as the upgrade data packet is also transmitted by means of chucked transfer, the upgrade data packet is also checked during transmission; when the first communication module sends chunked upgrade data packets to the second communication module, the second communication module checks each chunked upgrade data packet individually, and if the check result is incorrect, a fifth message is sent to the first communication module; the first communication module resends the chunked upgrade data packet after receiving the fifth message, and if the fifth message is still received after a present number of times of resending, a system error message is sent to the control terminal, and the control terminal pushes prompt information to prompt an operator; wherein, the preset number of times is three.
Similarly, when the second communication module determines that the check result is correct, an acknowledgement message is sent to a first communication module, and the first check module sends a next chunked upgrade data packet after receiving the acknowledgement message.
When the first communication module does not receive any message (a check result or an acknowledgement message) sent by the second communication module within a preset eighth period of time, it is determined that the upgrade has an error, and the upgrade process is quit.
Therefore, in the case of either wired transmission or wireless transmission, even if some circuit modules do not have external mechanical ports, they still can receive upgrade data packets forwarded by other circuit modules, so that data upgrade can be Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 implemented without disassembling the rotary guide tool, providing convenience and preventing damages to the circuit caused by repeated disassembly and assembly;
in addition, the control terminal sends the upgrade data packet by means of chunked transfer, so that for a large upgrade data packet, the transmission error rate can be reduced, and the accuracy of the upgrade data packet is further improved.
The data upgrade method and system provided by the embodiments of the present invention have the following beneficial effects: the present invention provides a data upgrade method and system, when data upgrade is to be carried out on the circuit modules in an operation mode, the control terminal broadcasts a mode switching instruction to the circuit modules; the circuit modules switch from the operation mode to an upgrade mode according to the received mode switching instruction; the control terminal sends an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time; the circuit modules judge whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time or not, and if so, wait to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy;
and if the upgrade state broadcast instruction sent by the control terminal is not received within the preset second period of time, switch from the upgrade mode to the operation mode, and send a working mode change notification message to the control terminal;
the upgrade data packet including m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; each of the circuit modules having a different identification number; when a current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not the upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; when the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet;
wherein, the carrying out data upgrade using the upgrade data packet includes:
a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet are recorded and stored; a total length of received data is updated; whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not is Date Recue/Date Received 2021-04-30 Attorney Ref: 1541P 002CA01 judged; if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, whether the total length of received data is consistent with the total length of data of the upgrade data packet or not is judged; if the total length of received data is consistent with the total length of data of the upgrade data packet, an upgrade start notification message is sent to the control terminal; whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not is judged, and if the upgrade acknowledgement instruction is received, upgrade is carried out with the data packet according to the upgrade acknowledgement instruction; after the upgrade is completed, an upgrade completion instruction is sent to the control terminal; after receiving the upgrade completion instruction, the control terminal sends a mode switching instruction to the circuit modules; the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction; wherein, if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, the circuit module sends a first exception prompt instruction to the control terminal, the first exception prompt instruction including: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, the circuit module judges whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, a second exception prompt instruction is sent to the control terminal, the second exception prompt instruction including: the target circuit module does not receive the remaining chucked data packet in time.
Therefore, by utilizing the existing interconnected communication interfaces of the circuit modules, even if some circuit modules do not have external mechanical ports, they still can receive upgrade data packets forwarded by other circuit modules, so that data upgrade can be implemented without disassembling the rotary guide tool, providing convenience and preventing damages to the circuit caused by repeated disassembly and assembly; through mode switching of the circuit modules and the system, program upgrade is carried out as fast as possible without affecting the preset work of the circuit modules; in addition, the control terminal sends the upgrade data packet by chunked transfer, so that for a large upgrade data packet, the transmission error rate can be reduced, and the accuracy of the upgrade data packet is further improved; no matter whether the upgrade is properly completed or exited with an exception, the circuit modules can exit from the upgrade mode to enter the operation Date Recue/Date Received 2021-04-30 Attorney Ref: 1 54 1P 002CAO 1 mode by themselves or by the control terminal, so that the tool can enter the operation mode as fast as possible so as to ensure the proper operation of the downhole rotary steering tool.
What described above are merely preferred embodiments of the present invention and are not intended to be limiting thereof, and all modifications, equivalents, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Date Recue/Date Received 2021-04-30

Claims (9)

Attorney Ref : 1541P002CA01 What is claimed is:
1. A data upgrade method applicable to a downhole rotary steering tool, wherein the rotary steering tool comprises at least two circuit modules, and the at least two circuit modules are connected through a communication interface and each of the at least two circuit modules comprises a processor supporting in-application programming (IAP), the method comprising:
when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting, by a control terminal, a mode switching instruction to the circuit modules;
switching, by the circuit modules, from the operation mode to an upgrade mode according to the received mode switching instruction;
sending, by the control terminal, an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time;
judging, by the circuit modules, whether the upgrade state broadcast instruction sent by the control terminal is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by the control terminal based on a chunked transfer strategy; and if the upgrade state broadcast instruction sent by the control terminal is not received within the preset second period of time, switching from the upgrade mode to the operation mode, and sending a working mode change notification message to the control terminal; the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier;
and each of the circuit modules having a different identification number;
when a current circuit module receives the upgrade data packet, judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not an upgrade data packet for the current circuit module, forwarding the upgrade data packet to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module;
when the target circuit module receives the upgrade data packet, carrying out data upgrade using the upgrade data packet; wherein the carrying out data upgrade using the upgrade data packet comprises:
recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet;
updating a total length of received data;

Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not;
if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not;
if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal;
judging whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal;
after receiving the upgrade completion instruction, sending, by the control terminal, a mode switching instruction to the circuit modules;
switching, by the circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction; wherein, if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, sending, by the circuit module, a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, judging, by the circuit module, whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit module does not receive the remaining chucked data packet in time.
2. The method of Claim 1, wherein after the switching, by the circuit modules, from the operation mode to the upgrade mode according to the received mode switching instruction, the method further comprises:

Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 sending a mode switching acknowledgement instruction to the control terminal according to a preset sending sequence;
judging, by the control terminal, whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time or not, and if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasting the mode switching instruction; and after N times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, quitting the upgrade process, and sending circuit module disconnection prompt information to a user, N being not smaller than 3.
3. The method of claim 1, wherein after the upgrade data packet is matched with the target circuit module, the method further comprises:
judging, by the target circuit module, whether the upgrade data packet is an upgrade data packet received for the first time or not, and if so, entering an upgrade locking mode; and in the upgrade locking mode, if the upgrade state broadcast instruction sent by the control terminal is received, directly forwarding the upgrade state broadcast instruction to an adjacent circuit module.
4. The method of Claim 1, wherein if the upgrade acknowledgement instruction is not received within the preset third period of time, the method further comprises:
ending the upgrade, and sending a third exception prompt instruction to the control terminal, the third exception prompt instruction comprising: no upgrade acknowledgement instruction is received;
after the upgrade is ended, automatically exiting, by the target circuit module, from the upgrade mode and entering the operation mode, and sending a notification message to the control terminal;
broadcasting, by the control terminal, a mode switching instruction to non-target circuit modules according to the received notification message, and switching, by the non-target circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction;
sending, by the target circuit module and the non-target circuit modules, a mode switching acknowledgement instruction to the control terminal; and if the control terminal does not receive the mode switching acknowledgement instructions sent by all the circuit modules, sending the circuit module disconnection prompt information to a user.
Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01
5. The method of Claim 1, wherein after the switching, by the circuit modules, from the upgrade mode to the operation mode according to the mode switching instruction, the method further comprises:
sending the mode switching acknowledgement instruction to the control terminal; and if the control terminal does not receive the mode switching acknowledgement instructions sent by all the circuit modules, sending the circuit module disconnection prompt information to a user.
6. The method of Claim 1, wherein when the rotary steering tool and the circuit modules communicate via a wireless transmission device, the wireless transmission device comprises:
a first communication module connected with the control terminal, and a second communication module connected with the downhole rotary steering tool;
wherein,when data upgrade is to be carried out on the circuit modules in the operation mode, before the broadcasting, by the control terminal, a mode switching instruction to the circuit modules, the method further comprises of:
sending a test data packet to the second communication module via the first communication module, and judging whether a first message sent by the second communication module is received within a preset six period of time, the first message indicating that a correct data packet is received;
if the first message is received within the six period of time, sending a second message, which is used for indicating that a wireless transmission channel is successfully established, to the control terminal; and if the first message is not received within the six period of time, sending a third message, which is used for indicating that a wireless transmission channel is not successfully established, to the control terminal;
wherein, the judging whether the upgrade data packet is an upgrade data packet for the current circuit module or not according to an identification number of a target circuit module carried by the upgrade data packet, comprising:
acquiring the working mode identifier of the upgrade data packet, and judging whether the working mode identifier is consistent with a preset upgrade mode identifier;
if the working mode identifier is consistent with the preset upgrade mode identifier, comparing the identification number of the target circuit module with an identification number of the current circuit module, and if the identification number of the target circuit module is consistent with the identification number of the current circuit module, determining that the Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 upgrade data packet is an upgrade data packet for the current circuit module;
and if the identification number of the target circuit module is not consistent with the identification number of the current circuit module, determining that the upgrade data packet is not an upgrade data packet for the current circuit module
7. A data upgrade system, comprising: a control terminal and a downhole rotary steering tool, wherein the rotary steering tool comprises at least two circuit modules, the at least two circuit modules are connected through a communication interface and each of the at least two circuit modules comprises a processor supporting in-application programming (IAP);
wherein the control terminal is used for, when data upgrade is to be carried out on the circuit modules in an operation mode, broadcasting a mode switching instruction to the circuit modules;
the circuit modules switch from the operation mode to an upgrade mode according to the received mode switching instruction;
the control terminal is used for sending an upgrade state broadcast instruction to the circuit modules at intervals of a preset first period of time;
the circuit modules are used for judging whether the upgrade state broadcast instruction is received within a preset second period of time or not, and if so, waiting to receive an upgrade data packet which is sent by a sending unit based on a chunked transfer strategy, the upgrade data packet comprising m chunked data packets, m being an integer greater than 1, and the upgrade data packet having a header which is a working mode identifier; and each of the circuit modules having a different identification number;
when a current circuit module receives the upgrade data packet, whether the upgrade data packet is an upgrade data packet for the current circuit module or not is judged according to an identification number of a target circuit module carried by the upgrade data packet, and if the upgrade data packet is not the upgrade data packet for the current circuit module, the upgrade data packet is forwarded to an adjacent circuit module according to a preset forwarding strategy until the upgrade data packet is matched with the target circuit module; and when the target circuit module receives the upgrade data packet, data upgrade is carried out using the upgrade data packet;
the control terminal, after receiving the upgrade completion instruction, sends a mode switching instruction to the circuit modules;
the circuit modules switch from the upgrade mode to the operation mode according to the mode switching instruction;

Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 wherein the carrying out data upgrade using the upgrade data packet comprises:

recording and storing a length of data and a position number of each chucked data packet and a total length of data of the upgrade data packet carried by each chucked data packet;
updating a total length of received data;
judging whether the total length of data of the upgrade data packet carried by each chucked data packet is consistent or not;
if the total length of data of the upgrade data packet carried by each chucked data packet is consistent, judging whether the total length of received data is consistent with the total length of data of the upgrade data packet or not;
if the total length of received data is consistent with the total length of data of the upgrade data packet, sending an upgrade start notification message to the control terminal;
judging whether an upgrade acknowledgement instruction sent by the control terminal is received within a preset third period of time or not, and if the upgrade acknowledgement instruction is received, carrying out upgrade with the data packet according to the upgrade acknowledgement instruction; and after the upgrade is completed, sending an upgrade completion instruction to the control terminal;
if the total length of data of the upgrade data packet carried by each chucked data packet is not consistent, the circuit module is further used for: sending a first exception prompt instruction to the control terminal, the first exception prompt instruction comprising: the target circuit module receives an upgrade data packet with an inconsistent total length of data; and if the total length of received data is not consistent with the total length of data of the upgrade data packet, the circuit module is further used for: judging whether a remaining chunked data packet is received within a preset fourth period of time or not, and if the remaining chunked data packet is not received within the fourth period of time, sending a second exception prompt instruction to the control terminal, the second exception prompt instruction comprising: the target circuit module does not receive the remaining chucked data packet in time.
8. The system of Claim 7, wherein the circuit modules are further used for:
sending a mode switching acknowledgement instruction to the control terminal Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 according to a preset sending sequence;
the control terminal is further used for: judging whether the mode switching acknowledgement instructions sent by all the circuit modules are received within a preset fifth period of time;
if the mode switching acknowledgement instructions sent by all the circuit modules are not received, repeatedly broadcasting the mode switching instruction; after N
times of repetition, if the mode switching acknowledgement instructions sent by all the circuit modules are still not received, quitting the upgrade process; and sending a circuit module disconnection prompt information to a user, N being not smaller than 3.
9. The system of Claim 7, wherein when the rotary steering tool and the circuit modules communicate via a wireless transmission device, the wireless transmission device comprises:
a first communication module and a second communication module; the first communication module is installed in a wireless diagnosis connector connected with the control terminal; the second communication module is connected with the downhole rotary steering tool; the first communication module comprises: an electric power transmission control unit, a first communication control unit and an electromagnetic induction primary coil;
and the second communication module comprises: an electric power reception control unit, a second communication control unit and an electromagnetic induction secondary coil;
wherein, the electric power transmission control unit is connected with the electromagnetic induction primary coil and used for transmitting electric power from the electromagnetic induction primary coil to the electromagnetic induction secondary coil;
the first communication control unit is used for controlling transmission of data between the electromagnetic induction primary coil and the electromagnetic induction secondary coil, and the data is transmitted with the electric power as a carrier, the data comprising: a passthrough packet or an instruction packet, the passthrough packet comprising: an upgrade data packet and an operation data packet; and the instruction packet comprising: a test data packet;
the electric power reception control unit is connected with the electromagnetic induction secondary coil and used for transmitting electric power from the electromagnetic induction secondary coil to the electromagnetic induction primary coil;
the second communication control unit is used for controlling transmission of the data between the electromagnetic induction secondary coil and the electromagnetic induction primary coil;

Date Recue/Date Received 2021-04-30 Attorney Ref : 1541P002CA01 when data upgrade is to be carried out on the circuit modules in the operation mode, before the control terminal broadcasts the mode switching instruction to the circuit modules, the first communication module is specifically used for:
sending the test data packet to the second communication module, and judging whether a first message sent by the second communication module is received within a preset six period of time, the first message indicating that a correct data packet is received;
if the first message is received within the six period of time, sending a second message, which is used for indicating that a wireless transmission channel is successfully established, to the control terminal; and if the first message is not received within the six period of time, sending a third message, which is used for indicating that a wireless transmission channel is not successfully established, to the control terminal.
Date Recue/Date Received 2021-04-30
CA3081051A 2020-01-14 2020-05-15 Data upgrade method and system Expired - Fee Related CA3081051C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010035614.9 2020-01-14
CN202010035614.9A CN111309351B (en) 2020-01-14 2020-01-14 Data upgrading method and system

Publications (2)

Publication Number Publication Date
CA3081051A1 CA3081051A1 (en) 2021-04-27
CA3081051C true CA3081051C (en) 2021-09-07

Family

ID=71156410

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3081051A Expired - Fee Related CA3081051C (en) 2020-01-14 2020-05-15 Data upgrade method and system

Country Status (2)

Country Link
CN (1) CN111309351B (en)
CA (1) CA3081051C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764785B (en) * 2020-12-24 2021-10-29 江苏云涌电子科技股份有限公司 Method for automatically upgrading multi-stage controller
CN113791804B (en) * 2021-09-14 2024-04-26 中元汇吉生物技术股份有限公司 Method, device, computer equipment and storage medium for parallel upgrading of multipath instruments
CN114301888B (en) * 2021-12-28 2023-09-22 复恒(重庆)科技有限公司 Remote online autonomous upgrade diagnosis method
CN117573156A (en) * 2023-10-19 2024-02-20 京源中科科技股份有限公司 Ultrasonic water meter upgrading method, system and device supporting infrared function

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308253B1 (en) * 1999-03-31 2001-10-23 Sony Corporation RISC CPU instructions particularly suited for decoding digital signal processing applications
US8090857B2 (en) * 2003-11-24 2012-01-03 Qualcomm Atheros, Inc. Medium access control layer that encapsulates data from a plurality of received data units into a plurality of independently transmittable blocks
US7571643B2 (en) * 2006-06-15 2009-08-11 Pathfinder Energy Services, Inc. Apparatus and method for downhole dynamics measurements
CN102932392B (en) * 2011-08-12 2015-07-08 上海移远通信技术有限公司 UDP (User Datagram Protocol) downloading method of multi-terminal system
CN103324502B (en) * 2013-05-28 2017-04-19 中国科学院上海微系统与信息技术研究所 Upgrading method of sensor network node code upgrading management middleware
US9800575B1 (en) * 2014-09-24 2017-10-24 Ebay Inc. Assigning storage responsibility in a distributed data storage system with replication
WO2016068866A1 (en) * 2014-10-28 2016-05-06 Halliburton Energy Services, Inc. Downhole state-machine-based monitoring of vibration
CN106640033A (en) * 2015-10-30 2017-05-10 中石化石油工程技术服务有限公司 State monitoring method for rotary guiding tool
CN106487575A (en) * 2016-04-11 2017-03-08 青岛东软载波科技股份有限公司 A kind of communication module batch upgrading method based on power line communication
CN108073409A (en) * 2016-11-16 2018-05-25 罗森伯格技术(昆山)有限公司 The upgrade method and system of cable accessed node
CN106713047A (en) * 2017-01-12 2017-05-24 泰凌微电子(上海)有限公司 Node upgrading method and system in mesh network
CN106681777A (en) * 2017-01-18 2017-05-17 青岛海尔空调电子有限公司 Quick program updating method for multi-split unit
CN109901866A (en) * 2017-12-07 2019-06-18 航天科工惯性技术有限公司 Online upgrading method and rotary steering system for multi-module system
CN108600892B (en) * 2018-06-15 2020-05-22 歌尔科技有限公司 Upgrading method and device, wireless headset, TWS headset and charging box
CN110532011A (en) * 2019-09-02 2019-12-03 珠海格力电器股份有限公司 Data converter version upgrading method, device and data communication system

Also Published As

Publication number Publication date
CN111309351A (en) 2020-06-19
CA3081051A1 (en) 2021-04-27
CN111309351B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CA3081051C (en) Data upgrade method and system
US20200331087A1 (en) Universal wireless remote control for welding apparatus in harsh environments
CN103530146B (en) Low-power-consumption embedded equipment remote radio upgrade method
EP2628233B1 (en) Power transmitter and power receiver for an inductive power system
CN111145523B (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN103096467B (en) The localization method of base station antenna feeder mouth and antenna port annexation and device
EP2919357B1 (en) Wireless power transmisson apparatus and wireless power transmisson method
CN109548051B (en) Wireless data transmission method and terminal of Internet of things
JP2016503645A (en) Wireless inductive power transmission
EP2320328B1 (en) Operation mode switching of data card and its control method, device and data card
CN112653738A (en) Internet of things network debugging system and method
CN111767068B (en) Equipment for carrying out batch upgrading on communication modules and batch upgrading system
EP3327894A1 (en) Wireless charging device for vehicle
CN110731069B (en) Method for controlling wireless device under test using unlink test resources
CN105140886A (en) Protective relaying system and method for gathering data using thereof
CN110809003A (en) Method for protocol conversion between robot and welding equipment and protocol conversion module
JP7159360B2 (en) Underground tool, signal transmission system and signal transmission method
CN116315168A (en) Battery management system information updating method and device
WO2019132073A1 (en) System for remote control of production equipment and management method therefor
KR102258883B1 (en) Method for detecting location of electric power line accidents
CN113162819B (en) Joint debugging method and device for 10kV pole-mounted switch complete equipment and storage medium
KR20190000619A (en) Wireless power transmission and reception system
CN112487749B (en) Profibus-DP and Modbus integrated slave station device based on singlechip
CN103176822B (en) A kind of control method downloading data and control device
CN104375019B (en) Load management terminal trip test system and test method thereof

Legal Events

Date Code Title Description
MKLA Lapsed

Effective date: 20220516