Gamma data storage system

The gamma data storage system solved the problem of data loss during downhole operation of gamma probes, achieving stable data acquisition and storage, and improving the fault analysis capability and data acquisition accuracy of directional instruments.

CN120929402APending Publication Date: 2025-11-11SINOPEC OILFIELD SERVICE CORPORATION +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410567404.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Existing oil directional instruments' gamma probes are prone to malfunction during downhole operations, leading to gamma data loss and a lack of storage capabilities.

Method used

Design a gamma data storage system, including a host computer, a gamma memory, and an RS232/RS485 converter. The system realizes the acquisition, storage, and transmission of gamma data through serial port connection. The system utilizes components such as a low dropout voltage regulator chip, a serial memory, a microcontroller, and a clock chip to achieve stable data acquisition and storage.

Benefits of technology

It enables the recording and storage of gamma data downhole, aiding in fault analysis of directional instruments, improving data acquisition accuracy, and the memory can record over 2000 hours of gamma data, making communication more reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120929402A_ABST
    Figure CN120929402A_ABST
Patent Text Reader

Abstract

The invention relates to a gamma data storage system which comprises an upper computer, a gamma memory and an RS232 / RS485 converter used for connecting the upper computer and the gamma memory. The upper computer is used for performing serial port connection, information reading, initialization, real-time testing, memory data reading and data exporting on the gamma memory; the RS232 / RS485 converter is used for converting an RS485 protocol signal of the gamma memory into an RS232 protocol signal and communicating with an upper computer through the RS232 protocol signal; and the gamma memory is used for acquiring and storing gamma pulse data. The gamma data storage system disclosed by the invention can record and store gamma data underground and help an orientation instrument to carry out fault analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of downhole instrument data storage technology, specifically relating to a gamma data storage system. Background Technology

[0002] Oilfield directional instruments are crucial equipment in oil exploration, primarily used to determine the direction, distribution, and reserves of underground oil. Gamma ray probes, based on the principle of radioactivity, are high-precision and highly sensitive measuring devices capable of more accurately detecting the distribution of underground oil. Current directional instruments store gamma data by sending signals from the gamma ray probe to the directional probe for storage. The gamma ray probe itself cannot store gamma data independently, and malfunctions frequently occur in practice, leading to data loss within the probe and making it impossible to diagnose the instrument's fault. Therefore, a system is needed that can be installed inside a gamma ray probe and store gamma data independently downhole, assisting directional instruments in fault and gamma data analysis, preventing gamma index loss, and improving data acquisition accuracy.

[0003] Chinese utility model patent (patent number CN202222525511.8) discloses a gamma probe testing system, including a host computer, a control device, and a probe environment box. The probe environment box includes a vibration and fixing fixture, a heating device, and a temperature sensor. The vibration and fixing fixture includes multiple fixing channels for fixing the gamma probe. The temperature sensor and heating device are both placed inside the box. The vibration and fixing fixture fixes the gamma probe and provides a downhole vibration environment for it. The heating device provides a high-temperature downhole operating condition for the gamma probe. The control device, upon receiving a test command from the host computer, starts counting gamma photons and simultaneously receives temperature information collected by the temperature sensor. The count information is then sent to the host computer for visual display. However, due to the lack of storage functionality, malfunctions frequently occur during actual operation, leading to the loss of gamma data.

[0004] Chinese utility model patent (CN201821432876.3) discloses a gamma probe for oil drilling exploration, including: an electrical plug, a high-voltage power supply module, a CPU module, and a sensor module. Similar to the above, due to the lack of storage function, malfunctions frequently occur during actual operation, leading to the loss of gamma data.

[0005] The paper (Advances in Geophysics, Vol. 24) describes the design of a gamma spectral probe, which consists of a combined probe, a data acquisition circuit, an automatic spectrum stabilization circuit, a transmission circuit, a system control circuit, and a power supply. Similar to the above, it lacks a storage function, and in actual operation, it always malfunctions, resulting in the loss of gamma data. Summary of the Invention

[0006] The purpose of this invention is to solve the above-mentioned technical problems and provide a gamma data storage system that does not affect the gamma probe during the storage process.

[0007] To achieve the above objectives, this invention provides a gamma data storage system, including a host computer, a gamma memory, and an RS232 / RS485 converter (model NS485-II) for connecting the host computer and the gamma memory; the host computer is used for serial port connection to the gamma memory, reading information, initialization, real-time testing, reading memory data, and exporting data; the RS232 / RS485 converter is used to convert the RS485 protocol signal of the gamma memory into an RS232 protocol signal, and communicate with the host computer through the RS232 protocol signal; the gamma memory is used to collect and store gamma pulse data.

[0008] Furthermore, the execution process of the gamma data storage system is as follows:

