CN104615566A - Monitoring data conversion device and method of nuclear magnetic resonance logger - Google Patents
Monitoring data conversion device and method of nuclear magnetic resonance logger Download PDFInfo
- Publication number
- CN104615566A CN104615566A CN201510098950.7A CN201510098950A CN104615566A CN 104615566 A CN104615566 A CN 104615566A CN 201510098950 A CN201510098950 A CN 201510098950A CN 104615566 A CN104615566 A CN 104615566A
- Authority
- CN
- China
- Prior art keywords
- fifo
- passage
- interface module
- data
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a monitoring data conversion device and method of a nuclear magnetic resonance logger. The method comprises the following steps: by a universal serial bus (USB) function equipment interface module, receiving command information and/or parameters sent from a personal computer (PC) to a downhole tool and sending the decoded downhole data to the PC; when a digital signal processing (DSP) control module detects that the USB function equipment interface module receives the command information and/or parameters, controlling the USB function equipment interface module to send the command information and/or parameters to an EDIB bus interface module; when detecting that the EDIB bus interface module has downhole data, sending the data to the USB functional equipment interface module; by the EDIB bus interface module, receiving the command information and/or parameters, carrying out Manchester encoding on the command information and/or parameters and sending the command information and/or parameters to the downhole tool; receiving the returned downhole data and carrying out Manchester decoding on the returned downhole data. Through the scheme, the monitoring of the nuclear magnetic resonance logger can be more simple and intelligent so as to reduce the data analysis difficulty.
Description
Technical field
The present invention relates to NMR Logging Technology, particularly relate to a kind of Monitoring Data conversion equipment and method of NMR (Nuclear Magnetic Resonance) logging instrument.
Background technology
Nuclear magnetic resonance log is very extensive as its application of a high-end logging technology.The links such as research and development, manufacture, maintenance, maintenance of nuclear magnetic resonance logging instrument all be unable to do without instrument whole monitoring systematic difference.At present, there are Schlumberger, Bake Hughes and Halliburton Company to have the development & production line of nuclear magnetic resonance logging instrument abroad, also have themselves development monitoring device.CNOOC's clothes are domestic up to now unique companies having a development & production line of nuclear magnetic resonance logging instrument, meanwhile, also develop corresponding instrument development monitoring device under the effort of scientific research personnel.Because each Company, Instrument has oneself software and hardware feature and quality control specifications, so such monitoring device is all only applied to the instrument of oneself, and often apparatus structure is complicated, and data analysis is complicated, adds the difficulty of breakdown judge.
Summary of the invention
In order to solve the problem, the present invention proposes a kind of Monitoring Data conversion equipment and method of NMR (Nuclear Magnetic Resonance) logging instrument, the monitoring of NMR (Nuclear Magnetic Resonance) logging instrument can be made more to simplify, intelligent, reduce the difficulty of data analysis.
In order to achieve the above object, the present invention proposes a kind of Monitoring Data conversion equipment of NMR (Nuclear Magnetic Resonance) logging instrument, this device comprises: general-purpose serial bus USB function device interface module, digital signal processing DSP control module, EDIB bus interface module.
USB function device interface module, for receiving the command information and/or parameter that personal computer PC issues to subsurface equipment, also for the downhole data after data processing is sent to PC.
DSP control module, for detecting USB function device interface module in real time, when detecting that USB function device interface module receives the command information and/or parameter that PC issues to subsurface equipment, command information and/or parameter are sent to EDIB bus interface module by control USB function device interface module; Also for detecting EDIB bus interface module in real time, when the downhole data after EDIB bus interface module data processing being detected, the downhole data after data processing is sent to USB function device interface module.
EDIB bus interface module, for receiving command information and/or the parameter of DSP control module transmission, carrying out Manchester's cde to command information and/or parameter, and the command information after Manchester's cde and/or parameter is sent to subsurface equipment; Also for receiving the downhole data that subsurface equipment returns, data processing is carried out to downhole data; Data processing comprises manchester decoder.
Preferably, USB function device interface module comprises: USB fifo fifo chip, USB joint lead-in wire, USB interface.
USB fifo chip is connected with USB interface by USB joint lead-in wire; USB fifo chip is connected with EDIB bus interface module by RW, RD, EMPTY and FULL pin; USBFIFO chip is connected with DSP control module by data bus D0-D7.
USB joint lead-in wire comprises: V
bUS, GND, D+, D-tetra-lead-in wire, wherein V
bUSlead-in wire outwards provides power supply, and GND lead-in wire is ground wire, D+ and D-lead-in wire is differential data line pair.
Preferably,
USB fifo chip comprises: serial interface engine, reception cell fifo, transmission cell fifo, usb protocol engine and fifo controller and EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM interface.
USB function device interface module refers to for the command information that receives personal computer PC and issue to subsurface equipment and/or parameter:
When PC sends command information and/or parameter to described subsurface equipment, USB fifo chip receives command information and/or parameter, and stored in reception cell fifo, EMPTY pin becomes low level, notice EDIB bus interface module has received command information and/or parameter.
DSP control module is used for detecting USB function device interface module in real time, when the command information that USB function device interface module has PC to issue to subsurface equipment and/or parameter being detected, command information and/or parameter send to EDIB bus interface module to refer to by control USB function device interface module:
DSP control module detects in real time to USB function device interface module, when the announcement information of USB function device interface module to EDIB bus interface module being detected, fifo controller reading order information and/or parameter from reception cell fifo of DSP control module control USBFIFO chip, and send to EDIB bus interface module; After all command informations and/or parameter all run through, EMPTY pin becomes high level.
The downhole data of USB function device interface module also for being returned by the subsurface equipment after data processing sends to PC to refer to:
When USB function device interface module sends the downhole data after manchester decoder to PC, if FULL pin is low level, then downhole data is write into transmission cell fifo, if FULL pin becomes high level, then sending cell fifo full, forbidding, to transmission cell fifo write data, all being passed to after PC by USB interface when sending the downhole data in cell fifo, FULL pin becomes low level, and USB function device interface module continues to send downhole data to PC.
Preferably, EDIB bus interface module comprises: the field programmable gate array FPGA control chip connected successively by data bus, logic level transition unit, Manchester Code/decode device, data channel unit.
Data channel unit, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage.
CMD passage is for transmitting descending described command information and/or parameter; M2 passage, M5 passage and M7 passage are for transmitting up downhole data.
Manchester Code/decode device comprises: a first Manchester Code/decode device and two the second Manchester Code/decode devices.
First Manchester Code/decode utensil has the first separate coding unit and the first decoding unit; Second Manchester Code/decode utensil has the second separate coding unit and the second decoding unit; First Manchester Code/decode device to be used in CMD passage and M2 passage transmit the encoding and decoding of data; Two the second Manchester Code/decode devices to be respectively used in M5 passage and M7 passage transmit the decoding of data.
FPGA control chip is transmitted for the data of the encoding and decoding logic and data channel unit that control Manchester Code/decode device; FPGA control chip comprises data buffer storage cell fifo and buffer memory read-write control unit.
Data buffer storage cell fifo comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Buffer memory read-write control unit comprises to be read FIFO control logic unit and writes FIFO control logic unit.
Logic level transition unit, is connected between Manchester Code/decode device and FPGA control chip, for the logic level transition of Manchester Code/decode device and FPGA control chip.
Preferably,
EDIB bus interface module, for receiving command information and/or the parameter of DSP control module transmission, carries out Manchester's cde to command information and/or parameter and refers to:
The command information that CMD channel reception DSP control module sends and/or parameter, and by command information and/or parameter stored in the CMD passage FIFO of CMD passage, it is invalid that the empty zone bit of CMD passage FIFO becomes, read FIFO control logic unit automatically to produce first and read fifo signal, command information in first write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, during coding, the output signal SD signal of the first Manchester Code/decode device becomes high level, when SD signal becomes low level from high level, command information in first write CMD passage FIFO and/or the coding of parameter complete, read FIFO control logic unit to produce second and read fifo signal, command information in second write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, the like, when CMD passage FIFO empty marking signal again effectively time, all command informations in CMD passage FIFO and/or parameter have been sent into the first Manchester Code/decode device and have been encoded, read FIFO control logic unit and forbid that fifo signal is read in generation, cataloged procedure completes.
EDIB bus interface module receives downhole data, carries out manchester decoder refer to downhole data:
When M2 passage will transmit described downhole data to PC, downhole data is decoded by the first decoding unit of the first Manchester Code/decode device, when the first decoding unit is decoded, the output signal TD signal of the first Manchester Code/decode device is high level, when TD signal becomes low level from high level, first decoding unit completes the decoding of downhole data, writes FIFO control logic unit and automatically produces write signal, writes in M2 passage FIFO after decoded downhole data is carried out serioparallel exchange.
When M5 passage/M7 passage will transmit downhole data to PC, downhole data is decoded by the second decoding unit of the second Manchester Code/decode device, when the second decoding unit is decoded, the output signal NVM signal of the second Manchester Code/decode device is high level, when NVM signal becomes low level from high level, second decoding unit completes the decoding of downhole data, when NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, write FIFO control logic unit and produce a write signal, write in M5 passage/M7 passage FIFO after decoded downhole data is carried out serioparallel exchange, DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, read and sent to PC by USB function device interface module.
Downhole data after data processing, when the downhole data after EDIB bus interface module data processing being detected, sends to USB function device interface module to refer to by DSP control module:
DSP control module detects the decoded downhole data in M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and will send to PC by USB function device interface module.
DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, is read to deposit in extend out in data RAM, and sends to PC by USB function device interface module.
The present invention also proposes a kind of Monitoring Data conversion method of NMR (Nuclear Magnetic Resonance) logging instrument, and the method comprises:
USB function device interface module receives the command information and/or parameter that personal computer PC issues to subsurface equipment.
DSP control module detects USB function device interface module in real time, when detecting that USB function device interface module receives the command information and/or parameter that PC issues to subsurface equipment, command information and/or parameter are sent to EDIB bus interface module by control USB function device interface module.
EDIB bus interface module receives command information and/or the parameter of DSP control module transmission, carries out Manchester's cde, and the command information after Manchester's cde and/or parameter are sent to subsurface equipment to command information and/or parameter.
EDIB bus interface module receives the downhole data that subsurface equipment returns, and carries out data processing to downhole data; Data processing comprises manchester decoder.
DSP control module detects EDIB bus interface module in real time, when the downhole data after EDIB bus interface module data processing being detected, the downhole data after data processing is sent to USB function device interface module.
Downhole data after data processing is sent to PC by USB function device interface module.
Preferably,
USB function device interface module receives command information that PC issues to subsurface equipment and/or parameter refers to:
When PC sends command information and/or parameter to subsurface equipment, USB fifo chip receives command information and/or parameter, and stored in reception cell fifo, EMPTY pin becomes low level, notice EDIB bus interface module has received command information and/or parameter.
DSP control module is used for detecting USB function device interface module in real time, when the command information that USB function device interface module has PC to issue to subsurface equipment and/or parameter being detected, command information and/or parameter send to EDIB bus interface module to refer to by control USB function device interface module:
DSP control module detects in real time to USB function device interface module, when the announcement information of USB function device interface module to EDIB bus interface module being detected, fifo controller reading order information and/or parameter from reception cell fifo of DSP control module control USBFIFO chip, and send to EDIB bus interface module; After all command informations and/or parameter all run through, EMPTY pin becomes high level.
The downhole data of USB function device interface module also for being returned by the subsurface equipment after data processing sends to PC to refer to:
When USB function device interface module sends the downhole data after manchester decoder to PC, if FULL pin is low level, then downhole data is write into transmission cell fifo, if FULL pin becomes high level, then sending cell fifo full, forbidding, to transmission cell fifo write data, all being passed to after PC by USB interface when sending the downhole data in cell fifo, FULL pin becomes low level, and USB function device interface module continues to send downhole data to PC.
Preferably, EDIB bus interface module comprises: the field programmable gate array FPGA control chip connected successively by data bus, logic level transition unit, Manchester Code/decode device, data channel unit.
Data channel unit, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage.
CMD passage is for transmitting descending command information and/or parameter; M2 passage, M5 passage and M7 passage are for transmitting up downhole data.
Manchester Code/decode device comprises: a first Manchester Code/decode device and two the second Manchester Code/decode devices.
First Manchester Code/decode utensil has the first separate coding unit and the first decoding unit; Second Manchester Code/decode utensil has the second separate coding unit and the second decoding unit; First Manchester Code/decode device to be used in CMD passage and M2 passage transmit the encoding and decoding of data; Two the second Manchester Code/decode devices to be respectively used in M5 passage and M7 passage transmit the decoding of data.
FPGA control chip is transmitted for the data of the encoding and decoding logic and data channel unit that control Manchester Code/decode device; FPGA control chip comprises data buffer storage cell fifo and buffer memory read-write control unit.
Data buffer storage cell fifo comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Buffer memory read-write control unit comprises to be read FIFO control logic unit and writes FIFO control logic unit.
Logic level transition unit is used for the logic level transition of Manchester Code/decode device and FPGA control chip.
Preferably,
EDIB bus interface module, for receiving command information and/or the parameter of DSP control module transmission, carries out Manchester's cde to command information and/or parameter and refers to:
The command information that CMD channel reception DSP control module sends and/or parameter, and by command information and/or parameter stored in the CMD passage FIFO of CMD passage, it is invalid that the empty zone bit of CMD passage FIFO becomes, read FIFO control logic unit automatically to produce first and read fifo signal, command information in first write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, during coding, the output signal SD signal of the first Manchester Code/decode device becomes high level, when SD signal becomes low level from high level, command information in first write CMD passage FIFO and/or the coding of parameter complete, read FIFO control logic unit to produce second and read fifo signal, command information in second write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, the like, when CMD passage FIFO empty marking signal again effectively time, all command informations in CMD passage FIFO and/or parameter have been sent into the first Manchester Code/decode device and have been encoded, read FIFO control logic unit and forbid that fifo signal is read in generation, cataloged procedure completes.
EDIB bus interface module receives downhole data, carries out manchester decoder refer to downhole data:
When M2 passage will transmit downhole data to PC, downhole data is decoded by the first decoding unit of the first Manchester Code/decode device, when the first decoding unit is decoded, the output signal TD signal of the first Manchester Code/decode device is high level, when TD signal becomes low level from high level, first decoding unit completes the decoding of downhole data, writes FIFO control logic unit and automatically produces write signal, writes in M2 passage FIFO after decoded downhole data is carried out serioparallel exchange.
When M5 passage/M7 passage will transmit downhole data to PC, downhole data is decoded by the second decoding unit of the second Manchester Code/decode device, when the second decoding unit is decoded, the output signal NVM signal of the second Manchester Code/decode device is high level, when NVM signal becomes low level from high level, second decoding unit completes the decoding of downhole data, when NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, write FIFO control logic unit and produce a write signal, write in M5 passage/M7 passage FIFO after decoded downhole data is carried out serioparallel exchange, DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, read and sent to PC by USB function device interface module.
Downhole data after data processing, when the downhole data after EDIB bus interface module data processing being detected, sends to USB function device interface module to refer to by DSP control module:
DSP control module detects the decoded downhole data in M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and will send to PC by USB function device interface module.
DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, is read to deposit in extend out in data RAM, and sends to PC by USB function device interface module.
Compared with prior art, the present invention includes: general-purpose serial bus USB function device interface module, digital signal processing DSP control module, EDIB bus interface module.USB function device interface module, for receiving the command information and/or parameter that personal computer PC issues to subsurface equipment, also for the downhole data after data processing is sent to PC.DSP control module, for detecting USB function device interface module in real time, when detecting that USB function device interface module receives the command information and/or parameter that PC issues to subsurface equipment, command information and/or parameter are sent to EDIB bus interface module by control USB function device interface module; Also for detecting EDIB bus interface module in real time, when the downhole data after EDIB bus interface module data processing being detected, the downhole data after data processing is sent to USB function device interface module.EDIB bus interface module, for receiving command information and/or the parameter of DSP control module transmission, carrying out Manchester's cde to command information and/or parameter, and the command information after Manchester's cde and/or parameter is sent to subsurface equipment; Also for receiving the downhole data that subsurface equipment returns, data processing is carried out to downhole data; Data processing comprises manchester decoder.By the solution of the present invention, the monitoring of NMR (Nuclear Magnetic Resonance) logging instrument can be made more to simplify, intelligent, reduce the difficulty of data analysis.
Accompanying drawing explanation
Be described the accompanying drawing in the embodiment of the present invention below, the accompanying drawing in embodiment is for a further understanding of the present invention, is used from explanation the present invention, does not form limiting the scope of the invention with instructions one.
Fig. 1 is the Monitoring Data conversion equipment block diagram of NMR (Nuclear Magnetic Resonance) logging instrument of the present invention;
Fig. 2 is USB function device interface module block diagram of the present invention;
Fig. 3 is EDIB bus interface module block diagram of the present invention;
Fig. 4 is CMD channel coding control structure block diagram of the present invention;
Fig. 5 is that CMD passage FIFO of the present invention reads logic control signal figure;
Fig. 6 is M2 channel-decoded control structure block diagram of the present invention;
Fig. 7 is that M2 passage FIFO of the present invention writes logic control signal figure;
Fig. 8 is M5 of the present invention passage/M7 channel-decoded control structure block diagram;
Fig. 9 is that M5 of the present invention passage/M7 passage FIFO writes logic control signal figure;
Figure 10 is the Monitoring Data conversion method process flow diagram of NMR (Nuclear Magnetic Resonance) logging instrument of the present invention.
Embodiment
For the ease of the understanding of those skilled in the art, below in conjunction with accompanying drawing, the invention will be further described, can not be used for limiting the scope of the invention.
Particularly, the present invention proposes a kind of Monitoring Data conversion equipment 01 of NMR (Nuclear Magnetic Resonance) logging instrument, as shown in Figure 1, this device comprises: general-purpose serial bus USB function device interface module 02, digital signal processing DSP control module 03, EDIB bus interface module 04.
USB function device interface module 02, for receiving the command information and/or parameter that personal computer PC issues to subsurface equipment, also for the downhole data after data processing is sent to PC.
USB be a kind of efficient, fast, volume is little and support the serial communication interface of hot plug, and the feature of plug and play makes user directly USB external unit be connected to computing machine when not restarting computing machine and start communication.
In USB data transmission communication, point usb host equipment and USB function device, the data of USB system and the transmission of order all have usb host to start, and occupy an leading position in whole data communication, in synchronization USB system, only there is a usb host.USB function device is an independently external unit normally, has specific function, and each USB device inside includes the configuration information of describer function and resource requirement.For our test macro, PC is usb host equipment, and emulation test system is USB function device.
Preferably, USB function device interface module 02 comprises: USB fifo fifo chip 021, USB joint lead-in wire 022, USB interface 023; As shown in Figure 2.
USB fifo chip 021 is connected with USB interface 023 by USB joint lead-in wire 022; USBFIFO chip 021 is connected with EDIB bus interface module 04 by RW, RD, EMPTY and FULL pin; USB fifo chip 021 is connected with DSP control module 03 by data bus D0-D7.
USB fifo chip 021 comprises: serial interface engine 0211, reception cell fifo 0212, transmission cell fifo 0213, usb protocol engine 0214 and fifo controller 0215 and EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM interface 0216.
USB fifo chip extends out one piece of EEPROM, EEPROM for storing USB Voltage Identification Number VID, product identify PID, serial code, product descriptor, also for arranging USB transmission mode, Remote Wake Up pattern by EEPROM interface 0216.
USB joint lead-in wire 022 comprises: V
bUS, GND, D+, D-tetra-lead-in wire, wherein V
bUSlead-in wire outwards provides power supply, and GND lead-in wire is ground wire, D+ and D-lead-in wire is differential data line pair.
USB function device chip in the design adopts the second generation USB fifo chip FT245BM of FTDI company, it is in the complete usb protocol function of Embedded, and free VCP and D2XX driver is provided, compatible USB1.1 and USB2.0 agreement, has Bulk transport and synchronous transmission two kinds of transmission modes.FT245BM is a USB fifo chip, has the transmission buffer of 384 byte FIFO and the reception buffer of 128 byte FIFO in sheet, and the processor parallel port that usb bus can be converted into 8 exports.
V
bUSsupply voltage is generally 4.75---5.25V, and the maximum output current of each port is generally 100mA or 500mA.
The power supply that USB device both can use bus to provide, also can use independent local power supply.For the USB device using bus power source, must ensure to work as V
bUSwhen being in minimum voltage, it still can normally work, and this just requires the supply voltage must noting USB interface chip when actual development.But those are used to the USB device of local power supply, just do not have this to limit, voltage and current required arbitrarily can be obtained.
In order to ensure the work of design module long-term stability, FT245BM adopts local power supply to power, and namely has circuit board for 3.3V voltage.
DSP control module 03, for detecting USB function device interface module 02 in real time, when detecting that USB function device interface module 02 receives the command information and/or parameter that PC issues to subsurface equipment, command information and/or parameter are sent to EDIB bus interface module 04 by control USB function device interface module 02; Also for detecting EDIB bus interface module 04 in real time, when the downhole data after EDIB bus interface module 04 data processing being detected, the downhole data after data processing is sent to USB function device interface module 02.
DSP control module 03 of the present invention selects the dsp chip TMS320F2812 of American TI Company, it is high performance 32 fixed DSPs, there are Harvard's bus structure, unified storer planning, the linear program address of 4M, the linear data address of 4M, efficient code (C/C++ and assembly language).The Flash space of Embedded 128K × 16, can be repeatedly erasable, and overprogram is for depositing program code and data, very easy to use in product development stage.
There is the data space of 18K × 16 DSP inside, consider that the internal data store space of TMS320F2812 is less, for the more big data quantity instrument of research and development in future retains surplus, DSP has extended out the sram chip of 512K × 16, model is IS61LV52116, transmits data for depositing down-hole.
TMS320F2812 needs two-way Power supply, 3.3V is supplied to the I/O pin powered of DSP, 1.8V powers to the kernel of DSP, and TMS320F2812 has special timing requirements when powering on, and TMS320F2812 requires that 3.3V first powers on, power on after 1.8V, when 3.3V power supply arrives 2.5V voltage, 1.8 power supplys can not more than 0.3V, and two power supply mistimings are less than 10ms, after the time of two-way power good 1ms, the reset signal of DSP is uprised by low, and DSP starts working.DSP power supply and reset unit select TPS70351 power supply chip.
EDIB bus interface module 04, for receiving command information and/or the parameter of DSP control module 03 transmission, carrying out Manchester's cde to command information and/or parameter, and the command information after Manchester's cde and/or parameter is sent to subsurface equipment; Also for receiving the downhole data that subsurface equipment returns, data processing is carried out to downhole data; Data processing comprises manchester decoder.
Preferably, EDIB bus interface module 04 comprises: the field programmable gate array FPGA control chip 041 connected successively by data bus, logic level transition unit 042, Manchester Code/decode device 043, data channel unit 044; As shown in Figure 3.
Data channel unit 044, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage.
CMD passage is for transmitting descending described command information and/or parameter; M2 passage, M5 passage and M7 passage are for transmitting up downhole data.
The each command word of CMD and M2 passage is 16 words, adds three synchronization characters and a parity check bit, and the speed of descending CMD order is 20.883Kbps, and the speed of up M2 data is 41.666Kvbps.
M5 and M7 passage is half-duplex channel, and speed is 93.75Kvbps, and data block length is not fixed, and does not have parity check bit, only before data block, has synchronizing signal.
Manchester Code/decode device 043 comprises: a first Manchester Code/decode device 0431 and two the second Manchester Code/decode devices 0432 and 0433.
First Manchester Code/decode device 0431 has the first separate coding unit and the first decoding unit; Second Manchester Code/decode device 0432 and 0433 has the second separate coding unit and the second decoding unit; First Manchester Code/decode device 0431 in CMD passage and M2 passage transmit the encoding and decoding of data; Two the second Manchester Code/decode devices 0432 and 0433 to be respectively used in M5 passage and M7 passage transmit the decoding of data.
In the present invention, HD-6408 codec selected by the first Manchester Code/decode device 0431, and HD-6409 codec selected by two the second Manchester Code/decode devices 0432 and 0433.
HD-6408 and HD-6409 is the product of Intersil company, and both are all Manchester Code/decode devices.The data speed of HD-6408 is up to 1Mb/s, and have the function of synchronous detection and clock recovery, support graceful Chester II coding and decoding, his coding unit and decoding unit are separate, single powering mode.Performance and the HD-6408 of HD-6409 are similar.The logic control of HD-6408 and HD-6409 is realized by FPGA control chip.
FPGA control chip 041 is transmitted for the data of the encoding and decoding logic and data channel unit that control Manchester Code/decode device; FPGA control chip 041 comprises data buffer storage cell fifo 0411 and buffer memory read-write control unit 0412.
Data buffer storage cell fifo 0411 comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Buffer memory read-write control unit 0412 comprises to be read FIFO control logic unit 04121 and writes FIFO control logic unit 04122.
In the present invention, FPGA control chip 041 have employed the APA600 of Actel company.It has 158 user I/0 pins, the I/O voltage of 3.3V, and core voltage 2.5V, can generate synchronous/asynchronous FIFO and SRAM.APA600 can produce different frequency clock signal, has larger storage space and abundant I/O resource, can meet this project completely to clock generating, the requirement of logic control and data buffer storage.
6408 HD-6408 and HD-6409 are that 5V powers, and the input high level scope of 6408,6409 is: the maximal value that 3.5V ~ 5V, FPGA export high level only has 3.3V.The low level output maximal value of 6408,6409 is low level output maximal values of 2V, FPGA is 1V, in order to avoid level logic mistake, 6408, adds logic level transition unit carry out logic level transition between 6409 and FPGA.
Logic level transition unit 042, is connected between Manchester Code/decode device 043 and FPGA control chip 041, for the logic level transition of Manchester Code/decode device 043 and FPGA control chip 041.
Logic level transition unit 042 in the present invention selects level transferring chip SN74LVCH16T245, and SN74LVCH16T245 has two covers independently configurable electric power system (V
cCA, V
cCB), can to the level conversion of signal between 1.8V, 2.5V, 3.3V and 5V.Achieve the communication between varying level bus.
Preferably,
USB function device interface module 02 refers to for the command information that receives personal computer PC and issue to subsurface equipment and/or parameter:
When PC sends command information and/or parameter to described subsurface equipment, USB fifo chip 021 receives command information and/or parameter, and becoming low level stored in reception cell fifo 0212, EMPTY pin, notice EDIB bus interface module 04 has received command information and/or parameter.
DSP control module 03 is for detecting USB function device interface module 02 in real time, when the command information that USB function device interface module 02 has PC to issue to subsurface equipment and/or parameter being detected, command information and/or parameter send to EDIB bus interface module 04 to refer to by control USB function device interface module 02:
DSP control module 03 pair of USB function device interface module 02 detects in real time, when the announcement information of USB function device interface module 02 pair of EDIB bus interface module 04 being detected, fifo controller 0215 reading order information and/or parameter from reception cell fifo 0212 of DSP control module 03 control USB fifo chip 021, and send to EDIB bus interface module 04; After all command informations and/or parameter all run through, EMPTY pin becomes high level.
The downhole data of USB function device interface module 02 also for being returned by the subsurface equipment after data processing sends to PC to refer to:
When USB function device interface module 02 sends the downhole data after manchester decoder to PC, if FULL pin is low level, then downhole data is write into and is sent cell fifo 0213, if FULL pin becomes high level, then send cell fifo 0213 full, forbid writing data to transmission cell fifo 0213, all passed to after PC by USB interface 023 when sending the downhole data in cell fifo 0213, FULL pin becomes low level, and USB function device interface module 02 continues to send downhole data to PC.
Preferably,
EDIB bus interface module 04, for receiving command information and/or the parameter of DSP control module 03 transmission, carries out Manchester's cde to command information and/or parameter and refers to:
The command information that CMD channel reception DSP control module 03 sends and/or parameter, and by command information and/or parameter stored in the CMD passage FIFO of CMD passage, it is invalid that the empty zone bit of CMD passage FIFO becomes, read FIFO control logic unit automatically to produce first and read fifo signal, command information in first write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device 0431, encoded by the first coding unit, during coding, the output signal SD signal of the first Manchester Code/decode device 0431 becomes high level, when SD signal becomes low level from high level, command information in first write CMD passage FIFO and/or the coding of parameter complete, read FIFO control logic unit 04121 to produce second and read fifo signal, command information in second write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device 0431, encoded by the first coding unit, the like, when CMD passage FIFO empty marking signal again effectively time, all command informations in CMD passage FIFO and/or parameter have been sent into the first Manchester Code/decode device 0431 and have been encoded, read FIFO control logic unit 04121 and forbid that fifo signal is read in generation, cataloged procedure completes.As shown in Figure 4.
In the present invention, first Manchester Code/decode device 0431 have employed HD-6408 codec, HD-6408 codec is when encoding, to be that how automatic cache read write control logic is send data into 6408 and encode for the emphasis of steering logic, and 6408 have three important signals when encoding: ESC, SD and SDI, and wherein ESC is encoded clock, frequency is 20.883KHz, SD is an output signal of 6408, and be high level when external data enters 6408 coding, SDI is external data signal.CMD passage FIFO reads logic control as shown in Figure 5.In figure, be followed successively by ESC from top to bottom, SD, SDI, RDREQ, RDREQ are the read signals of CMD passage FIFO.After in the data write CMD passage FIFO that DSP control module 03 will be encoded, " sky " zone bit of CMD passage FIFO becomes invalid (at this moment FIFO non-NULL), at this moment produce first and read fifo signal, data in first write FIFO are sent into 6408 encode, during coding, SD signal becomes high level, when SD signal is by high step-down, illustrates that coding completes, at this moment can produce second and read fifo signal, the like.When FIFO " sky " marking signal again effectively time (FIFO is empty), represent that all data send into 6408, at this moment forbid that fifo signal is read in generation, cataloged procedure completes.
EDIB bus interface module 04 receives downhole data, carries out manchester decoder refer to downhole data:
When M2 passage will transmit described downhole data to PC, downhole data is decoded by the first decoding unit of the first Manchester Code/decode device 0413, when the first decoding unit is decoded, the output signal TD signal of the first Manchester Code/decode device 0413 is high level, when TD signal becomes low level from high level, first decoding unit completes the decoding of downhole data, write FIFO control logic unit 04122 and automatically produce write signal, write in M2 passage FIFO after decoded downhole data is carried out serioparallel exchange, as shown in Figure 6.
In the present invention, here the first Manchester Code/decode device 0431 adopts same HD-6408 codec to decode, HD-6408 codec is when decoding, and the emphasis of steering logic how 6408 decoded data is write confession DSP reading in FIFO to be automatically uploaded to PC.6408 have also three signal of interests when decoding: DSC, TD and SDO, wherein DSC is decode clock, frequency is 41.666KHz, TD is the output signal of 6408, when 6408 carry out data decode, TD is the high level in 16 DSC cycles, becomes low level after decoding terminates, during TD is height, decoded data exports from SDO signal.M2 passage FIFO writes logic control as shown in Figure 7.Be followed successively by DSC, TD, SDOUT and WRREQ from top to bottom in figure, WRREQ is M2 passage FIFO write signal.When 6408 decode, TD signal is high level, when TD signal is by high step-down, represents that current data completes decoding, at this moment automatically produces a write signal and is automatically write in the FIFO of M2 by decoded data, read give PC by DSP.
When M5 passage/M7 passage will transmit downhole data to PC, downhole data is decoded by the second decoding unit of the second Manchester Code/decode device 0432 and 0433, when the second decoding unit is decoded, the output signal NVM signal of the second Manchester Code/decode device 0432 and 0433 is high level, when NVM signal becomes low level from high level, second decoding unit completes the decoding of downhole data, when NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, write FIFO control logic unit and produce a write signal, write in M5 passage/M7 passage FIFO after decoded downhole data is carried out serioparallel exchange, DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, read and sent to PC by USB function device interface module 02.As shown in Figure 8.
In the present invention, two the second Manchester Code/decode devices 0432 and 0433 that M5 passage/M7 channel-decoded uses all have employed HD-6409 to realize, decoding steering logic is completely the same, illustrate for M5 passage, when M5 passage transmits data to PC, first 6409 by decoding data, and the decoded data of serial automatically writes in M5 passage FIFO after serioparallel exchange, treat that DSP detects in FIFO have data, read and send to PC by USB interface.The structured flowchart of M5 passage/M7 channel-decoded as shown in Figure 8.Equally, 6409 have three important signals when decoding: DCLK, NVM, SDO.During M5 channel transfer, data layout is: 3 bit data positions, bit data position+16, bit data position+16, bit synchronization position+16 ...DCLK is decode clock, and frequency is 93.75KHz, and when decoded data exports, NVM signal is high level, and the rear NVM that decoded is low level, and SDO is the serial decode data exported.When NVM signal is high, often through the clock period of 16 DCLK, export the data of a word, at this moment produce a write signal, data are write in M5 passage FIFO.M5 passage FIFO writes logic control as shown in Figure 9.In figure, four signals respectively from top to bottom: DCLK, NVM, SDO and write fifo signal.Because M5 passage transmits with the form of data block, when NVM is high, often just complete the decoding of a number through 16 DCLK cycles, therefore automatically produce a write signal by every 16 DLCK cycles and decoded data is sent in M5 passage FIFO, read by DSP and give PC.
Downhole data after data processing, when the downhole data after EDIB bus interface module 04 data processing being detected, sends to USB function device interface module 02 to refer to by DSP control module 03:
DSP control module 03 detects the decoded downhole data in M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and sends to PC by USB function device interface module 02.
DSP control module 03 detects the decoded downhole data in M5 passage/M7 passage FIFO, is read to deposit in extend out in data RAM, and sends to PC by USB function device interface module 02.
The present invention also proposes a kind of Monitoring Data conversion method of NMR (Nuclear Magnetic Resonance) logging instrument, and the method comprises:
S101, USB function device interface module receives the command information and/or parameter that personal computer PC issues to subsurface equipment.
S102, DSP control module detect USB function device interface module in real time, when detecting that USB function device interface module receives the command information and/or parameter that PC issues to subsurface equipment, command information and/or parameter are sent to EDIB bus interface module by control USB function device interface module.
S103, EDIB bus interface module receives command information and/or the parameter of DSP control module transmission, carries out Manchester's cde, and the command information after Manchester's cde and/or parameter are sent to subsurface equipment to command information and/or parameter.
S104, EDIB bus interface module receives the downhole data that subsurface equipment returns, and carries out data processing to downhole data; Data processing comprises manchester decoder.
S105, DSP control module detect EDIB bus interface module in real time, when the downhole data after EDIB bus interface module data processing being detected, the downhole data after data processing are sent to USB function device interface module.
Downhole data after data processing is sent to PC by S106, USB function device interface module.
Preferably,
USB function device interface module receives command information that PC issues to subsurface equipment and/or parameter refers to:
When PC sends command information and/or parameter to subsurface equipment, USB fifo chip receives command information and/or parameter, and stored in reception cell fifo, EMPTY pin becomes low level, notice EDIB bus interface module has received command information and/or parameter.
DSP control module is used for detecting USB function device interface module in real time, when the command information that USB function device interface module has PC to issue to subsurface equipment and/or parameter being detected, command information and/or parameter send to EDIB bus interface module to refer to by control USB function device interface module:
DSP control module detects in real time to USB function device interface module, when the announcement information of USB function device interface module to EDIB bus interface module being detected, fifo controller reading order information and/or parameter from reception cell fifo of DSP control module control USBFIFO chip, and send to EDIB bus interface module; After all command informations and/or parameter all run through, EMPTY pin becomes high level.
The downhole data of USB function device interface module also for being returned by the subsurface equipment after data processing sends to PC to refer to:
When USB function device interface module sends the downhole data after manchester decoder to PC, if FULL pin is low level, then downhole data is write into transmission cell fifo, if FULL pin becomes high level, then sending cell fifo full, forbidding, to transmission cell fifo write data, all being passed to after PC by USB interface when sending the downhole data in cell fifo, FULL pin becomes low level, and USB function device interface module continues to send downhole data to PC.
Preferably, EDIB bus interface module comprises: the field programmable gate array FPGA control chip connected successively by data bus, logic level transition unit, Manchester Code/decode device, data channel unit.
Data channel unit, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage.
CMD passage is for transmitting descending command information and/or parameter; M2 passage, M5 passage and M7 passage are for transmitting up downhole data.
Manchester Code/decode device comprises: a first Manchester Code/decode device and two the second Manchester Code/decode devices.
First Manchester Code/decode utensil has the first separate coding unit and the first decoding unit; Second Manchester Code/decode utensil has the second separate coding unit and the second decoding unit; First Manchester Code/decode device to be used in CMD passage and M2 passage transmit the encoding and decoding of data; Two the second Manchester Code/decode devices to be respectively used in M5 passage and M7 passage transmit the decoding of data.
FPGA control chip is transmitted for the data of the encoding and decoding logic and data channel unit that control Manchester Code/decode device; FPGA control chip comprises data buffer storage cell fifo and buffer memory read-write control unit.
Data buffer storage cell fifo comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Buffer memory read-write control unit comprises to be read FIFO control logic unit and writes FIFO control logic unit.
Logic level transition unit is used for the logic level transition of Manchester Code/decode device and FPGA control chip.
Preferably,
EDIB bus interface module, for receiving command information and/or the parameter of DSP control module transmission, carries out Manchester's cde to command information and/or parameter and refers to:
The command information that CMD channel reception DSP control module sends and/or parameter, and by command information and/or parameter stored in the CMD passage FIFO of CMD passage, it is invalid that the empty zone bit of CMD passage FIFO becomes, read FIFO control logic unit automatically to produce first and read fifo signal, command information in first write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, during coding, the output signal SD signal of the first Manchester Code/decode device becomes high level, when SD signal becomes low level from high level, command information in first write CMD passage FIFO and/or the coding of parameter complete, read FIFO control logic unit to produce second and read fifo signal, command information in second write CMD passage FIFO and/or parameter are read, and after carrying out parallel-serial conversion, send into the first Manchester Code/decode device, encoded by the first coding unit, the like, when CMD passage FIFO empty marking signal again effectively time, all command informations in CMD passage FIFO and/or parameter have been sent into the first Manchester Code/decode device and have been encoded, read FIFO control logic unit and forbid that fifo signal is read in generation, cataloged procedure completes.
EDIB bus interface module receives downhole data, carries out manchester decoder refer to downhole data:
When M2 passage will transmit downhole data to PC, downhole data is decoded by the first decoding unit of the first Manchester Code/decode device, when the first decoding unit is decoded, the output signal TD signal of the first Manchester Code/decode device is high level, when TD signal becomes low level from high level, first decoding unit completes the decoding of downhole data, writes FIFO control logic unit and automatically produces write signal, writes in M2 passage FIFO after decoded downhole data is carried out serioparallel exchange.
When M5 passage/M7 passage will transmit downhole data to PC, downhole data is decoded by the second decoding unit of the second Manchester Code/decode device, when the second decoding unit is decoded, the output signal NVM signal of the second Manchester Code/decode device is high level, when NVM signal becomes low level from high level, second decoding unit completes the decoding of downhole data, when NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, write FIFO control logic unit and produce a write signal, write in M5 passage/M7 passage FIFO after decoded downhole data is carried out serioparallel exchange, DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, read and sent to PC by USB function device interface module.
Downhole data after data processing, when the downhole data after EDIB bus interface module data processing being detected, sends to USB function device interface module to refer to by DSP control module:
DSP control module detects the decoded downhole data in M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and will send to PC by USB function device interface module.
DSP control module detects the decoded downhole data in M5 passage/M7 passage FIFO, is read to deposit in extend out in data RAM, and sends to PC by USB function device interface module.
Apparatus of the present invention contrast external monitoring device, have miniaturization, rapid and intelligent, and by means of computer software technology simultaneously and make data analysis quick flexibly, fault judges in time.
It should be noted that; above-described embodiment is only understand for the ease of those skilled in the art; be not limited to protection scope of the present invention; under the prerequisite not departing from inventive concept of the present invention, any apparent replacement and improvement etc. that those skilled in the art make the present invention are all within protection scope of the present invention.
Claims (9)
1. a Monitoring Data conversion equipment for NMR (Nuclear Magnetic Resonance) logging instrument, is characterized in that, described device comprises: general-purpose serial bus USB function device interface module, digital signal processing DSP control module, EDIB bus interface module;
Described USB function device interface module, for receiving the command information and/or parameter that personal computer PC issues to subsurface equipment, also for the downhole data after data processing is sent to described PC;
Described DSP control module, for detecting described USB function device interface module in real time, when detecting that described USB function device interface module receives the described command information and/or parameter that described PC issues to described subsurface equipment, controlling described USB function device interface module and described command information and/or parameter are sent to described EDIB bus interface module; Also for detecting described EDIB bus interface module in real time, when the described downhole data after described EDIB bus interface module data processing being detected, the described downhole data after data processing is sent to described USB function device interface module;
Described EDIB bus interface module, for receiving described command information and/or the parameter of the transmission of described DSP control module, Manchester's cde is carried out to described command information and/or parameter, and the described command information after described Manchester's cde and/or parameter are sent to described subsurface equipment; Also for receiving the described downhole data that described subsurface equipment returns, data processing is carried out to described downhole data; Described data processing comprises manchester decoder.
2. device as claimed in claim 1, it is characterized in that, described USB function device interface module comprises: USB fifo fifo chip, USB joint lead-in wire, USB interface;
Described USB fifo chip is connected with described USB interface by described USB joint lead-in wire; Described USB fifo chip is connected with described EDIB bus interface module by RW, RD, EMPTY and FULL pin; Described USB fifo chip is connected with described DSP control module by data bus D0-D7;
Described USB joint lead-in wire comprises: V
bUS, GND, D+, D-tetra-lead-in wire, wherein said V
bUSlead-in wire outwards provides power supply, and GND lead-in wire is ground wire, D+ and D-lead-in wire is differential data line pair.
3. device as claimed in claim 2, is characterized in that,
Described USB fifo chip comprises: serial interface engine, reception cell fifo, transmission cell fifo, usb protocol engine and fifo controller and EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM interface;
Described USB function device interface module refers to for the command information that receives personal computer PC and issue to subsurface equipment and/or parameter:
When described PC sends described command information and/or parameter to described subsurface equipment, described USBFIFO chip receives described command information and/or parameter, and stored in described reception cell fifo, described EMPTY pin becomes low level, notifies that described EDIB bus interface module has received described command information and/or parameter;
Described DSP control module is used for detecting described USB function device interface module in real time, when the described command information that described USB function device interface module has described PC to issue to described subsurface equipment and/or parameter being detected, controlling described USB function device interface module and described command information and/or parameter being sent to described EDIB bus interface module to refer to:
Described DSP control module detects in real time to described USB function device interface module, when the announcement information of described USB function device interface module to described EDIB bus interface module being detected, the fifo controller that described DSP control module controls described USB fifo chip reads described command information and/or parameter from described reception cell fifo, and sends to described EDIB bus interface module; After all described command informations and/or parameter all run through, described EMPTY pin becomes high level;
The downhole data of described USB function device interface module also for being returned by the described subsurface equipment after data processing sends to described PC to refer to:
When described USB function device interface module sends the described downhole data after manchester decoder to described PC, if described FULL pin is low level, then described downhole data is write into described transmission cell fifo, if described FULL pin becomes high level, then described transmission cell fifo is full, forbid to described transmission cell fifo write data, after the described downhole data in described transmission cell fifo all passes to described PC by described USB interface, described FULL pin becomes low level, described USB function device interface module continues to send described downhole data to described PC.
4. device as claimed in claim 1, it is characterized in that, described EDIB bus interface module comprises: the field programmable gate array FPGA control chip connected successively by data bus, logic level transition unit, Manchester Code/decode device, data channel unit;
Described data channel unit, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage;
Described CMD passage is for transmitting descending described command information and/or parameter; Described M2 passage, described M5 passage and described M7 passage are for transmitting up described downhole data;
Described Manchester Code/decode device comprises: a first Manchester Code/decode device and two the second Manchester Code/decode devices;
Described first Manchester Code/decode utensil has the first separate coding unit and the first decoding unit; Described second Manchester Code/decode utensil has the second separate coding unit and the second decoding unit; Described first Manchester Code/decode device to be used in described CMD passage and described M2 passage transmit the encoding and decoding of data; Two described second Manchester Code/decode devices to be respectively used in described M5 passage and described M7 passage transmit the decoding of data;
Described FPGA control chip is transmitted for the data of the encoding and decoding logic and described data channel unit that control described Manchester Code/decode device; Described FPGA control chip comprises data buffer storage cell fifo and buffer memory read-write control unit;
Described data buffer storage cell fifo comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Described buffer memory read-write control unit comprises to be read FIFO control logic unit and writes FIFO control logic unit;
Described logic level transition unit, is connected between described Manchester Code/decode device and described FPGA control chip, for the logic level transition of described Manchester Code/decode device and described FPGA control chip.
5. device as claimed in claim 4, is characterized in that,
Described EDIB bus interface module, for receiving described command information and/or the parameter of the transmission of described DSP control module, carries out Manchester's cde to described command information and/or parameter and refers to:
The described command information that DSP control module described in described CMD channel reception sends and/or parameter, and by described command information and/or parameter stored in the described CMD passage FIFO of described CMD passage, it is invalid that the empty zone bit of described CMD passage FIFO becomes, described FIFO control logic unit of reading automatically produces first and reads fifo signal, described command information in first described CMD passage FIFO of write and/or parameter are read, and after carrying out parallel-serial conversion, send into described first Manchester Code/decode device, encoded by described first coding unit, described in during coding, the output signal SD signal of the first Manchester Code/decode device becomes high level, when described SD signal becomes low level from high level, described command information in first described CMD passage FIFO of write and/or the coding of parameter complete, described FIFO control logic unit of reading produces second and reads fifo signal, described command information in second described CMD passage FIFO of write and/or parameter are read, and after carrying out parallel-serial conversion, send into described first Manchester Code/decode device, encoded by described first coding unit, the like, when described CMD passage FIFO empty marking signal again effectively time, all described command informations in described CMD passage FIFO and/or parameter have been sent into described first Manchester Code/decode device and have been encoded, described FIFO control logic unit of reading forbids reading fifo signal described in generation, cataloged procedure completes,
Described EDIB bus interface module receives described downhole data, carries out manchester decoder refer to described downhole data:
When described M2 passage will transmit described downhole data to described PC, described downhole data is decoded by described first decoding unit of described first Manchester Code/decode device, when described first decoding unit is decoded, the output signal TD signal of described first Manchester Code/decode device is high level, when described TD signal becomes low level from high level, described first decoding unit completes the decoding of described downhole data, described FIFO control logic unit of writing produces write signal automatically, write after decoded described downhole data is carried out serioparallel exchange in described M2 passage FIFO,
When described M5 passage/M7 passage will transmit described downhole data to described PC, described downhole data is decoded by described second decoding unit of described second Manchester Code/decode device, when described second decoding unit is decoded, the output signal NVM signal of described second Manchester Code/decode device is high level, when described NVM signal becomes low level from high level, described second decoding unit completes the decoding of described downhole data, when described NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, described FIFO control logic unit of writing produces a write signal, write in described M5 passage/M7 passage FIFO after decoded described downhole data is carried out serioparallel exchange, described DSP control module detects the decoded described downhole data in described M5 passage/M7 passage FIFO, read and sent to described PC by described USB function device interface module,
Described described downhole data after data processing, when the described downhole data after described EDIB bus interface module data processing being detected, sends to described USB function device interface module to refer to by described DSP control module:
Described DSP control module detects the decoded described downhole data in described M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and will send to described PC by described USB function device interface module;
Described DSP control module detects the decoded described downhole data in described M5 passage/M7 passage FIFO, is read described in depositing in and extends out in data RAM, and sends to described PC by described USB function device interface module.
6. a Monitoring Data conversion method for NMR (Nuclear Magnetic Resonance) logging instrument, is characterized in that, described method comprises:
USB function device interface module receives the command information and/or parameter that personal computer PC issues to subsurface equipment;
DSP control module detects described USB function device interface module in real time, when detecting that described USB function device interface module receives the described command information and/or parameter that described PC issues to described subsurface equipment, controlling described USB function device interface module and described command information and/or parameter are sent to EDIB bus interface module;
Described EDIB bus interface module receives described command information and/or the parameter of the transmission of described DSP control module, Manchester's cde is carried out to described command information and/or parameter, and the described command information after described Manchester's cde and/or parameter are sent to described subsurface equipment;
Described EDIB bus interface module receives the downhole data that described subsurface equipment returns, and carries out data processing to described downhole data; Described data processing comprises manchester decoder;
Described DSP control module detects described EDIB bus interface module in real time, when the described downhole data after described EDIB bus interface module data processing being detected, the described downhole data after data processing is sent to described USB function device interface module;
Described downhole data after data processing is sent to described PC by described USB function device interface module.
7. method as claimed in claim 6, is characterized in that,
Described USB function device interface module receives command information that PC issues to subsurface equipment and/or parameter refers to:
When described PC sends described command information and/or parameter to described subsurface equipment, described USBFIFO chip receives described command information and/or parameter, and stored in described reception cell fifo, described EMPTY pin becomes low level, notifies that described EDIB bus interface module has received described command information and/or parameter;
Described DSP control module is used for detecting described USB function device interface module in real time, when the described command information that described USB function device interface module has described PC to issue to described subsurface equipment and/or parameter being detected, controlling described USB function device interface module and described command information and/or parameter being sent to described EDIB bus interface module to refer to:
Described DSP control module detects in real time to described USB function device interface module, when the announcement information of described USB function device interface module to described EDIB bus interface module being detected, the fifo controller that described DSP control module controls described USB fifo chip reads described command information and/or parameter from described reception cell fifo, and sends to described EDIB bus interface module; After all described command informations and/or parameter all run through, described EMPTY pin becomes high level;
The downhole data of described USB function device interface module also for being returned by the described subsurface equipment after data processing sends to described PC to refer to:
When described USB function device interface module sends the described downhole data after manchester decoder to described PC, if described FULL pin is low level, then described downhole data is write into described transmission cell fifo, if described FULL pin becomes high level, then described transmission cell fifo is full, forbid to described transmission cell fifo write data, after the described downhole data in described transmission cell fifo all passes to described PC by described USB interface, described FULL pin becomes low level, described USB function device interface module continues to send described downhole data to described PC.
8. method as claimed in claim 6, it is characterized in that, described EDIB bus interface module comprises: the field programmable gate array FPGA control chip connected successively by data bus, logic level transition unit, Manchester Code/decode device, data channel unit;
Described data channel unit, comprises command prompt CMD passage, M2 passage, M5 passage and M7 passage;
Described CMD passage is for transmitting descending described command information and/or parameter; Described M2 passage, described M5 passage and described M7 passage are for transmitting up described downhole data;
Described Manchester Code/decode device comprises: a first Manchester Code/decode device and two the second Manchester Code/decode devices;
Described first Manchester Code/decode utensil has the first separate coding unit and the first decoding unit; Described second Manchester Code/decode utensil has the second separate coding unit and the second decoding unit; Described first Manchester Code/decode device to be used in described CMD passage and described M2 passage transmit the encoding and decoding of data; Two described second Manchester Code/decode devices to be respectively used in described M5 passage and described M7 passage transmit the decoding of data;
Described FPGA control chip is transmitted for the data of the encoding and decoding logic and described data channel unit that control described Manchester Code/decode device; Described FPGA control chip comprises data buffer storage cell fifo and buffer memory read-write control unit;
Described data buffer storage cell fifo comprises: CMD passage FIFO, M2 passage FIFO, M5 passage FIFO, M7 passage FIFO; Described buffer memory read-write control unit comprises to be read FIFO control logic unit and writes FIFO control logic unit;
Described logic level transition unit is used for the logic level transition of described Manchester Code/decode device and described FPGA control chip.
9. device as claimed in claim 8, is characterized in that,
Described EDIB bus interface module, for receiving described command information and/or the parameter of the transmission of described DSP control module, carries out Manchester's cde to described command information and/or parameter and refers to:
The described command information that DSP control module described in described CMD channel reception sends and/or parameter, and by described command information and/or parameter stored in the described CMD passage FIFO of described CMD passage, it is invalid that the empty zone bit of described CMD passage FIFO becomes, described FIFO control logic unit of reading automatically produces first and reads fifo signal, described command information in first described CMD passage FIFO of write and/or parameter are read, and after carrying out parallel-serial conversion, send into described first Manchester Code/decode device, encoded by described first coding unit, described in during coding, the output signal SD signal of the first Manchester Code/decode device becomes high level, when described SD signal becomes low level from high level, described command information in first described CMD passage FIFO of write and/or the coding of parameter complete, described FIFO control logic unit of reading produces second and reads fifo signal, described command information in second described CMD passage FIFO of write and/or parameter are read, and after carrying out parallel-serial conversion, send into described first Manchester Code/decode device, encoded by described first coding unit, the like, when described CMD passage FIFO empty marking signal again effectively time, all described command informations in described CMD passage FIFO and/or parameter have been sent into described first Manchester Code/decode device and have been encoded, described FIFO control logic unit of reading forbids reading fifo signal described in generation, cataloged procedure completes,
Described EDIB bus interface module receives described downhole data, carries out manchester decoder refer to described downhole data:
When described M2 passage will transmit described downhole data to described PC, described downhole data is decoded by described first decoding unit of described first Manchester Code/decode device, when described first decoding unit is decoded, the output signal TD signal of described first Manchester Code/decode device is high level, when described TD signal becomes low level from high level, described first decoding unit completes the decoding of described downhole data, described FIFO control logic unit of writing produces write signal automatically, write after decoded described downhole data is carried out serioparallel exchange in described M2 passage FIFO,
When described M5 passage/M7 passage will transmit described downhole data to described PC, described downhole data is decoded by described second decoding unit of described second Manchester Code/decode device, when described second decoding unit is decoded, the output signal NVM signal of described second Manchester Code/decode device is high level, when described NVM signal becomes low level from high level, described second decoding unit completes the decoding of described downhole data, when described NVM signal is high level, often through the clock period of 16 decode clock DCLK, export the data of a word, described FIFO control logic unit of writing produces a write signal, write in described M5 passage/M7 passage FIFO after decoded described downhole data is carried out serioparallel exchange, described DSP control module detects the decoded described downhole data in described M5 passage/M7 passage FIFO, read and sent to described PC by described USB function device interface module,
Described described downhole data after data processing, when the described downhole data after described EDIB bus interface module data processing being detected, sends to described USB function device interface module to refer to by described DSP control module:
Described DSP control module detects the decoded described downhole data in described M2 passage FIFO, is read to deposit in extend out in data random access memory ram, and will send to described PC by described USB function device interface module;
Described DSP control module detects the decoded described downhole data in described M5 passage/M7 passage FIFO, is read described in depositing in and extends out in data RAM, and sends to described PC by described USB function device interface module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510098950.7A CN104615566A (en) | 2015-03-05 | 2015-03-05 | Monitoring data conversion device and method of nuclear magnetic resonance logger |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510098950.7A CN104615566A (en) | 2015-03-05 | 2015-03-05 | Monitoring data conversion device and method of nuclear magnetic resonance logger |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104615566A true CN104615566A (en) | 2015-05-13 |
Family
ID=53150018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510098950.7A Pending CN104615566A (en) | 2015-03-05 | 2015-03-05 | Monitoring data conversion device and method of nuclear magnetic resonance logger |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104615566A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510256A (en) * | 2020-04-24 | 2020-08-07 | 中国海洋石油集团有限公司 | Data communication system and method for rescue well detection system |
CN112181881A (en) * | 2020-09-16 | 2021-01-05 | 中国海洋石油集团有限公司 | EDIB-USB communication adapter and communication system |
CN112559422A (en) * | 2020-12-24 | 2021-03-26 | 深圳劲芯微电子有限公司 | Encoding and decoding implementation method, device and equipment based on USB differential signal line |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201196089Y (en) * | 2008-05-26 | 2009-02-18 | 中国海洋石油总公司 | Communication circuit used for down-hole instrument |
CN201513171U (en) * | 2009-09-09 | 2010-06-23 | 中国海洋石油总公司 | Full-wave train data acquisition and transmission device for CBMT well logging |
-
2015
- 2015-03-05 CN CN201510098950.7A patent/CN104615566A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201196089Y (en) * | 2008-05-26 | 2009-02-18 | 中国海洋石油总公司 | Communication circuit used for down-hole instrument |
CN201513171U (en) * | 2009-09-09 | 2010-06-23 | 中国海洋石油总公司 | Full-wave train data acquisition and transmission device for CBMT well logging |
Non-Patent Citations (2)
Title |
---|
林水明 等: "基于FT245BM的简易USB接口开发", 《单片机与嵌入式系统应用》 * |
黄理琴: "声波测井仪器测试系统的实现", 《中国优秀硕士学位论文全文库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510256A (en) * | 2020-04-24 | 2020-08-07 | 中国海洋石油集团有限公司 | Data communication system and method for rescue well detection system |
CN112181881A (en) * | 2020-09-16 | 2021-01-05 | 中国海洋石油集团有限公司 | EDIB-USB communication adapter and communication system |
CN112181881B (en) * | 2020-09-16 | 2022-06-14 | 中国海洋石油集团有限公司 | EDIB-USB communication adapter and communication system |
CN112559422A (en) * | 2020-12-24 | 2021-03-26 | 深圳劲芯微电子有限公司 | Encoding and decoding implementation method, device and equipment based on USB differential signal line |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102087606B (en) | FPGA configuration file update device | |
CN103823776A (en) | Unibus in communication with master equipment and slave equipment and communication method | |
CN102833002A (en) | Data transmission device and method supporting fibre channel protocol | |
CN203720837U (en) | Unibus for master-slave device communication | |
CN104217768B (en) | A kind of detection method and device of eMMC embedded memories | |
CN104731746A (en) | Equipment controller device | |
CN104615566A (en) | Monitoring data conversion device and method of nuclear magnetic resonance logger | |
CN104391770A (en) | Online debugging and upper computer communication module of SOC (system-on-chip) chip for embedded data security system | |
CN103368974A (en) | Device for supporting IEC61850 protocol based on FPGA (Field Programmable Gata Array) | |
CN202584143U (en) | A read-only card reader with multiple interfaces | |
CN202661570U (en) | Power distribution network power quality integrated monitor based on double DSPs (Digital Signal Processor) | |
CN105573947A (en) | APB (Advanced Peripheral Bus) based SD/MMC (Secure Digital/ MultiMedia Card) control method | |
CN207301706U (en) | High speed input/output control circuit based on CPLD devices | |
CN201196089Y (en) | Communication circuit used for down-hole instrument | |
CN204116550U (en) | A kind of PMU proving installation | |
CN203276266U (en) | Intelligent adapter | |
CN204267023U (en) | A kind of capillary pressure force detection system | |
CN204288237U (en) | A kind of Network Smart Card Reader-Writer | |
CN203276294U (en) | Multifunctional card reader | |
CN202929443U (en) | Hand-held CAN bus data analytical equipment | |
CN203276315U (en) | Double-interface IC card reading/writing device | |
CN105183395A (en) | Data extraction method for mobile phone storage chip | |
CN104867520A (en) | Intelligent data storage unit of exciting magnet apparatus based on ferroelectric random access memory and working method therefor | |
CN207216405U (en) | A kind of DCS controllers engineering online updating circuit | |
CN204667885U (en) | Based on the excitation unit intelligent data repository unit of ferroelectric memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150513 |