Communication method and device for endoscope
The endoscope host detects the status of the Type-C interface to determine the type of external accessories and switch modes, solving the problem that traditional endoscopes cannot comprehensively perceive environmental parameters, and realizing a multifunctional detection and efficient and portable endoscope system.
Patent Information
- Application Number
- CN202510836682.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-21
- Publication Date
- 2025-09-12
AI Technical Summary
Traditional industrial endoscopes can only capture images and cannot achieve comprehensive perception of key environmental parameters such as temperature, gas, and dust. In addition, system integration is complex, and on-site deployment and data viewing are inefficient.
The endoscope host detects external accessories through the Type-C interface, determines their type, and switches modes according to the type. It supports measurements such as thermal imaging, temperature, humidity, carbon monoxide, carbon dioxide, and dust, achieving multi-purpose use of one device, easy to carry and suitable for multiple scenarios.
The endoscope can realize the comprehensive perception of multiple environmental parameters during the detection process, improve the detection efficiency and portability, and simplify the equipment integration.
Smart Images

Figure CN120640104A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to an endoscope, and more particularly to a communication method and device for an endoscope. Background Art
[0002] In traditional industrial inspection, industrial endoscopes are widely used for visual inspection of enclosed spaces such as pipelines and equipment cavities. However, their functionality is often limited to image and video capture, failing to provide comprehensive perception of key environmental parameters such as temperature, gas, and dust. Furthermore, while industrial sensors can accurately detect specific physical quantities, most products only collect a single type of data, resulting in complex system integration and inefficient on-site deployment and data review. Simultaneously collecting both image data and environmental parameters may require two or more sets of equipment, making them difficult to port. Summary of the Invention
[0003] The present application provides a communication method and device for an endoscope.
[0004] According to a first aspect of the present application, the present application provides a communication method for an endoscope, comprising: When the endoscope host displays the lens image, it detects the status of the I / O port and determines whether an external accessory is inserted according to the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface; When it is determined that an external accessory is inserted, the endoscope host receives data sent by the external accessory and determines the type of the external accessory according to the received data; The endoscope host switches modes according to the type of the external accessory.
[0005] In the method involved in this application, when the endoscope host displays the lens image, the status of the I / O port is detected, and whether an external accessory is inserted is determined according to the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface, including: When the endoscope host is powered on and the display screen displays the lens image normally, the electrical level of the pin on the Type-C interface is detected; If the level is pulled low, it is determined that the external accessory is inserted into the Type-C interface.
[0006] In the method involved in this application, the endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, including: If the endoscope host does not receive the data, the external accessory is a thermal imaging accessory; If the endoscope host receives the data, the type of the external accessory is determined based on the data format of the data, wherein the fields of the data format include type, status, data and check value, and the types of the external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors and dust sensors.
[0007] In the method involved in this application, the endoscope host switches the mode according to the type of the external accessory, including: If the external accessory is the thermal imaging accessory, switching to thermal imaging mode; If the external accessory is a temperature sensor, a humidity sensor, a thermocouple sensor, a carbon monoxide sensor, a carbon dioxide sensor or a dust sensor, after receiving the data sent by the external accessory, a numerical value and a user interface corresponding to the data are displayed.
[0008] According to a second aspect of the present application, the present application provides a communication method for an endoscope, comprising: Insert the external accessories into the Type-C port of the endoscope host; The endoscope host detects the status of an I / O port, where the I / O port includes pins on a Type-C interface, and determines whether an external accessory is inserted based on the status of the pins on the Type-C interface; The external accessory sends data to the endoscope host; The endoscope host receives data sent by the external accessory and determines the type of the external accessory according to the received data; The endoscope host switches modes according to the type of the external accessory.
[0009] In the method involved in this application, the endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, including: If the endoscope host does not receive the data, the external accessory is a thermal imaging accessory; If the endoscope host receives the data, the type of the external accessory is determined based on the data format of the data, wherein the fields of the data format include type, status, data and check value, and the types of the external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors and dust sensors.
[0010] In the method involved in this application, the endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, and further includes: When the external accessory is a thermal imaging accessory, the data collected by the thermal imaging accessory includes grayscale image data and temperature data, and the grayscale image data and the temperature data are stored in an array; The resolution of the grayscale image data is filled with pseudo color and then scaled to convert into a thermal imaging image; The temperature data are arranged to find the temperature variation range, wherein the temperature variation range includes the maximum value, the minimum value and the center point temperature; The thermal imaging accessory ultimately displays the thermal imaging image and the temperature variation range; In the method involved in this application, the endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, and further includes: When the type of the external accessory is a carbon dioxide sensor, the carbon dioxide sensor sends collected carbon dioxide data to the endoscope host; The endoscope host determines that the external accessory is the carbon dioxide sensor according to the sensor type field in the received carbon dioxide data, displays a carbon dioxide sensor user interface corresponding to the carbon dioxide sensor, and displays the concentration of carbon dioxide on the carbon dioxide sensor user interface.
[0011] According to the third aspect of the present application, the present application provides a communication device for an endoscope, comprising: a detection module for detecting the status of an I / O port when the endoscope host displays a lens image, and judging whether an external accessory is inserted according to the status of the I / O port, wherein the I / O port includes pins on a Type-C interface; a judgment module for receiving data sent by the external accessory when an external accessory is inserted, and judging the type of the external accessory according to the received data; and a switching module for switching modes according to the type of the external accessory.
[0012] According to a fourth aspect of the present application, the present application provides a communication device for an endoscope, comprising: a memory for storing a program, and a processor for executing the program stored in the memory to implement the method as described above.
[0013] Due to the adoption of the above technical solution, the beneficial effects of this application are: The embodiment of the present application provides a communication method and device for an endoscope, including: when the endoscope host displays the lens image, detecting the status of the I / O port, judging whether an external accessory is inserted according to the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface; when it is judged that an external accessory is inserted, the endoscope host receives the data sent by the external accessory, and judges the type of the external accessory according to the received data; the endoscope host switches the mode according to the type of the external accessory. Since the embodiment of the present application adds external accessories on the basis of traditional industrial endoscopes and adopts the Type-C interface to be hot-swappable at any time, while ensuring the functions of the endoscope host, it can also perform thermal imaging, temperature, humidity, carbon monoxide, carbon dioxide and dust measurements according to different external accessories, realizing multi-purpose use of one device and optional external accessories. The device is easy to carry, suitable for field operations in multiple scenarios, and can improve detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flowchart of a method provided in an embodiment of the present application in one embodiment; Figure 2 for Figure 1 A flow chart of the sub-steps of the method shown in one embodiment; Figure 3 for Figure 1 A flow chart of the sub-steps of the method shown in another embodiment; Figure 4 for Figure 1 A flow chart of the sub-steps of the method shown in yet another embodiment; Figure 5 A flowchart of another embodiment of the method provided in the embodiment of the present application; Figure 6 for Figure 5 A flow chart of the sub-steps of the method shown in one embodiment; Figure 7 for Figure 5 A flow chart of the sub-steps of the method shown in another embodiment; Figure 8 A schematic diagram of a program module of an apparatus provided in an embodiment of the present application in one embodiment; Figure 9 A schematic diagram of the Type-C interface pin configuration provided in an embodiment of the present application; Figure 10 Schematic diagram of the hardware connection between the endoscope host and external accessories provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] The present invention will be further described in detail below by means of specific embodiments in conjunction with the accompanying drawings. Similar elements in different embodiments are numbered with associated similar elements. In the following embodiments, many detailed descriptions are provided to enable the present application to be better understood. However, those skilled in the art will readily appreciate that some of the features may be omitted in different circumstances, or may be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification. This is to avoid the core portion of the present application being overwhelmed by excessive descriptions, and for those skilled in the art, it is not necessary to describe these related operations in detail. They will fully understand the related operations based on the description in the specification and the general technical knowledge in the art.
[0016] In addition, the features, operations, or characteristics described in the specification may be combined in any appropriate manner to form various embodiments. Furthermore, the steps or actions in the method description may be reordered or adjusted in a manner readily apparent to those skilled in the art. Therefore, the various sequences in the specification and drawings are provided solely for the purpose of clearly describing a particular embodiment and are not intended to be mandatory, unless otherwise specified.
[0017] The serial numbers assigned to the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.
[0018] In addition, the technical features and solutions described herein may be combined in any suitable manner in one or more embodiments. It will be readily apparent to those skilled in the art that the order of steps or operations in the methods described in the embodiments herein may be varied. Therefore, any order in the drawings and embodiments is for illustrative purposes only and does not imply a requirement to follow a specific order unless a specific order is explicitly stated.
[0019] like Figure 1 As shown, the communication method for an endoscope provided in an embodiment of the present application, in one implementation manner, comprises the following steps: Step 101: When the endoscope host displays the lens image, the status of the I / O port is detected, and whether an external accessory is inserted is determined according to the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface.
[0020] In one embodiment, the pins on the Type-C interface may specifically include pins A11 and B11 on the Type-C interface. Figure 9 This is a diagram of the Type-C interface pin configuration. Figure 10This diagram shows the hardware connection between the endoscope host and external accessories. The endoscope host is equipped with a female Type-C port, and the external accessories are equipped with a male Type-C port. The female Type-C port and the male Type-C port work together to connect the endoscope host and external accessories.
[0021] In one embodiment, the female Type-C interface is a 24-pin connector, wherein the I2C communication function is implemented through the A2 and A3 pins of the connector, wherein the A2 pin is used to transmit the data signal (SDA), and the A3 pin is used to transmit the clock signal (SCL) to realize I2C communication between the endoscope host and the external accessories.
[0022] Insertion detection is implemented via pin A11 of the female Type-C connector. When an external accessory is plugged into the endoscope, the male Type-C connector makes contact with the female Type-C connector, causing pin A11 of the female Type-C connector to go low. The endoscope detects this low state and determines that an external accessory has been inserted.
[0023] The power supply function is realized through the A1, A4, A9, A12, B1, B4, B9, and B12 pins of the female Type-C port. The endoscope host provides power to external accessories through these pins, providing energy support for the normal operation of external accessories.
[0024] First, ensure that the endoscope host is powered on, the display screen displays the lens image normally, and you can take photos or videos, but not in the settings interface, otherwise it will not recognize external accessories. The I / O port can include a Type-C interface, and the Type-C interface includes pins A11 and B11. The endoscope host periodically detects the status of the I / O port, specifically the status of pins A11 and B11 on the Type-C interface, to determine whether there are external accessories inserted through the Type-C interface.
[0025] Step 102: When it is determined that an external accessory is inserted, the endoscope host receives data sent by the external accessory and determines the type of the external accessory based on the received data.
[0026] Step 103: The endoscope host switches modes according to the type of the external accessory.
[0027] The endoscope switches modes based on the type of external accessory. If the external accessory is a thermal imaging accessory, the endoscope stops detecting the lens and switches to thermal imaging mode. If it is a temperature sensor, humidity sensor, thermocouple sensor, carbon monoxide sensor, carbon dioxide sensor, dust sensor, or other sensor, it waits for data transmission and displays the corresponding value and user interface.
[0028] like Figure 2 As shown, in the communication method for an endoscope provided in an embodiment of the present application, step 101 may specifically include the following steps: Step 1011: When the endoscope host is powered on and the display screen displays the lens image normally, the voltage level of the pins on the Type-C interface is detected. In one embodiment, the voltage levels of the pins A11 and B11 on the Type-C interface can be detected.
[0029] Step 1012: If the level is low, it is determined that an external accessory is inserted into the Type-C interface.
[0030] In one embodiment, if the levels of the A11 and B11 pins on the Type-C interface are pulled low, it is determined that an external accessory is inserted into the Type-C interface.
[0031] Once the endoscope host detects that the level of the I / O port is pulled low, that is, the level of the A11 and B11 pins on the Type-C interface is pulled low, it determines that an external accessory is inserted, turns on the power supply of the Type-C interface, and waits for data sent by the external accessory.
[0032] like Figure 3 As shown, in the method provided in the embodiment of the present application, step 102 may specifically include the following steps: Step 1021: The endoscope host does not receive data, and the external accessory is a thermal imaging accessory; Step 1022: If the endoscope host receives the data, the type of the external accessory is determined based on the data format, where the fields of the data format include type, status, data and check value, and the types of external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors and dust sensors.
[0033] If the Type-C interface detects that a device is inserted but the endoscope host does not read any data, it can be determined that the external accessory is a thermal imaging accessory. If the endoscope host reads data, the external accessory is an accessory other than the thermal imaging accessory. The type of the external accessory can be determined by the first byte of the read data, such as a temperature sensor, humidity sensor, thermocouple sensor, carbon monoxide sensor, carbon dioxide sensor, dust sensor, or other sensor.
[0034] like Figure 4 As shown, in the method provided in the embodiment of the present application, step 103 may specifically include the following steps: Step 1031: If the external accessory is a thermal imaging accessory, switch to thermal imaging mode and display the thermal imaging image and temperature data; Step 1032: If the external accessory is a temperature sensor, a humidity sensor, a thermocouple sensor, a carbon monoxide sensor, a carbon dioxide sensor, or a dust sensor, after receiving data sent by the external accessory, display the numerical value and user interface corresponding to the data.
[0035] like Figure 5 As shown, the communication method for an endoscope provided in an embodiment of the present application, in one implementation manner, comprises the following steps: Step 501: Insert the external accessory into the Type-C port of the endoscope host.
[0036] External accessories can include thermal imaging accessories, temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors, and dust sensors.
[0037] Step 502: The endoscope host detects the status of the I / O port, which includes the pins on the Type-C interface. The host determines whether an external accessory is inserted based on the status of the pins on the Type-C interface.
[0038] The endoscope host periodically checks the status of the I / O port to determine whether an external accessory is plugged in via the Type-C interface. Specifically, it detects the voltage level of the A11 and B11 pins on the Type-C interface. If the voltage level of the A11 and B11 pins on the Type-C interface is pulled low, it is determined that an external accessory is plugged in the Type-C interface.
[0039] Step 503: The external accessory sends data to the endoscope host.
[0040] The external accessory MCU packages the data in a certain data format. The fields of the data format include sensor type, status, data and check value. That is, the data format can be sensor type + status + data + check value. The data is transmitted to the endoscope host through I2C.
[0041] Step 504: The endoscope host receives data sent by the external accessory and determines the type of the external accessory based on the received data.
[0042] The received data conditions include the endoscope host not receiving data sent by the external accessory and the endoscope host receiving data sent by the external accessory. If the endoscope host does not receive the data, the external accessory is a thermal imaging accessory. If the endoscope host receives the data, the type of the external accessory is determined based on the data format. The data format fields include type, status, data, and checksum. The types of external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors, and dust sensors. The types of external accessories may also include other required sensors.
[0043] Step 505: The endoscope host switches modes according to the type of the external accessory.
[0044] like Figure 6 As shown, in one embodiment, in the communication method for an endoscope provided in the embodiment of the present application, step 504 may further include the following steps: Step 601: When the external accessory is a thermal imaging accessory, the data collected by the thermal imaging accessory includes grayscale image data and temperature data, and the grayscale image data and temperature data are stored in an array.
[0045] After the thermal imaging accessory is inserted into the Type-C interface, the endoscope host detects that the level of the A11 and B11 pins on the Type-C interface is pulled low, and determines that an external accessory is inserted. The host receives the data sent by the external accessory. If the data cannot be received, the communication fails, and it is determined that the inserted external accessory is a thermal imaging accessory.
[0046] In one embodiment, the thermal imaging accessory can be initialized, and the I2C master can be initialized to read the data of the thermal imaging accessory with a resolution of 32*32. The data collected by the thermal imaging accessory is divided into grayscale image data and temperature data and stored in a 32*32 array.
[0047] Step 602: The grayscale image data is filled with pseudo color and then scaled to convert into a thermal imaging image.
[0048] In one embodiment, the grayscale image data resolution may be filled with pseudo color, and the resolution may be changed from 32*32 to 128*128, and then scaled to 480*480.
[0049] Step 603: The temperature data is arranged to find the temperature variation range, which includes the maximum temperature, the minimum temperature and the temperature of the center point.
[0050] In one embodiment, the temperature data are arranged to find the coordinates of the maximum and minimum values and the temperature of the center point (240*240).
[0051] Step 604: The thermal imaging accessory finally displays the thermal imaging image and the temperature variation range.
[0052] What is ultimately displayed on the thermal imaging screen is a thermal imaging image with a resolution of 480*480 and temperature data. The temperature data includes the temperature variation range, such as the maximum temperature, minimum temperature and the temperature of the center point.
[0053] like Figure 7 As shown, in another embodiment, in the communication method for an endoscope provided in the embodiment of the present application, step 504 may further include the following steps: Step 701: When the type of the external accessory is a carbon dioxide sensor, the carbon dioxide sensor sends collected carbon dioxide data to the endoscope host.
[0054] After the CO2 sensor is inserted into the Type-C interface, the endoscope host detects that the I / O port level is pulled low. If the level of pins A11 and B11 on the Type-C interface is detected to be low, it determines that an external accessory is inserted. The endoscope host receives the data sent by the CO2 sensor. If the endoscope host receives the data, the communication is successful.
[0055] Step 702: The endoscope host determines that the external accessory is a carbon dioxide sensor according to the sensor type field in the received carbon dioxide data, displays a carbon dioxide sensor user interface corresponding to the carbon dioxide sensor, and displays the carbon dioxide concentration on the carbon dioxide sensor user interface.
[0056] In one embodiment, the endoscope host reads the first byte of received data. If the value of this byte is 0x02, it determines that the inserted accessory is a CO2 sensor. In this case, the user interface corresponding to the CO2 sensor can be displayed. When the data collected by the CO2 sensor exceeds a first threshold, such as when the data collected by the CO2 sensor exceeds 1000, the CO2 sensor begins a first-stage alarm, and the buzzer sounds intermittently. If the data collected by the CO2 accessory exceeds a second threshold, such as when the data collected by the CO2 sensor exceeds 1500, the CO2 sensor begins a second-stage alarm, and the buzzer continues to sound.
[0057] In one embodiment, the format of a data packet sent by a carbon dioxide sensor may include: sensor type (1 byte) + status (1 byte) + sensor data (2 bytes) + padding data (4 bytes) + check value (1 byte).
[0058] The endoscope host receives the data packet sent by the carbon dioxide sensor through the I2C master, and can parse the sensor data through the third and fourth bytes. The calculation method is: buf[3] * 256 + buf[4], which is the final carbon dioxide data and is displayed on the screen.
[0059] like Figure 8 As shown, an embodiment of the present application provides a communication device for an endoscope, one implementation of which includes a detection module 810 , a judgment module 820 and a switching module 830 .
[0060] The detection module 810 is configured to detect the status of an I / O port when the endoscope main unit displays a lens image, and determine whether an external accessory is plugged in based on the status of the I / O port. The I / O port includes pins on a Type-C interface. In one embodiment, the pins on the Type-C interface may specifically include pins A11 and B11 on the Type-C interface.
[0061] The determination module 820 is configured to receive data sent by an external accessory when the external accessory is plugged in, and determine the type of the external accessory based on the received data; The switching module 830 is used to switch the mode according to the type of the external accessory.
[0062] Another implementation of the communication device for an endoscope provided in an embodiment of the present application includes a memory and a processor.
[0063] Memory, used to store programs; The processor is configured to execute the program stored in the memory to implement the communication method for the endoscope as described above.
[0064] An embodiment of the present application provides a computer-readable storage medium, which includes a program that can be executed by a processor to implement the communication method for an endoscope as described above.
[0065] Those skilled in the art will understand that all or part of the steps of the various methods in the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, disk or CD, etc.
[0066] The above content is a further detailed description of the present application in conjunction with specific implementation methods, and the specific implementation of the present application cannot be considered to be limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application.
Claims
1. A communication method for an endoscope, characterized in that: include: When the endoscope host displays the lens image, it detects the status of the I / O port and determines whether an external accessory is inserted according to the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface; When it is determined that an external accessory is inserted, the endoscope host receives data sent by the external accessory and determines the type of the external accessory according to the received data; The endoscope host switches modes according to the type of the external accessory.
2. The communication method for an endoscope according to claim 1, wherein: When the endoscope host displays the lens image, the state of the I / O port is detected, and whether an external accessory is inserted is determined according to the state of the I / O port, wherein the I / O port includes the pins on the Type-C interface, including: When the endoscope host is powered on and the display screen displays the lens image normally, the electrical level of the pin on the Type-C interface is detected; If the level is pulled low, it is determined that the external accessory is inserted into the Type-C interface.
3. The communication method for an endoscope according to claim 1, wherein: The endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, including: If the endoscope host does not receive the data, the external accessory is a thermal imaging accessory; If the endoscope host receives the data, the type of the external accessory is determined based on the data format of the data, wherein the fields of the data format include type, status, data and check value, and the types of the external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors and dust sensors.
4. The communication method for an endoscope according to claim 3, wherein: The endoscope host switches modes according to the type of the external accessory, including: If the external accessory is the thermal imaging accessory, switching to thermal imaging mode; If the external accessory is a temperature sensor, a humidity sensor, a thermocouple sensor, a carbon monoxide sensor, a carbon dioxide sensor or a dust sensor, after receiving the data sent by the external accessory, a numerical value and a user interface corresponding to the data are displayed.
5. A communication method for an endoscope, characterized in that: include: Insert the external accessories into the Type-C port of the endoscope host; The endoscope host detects the status of an I / O port, where the I / O port includes pins on a Type-C interface, and determines whether an external accessory is inserted based on the status of the pins on the Type-C interface; The external accessory sends data to the endoscope host; The endoscope host receives data sent by the external accessory and determines the type of the external accessory according to the received data; The endoscope host switches modes according to the type of the external accessory.
6. The communication method for an endoscope according to claim 5, wherein: The endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, including: If the endoscope host does not receive the data, the external accessory is a thermal imaging accessory; If the endoscope host receives the data, the type of the external accessory is determined based on the data format of the data, wherein the fields of the data format include type, status, data and check value, and the types of the external accessories include temperature sensors, humidity sensors, thermocouple sensors, carbon monoxide sensors, carbon dioxide sensors and dust sensors.
7. The communication method for an endoscope according to claim 6, wherein: The endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, further comprising: When the external accessory is a thermal imaging accessory, the data collected by the thermal imaging accessory includes grayscale image data and temperature data, and the grayscale image data and the temperature data are stored in an array; The resolution of the grayscale image data is filled with pseudo color and then scaled to convert into a thermal imaging image; The temperature data are arranged to find the temperature variation range, wherein the temperature variation range includes the maximum value, the minimum value and the center point temperature; The thermal imaging accessory ultimately displays the thermal imaging image and the temperature variation range.
8. The communication method for an endoscope according to claim 6, wherein: The endoscope host receives data sent by the external accessory, and determines the type of the external accessory according to the received data, further comprising: When the type of the external accessory is a carbon dioxide sensor, the carbon dioxide sensor sends collected carbon dioxide data to the endoscope host; The endoscope host determines that the external accessory is the carbon dioxide sensor according to the sensor type field in the received carbon dioxide data, displays a carbon dioxide sensor user interface corresponding to the carbon dioxide sensor, and displays the concentration of carbon dioxide on the carbon dioxide sensor user interface.
9. A communication device for an endoscope, characterized in that: include: A detection module, configured to detect the status of an I / O port when the endoscope host displays a lens image, and determine whether an external accessory is inserted based on the status of the I / O port, wherein the I / O port includes the pins on the Type-C interface; a determination module, configured to receive data sent by an external accessory when the external accessory is inserted, and determine the type of the external accessory based on the received data; The switching module is used to switch the mode according to the type of the external accessory.
10. A communication device for an endoscope, characterized in that: include: A memory for storing a program, and a processor for executing the program stored in the memory to implement the method according to any one of claims 1 to 4.