[0009] S1) The host computer sends a serial port connection command to the gamma memory every t0 seconds via the serial port. After receiving the serial port connection command, the gamma memory sends a serial port connection acceptance command back to the host computer. Then, step S2) is executed. If the host computer does not receive the serial port connection acceptance command within 2t0 to 4t0 seconds, the connection fails.

[0010] S2) The host computer sends an initialization command. After receiving the initialization command, the gamma memory sends an initialization acceptance command back to the host computer and performs initialization.

[0011] The host computer sends a real-time test command. After receiving the real-time test command, the gamma memory block sends a real-time test acceptance command back to the host computer and executes the real-time test. The host computer records the data at a sampling rate of 1 data point per t1 second and generates a continuous gamma data curve.

[0012] The host computer sends a read information command. After receiving the read information command, the gamma memory sends a read information acceptance command and information back to the host computer. The information includes the clock running time and date of the gamma memory, and the number of gamma data entries.

[0013] The host computer sends a command to read memory data. After receiving the command, the gamma memory sends a read memory data acceptance command back to the host computer and executes the read memory data. The gamma memory stores data at a sampling rate of 1 data point per second (t1). When reading memory data, the gamma memory starts to send gamma data to the host computer sequentially, sending one set of data at a time. The gamma data includes the gamma acquisition date and time and the gamma value, until all data is sent and a continuous gamma data curve is generated.

[0014] The host computer sends an export data command. After receiving the export data command, the gamma memory sends an export data acceptance command back to the host computer and executes the export data.

[0015] Furthermore, the gamma memory includes a low-dropout voltage regulator chip U5, a serial-to-RS485 chip U13, a microcontroller U4, a serial memory U9, a clock chip U2, a ferrite bead Z1, a first crystal oscillator Y1, and a second crystal oscillator Y2. The output terminal of the low-dropout voltage regulator chip U5 is connected to the input terminal of the ferrite bead Z1. The input terminals of the serial memory U9, the serial-to-RS485 chip U13, and the microcontroller U4 are all connected to the output terminal of the ferrite bead Z1. The output terminal of the serial memory U9 is connected to the input terminals of the serial-to-RS485 chip U13 and the microcontroller U4, respectively. The output terminal of the serial-to-RS485 chip U13 is connected to the input terminal of the microcontroller U4. The output terminal of the microcontroller U4 is connected to the input terminal of the clock chip U2 and the second crystal oscillator Y2, respectively. The output terminal of the clock chip U2 is connected to the first crystal oscillator Y1.

[0016] Furthermore, the ferrite bead Z1 is model BLM31PG121SN1L. The voltage input terminal of ferrite bead Z1 is connected to pin 3 of the low-dropout voltage regulator chip U5, and the voltage output terminal is connected to pin 2 of the serial memory U9. Pin 8 of the serial-to-RS485 chip U13 is connected to the voltage output terminal of ferrite bead Z1, and pin 1 of the serial-to-RS485 chip U13 is connected to pin 45 of the microcontroller U4. Pins 1 and 9 of the serial memory U9 are both connected to pin 8 of the serial-to-RS485 chip U13, and pin 7 of the serial memory U9 is connected to pin 40 of the microcontroller U4. The serial memory U9 has 8 pins connected to the microcontroller U4's 41st pin, and the serial memory U9 has 15 pins connected to the microcontroller U4's 38th pin. The clock chip U2 has 6 pins connected to the microcontroller U4's 34th pin, 8 pins connected to the microcontroller U4's 31st pin, 9 pins connected to the microcontroller U4's 32nd pin, 10 pins connected to the microcontroller U4's 33rd pin, 1 pin connected to the first crystal oscillator Y1, and 2 pins connected to the first crystal oscillator Y1's other end.

[0017] Furthermore, pin 4 of the microcontroller U4 is connected to the voltage output terminal of the ferrite bead Z1; pin 31 of the microcontroller U4 is connected to pin 8 of the clock chip U2; pin 32 of the microcontroller U4 is connected to pin 9 of the clock chip U2; pin 33 of the microcontroller U4 is connected to pin 10 of the clock chip U2; pin 34 of the microcontroller U4 is connected to pin 6 of the clock chip U2; pin 38 of the microcontroller U4 is connected to pin 15 of the serial memory U9; pin 39 of the microcontroller U4 is connected to pin 16 of the serial memory U9; and so on. Pin 40 of the microcontroller is connected to pin 7 of the serial memory U9. Pin 41 of the microcontroller U4 is connected to pin 8 of the serial memory U9. Pin 42 of the microcontroller U4 is connected to pin 3 of the serial-to-RS485 chip U13. Pin 45 of the microcontroller U4 is connected to pin 1 of the serial-to-RS485 chip U13. Pin 46 of the microcontroller U4 is connected to pin 4 of the serial-to-RS485 chip U13. Pin 48 of the microcontroller U4 is connected to one end of the second crystal oscillator Y2. The other end of the second crystal oscillator Y2 is connected to pin 47 of the microcontroller U4.

