Language selection

Search

Patent 3081051 Summary

Third-party information liability

Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.

Claims and Abstract availability

Any discrepancies in the text and image of the Claims and Abstract are due to differing posting times. Text of the Claims and Abstract are posted:

  • At the time the application is open to public inspection;
  • At the time of issue of the patent (grant).
(12) Patent: (11) CA 3081051
(54) English Title: DATA UPGRADE METHOD AND SYSTEM
(54) French Title: PROCEDE ET SYSTEME DE MISE A NIVEAU DE DONNEES
Status: Deemed expired
Bibliographic Data
(51) International Patent Classification (IPC):
  • H04L 1/00 (2006.01)
  • H04W 4/06 (2009.01)
  • H04W 28/04 (2009.01)
  • G06F 8/65 (2018.01)
  • E21B 47/12 (2012.01)
  • H04L 12/18 (2006.01)
  • H04L 12/953 (2013.01)
  • H04L 12/955 (2013.01)
(72) Inventors :
  • HONG, LINFENG (China)
  • YANG, YONGYOU (China)
  • XIE, QIJUN (China)
  • DI, QINGYUN (China)
(73) Owners :
  • INSTITUTE OF GEOLOGY AND GEOPHYSICS CHINESE ACADEMY OF SCIENCES (IGGCAS) (China)
(71) Applicants :
  • INSTITUTE OF GEOLOGY AND GEOPHYSICS CHINESE ACADEMY OF SCIENCES (IGGCAS) (China)
(74) Agent: BRION RAFFOUL
(74) Associate agent:
(45) Issued: 2021-09-07
(22) Filed Date: 2020-05-15
(41) Open to Public Inspection: 2021-04-27
Examination requested: 2020-05-15
Availability of licence: N/A
(25) Language of filing: English

Patent Cooperation Treaty (PCT): No

(30) Application Priority Data:
Application No. Country/Territory Date
202010035614.9 China 2020-01-14

Abstracts

English 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


French Abstract

ABRÉGÉ La présente invention fournit une méthode et un système pour la mise à niveau de données. La méthode comprend les étapes suivantes : au moment de procéder à la mise à niveau de donnée de modules de circuits, un terminal maître reçoit une instruction de changer de mode; chaque module de circuit a un numéro didentification différent; le terminal maître envoie un paquet de données selon une stratégie de transmission par blocs tout en respectant une séquence de réception établie au préalable; au moment de recevoir le paquet de données de la mise à niveau, un module de circuit actuel détermine si le paquet de données de la mise à niveau lui est destiné en vérifiant le numéro didentification du module de circuit cible quil contient; à la réception du paquet de données de la mise à niveau, le circuit de module cible utilise ce dernier pour procéder à la mise à niveau. Date Reçue/Date Received 2020-05-15

Claims

Note: Claims are shown in the official language in which they were submitted.


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;
43
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:
44
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
46
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;
47
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
48
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;
49
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

Description

Note: Descriptions are shown in the official language in which they were submitted.


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
1
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
3
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
11
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
12
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
13
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
14
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
16
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
17
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:
18
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
19
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
21
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
22
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
23
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.
24
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
26
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.
27
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
28
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
29
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:
31
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,
32
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.
33
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:
34
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
36
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
37
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
38
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
39
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
41
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.
42
Date Recue/Date Received 2021-04-30

Representative Drawing
A single figure which represents the drawing illustrating the invention.
Administrative Status

For a clearer understanding of the status of the application/patent presented on this page, the site Disclaimer , as well as the definitions for Patent , Administrative Status , Maintenance Fee  and Payment History  should be consulted.

Administrative Status

Title Date
Forecasted Issue Date 2021-09-07
(22) Filed 2020-05-15
Examination Requested 2020-05-15
(41) Open to Public Inspection 2021-04-27
(45) Issued 2021-09-07
Deemed Expired 2022-05-16

Abandonment History

There is no abandonment history.

Payment History

Fee Type Anniversary Year Due Date Amount Paid Paid Date
Application Fee 2020-05-15 $400.00 2020-05-15
Request for Examination 2024-05-15 $800.00 2020-05-15
Final Fee 2021-11-19 $306.00 2021-07-27
Owners on Record

Note: Records showing the ownership history in alphabetical order.

Current Owners on Record
INSTITUTE OF GEOLOGY AND GEOPHYSICS CHINESE ACADEMY OF SCIENCES (IGGCAS)
Past Owners on Record
None
Past Owners that do not appear in the "Owners on Record" listing will appear in other documentation within the application.
Documents

To view selected files, please enter reCAPTCHA code :



To view images, click a link in the Document Description column. To download the documents, select one or more checkboxes in the first column and then click the "Download Selected in PDF format (Zip Archive)" or the "Download Selected as Single PDF" button.

List of published and non-published patent-specific documents on the CPD .

If you have any difficulty accessing content, you can call the Client Service Centre at 1-866-997-1936 or send them an e-mail at CIPO Client Service Centre.


Document
Description 
Date
(yyyy-mm-dd) 
Number of pages   Size of Image (KB) 
New Application 2020-05-15 9 247
Description 2020-05-15 40 2,321
Abstract 2020-05-15 1 22
Claims 2020-05-15 8 434
Drawings 2020-05-15 5 126
PPH Request / Amendment 2021-02-17 31 1,802
Early Lay-Open Request 2021-02-17 7 353
Claims 2021-02-17 8 427
Examiner Requisition 2021-04-01 4 205
Change of Agent 2021-04-20 4 178
Amendment 2021-04-30 56 2,883
Office Letter 2021-05-18 1 199
Office Letter 2021-05-18 1 191
Claims 2021-04-30 8 393
Description 2021-04-30 42 2,331
Representative Drawing 2021-07-16 1 13
Cover Page 2021-07-16 1 50
Final Fee 2021-07-27 3 88
PPH OEE 2021-02-17 16 1,015
PPH Request / Amendment 2021-02-17 15 779
Representative Drawing 2021-08-12 1 10
Cover Page 2021-08-12 2 52
Electronic Grant Certificate 2021-09-07 1 2,527