WO2021174981A1 - 平板探测器的控制方法、上位机、平板探测器及医疗*** - Google Patents
平板探测器的控制方法、上位机、平板探测器及医疗*** Download PDFInfo
- Publication number
- WO2021174981A1 WO2021174981A1 PCT/CN2020/141001 CN2020141001W WO2021174981A1 WO 2021174981 A1 WO2021174981 A1 WO 2021174981A1 CN 2020141001 W CN2020141001 W CN 2020141001W WO 2021174981 A1 WO2021174981 A1 WO 2021174981A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control command
- identification information
- response identification
- flat panel
- panel detector
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000004044 response Effects 0.000 claims abstract description 179
- 230000008569 process Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 9
- 238000011022 operating instruction Methods 0.000 claims description 2
- 238000012795 verification Methods 0.000 description 29
- 239000000306 component Substances 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000005855 radiation Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000002591 computed tomography Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000002601 radiography Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/02—Arrangements for diagnosis sequentially in different planes; Stereoscopic radiation diagnosis
- A61B6/03—Computed tomography [CT]
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/42—Arrangements for detecting radiation specially adapted for radiation diagnosis
- A61B6/4208—Arrangements for detecting radiation specially adapted for radiation diagnosis characterised by using a particular type of detector
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/46—Arrangements for interfacing with the operator or the patient
- A61B6/461—Displaying means of special interest
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/54—Control of apparatus or devices for radiation diagnosis
- A61B6/545—Control of apparatus or devices for radiation diagnosis involving automatic set-up of acquisition parameters
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/58—Testing, adjusting or calibrating thereof
- A61B6/586—Detection of faults or malfunction of the device
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H40/00—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
- G16H40/60—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
- G16H40/63—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for local operation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/02—Arrangements for diagnosis sequentially in different planes; Stereoscopic radiation diagnosis
- A61B6/03—Computed tomography [CT]
- A61B6/032—Transmission computed tomography [CT]
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/44—Constructional features of apparatus for radiation diagnosis
- A61B6/4429—Constructional features of apparatus for radiation diagnosis related to the mounting of source units and detector units
- A61B6/4435—Constructional features of apparatus for radiation diagnosis related to the mounting of source units and detector units the source unit and the detector unit being coupled by a rigid structure
- A61B6/4441—Constructional features of apparatus for radiation diagnosis related to the mounting of source units and detector units the source unit and the detector unit being coupled by a rigid structure the rigid structure being a C-arm or U-arm
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/54—Control of apparatus or devices for radiation diagnosis
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/56—Details of data transmission or power supply, e.g. use of slip rings
- A61B6/566—Details of data transmission or power supply, e.g. use of slip rings involving communication between diagnostic systems
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the invention relates to the field of semiconductor technology, in particular to a control method of a flat panel detector, an upper computer, a flat panel detector and a medical system.
- Flat panel detectors are the core components of X-ray medical equipment such as Computed Tomography (CT), Direct Digital Flat Panel X-ray imaging systems (Digital Radiography, DR), C-arms, etc., and are connected to the host computer system for communication
- CT Computed Tomography
- DR Direct Digital Flat Panel X-ray imaging systems
- C-arms C-arms
- wireless connection uses the wireless network of the hospital
- wired connection mostly uses the network cable.
- the upper computer needs the exposure parameters, exposure mode, and working status of the flat panel detector. And so on to modify and control, but whether through wireless or wired communication, there is a risk of signal interference, especially in the complicated electromagnetic environment of the operating room. If the flat panel detector does not work according to the requirements of the host computer, there is a risk that the patient will be exposed to useless radiation.
- the present invention provides a method for controlling a flat panel detector, a host computer, a flat panel detector, and a medical system to improve the prior art equipment including flat panel detectors.
- a flat panel detector a host computer
- a flat panel detector a flat panel detector
- a medical system to improve the prior art equipment including flat panel detectors.
- An embodiment of the present invention provides a method for controlling a flat panel detector, and the method includes:
- the consistency of the actual response identification information and the pre-stored expected response identification information is verified, and prompt information is generated.
- control method when generating and sending a control command to the flat panel detector, the control method further includes:
- the expected response identification information is stored in the expected event queue.
- the determining that the control command is the first type of control command includes:
- control command includes the first type flag bit, and if so, it is determined that the control command is the first type control command.
- the verifying the consistency between the actual response identification information and the pre-stored expected response identification information includes:
- control count value is increased by one
- the generating prompt information includes:
- the receiving the actual response identification information sent by the flat panel detector when it is determined that the control command is the first type of control command includes:
- the actual response identification information in the feedback control command is added to the received event queue.
- the receiving the actual response identification information sent by the flat panel detector when determining that the control command is the first type of control command further includes:
- the receiving thread is terminated.
- control method after receiving the actual response identification information sent by the flat panel detector when determining that the control command is the first type of control command, and after verifying the actual response identification information and the pre-stored expectations In response to the consistency of the identification information, before generating the prompt information, the control method further includes:
- the embodiment of the present invention also provides a control method of a flat panel detector, the control method includes:
- a feedback control command including the actual response identification information is sent to the upper computer.
- sending a feedback control command including actual response identification information to the upper computer includes:
- Generate feedback control commands including corresponding flag bits and actual response identification information
- An embodiment of the present invention provides an upper computer including: a first processor component, and the processing component is configured to execute the control method provided in the embodiment of the present invention.
- An embodiment of the present invention further provides a flat panel detector, including: a second processing component, the processing component is configured to execute the control method provided in the embodiment of the present invention.
- An embodiment of the present invention also provides a medical system, including the upper computer provided in the embodiment of the present invention, and the flat panel detector provided in the embodiment of the present invention.
- the method for controlling the flat panel detector includes: responding to a user's operation instruction, generating and sending a control command to the flat panel detector; receiving the flat panel detector when determining that the control command is The actual response identification information sent in the first type of control command; verify the consistency between the actual response identification information and the pre-stored expected response identification information, and generate prompt information, that is, important commands can be set as the first type of control commands, in the upper position After sending the more important control commands of the first type, the flat-panel detector is required to provide corresponding feedback.
- the upper computer determines that the actual response identification returned by the flat-panel detector is inconsistent with the expected response identification information pre-stored in the host, it can report to the user Prompts are provided for the user to make corresponding adjustments to avoid misoperation.
- response and no response The control command without response is sent quickly, and it is not important for flat panel detectors.
- Parameter setting; for control commands that need to be answered, closed-loop control is formed by sending, receiving feedback and answering verification. It is used for important parameter setting of flat panel detectors to ensure the real-time and stability of equipment operation and reduce signal interference or detectors. Invalid exposure caused by mistakes, etc., to avoid the risk of exposure to the patient's misuse of radiation.
- FIG. 1 is a flowchart of a method for controlling a flat panel detector on a host computer according to an embodiment of the present invention
- Figure 2A is a schematic diagram of the format of a control command provided by an embodiment of the present invention.
- 2B is a schematic diagram of the format of a feedback control command provided by an embodiment of the present invention.
- FIG. 3 is a flowchart of a specific method for controlling a flat panel detector on the host computer according to an embodiment of the present invention
- FIG. 4A is a schematic diagram of a display interface provided by an embodiment of the present invention.
- FIG. 4B is a schematic diagram of another display interface provided by an embodiment of the present invention.
- FIG. 5 is a flowchart of another specific method for controlling a flat panel detector on the host computer according to an embodiment of the present invention.
- FIG. 6 is a flowchart of a method for controlling a flat panel detector according to an embodiment of the present invention.
- FIG. 7 is a flowchart of a specific overall control method provided by an embodiment of the present invention.
- FIG. 8 is a flowchart of a control method based on sending threads according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a control method based on receiving threads according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a control method based on a verification thread provided by an embodiment of the present invention.
- an embodiment of the present invention provides a method for controlling a flat panel detector, including:
- Step 101 Generate and send a control command to the flat panel detector in response to the user's operation instruction.
- the control command sent by the host computer to the flat panel detector may be a relatively important first control command that needs to be answered, or a non-important second control command that does not need to be answered.
- the specific user operation for example, may be the user clicking on a specific sending icon in the display interface associated with the host computer, of course, it may also be an instruction to perform other operations of sending a control command.
- Step 102 Receive the actual response identification information sent by the flat panel detector when it determines that the control command is the first type of control command. That is, when the flat panel detector receives a control command, it first determines whether the control command is the first type of control command. If it is, it returns the actual response identification information to the upper computer. If it is not, it does not need to feed back information to the upper computer.
- Step 103 Verify the consistency between the actual response identification information and the pre-stored expected response identification information, and generate prompt information.
- the method for controlling a flat panel detector includes: in response to a user's operation instruction, generating and sending a control command to the flat panel detector; Actual response identification information; verify the consistency between the actual response identification information and the pre-stored expected response identification information, and generate prompt information, that is, important commands can be set as the first type of control commands, and the host computer is sending the more important first
- the flat panel detector is required to give corresponding feedback. If the upper computer determines that the actual response identifier fed back by the flat panel detector is inconsistent with the expected response identifier information pre-stored in the upper computer, it can prompt the user so that the user can make corresponding adjustments.
- control command it is divided into two types: response and no response.
- the control command without response is sent quickly, and it is used for the non-important parameter setting of the flat panel detector; the control for the response required Command, through sending, receiving feedback and response verification to form a closed-loop control, used for the important parameter setting of the flat panel detector, to ensure the real-time performance and stability of the equipment operation, reduce the invalid exposure caused by signal interference or detector errors, etc., and avoid This puts patients at risk of being irradiated by misuse of radiation.
- step 101 when step 101 is performed, that is, when a control command is generated and sent to the flat panel detector, the control method further includes:
- Step 1011 When it is determined that the control command is the first type of control command, generate expected response identification information corresponding to the control command. Specifically, it can be determined whether the control command is the first type control command by judging whether the control command includes the first type flag bit, and if so, it is determined that the control command is the first type control command. That is, for example, the control command may be a data packet composed of flag bit flag+command body data. For the first control command that is important to be answered, the flag bit flag can be set to the first type flag bit (for example, flag is 1), and then To determine whether the control command is the first type of control command, and for the control command that does not need to be answered, the flag can be set to 0. Specifically, 1 byte can be allocated to store the flag bit.
- flag + command body data constitutes the final control command transmission data.
- the receiving end ( The flat panel detector also adopts the same data format when replying to the response, as shown in Figure 2B, the final feedback control command data received by the host computer is composed of flag+response body data.
- the data length of the command data and response data should be a fixed value to facilitate data extraction.
- Step 1012 Store the expected response identification information in the expected event queue.
- the expected response identification information may specifically be an expected response ID.
- the host computer sends a control command to the flat panel detector, it must first complete the initialization work, create an expected event queue expectedEvent and receive an event queue receivedEvent, where the expectedEvent queue is used to store the expected response ID of the current control command, and the receivedEvent queue is used It stores all the actual response IDs received by the receiving thread; after that, the host computer packages the command data to be sent according to the communication protocol, and adds the N expected response IDs expected by the flat panel detector to the control command in order. After the expectedEvent queue is in the queue, clear the receiveEvent queue.
- control command when the control command is generated and sent to the flat panel detector, if the control command is the first control command, then the corresponding expected response identification information is generated and stored in the expected event queue to achieve subsequent Compare with the received actual response identification information, if the two are consistent, it can be determined that the control command received by the flat panel detector is the control command issued by the upper computer.
- step 103 verifying the consistency between the actual response identification information and the pre-stored expected response identification information includes:
- Step 1031 Read the actual response identification information in sequence from the received event queue, where the received event queue is used to store the actual response identification information fed back by the flat panel detector. That is, while creating the expected event queue expectedEvent, the received event queue receivedEvent can be created at the same time to store the actual response identification information received subsequently.
- the actual response identification information may specifically be multiple actual response IDs.
- Step 1032 when it is determined that the actual response identification information read is the same as one of the expected response identification information, the control count value is increased by one. That is, it is verified whether the actual response ID read is one of the expectedEvent in the expected event queue, if it is the same, the count value count is increased by 1, if it is not the same, the next step 1033 is directly performed.
- Step 1033 Determine whether the value of the count value is the same as the number of expected response identification information in the expected event queue.
- the prompt information generated in step 103 includes:
- Step 1034 When it is determined that the actual response identification information is consistent with the expected response identification information, a prompt message of successful parameter setting is generated. That is, if the count value count is the same as the number of expected response IDs in the expected event queue expectedEvent, it can be considered that it is determined that the actual response identification information is consistent with the expected response identification information, the verification thread is ended, and the parameter setting success prompt message is generated. Specifically, the prompt message of generating parameter setting success can be displayed through the display interface. As shown in Figure 4A, the display interface can include an image display area, setting parameter 1 button, setting parameter 2 button, setting parameter 3 button, and setting the actual parameter corresponding to parameter 1. When the response identification information is consistent with the expected response identification information, the prompt message "Set parameter 1 successful" can be displayed at the bottom of the display interface.
- Step 1035 When it is determined that the actual response identification information is inconsistent with the expected response identification information, a parameter setting failure prompt message is generated, and a failure reason prompt message is generated. Specifically, if the count value count is different from the number of expected response IDs in the expectedEvent queue, return to step 1031, and perform statistical judgment again. Specifically, before returning to step 1031 each time, you can also make a judgment on whether the verification thread has timed out. If the verification thread times out, it means that the expected N actual response IDs are not received within the specified time, and then false is returned to end the verification thread. Generate the prompt message for parameter setting failure and the reason for the failure; if there is no timeout, enter the flow of statistical judgment for this time.
- the display interface can be used to display the prompt of generating parameter setting failure and sending the prompt message again.
- the display interface can include an image display area, setting parameter 1 button, setting parameter 2 button, and setting parameter 3 button. 1
- the prompt message "Information Prompt: Setting Parameter 1 Failure Prompt, which has been sent n times, but no response has been received” can be displayed at the bottom of the display interface, and through pop-up The frame of the display shows the prompt message "Setting parameter 1 failed, please check the device and reset it!.
- the friendly interface design allows users to know the next step. Operation, at the same time, also takes into account the real-time nature of the entire communication control system.
- step 102 receiving the actual response identification information sent by the flat panel detector when determining that the control command is the first type of control command includes:
- Step 1021 when it is determined that the sent control command is the first type of control command, enter the receiving thread.
- the mutex variable 1 can also be specifically locked first to prevent the verification thread and the receiving thread from running at the same time.
- Step 1022 Cycle multiple times to determine whether the buffer area is empty. That is, read the receiving buffer and determine whether the buffer is empty. If it is empty, it means that no response has been received currently, and the reception is ended, mutex variable 1 is unlocked, and the next reception is waited.
- Step 1023 When it is determined that the buffer area is not empty in the current judgment process, extract a feedback control command sent by the buffer flat panel detector, where the feedback control command includes the corresponding flag bit and the actual response identification information. That is, if the buffer area is not empty, a response is received and a piece of response data is extracted.
- Step 1024 When it is determined that the corresponding flag bit in the feedback control command is the first type flag bit, the actual response identification information in the feedback control command is added to the received event queue. That is, read the flag data of the first byte of the feedback control command. If the flag is 0, it means that it is not response data. Then return to step 1022 to determine whether the buffer is empty, and continue to extract the next data; if the flag is 1. Explain that the data is a response, then add the response ID in the data to the receive event queue receiveEvent, and continue to perform step 1022, determine whether the buffer is empty, and loop until all the data in the receive buffer is extracted. End this receiving thread and unlock the mutex variable 1.
- step 102 receiving the actual response identification information sent by the flat panel detector when the control command is determined to be the first type of control command, further includes:
- Step 1025 When it is determined that the buffer area is empty in the current judgment process, the receiving thread is ended. That is, if the buffer area is empty in the current judgment process, and the receiving thread is ended, step 103 can be executed to enter the relevant steps of the verification thread.
- control method also includes:
- Step 104 Determine whether the number of actual response identification information received is not less than the number of expected response identification information. That is, when it is determined that the number of actual response IDs is not less than the number of expected response IDs, the verification thread is performed, which can improve the verification success rate and save the execution time of the overall control method.
- an embodiment of the present invention also provides a control method of a flat panel detector. As shown in FIG. 6, the control method includes:
- Step 201 Receive the control command sent by the upper computer.
- Step 202 When it is determined that the control command is the first type of control command, send a feedback control command including the actual response identification information to the upper computer.
- the upper computer after receiving the control command sent by the upper computer, if it is determined that the control command is the first type of control command, the upper computer will feed back the feedback control including the actual response identification information Command, that is, to give feedback to the more important control commands sent by the host computer, so that the host computer knows whether the flat panel detector receives the control command, and whether the received control command is the control command sent by it, and then the correct Perform subsequent operations.
- step 202 when it is determined that the control command is the first type of control command, sending the feedback control command including the actual response identification information to the upper computer includes:
- Step 2021 Determine whether the control command includes the first-type flag bit, and if so, determine that the control command is the first-type control command. That is, specifically, for the flat panel detector side, it can be determined whether it is the first-type control command by whether the control command includes the first-type flag bit.
- Step 2022 Generate a feedback control command including the corresponding flag bit and actual response identification information.
- Step 2023 Send the feedback control command to the upper computer.
- an embodiment of the present invention provides an upper computer, including: a first processor component, and the processing component is configured to execute the control method provided in the embodiment of the present invention.
- an embodiment of the present invention also provides a flat panel detector, including: a second processing component, the processing component is used to execute the control method provided in the embodiment of the present invention.
- an embodiment of the present invention also provides a medical system, which includes the host computer as provided in the embodiment of the present invention, and includes the flat panel detector as provided in the embodiment of the present invention.
- FIG. 7 is a schematic flow chart of the overall control method provided by an embodiment of the present invention, including:
- Step S101 packetizing the control command data according to the flat panel detector communication protocol
- Step S102 It is then judged whether the control command is an important control command that needs to be answered. If it is a control command that needs to be answered, step S103 is executed, otherwise, step S104 is executed.
- Step S103 Set the flag of the control command to 1.
- Step S104 Set the flag of the control command to 0. Furthermore, after the flat panel detector receives the control command, it determines whether it needs to respond by judging the flag bit.
- Step S105 Send a control command data packet composed of flag bit + command body data.
- Step S106 It is judged whether the control command needs to be answered. If a response is required, step S107 is executed, otherwise, step S111 is executed.
- Step S107 Suspend the sending thread and enter the receiving thread.
- Step S108 It is judged whether the flat panel detector has received the expected number of responses. If yes, execute step S109, if not, execute step S112.
- Step S109 Suspend the sending thread and enter the verification thread.
- Step S110 It is judged whether the actual response ID received is the same as the expected response ID. If yes, go to step S111, otherwise, go to step S112.
- Step S111 Return true, and display a prompt message of parameter setting success on the user interface.
- Step S112 return false (false), and set the failure prompt information and the failure reason prompt information on the user interface as parameters. That is, if the flat panel detector is indeed working in the state required by the host computer, it returns true; otherwise, it returns false. In this way, a complete set of important parameters of the flat panel detector is completed by sending commands, receiving feedback, and verifying responses to form a closed-loop control, and through the interface design, users can understand the current status of the detector.
- FIG 8 is a schematic flow diagram of a control method based on sending threads, including:
- Step S201 Create expectedEvent and receivedEvent queues, where the expectedEvent queue is used to store the expected response ID of the current control command, and the receivedEvent queue is used to store all the response IDs received by the receiving thread. That is, the upper computer can complete the initialization work before sending the flat panel detector control command.
- step S202 the command data to be sent is packaged according to the communication protocol.
- Step S203 Add the N expected response IDs of the flat panel detector to the command in order after adding them to the expectedEvent queue.
- Step S204 Clear the receiveEvent queue.
- Step S205 Send a control command including flag bit + command body data to the flat panel detector.
- Step S206 Determine whether the control command needs to be answered. If yes, execute step S207, if not, execute step S214.
- S207 Suspend the current thread, enter the receiving process, and record the number of entries try plus 1. That is, by recording the reception times try, and when the reception times try reaches the set reception times times, false is returned, and the failure prompt information and the failure reason prompt information are parameterized on the user interface to avoid the process from entering an endless loop.
- N is specifically the number of expected response IDs.
- Step S210 It is judged that the received actual response ID ⁇ N, if yes, step S211 is executed, and if not, step S212 is executed.
- Step S211 return false.
- Step S212 Start the verification thread S212.
- Step S213 It is determined whether the verification thread has timed out, if yes, step S211 is executed, and if not, step S214 is executed.
- Step S214 return true.
- the number of receptions try is increased by 1.
- the receiving thread reads the response data (feedback control command) or waits for timeout, resume the sending thread, repeat this many times until it is received If the number of actual response IDs reaches the expected N, or the number of reception try exceeds the preset number of receptions, the loop is ended and false is returned.
- FIG. 9 is a schematic flow diagram of a control method based on receiving threads, including:
- Step S301 Lock the mutex variable 1. That is, after entering the receiving thread, first lock the mutex variable 1 to prevent the verification thread and the receiving thread from running at the same time. After locking the mutex variable 1, the receiving thread will temporarily suspend, wait for the end of the verification, and then unlock the mutex variable 1. The receiving thread resumes.
- Step S302 Read the receiving buffer.
- Step S303 It is determined whether the buffer is empty, if it is, then step S308 is executed, and if not, step S304 is executed.
- Step S304 Extract a piece of data (feedback control command). That is, the buffer can specifically store the receiving event queue, and the receiving event queue can be placed with feedback control commands.
- Step S305 Read the flag data of the first byte in the piece of data (feedback control command).
- Step S306 It is determined whether the flag is 1, if it is, then step S307 is executed, and if not, step S303 is executed.
- Step S307 Add the response ID in the data to the receiveEvent queue, and continue to determine whether the buffer is empty. This loop continues until all the data in the receive buffer has been extracted.
- Step S308 End this reception.
- Step S309 Unlock the mutex variable 1.
- FIG. 10 is a schematic flow diagram of a control method based on verification threads, including:
- Step S401 Enter the verification thread.
- Step S403 It is judged whether the verification thread has timed out, if yes, step S403 is executed, and if no, step S413 is executed.
- Step S404 lock the mutex variable 1, which is to prevent the verification thread and the receiving thread from running at the same time. After the mutex variable 1 is locked, the receiving thread will be temporarily suspended. After the verification is over, the mutex will be unlocked. Variable 1, the receiving thread resumes.
- Step S405 Determine whether the received event queue receiveEvent is empty, if it is, go to step S414, if not, go to step S406, if it is empty, indicating that no response has been received currently, unlock mutex variable 1 and resume receiving The thread continues to receive data; if it is not empty, the response is received, and then the verification starts.
- Step S406 Take the first element (that is, the actual response ID in the feedback control command) from the receiveEvent queue.
- Step S407 Determine whether the actual response ID is one of the expectedEvent in the expected event queue. If yes, execute step S408, and add 1 to the count count; otherwise, the count remains unchanged; if not, execute step S409.
- Step S408 the count count is incremented by 1.
- Step S409 It is determined whether the count value is equal to the number N of expectedEvents in the expected event queue. If so, step S410 is executed, and if not, step S414 is executed.
- Step S410 Clear the expectedEvent queue.
- Step S411 Wake up the sending thread.
- Step S412 Unlock the mutex variable 1.
- Step S413 End the verification thread.
- Step S414 Unlock the mutex variable 1, enter the thread timeout judgment again, and repeat the above steps, and continue to judge the next data in the expectedEvent queue until the thread times out or all expected responses are received.
- the verification thread If the verification thread times out, it means that the expected N response IDs are not received within the specified time, then false is returned, a message box pops up to remind the user that the parameter setting failed, and the possible cause of the error is displayed in the status bar; if it is sent within the specified time The thread is awakened, indicating that all expected response IDs have been received, the sending ends, the verification thread is ended, true is returned, and the parameter setting success is displayed in the status bar below.
- the method for controlling the flat panel detector includes: responding to a user's operation instruction, generating and sending a control command to the flat panel detector; receiving the flat panel detector when determining that the control command is The actual response identification information sent in the first type of control command; verify the consistency between the actual response identification information and the pre-stored expected response identification information, and generate prompt information, that is, important commands can be set as the first type of control commands, in the upper position After the computer sends the more important control commands of the first type, the flat panel detector is required to provide corresponding feedback.
- the upper computer determines that the actual response identifier fed back by the flat panel detector is inconsistent with the expected response identifier information pre-stored in the host computer, it can report to the user Prompts are provided for the user to make corresponding adjustments to avoid misoperation.
- response and no response The control command without response is sent quickly, and it is not important for flat panel detectors.
- Parameter setting; for control commands that need to be answered, closed-loop control is formed by sending, receiving feedback and answering verification. It is used for important parameter setting of flat panel detectors to ensure the real-time and stability of equipment operation and reduce signal interference or detectors. Invalid exposure caused by mistakes, etc., to avoid the risk of exposure to the patient's misuse of radiation.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Medical Informatics (AREA)
- Public Health (AREA)
- General Health & Medical Sciences (AREA)
- Radiology & Medical Imaging (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- High Energy & Nuclear Physics (AREA)
- Optics & Photonics (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- Pathology (AREA)
- Biophysics (AREA)
- Veterinary Medicine (AREA)
- Epidemiology (AREA)
- Primary Health Care (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
Description
Claims (13)
- 一种平板探测器的控制方法,其特征在于,所述控制方法包括:响应于用户的操作指令,生成并向平板探测器发送的控制命令;接收所述平板探测器在确定所述控制命令为第一类控制命令时发送的实际应答标识信息;验证所述实际应答标识信息与预存的预期应答标识信息的一致性,生成提示信息。
- 如权利要求1所述的控制方法,其特征在于,在生成并向平板探测器发送的控制命令时,所述控制方法还包括:确定所述控制命令为所述第一类控制命令时,生成与所述控制命令对应的预期应答标识信息;将所述预期应答标识信息存储至期望事件队列。
- 如权利要求2所述的控制方法,其特征在于,所述确定所述控制命令为所述第一类控制命令,包括:判断所述控制命令是否包括第一类标志位,若是,则确定所述控制命令为所述第一类控制命令。
- 如权利要求1-3任一项所述的控制方法,其特征在于,所述验证所述实际应答标识信息与预存的预期应答标识信息的一致性,包括:从收到事件队列中依次读取所述实际应答标识信息,其中,所述收到事件队列用于存储所述平板探测器反馈的所述实际应答标识信息;确定读取到的所述实际应答标识信息与所述预期应答标识信息中的之一相同时,控制计数值加一;判断所述计数值的数值与所述期望事件队列中的所述预期应答标识信息的条数是否相同。
- 如权利要求4所述的控制方法,其特征在于,所述生成提示信息,包括:确定所述实际应答标识信息与所述预期应答标识信息一致时,生成参数设置成功提示信息;确定所述实际应答标识信息与所述预期应答标识信息不一致时,生成参数设置失败信息以及失败原因提示信息。
- 如权利要求1所述的控制方法,其特征在于,所述接收所述平板探测器在确定所述控制命令为第一类控制命令时发送的实际应答标识信息,包括:确定发送的所述控制命令为所述第一类控制命令时,进入接收线程;循环多次判断所述缓存区是否为空;确定当前判断过程中所述缓存区不为空时,提取所述缓冲区所述平板探测器发送的一条反馈控制命令,其中,所述反馈控制命令包括对应标志位以及所述实际应答标识信息;确定该条所述反馈控制命令中所述对应标志位为第一类标志位时,将该条所述反馈控制命令中所述实际应答标识信息添加到所述收到事件队列中。
- 如权利要求6所述的控制方法,其特征在于,所述接收所述平板探测器在确定所述控制命令为第一类控制命令时发送的实际应答标识信息,还包括:确定当前判断过程中所述缓存区为空时,结束所述接收线程。
- 如权利要求1所述的控制方法,其特征在于,在接收所述平板探测器在确定所述控制命令为第一类控制命令时发送的实际应答标识信息之后,以及在验证所述实际应答标识信息与预存的预期应答标识信息的一致性,生成提示信息之前,所述控制方法还包括:判断接收到的所述实际应答标识信息的数量是否不少于所述预期应答标识信息的数量。
- 一种平板探测器的控制方法,其特征在于,所述控制方法包括:接收上位机发送的控制命令;确定所述控制命令为第一类控制命令时,向所述上位机发送包括实际应答标识信息的反馈控制命令。
- 如权利要求9所述的控制方法,其特征在于,所述确定所述控制命令为第一类控制命令时,向所述上位机发送包括实际应答标识信息的反馈控制命令,包括:判断所述控制命令中是否包括第一类标志位,若是,确定所述控制命令为所述第一类控制命令;生成包括对应标志位和实际应答标识信息的反馈控制命令;将所述反馈控制命令发送给所述上位机。
- 一种上位机,其特征在于,包括:第一处理器部件,所述处理部件用于执行如权利要求1-8任一项所述的控制方法。
- 一种平板探测器,其特征在于,包括:第二处理部件,所述处理部件用于执行如权利要求9或10所述的控制方法。
- 一种医疗***,其特征在于,包括如权利要求11所述的上位机,以及包括如权利要求12所述的平板探测器。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/419,264 US20230070305A1 (en) | 2020-03-02 | 2020-12-29 | Method for controlling flat panel detector, and upper computer, flat panel detector and medical system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010134726.X | 2020-03-02 | ||
CN202010134726.XA CN111358483B (zh) | 2020-03-02 | 2020-03-02 | 平板探测器的控制方法、上位机、平板探测器及医疗*** |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021174981A1 true WO2021174981A1 (zh) | 2021-09-10 |
Family
ID=71198293
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/141001 WO2021174981A1 (zh) | 2020-03-02 | 2020-12-29 | 平板探测器的控制方法、上位机、平板探测器及医疗*** |
Country Status (3)
Country | Link |
---|---|
US (1) | US20230070305A1 (zh) |
CN (1) | CN111358483B (zh) |
WO (1) | WO2021174981A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115794691A (zh) * | 2023-01-06 | 2023-03-14 | 极限人工智能有限公司 | 一种串口通信方法、下位机及串口通信*** |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111358483B (zh) * | 2020-03-02 | 2023-08-25 | 京东方科技集团股份有限公司 | 平板探测器的控制方法、上位机、平板探测器及医疗*** |
CN117289324A (zh) * | 2022-06-16 | 2023-12-26 | 京东方科技集团股份有限公司 | 平板探测器的控制方法、控制装置及平板探测装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050020898A1 (en) * | 2003-07-10 | 2005-01-27 | Vosniak Kenneth J. | System and method for configuring a scanning procedure |
WO2012176645A1 (ja) * | 2011-06-24 | 2012-12-27 | 富士フイルム株式会社 | 放射線撮影装置およびその動作方法 |
CN106254040A (zh) * | 2015-06-15 | 2016-12-21 | 中兴通讯股份有限公司 | 命令的应答处理方法及装置 |
CN106308828A (zh) * | 2015-07-01 | 2017-01-11 | 上海奕瑞光电子科技有限公司 | 数字图像探测装置及平板探测器无线外触发方法 |
CN109602432A (zh) * | 2018-12-29 | 2019-04-12 | 江苏瑞尔医疗科技有限公司 | 一种集成的x射线曝光采图控制装置及其方法 |
CN111358483A (zh) * | 2020-03-02 | 2020-07-03 | 京东方科技集团股份有限公司 | 平板探测器的控制方法、上位机、平板探测器及医疗*** |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636582B2 (en) * | 2001-11-08 | 2003-10-21 | Ge Medical Systems Global Technology Co., Llc | Multiple energy x-ray imaging techniques |
EP1624620B1 (en) * | 2004-08-05 | 2010-05-05 | Robert Bosch Gmbh | FlexRay communication controller |
CN1752881A (zh) * | 2004-09-21 | 2006-03-29 | 新医科技股份有限公司 | 大面积数字x光平板探测器的温度反馈控制装置及方法 |
JP4891096B2 (ja) * | 2006-01-30 | 2012-03-07 | キヤノン株式会社 | 放射線撮像装置 |
JP5071016B2 (ja) * | 2006-10-23 | 2012-11-14 | 富士通株式会社 | Rfidタグの応答制御方法、rfidシステム、rfidタグ、応答制御情報生成プログラム及び応答制御プログラム |
US8243883B2 (en) * | 2010-05-07 | 2012-08-14 | General Electric Company | Wireless X-ray detector operation coordination system and method |
AU2010360735B2 (en) * | 2010-09-13 | 2016-02-18 | Rmit University | Brachytherapy dose verification apparatus, system and method |
CN102681924A (zh) * | 2011-04-25 | 2012-09-19 | 中国电子科技集团公司第三十八研究所 | 软硬件协同验证平台 |
US20130046594A1 (en) * | 2011-06-04 | 2013-02-21 | Box Office Live Television, LLC | Interactive advertising displays |
US20160132122A1 (en) * | 2013-05-29 | 2016-05-12 | Brainlab Ag | Gesture Feedback for Non-Sterile Medical Displays |
WO2016106505A1 (zh) * | 2014-12-29 | 2016-07-07 | 深圳迈瑞生物医疗电子股份有限公司 | 超声诊断仪及其遥控方法和便携遥控终端 |
JP6632230B2 (ja) * | 2015-06-30 | 2020-01-22 | キヤノン株式会社 | 画像処理装置および画像処理方法、画像処理プログラム |
CN107664337B (zh) * | 2017-08-21 | 2019-11-19 | 珠海格力电器股份有限公司 | 空调***、空调机组设备的控制方法和装置 |
CN108056784A (zh) * | 2017-12-01 | 2018-05-22 | 上海奕瑞光电子科技股份有限公司 | 一种数字x射线放射***、自动曝光控制方法及*** |
CN109223014A (zh) * | 2018-08-31 | 2019-01-18 | 上海联影医疗科技有限公司 | 获取医学图像的方法、探测器设备、医学设备及存储介质 |
CN109480880B (zh) * | 2018-12-29 | 2023-12-12 | 江苏瑞尔医疗科技有限公司 | 一种硬件同步曝光采图装置及其方法 |
CN110166321A (zh) * | 2019-05-28 | 2019-08-23 | 上海联影医疗科技有限公司 | 医学图像获取方法、装置、设备和介质 |
CN110545222A (zh) * | 2019-08-23 | 2019-12-06 | 珠海格力电器股份有限公司 | 一种控制设备的方法、装置、计算设备及存储介质 |
-
2020
- 2020-03-02 CN CN202010134726.XA patent/CN111358483B/zh active Active
- 2020-12-29 US US17/419,264 patent/US20230070305A1/en active Pending
- 2020-12-29 WO PCT/CN2020/141001 patent/WO2021174981A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050020898A1 (en) * | 2003-07-10 | 2005-01-27 | Vosniak Kenneth J. | System and method for configuring a scanning procedure |
WO2012176645A1 (ja) * | 2011-06-24 | 2012-12-27 | 富士フイルム株式会社 | 放射線撮影装置およびその動作方法 |
CN106254040A (zh) * | 2015-06-15 | 2016-12-21 | 中兴通讯股份有限公司 | 命令的应答处理方法及装置 |
CN106308828A (zh) * | 2015-07-01 | 2017-01-11 | 上海奕瑞光电子科技有限公司 | 数字图像探测装置及平板探测器无线外触发方法 |
CN109602432A (zh) * | 2018-12-29 | 2019-04-12 | 江苏瑞尔医疗科技有限公司 | 一种集成的x射线曝光采图控制装置及其方法 |
CN111358483A (zh) * | 2020-03-02 | 2020-07-03 | 京东方科技集团股份有限公司 | 平板探测器的控制方法、上位机、平板探测器及医疗*** |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115794691A (zh) * | 2023-01-06 | 2023-03-14 | 极限人工智能有限公司 | 一种串口通信方法、下位机及串口通信*** |
CN115794691B (zh) * | 2023-01-06 | 2023-06-20 | 极限人工智能有限公司 | 一种串口通信方法、下位机及串口通信*** |
Also Published As
Publication number | Publication date |
---|---|
CN111358483A (zh) | 2020-07-03 |
US20230070305A1 (en) | 2023-03-09 |
CN111358483B (zh) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021174981A1 (zh) | 平板探测器的控制方法、上位机、平板探测器及医疗*** | |
US10929111B2 (en) | Pixel perfect real-time web application framework | |
US11614926B2 (en) | Consensus mechanism deployment method and apparatus | |
US6658490B1 (en) | Method and system for multi-threaded processing | |
US20180060220A1 (en) | Fixture plugin for product automation | |
US7941703B2 (en) | Capturing machine state of unstable java program | |
CN108011909B (zh) | 通信方法和***、电子设备和计算机集群 | |
US8938680B2 (en) | Methods and apparatus for E-mail-based management of virtualized environments | |
EP3436993B1 (en) | An imaging system and a communication platform for communication among a plurality of nodes of the imaging system | |
JPH07101410B2 (ja) | データ処理ネットワークにおいて逐次化手段の試験のため命令流の実行を同期させる方法 | |
US9130923B2 (en) | Credential provider that encapsulates other credential providers | |
WO2017128627A1 (zh) | 解锁方法、终端设备及服务器 | |
CA2500597A1 (en) | Authenticating resource requests in a computer system | |
WO2024017146A1 (zh) | 数据拷贝方法、装置、计算机可读存储介质及电子设备 | |
CN106484592B (zh) | 一种异常检测方法和装置 | |
CN112948040A (zh) | 一种影像显示方法和装置及设备 | |
WO2020000727A1 (zh) | 服务器、业务数据校验的方法及存储介质 | |
CN111897646A (zh) | 异步分布式锁实现方法及其装置、存储介质以及电子设备 | |
US9733994B2 (en) | Method and system for communicating information between a mobile device and an enterprise system | |
WO2023202214A1 (zh) | 一种通信方法、装置、***、终端及服务器 | |
CN111227860A (zh) | 介入式计算机断层扫描成像方法、装置、存储介质和*** | |
CN108536523B (zh) | 浏览器内ActiveX嵌套Flash正常交互的方法 | |
CN110164529B (zh) | 一种信息处理方法、装置、电子设备及存储介质 | |
Hooman et al. | Experiences with a compositional model checker in the healthcare domain | |
CN115484303A (zh) | 工厂微服务***、方法、设备和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20922626 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20922626 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05/04/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20922626 Country of ref document: EP Kind code of ref document: A1 |