[0018] Furthermore, the low dropout voltage regulator chip U5 is model BD433M5FP2. One end of capacitor C6 and one end of capacitor C10 are both connected to pin 1 (voltage input) of the low dropout voltage regulator chip U5. The other end of capacitor C6, the other end of capacitor C10, pin 2 and pin 4 are all grounded.

[0019] Furthermore, pin 3 of the low dropout voltage regulator chip U5 is connected to one end of capacitor C4, and the other end of capacitor C4 is grounded; one end of capacitor C29 is connected to the voltage output terminal of ferrite bead Z1, and the other end is grounded; one end of capacitor C28 is connected to the voltage output terminal of ferrite bead Z1, and the other end is grounded.

[0020] Furthermore, the serial-to-RS485 chip U13 is model THVD1450DR. Pin 2 of the serial-to-RS485 chip U13 is connected to pin 3, pin 5 is grounded, pin 6 is connected to one end of resistor R32, and the other end of resistor R32 is connected to pin 8 of the serial-to-RS485 chip U13. Pin 7 is connected to one end of resistor R38, and the other end of resistor R38 is connected to pin 5 of the serial-to-RS485 chip U13 and grounded. One end of resistor R34 is connected to pin 6 of the serial-to-RS485 chip U13, and the other end is connected to pin 7 of the serial-to-RS485 chip U13. Pin 8 is connected to one end of capacitor C47, and the other end of capacitor C47 is grounded.

[0021] Furthermore, the serial memory U9 is model M25P64. Pin 2 of the serial memory U9 is connected to pin 1 of the serial memory U9, pin 10 of the serial memory U9 is grounded, pin 16 of the serial memory U9 is connected to pin 39 of the serial memory U9, and one end of capacitor C55 is connected to pin 2 of the serial memory U9 and the other end is grounded.

[0022] Furthermore, the clock chip U2 is model PCA2125. Pin 7 of the clock chip U2 is grounded, pin 14 of the clock chip U2 is connected to the anode of diode D4, and the cathode of diode D4 is connected to pin 8 of U13. The anode of diode D2 is connected to pin 14 of U2, and the cathode is connected to test point TP4. Test point TP3 is grounded. One end of capacitor C27 is connected to the cathode of D4 and the other end is grounded. One end of capacitor C31 is connected to the cathode of D4 and the other end is grounded. One end of capacitor C34 is connected to pin 1 of U2 and the other end is grounded.

[0023] Furthermore, the microcontroller U4 is model C8051F500-IQ; pin 2 of microcontroller U4 is connected to one end of resistor R37, and the other end of resistor R37 is connected to the voltage output terminal of ferrite bead Z1; pin 3 of microcontroller U4 is connected to one end of resistor R31, and the other end of resistor R31 is connected to the voltage output terminal of ferrite bead Z1; pin 5 of microcontroller U4 is connected to one end of resistor R21, and the other end of resistor R21 is connected to pin 4 of microcontroller U4; pin 6 of microcontroller U4 is grounded; pin 7 of microcontroller U4 is connected to pin 6 of microcontroller U4; pin 11 of microcontroller U4 is connected to pin 4 of communication port JP1; pin 12 of microcontroller U4... The pins are connected to pin 7 of communication port JP1, pin 37 of microcontroller U4 is connected to one end of resistor R25, and the other end of resistor R25 is connected to gamma data port J9; one end of resistor R68 is connected to pin 48 of microcontroller U4, and the other end is connected to pin 47; one end of resistor R1 is connected to the cathode of diode D10, and the other end is grounded; one end of diode D10 is connected to pin 37 of microcontroller U4, and the other end is connected to the output terminal of ferrite bead Z1; one end of resistor R10 is connected to pin 12 of microcontroller U4, and the other end is connected to pin 5 of communication port JP1; one end of resistor R20 is connected to pin 5 of communication port JP1, and the other end is connected to the voltage output terminal of Z1.

[0024] Furthermore, one end of capacitor C35 is connected to pin 5 of communication port JP1, and the other end of capacitor C35 is grounded; one end of capacitor C36 is connected to pin 5 of communication port JP1, and the other end is grounded; one end of capacitor C37 is connected to pin 5 of microcontroller U4, and the other end is grounded; one end of capacitor C38 is connected to pin 8 of microcontroller U4, and the other end is grounded; one end of capacitor C39 is connected to pin 8 of microcontroller U4, and the other end is grounded; one end of capacitor C41 is connected to pin 4 of microcontroller U4, and the other end is grounded; one end of capacitor C42 is connected to pin 4 of microcontroller U4, and the other end is grounded. One end of capacitor C46 is grounded; one end of capacitor C46 is connected to pin 5 of microcontroller U4, and the other end is grounded; one end of capacitor C53 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C54 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C56 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C57 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C58 is connected to pin 47 of microcontroller U4, and the other end is grounded; one end of capacitor C59 is connected to pin 48 of microcontroller U4, and the other end is grounded.

[0025] The beneficial effects of this invention are as follows:

[0026] 1. The gamma data storage system of this invention can record and store gamma data downhole, helping directional instruments to perform fault analysis;

[0027] 2. The input voltage range of the low dropout voltage regulator chip U5 is between 3V and 42V, which is a wide voltage range. Grounding capacitors C6 and C10 are arranged on the voltage input pin 1 to stabilize the input power supply and perform filtering.

[0028] 3. The low dropout voltage regulator chip U5 outputs a stable 3.3V voltage at pin 3 to power the microcontroller U4, the serial port to RS485 chip U13, the serial memory U9, and the clock chip U2. A ferrite bead Z1 and grounding capacitors C4, C29, and C28 are arranged at pin 3 to stabilize the output power and perform filtering.

[0029] 4. The U13 serial-to-RS485 chip converts the serial port signal into the RS485 communication protocol, which has stronger anti-interference capabilities, making the communication between the gamma storage module and the host computer more reliable.

[0030] 5. The U9 serial memory has a storage capacity of 64MB, which can record more than 2000 hours of gamma data, far exceeding the usage requirements;

[0031] 6. The microcontroller U4 collects gamma data through pin 37, processes it, and then stores it in the serial memory U9. The storage process will not affect the gamma probe. Attached Figure Description

[0032] Figure 1This is a block diagram of the gamma data storage system of the present invention;

[0033] Figure 2 for Figure 1 A flowchart;

[0034] Figure 3 This is a circuit diagram of the low dropout voltage regulator chip U5 and the ferrite bead Z1 of the present invention;

[0035] Figure 4 This is the circuit schematic diagram of the serial-to-RS485 chip U13 of this invention;

[0036] Figure 5 This is a circuit schematic diagram of the serial memory U9 of the present invention;

[0037] Figure 6 This is a circuit schematic diagram of the clock chip U2 of the present invention;

[0038] Figure 7 This is the circuit schematic of the microcontroller U4 of this invention. Detailed Implementation

[0039] like Figure 1 , Figure 2 As shown, the gamma data storage system includes a host computer, a gamma memory, and an RS232 / RS485 converter (model NS485-II) for connecting the host computer and the gamma memory. The host computer is used for serial port connection to the gamma memory, reading information, initialization, real-time testing, reading memory data, and exporting data. The RS232 / RS485 converter is used to convert the RS485 protocol signal of the gamma memory into an RS232 protocol signal for communication with the host computer. The gamma memory is used to collect and store gamma pulse data.

[0040] The execution process of the gamma data storage system is as follows:

[0041] S1) The host computer sends a serial port connection command to the gamma memory every t0 seconds via the serial port. After receiving the serial port connection command, the gamma memory sends a serial port connection acceptance command back to the host computer. Then, step S2) is executed. If the host computer does not receive the serial port connection acceptance command within 2t0 to 4t0 seconds, the connection fails.

[0042] S2) The host computer sends an initialization command. After receiving the initialization command, the gamma memory sends an initialization acceptance command back to the host computer and performs initialization.

[0043] The host computer sends a real-time test command. After receiving the real-time test command, the gamma memory block sends a real-time test acceptance command back to the host computer and executes the real-time test. The host computer records the data at a sampling rate of 1 data point per t1 second and generates a continuous gamma data curve.

[0044] The host computer sends a read information command. After receiving the read information command, the gamma memory sends a read information acceptance command and information back to the host computer. The information includes the clock running time and date of the gamma memory, and the number of gamma data entries.

[0045] The host computer sends a command to read memory data. After receiving the command, the gamma memory sends a read memory data acceptance command back to the host computer and executes the read memory data. The gamma memory stores data at a sampling rate of 1 data point per second (t1). When reading memory data, the gamma memory starts to send gamma data to the host computer sequentially, sending one set of data at a time. The gamma data includes the gamma acquisition date and time and the gamma value, until all data is sent and a continuous gamma data curve is generated.

[0046] The host computer sends an export data command. After receiving the export data command, the gamma memory sends an export data acceptance command back to the host computer and executes the export data.

[0047] like Figures 3-7 The memory shown for a gamma data storage system is characterized by comprising a low-dropout voltage regulator chip U5, a serial-to-RS485 converter chip U13, a microcontroller U4, a serial memory U9, a clock chip U2, a ferrite bead Z1, a first crystal oscillator Y1, and a second crystal oscillator Y2. The output of the low-dropout voltage regulator chip U5 is connected to the input of the ferrite bead Z1. The inputs of the serial memory U9, the serial-to-RS485 converter chip U13, and the microcontroller U4 are all connected to the output of the ferrite bead Z1. The output of the serial memory U9 is connected to the inputs of the serial-to-RS485 converter chip U13 and the microcontroller U4, respectively. The output of the serial-to-RS485 converter chip U13 is connected to the input of the microcontroller U4. The output of the microcontroller U4 is connected to the input of the clock chip U2 and the second crystal oscillator Y2, respectively. The output of the clock chip U2 is connected to the first crystal oscillator Y1. The specific circuit connection is as follows:

[0048] The Z1 ferrite bead is model BLM31PG121SN1L, the U5 low dropout voltage regulator chip is model BD433M5FP2, the U13 serial-to-RS485 converter chip is model THVD1450DR, the U9 serial memory is model M25P64, the U2 clock chip is model PCA2125, and the U4 microcontroller is model C8051F500-IQ.

[0049] The voltage input terminal of ferrite bead Z1 is connected to pin 3 of low-dropout voltage regulator chip U5, and the voltage output terminal is connected to pin 2 of serial memory U9. Pin 8 of serial-to-RS485 chip U13 is connected to the voltage output terminal of ferrite bead Z1, and pin 1 of serial-to-RS485 chip U13 is connected to pin 45 of microcontroller U4. Pins 1 and 9 of serial memory U9 are both connected to pin 8 of serial-to-RS485 chip U13, pin 7 of serial memory U9 is connected to pin 40 of microcontroller U4, and pin 8 of serial memory U9 is connected to... Connect pin 41 of microcontroller U4; connect pin 15 of serial memory U9 to pin 38 of microcontroller U4; connect pin 6 of clock chip U2 to pin 34 of microcontroller U4; connect pin 8 of clock chip U2 to pin 31 of microcontroller U4; connect pin 9 of clock chip U2 to pin 32 of microcontroller U4; connect pin 10 of clock chip U2 to pin 33 of microcontroller U4; connect pin 1 of clock chip U2 to one end of first crystal oscillator Y1; connect pin 2 of clock chip U2 to the other end of first crystal oscillator Y1. Pin 4 of microcontroller U4 is connected to the voltage output terminal of ferrite bead Z1; pin 31 of microcontroller U4 is connected to pin 8 of clock chip U2; pin 32 of microcontroller U4 is connected to pin 9 of clock chip U2; pin 33 of microcontroller U4 is connected to pin 10 of clock chip U2; pin 34 of microcontroller U4 is connected to pin 6 of clock chip U2; pin 38 of microcontroller U4 is connected to pin 15 of serial memory U9; pin 39 of microcontroller U4 is connected to pin 16 of serial memory U9; pin 40 of microcontroller U4... The pin 41 of the microcontroller U4 is connected to pin 8 of the serial memory U9. The pin 42 of the microcontroller U4 is connected to pin 3 of the serial-to-RS485 chip U13. The pin 45 of the microcontroller U4 is connected to pin 1 of the serial-to-RS485 chip U13. The pin 46 of the microcontroller U4 is connected to pin 4 of the serial-to-RS485 chip U13. The pin 48 of the microcontroller U4 is connected to one end of the second crystal oscillator Y2. The other end of the second crystal oscillator Y2 is connected to pin 47 of the microcontroller U4.

[0050] One end of capacitor C6 and one end of capacitor C10 are both connected to pin 1 (voltage input) of the low dropout voltage regulator chip U5. The other ends of capacitor C6, C10, pins 2 and 4 are all grounded. Pin 3 of the low dropout voltage regulator chip U5 is connected to one end of capacitor C4, and the other end of capacitor C4 is grounded. One end of capacitor C29 is connected to the voltage output terminal of ferrite bead Z1, and the other end is grounded. One end of capacitor C28 is connected to the voltage output terminal of ferrite bead Z1, and the other end is grounded.

[0051] Pin 2 of the serial-to-RS485 chip U13 is connected to pin 3 of the serial-to-RS485 chip U13. Pin 5 of the serial-to-RS485 chip U13 is grounded. Pin 6 of the serial-to-RS485 chip U13 is connected to one end of resistor R32, and the other end of resistor R32 is connected to pin 8 of the serial-to-RS485 chip U13. Pin 7 of the serial-to-RS485 chip U13 is connected to one end of resistor R38, and the other end of resistor R38 is connected to pin 5 of the serial-to-RS485 chip U13 and grounded. One end of resistor R34 is connected to pin 6 of the serial-to-RS485 chip U13, and the other end is connected to pin 7 of the serial-to-RS485 chip U13. Pin 8 of the serial-to-RS485 chip U13 is connected to one end of capacitor C47, and the other end of capacitor C47 is grounded.

[0052] Pin 2 of serial memory U9 is connected to pin 1 of serial memory U9, pin 10 of serial memory U9 is grounded, pin 16 of serial memory U9 is connected to pin 39 of serial memory U9, and one end of capacitor C55 is connected to pin 2 of serial memory U9 and the other end is grounded.

[0053] Pin 7 of clock chip U2 is grounded. Pin 14 of clock chip U2 is connected to the anode of diode D4, and the cathode of diode D4 is connected to pin 8 of U13. The anode of diode D2 is connected to pin 14 of U2, and the cathode is connected to test point TP4. Test point TP3 is grounded. One end of capacitor C27 is connected to the cathode of D4, and the other end is grounded. One end of capacitor C31 is connected to the cathode of D4, and the other end is grounded. One end of capacitor C34 is connected to pin 1 of U2, and the other end is grounded.

[0054] Pin 2 of microcontroller U4 is connected to one end of resistor R37, and the other end of resistor R37 is connected to the voltage output terminal of ferrite bead Z1; pin 3 of microcontroller U4 is connected to one end of resistor R31, and the other end of resistor R31 is connected to the voltage output terminal of ferrite bead Z1; pin 5 of microcontroller U4 is connected to one end of resistor R21, and the other end of resistor R21 is connected to pin 4 of microcontroller U4; pin 6 of microcontroller U4 is grounded, and pin 7 of microcontroller U4 is connected to pin 6 of microcontroller U4; pin 11 of microcontroller U4 is connected to pin 4 of communication port JP1, and pin 12 of microcontroller U4 is connected to pin 7 of communication port JP1. The pins are connected as follows: pin 37 of microcontroller U4 is connected to one end of resistor R25, and the other end of resistor R25 is connected to gamma data port J9; one end of resistor R68 is connected to pin 48 of microcontroller U4, and the other end is connected to pin 47; one end of resistor R1 is connected to the cathode of diode D10, and the other end is grounded; one end of diode D10 is connected to pin 37 of microcontroller U4, and the other end is connected to the output terminal of ferrite bead Z1; one end of resistor R10 is connected to pin 12 of microcontroller U4, and the other end is connected to pin 5 of communication port JP1; one end of resistor R20 is connected to pin 5 of communication port JP1, and the other end is connected to the voltage output terminal of Z1.

[0055] Connect one end of capacitor C35 to pin 5 of communication port JP1, and ground the other end of capacitor C35; connect one end of capacitor C36 to pin 5 of communication port JP1, and ground the other end; connect one end of capacitor C37 to pin 5 of microcontroller U4, and ground the other end; connect one end of capacitor C38 to pin 8 of microcontroller U4, and ground the other end; connect one end of capacitor C39 to pin 8 of microcontroller U4, and ground the other end; connect one end of capacitor C41 to pin 4 of microcontroller U4, and ground the other end; connect one end of capacitor C42 to pin 4 of microcontroller U4, and ground the other end... Ground; one end of capacitor C46 is connected to pin 5 of microcontroller U4, and the other end is grounded; one end of capacitor C53 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C54 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C56 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C57 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C58 is connected to pin 47 of microcontroller U4, and the other end is grounded; one end of capacitor C59 is connected to pin 48 of microcontroller U4, and the other end is grounded.

[0056] The low-dropout voltage regulator chip U5 provides a constant regulated 3.3V DC power supply for the entire gamma memory. The serial memory U9 provides 64MB of storage space for the gamma memory. The clock chip U2 provides the clock signal for the entire gamma memory. The serial port to RS485 converter chip U13 is used to convert the microcontroller's RS232 signal to an RS485 signal. The microcontroller U4 calculates and organizes the acquired gamma pulse signal to generate date, time and gamma data, which is then stored in the serial memory U9. The microcontroller U4 is also used to execute serial port connection instructions, read basic information instructions, initialize instructions, real-time test instructions, read memory data instructions, and export data instructions.

Claims

1. A gamma data storage system, characterized in that: The system includes a host computer, a gamma memory, and an RS232 / RS485 converter for connecting the host computer and the gamma memory. The host computer is used for serial port connection to the gamma memory, reading information, initialization, real-time testing, reading memory data, and exporting data. The RS232 / RS485 converter is used to convert the RS485 protocol signal of the gamma memory into an RS232 protocol signal for communication with the host computer. The gamma memory is used to collect and store gamma pulse data.

2. The gamma data storage system according to claim 1, characterized in that: The execution process of the gamma data storage system is as follows: S1) The host computer sends a serial port connection command to the gamma memory every t0 seconds via the serial port. After receiving the serial port connection command, the gamma memory sends a serial port connection acceptance command back to the host computer. Then, step S2) is executed. If the host computer does not receive the serial port connection acceptance command within 2t0 to 4t0 seconds, the connection fails. S2) The host computer sends an initialization command. After receiving the initialization command, the gamma memory sends an initialization acceptance command back to the host computer and performs initialization. The host computer sends a real-time test command. After receiving the real-time test command, the gamma memory block sends a real-time test acceptance command back to the host computer and executes the real-time test. The host computer records the data at a sampling rate of 1 data point per t1 second and generates a continuous gamma data curve. The host computer sends a read information command, and after receiving the read information command, the gamma memory sends a read information acceptance command and information back to the host computer. The host computer sends a command to read memory data. After receiving the command, the gamma memory sends a command to the host computer to accept the read memory data and executes the read memory data. The gamma memory stores data at a sampling rate of 1 data point per t1 second. When reading memory data, the gamma memory starts to send gamma data to the host computer sequentially, sending 1 set of data at a time. The host computer sends an export data command. After receiving the export data command, the gamma memory sends an export data acceptance command back to the host computer and executes the export data.

3. The gamma data storage system according to claim 1, characterized in that: The gamma memory includes a low-dropout voltage regulator chip U5, a serial-to-RS485 chip U13, a microcontroller U4, a serial memory U9, a clock chip U2, a ferrite bead Z1, a first crystal oscillator Y1, and a second crystal oscillator Y2. The output terminal of the low-dropout voltage regulator chip U5 is connected to the input terminal of the ferrite bead Z1. The input terminals of the serial memory U9, the serial-to-RS485 chip U13, and the microcontroller U4 are all connected to the output terminal of the ferrite bead Z1. The output terminal of the serial memory U9 is connected to the input terminals of the serial-to-RS485 chip U13 and the microcontroller U4, respectively. The output terminal of the serial-to-RS485 chip U13 is connected to the input terminal of the microcontroller U4. The output terminal of the microcontroller U4 is connected to the input terminal of the clock chip U2 and the second crystal oscillator Y2, respectively. The output terminal of the clock chip U2 is connected to the first crystal oscillator Y1.

4. The gamma data storage system according to claim 3, characterized in that: The ferrite bead Z1 is model BLM31PG121SN1L. The voltage input terminal of the ferrite bead Z1 is connected to pin 3 of the low dropout voltage regulator chip U5, and the voltage output terminal is connected to pin 2 of the serial memory U9. The 8th pin of the serial port to RS485 chip U13 is connected to the voltage output terminal of the ferrite bead Z1, and the 1st pin of the serial port to RS485 chip U13 is connected to pin 45 of the microcontroller U4. Pins 1 and 9 of the serial memory U9 are both connected to pin 8 of the serial-to-RS485 chip U13. Pin 7 of the serial memory U9 is connected to pin 40 of the microcontroller U4. Pin 8 of the serial memory U9 is connected to pin 41 of the microcontroller U4. Pin 15 of the serial memory U9 is connected to pin 38 of the microcontroller U4. Pin 6 of the clock chip U2 is connected to pin 34 of the microcontroller U4. Pin 8 of the clock chip U2 is connected to pin 31 of the microcontroller U4. Pin 9 of the clock chip U2 is connected to pin 32 of the microcontroller U4. Pin 10 of the clock chip U2 is connected to pin 33 of the microcontroller U4. Pin 1 of the clock chip U2 is connected to one end of the first crystal oscillator Y1. Pin 2 of the clock chip U2 is connected to the other end of the first crystal oscillator Y1.

5. The gamma data storage system according to claim 3, characterized in that: The 4th pin of the microcontroller U4 is connected to the voltage output terminal of the ferrite bead Z1; the 31st pin of the microcontroller U4 is connected to the 8th pin of the clock chip U2; the 32nd pin of the microcontroller U4 is connected to the 9th pin of the clock chip U2; the 33rd pin of the microcontroller U4 is connected to the 10th pin of the clock chip U2; the 34th pin of the microcontroller U4 is connected to the 6th pin of the clock chip U2; the 38th pin of the microcontroller U4 is connected to the 15th pin of the serial memory U9; the 39th pin of the microcontroller U4 is connected to the 16th pin of the serial memory U9; and the 40th pin of the microcontroller U4... The pins are connected to pin 7 of the serial memory U9, pin 41 of the microcontroller U4 is connected to pin 8 of the serial memory U9, pin 42 of the microcontroller U4 is connected to pin 3 of the serial-to-RS485 chip U13, pin 45 of the microcontroller U4 is connected to pin 1 of the serial-to-RS485 chip U13, pin 46 of the microcontroller U4 is connected to pin 4 of the serial-to-RS485 chip U13, pin 48 of the microcontroller U4 is connected to one end of the second crystal oscillator Y2, and the other end of the second crystal oscillator Y2 is connected to pin 47 of the microcontroller U4.

6. The gamma data storage system according to claim 3, characterized in that: The low dropout voltage regulator chip U5 is model BD433M5FP2. One end of capacitor C6 and one end of capacitor C10 are both connected to pin 1 of the low dropout voltage regulator chip U5. The other end of capacitor C6, the other end of capacitor C10, pin 2 and pin 4 are all grounded.

7. The gamma data storage system according to claim 3, characterized in that: The low dropout voltage regulator chip U5 has three pins connected to one end of capacitor C4 and the other end of capacitor C4 grounded; one end of capacitor C29 is connected to the voltage output terminal of ferrite bead Z1 and the other end is grounded; one end of capacitor C28 is connected to the voltage output terminal of ferrite bead Z1 and the other end is grounded.

8. The gamma data storage system according to claim 3, characterized in that: The serial-to-RS485 chip U13 is model THVD1450DR. Pin 2 of the serial-to-RS485 chip U13 is connected to pin 3. Pin 5 of the serial-to-RS485 chip U13 is grounded. Pin 6 of the serial-to-RS485 chip U13 is connected to one end of resistor R32, and the other end of resistor R32 is connected to pin 8 of the serial-to-RS485 chip U13. Pin 7 of the serial-to-RS485 chip U13 is connected to one end of resistor R38, and the other end of resistor R38 is connected to pin 5 of the serial-to-RS485 chip U13 and grounded. One end of resistor R34 is connected to pin 6 of the serial-to-RS485 chip U13, and the other end is connected to pin 7 of the serial-to-RS485 chip U13. Connect one end of capacitor C47 to the 8-pin connector of the serial-to-RS485 chip U13, and ground the other end of capacitor C47.

9. The gamma data storage system according to claim 3, characterized in that: The serial memory U9 is model M25P64. Pin 2 of the serial memory U9 is connected to pin 1 of the serial memory U9, pin 10 of the serial memory U9 is grounded, pin 16 of the serial memory U9 is connected to pin 39 of the serial memory U9, and one end of capacitor C55 is connected to pin 2 of the serial memory U9 and the other end is grounded.

10. The gamma data storage system according to claim 3, characterized in that: The clock chip U2 is a PCA2125. Pin 7 of the clock chip U2 is grounded. Pin 14 of the clock chip U2 is connected to the anode of diode D4, and the cathode of diode D4 is connected to pin 8 of U13. The anode of diode D2 is connected to pin 14 of U2, and the cathode is connected to test point TP4. Test point TP3 is grounded. One end of capacitor C27 is connected to the cathode of D4, and the other end is grounded. One end of capacitor C31 is connected to the cathode of D4, and the other end is grounded. One end of capacitor C34 is connected to pin 1 of U2, and the other end is grounded.

11. The gamma data storage system according to claim 3, characterized in that: The microcontroller U4 is model C8051F500-IQ. Pin 2 of microcontroller U4 is connected to one end of resistor R37, and the other end of resistor R37 is connected to the voltage output terminal of ferrite bead Z1. Pin 3 of microcontroller U4 is connected to one end of resistor R31, and the other end of resistor R31 is connected to the voltage output terminal of ferrite bead Z1. Pin 5 of microcontroller U4 is connected to one end of resistor R21, and the other end of resistor R21 is connected to pin 4 of microcontroller U4. Pin 6 of microcontroller U4 is grounded, and pin 7 of microcontroller U4 is connected to pin 6. Pin 11 of microcontroller U4 is connected to pin 4 of communication port JP1, and pin 12 of microcontroller U4... Connect pin 7 of communication port JP1 and pin 37 of microcontroller U4 to one end of resistor R25. Connect the other end of resistor R25 to gamma data port J9. Connect one end of resistor R68 to pin 48 of microcontroller U4 and the other end to pin 47. Connect one end of resistor R1 to the cathode of diode D10 and the other end to ground. Connect one end of diode D10 to pin 37 of microcontroller U4 and the other end to the output terminal of ferrite bead Z1. Connect one end of resistor R10 to pin 12 of microcontroller U4 and the other end to pin 5 of communication port JP1. Connect one end of resistor R20 to pin 5 of communication port JP1 and the other end to the voltage output terminal of Z1.

12. The gamma data storage system according to claim 11, characterized in that: The 5th pin of the communication port JP1 is connected to one end of capacitor C35, and the other end of capacitor C35 is grounded; one end of capacitor C36 is connected to the 5th pin of the communication port JP1, and the other end is grounded; one end of capacitor C37 is connected to the 5th pin of microcontroller U4, and the other end is grounded; one end of capacitor C38 is connected to the 8th pin of microcontroller U4, and the other end is grounded; one end of capacitor C39 is connected to the 8th pin of microcontroller U4, and the other end is grounded; one end of capacitor C41 is connected to the 4th pin of microcontroller U4, and the other end is grounded; one end of capacitor C42 is connected to the 4th pin of microcontroller U4, and the other end is grounded. Grounding; one end of capacitor C46 is connected to pin 5 of microcontroller U4, and the other end is grounded; one end of capacitor C53 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C54 is connected to pin 3 of microcontroller U4, and the other end is grounded; one end of capacitor C56 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C57 is connected to pin 2 of microcontroller U4, and the other end is grounded; one end of capacitor C58 is connected to pin 47 of microcontroller U4, and the other end is grounded; one end of capacitor C59 is connected to pin 48 of microcontroller U4, and the other end is grounded.

Citation Information

Patent Citations

  • Gamma exploring tube for petroleum drilling exploration

    CN209195399U

  • Gamma probe test system

    CN218917654U