Device control method and apparatus, data acquisition system, device and medium
Patent Information
- Application Number
- CN202310118561.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2043-02-03
AI Technical Summary
[0004]由此可见,相关技术中的设备控制方法存在操作繁琐且容易受到外设设备的限制,无法满足一些特殊场景的需求
[0017]基于本公开上述实施例提供的设备控制方法和装置、数据采集系统、电子设备和存储介质,可以通过控制开关短接逻辑门电路端口的数据接收线和数据发送线,以此生成控制信号,并通过转接线将控制信号发送至第一终端设备的串口。当第一终端设备监控到串口接收到该控制信号时,可以执行软件程序中的预设指令,以实现对应的功能。无需网络连接和输出设备即可对第一终端设备上的软件程序进行控制,一方面克服了设备控制过程对网络和外设设备的依赖,使得本公开的设备控制方法可以适用于更多场景,另一方面,简化了控制方式,提高了操作的便捷性。
Smart Images

Figure CN115827516B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to computer technology, and in particular to a device control method and apparatus, a data acquisition system, equipment, and medium. Background Technology
[0002] Control methods for terminal devices typically include the following two types: The first is to directly send control commands to the terminal device using peripheral input devices (such as a mouse, keyboard, etc.); the second is to send control commands to the terminal device via a network using other terminal devices to instruct the terminal device to perform corresponding operations. For example, when a pulse camera acquires images, the acquisition action is usually controlled by a control program loaded on a host computer. Operators generally issue operation commands to the host computer using a mouse or keyboard, and the pulse camera's control program translates these commands into control commands for the pulse camera to control its acquisition action; alternatively, operators can input operation commands on other terminal devices using a mouse or keyboard and send them to the host computer via a network.
[0003] The first method requires a terminal device with a display, while the second requires an additional terminal device and a network connecting the two. Both methods also require input devices such as a mouse and keyboard. However, there are special scenarios in practice. For example, particle drop experiments need to be filmed in a sealed container where there is no display or input device and no network. In such cases, the two device control methods mentioned above cannot be applied. Furthermore, there are other special scenarios in practice, such as filming the trajectory of an aircraft in flight. During this process, the pilot does not have the time or energy to operate a keyboard or mouse to issue commands to the terminal device.
[0004] It is evident that the equipment control methods in related technologies are cumbersome to operate and easily limited by peripheral devices, failing to meet the needs of some special scenarios. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure is proposed. Embodiments of this disclosure provide a device control method and apparatus, a data acquisition system, a device, and a medium.
[0006] According to one aspect of the present disclosure, a device control method is provided, applied to a first terminal device pre-installed with software programs. The serial port of the first terminal device is connected to the serial communication port of an adapter cable, and the other end of the adapter cable is a logic gate circuit port. The data receiving line and data transmitting line of the logic gate circuit port are respectively connected to both ends of a control switch. When the control switch is closed, the data receiving line and the data transmitting line are short-circuited. The method includes: monitoring the communication status of the serial port; and executing a preset instruction in the software program in response to the serial port receiving a control signal. The logic gate circuit port generates a control signal in response to the short-circuit state of the data receiving line and the data transmitting line.
[0007] In some embodiments, the first terminal device and the second terminal device are communicatively connected, and the operation represented by the preset instruction is to send a control instruction to the second terminal device to control the second terminal device.
[0008] In some embodiments, the second terminal device is used to collect data, and the control instructions include data collection instructions to instruct the second terminal device to collect data.
[0009] In some embodiments, monitoring the communication status of the serial port includes: monitoring the communication status of the serial port using a software program or serial port monitoring software pre-installed on the first terminal device.
[0010] According to another aspect of the present disclosure, a device control apparatus is provided, applied to a first terminal device pre-installed with software programs. The serial port of the first terminal device is connected to the serial communication port of an adapter cable, and the other end of the adapter cable is a logic gate circuit port. The data receiving line and data transmitting line of the logic gate circuit port are respectively connected to both ends of a control switch. When the control switch is closed, the data receiving line and the data transmitting line are short-circuited. The apparatus includes: a monitoring unit configured to monitor the communication status of the serial port; and a response unit configured to execute a preset instruction in the software program in response to the serial port receiving a control signal; wherein, in response to the short-circuit state of the data receiving line and the data transmitting line, the logic gate circuit port generates a control signal.
[0011] According to another aspect of the present disclosure, a data acquisition system is provided, comprising: a data acquisition device, a terminal device, a control switch, and an adapter cable, wherein one end of the adapter cable is a logic gate circuit port, and the other end is a serial communication port, wherein the logic gate circuit port is connected to the control switch, and the serial communication port is connected to the serial port of the terminal device; the control switch is used to control the shorting and disconnection of the data receiving line and the data transmitting line in the logic gate circuit port; when the data receiving line and the data transmitting line are shorted, the logic gate circuit port generates a control signal and sends the control signal to the serial port of the terminal device through the adapter cable; the terminal device runs a control program for the data acquisition device; when the serial port receives the control signal, the terminal device executes a preset instruction in the control program, the preset instruction being to send an acquisition instruction to the data acquisition device to instruct the data acquisition device to acquire data.
[0012] In some embodiments, the data acquisition device and terminal equipment are housed in a closed enclosure.
[0013] In some embodiments, the system further includes a control device for supplying power to the data acquisition device and the terminal device, and a control switch is disposed on the control device.
[0014] In some embodiments, the data acquisition device includes any of the following: a pulse camera, a high-speed camera, a vision camera, an audio player, a video player, a navigation device, a fixed-position terminal, an entertainment unit, a smartphone, a communication device, a mobile device, a device in a motor vehicle, a vehicle-mounted camera, a mobile phone camera, an action or wearable camera, a traffic camera, an industrial inspection camera, a camera mounted on a flying object, a medical camera, a security camera, or a home appliance camera.
[0015] According to another aspect of the present disclosure, an electronic device is provided, including: a processor and a memory communicatively connected to the processor, and further including the device control device described in the above embodiments; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to control the device control device to implement the above method.
[0016] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed, cause a computer to perform the above-described method.
[0017] Based on the device control method and apparatus, data acquisition system, electronic device, and storage medium provided in the above embodiments of this disclosure, a control signal can be generated by shorting the data receiving line and data transmitting line of the logic gate circuit port through a control switch, and then sent to the serial port of the first terminal device through an adapter cable. When the first terminal device monitors that the serial port has received the control signal, it can execute preset instructions in the software program to achieve the corresponding function. The software program on the first terminal device can be controlled without a network connection or output device. On the one hand, this overcomes the dependence of the device control process on networks and peripheral devices, making the device control method of this disclosure applicable to more scenarios; on the other hand, it simplifies the control method and improves the ease of operation.
[0018] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0019] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0020] This disclosure will become clearer with reference to the accompanying drawings and the following detailed description, wherein: Figure 1 A schematic diagram of the system architecture to which the device control method of this disclosure applies; Figure 2 This is a schematic flowchart of an embodiment of the device control method disclosed herein. Figure 3 This is a schematic diagram showing the connection of the transfer cable, the first terminal device, and the control switch in one embodiment of the device control method of this disclosure. Figure 4 This is a schematic diagram of the architecture of one embodiment of the data acquisition system disclosed herein; Figure 5 This is a schematic diagram of the architecture of yet another embodiment of the data acquisition system disclosed herein; Figure 6 This is a schematic diagram of the structure of an embodiment of the device control apparatus of this disclosure; Figure 7 A structural diagram of an electronic device provided as an exemplary embodiment of this disclosure; Figure 8 This is a schematic diagram of the structure of a pulse camera provided in one embodiment of the present disclosure. Detailed Implementation
[0021] Example embodiments according to this disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments of this disclosure, and it should be understood that this disclosure is not limited to the example embodiments described herein.
[0022] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this disclosure.
[0023] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.
[0024] It should also be understood that in the embodiments disclosed herein, "a plurality of" may refer to two or more, and "at least one" may refer to one, two or more.
[0025] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.
[0026] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.
[0027] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0028] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0029] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0030] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0031] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0032] The embodiments of this disclosure can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, or servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems, etc.
[0033] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment. In a distributed cloud computing environment, tasks can be performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can reside on local or remote computing system storage media, including storage devices.
[0034] Figure 1 A schematic diagram of the system architecture to which the device control method of this disclosure applies is shown, such as... Figure 1 As shown, terminal device 110 and camera 120 are housed in a sealed container 130. Terminal device 110 contains the driver program for camera 120, used to control camera 120 to capture image data of falling particles. The serial port of terminal device 110 is connected to the Universal Serial Bus (USB) port of adapter cable 140. The other end of adapter cable 140 is a Transistor-Transistor Logic (TTL) port. Control switch 150 connects to the data receive line (Receive External Data, RXD) and data transmit line (Transmit Data, TXD) in the TTL port. When control switch 150 is closed, the data receive line and data transmit line are shorted, and the TTL port generates a "0000" signal, which is then sent to the serial port of terminal device 110 via adapter cable 140. When the driver program detects that the serial port has received a "0000" signal, it can send a start command to camera 120 to instruct camera 120 to acquire data. This enables control of the terminal device and camera via the terminal device's serial port.
[0035] The following is combined with Figure 2The device control method of this disclosure is illustrated by way of example. Figure 2 A flowchart of one embodiment of the device control method of this disclosure is shown, as follows: Figure 2 As shown, the process includes the following steps.
[0036] Step 210: Monitor the communication status of the serial port.
[0037] In this embodiment, the first terminal device is pre-installed with software programs, and the serial port of the first terminal device is connected to the serial communication port of the adapter cable. The other end of the adapter cable is a logic gate circuit port. The data receiving line and data sending line of the logic gate circuit port are respectively connected to the two ends of the control switch. When the control switch is closed, the data receiving line and the data sending line are short-circuited.
[0038] As an example, the serial port of the first terminal device can be a USB interface for receiving control signals, and the control switch can be a power switch. The first terminal device can monitor the communication status of the serial port in various ways, such as through pre-installed serial port monitoring software, which could be a serial port assistant tool; or, for example, the software program can integrate a serial port monitoring module to monitor the communication status of the serial port of the first terminal device.
[0039] Step 220: In response to the control signal received by the serial port, execute the preset instructions in the software program.
[0040] In this embodiment, when the serial port receives a control signal, the first terminal device can respond to the control signal and execute the preset instructions in the software program to achieve the corresponding operation.
[0041] In this embodiment, the preset instructions can include one or more of various types, each corresponding to a different function. For example, they can include data processing instructions, data transmission instructions, program control instructions, input-output instructions, and status management instructions, etc., and are typically preset according to requirements. The preset instructions can also employ various execution methods, such as single execution, continuous execution, and interval execution.
[0042] Typically, a logic gate circuit port includes a data receive line, a data transmit line, and a ground line. When the data receive line and the data transmit line are shorted, the logic gate circuit generates a "0000" signal. In this embodiment, the "0000" signal can be used as a control signal, which can be generated by shorting the data receive line and the data transmit line.
[0043] Figure 3 This is a schematic diagram showing the connection of the adapter cable, the first terminal device, and the control switch in this embodiment, as shown below. Figure 3As shown, the serial communication port (i.e., USB interface) of the adapter cable 310 is connected to the serial port of the first terminal device 320. The data transmission line 311 and data reception line 312 of the logic gate circuit port connected to the adapter cable 310 are respectively connected to the two ends of the control switch 330. When the control switch 330 is closed, the data transmission line 311 and the data reception line 312 are shorted, which generates a "0000" control signal and sends it to the serial port of the first terminal device 320. The control switch 330 controls the logic gate circuit port to generate control signals, which is simple to operate and has a high fault tolerance, making the device control method more flexible to be applied to various scenarios.
[0044] In a specific example, the first terminal device can serve as the host computer for the pulse camera, pre-installed with the pulse camera's control program. The host computer and the pulse camera are mounted on the test aircraft to capture the aircraft's flight trajectory. The host computer's serial port is connected to a control switch via an adapter cable to receive control signals. When the aircraft is in flight, the pilot simply presses the control switch to send a control signal to the host computer. The host computer responds to the control signal and sends a shooting command to the pulse camera using the control program, allowing the pulse camera to acquire images, making operation more convenient.
[0045] The device control method provided in this embodiment generates a control signal by shorting the data receiving and data transmitting lines of a logic gate circuit port using a control switch. This control signal is then transmitted to the serial port of a first terminal device via an adapter cable. When the first terminal device detects that the serial port has received the control signal, it can execute preset instructions in the software program to achieve the corresponding function. This method controls the software program on the first terminal device without requiring a network connection or output device. On the one hand, it overcomes the dependence of the device control process on networks and peripheral devices, making the device control method applicable to more scenarios. On the other hand, it simplifies the control method and improves operational convenience.
[0046] In some optional embodiments of this example, the first terminal device and the second terminal device are communicatively connected, and the operation represented by the preset instruction is to send a control instruction to the second terminal device to control the second terminal device.
[0047] As an example, when the control switch is closed, the serial port of the first terminal device receives a control signal. At this time, a control command can be sent to the second terminal device through a software program to control the second terminal device. For example, the first terminal device can send device control commands to the second terminal device, such as power-on or power-off commands, to turn the second terminal device on or off. Alternatively, the first terminal device can also send program execution commands to the second terminal device to control the second terminal device to run a corresponding program, such as data processing, data acquisition, or data transmission.
[0048] In this embodiment, a control signal can be sent from the serial port of the first terminal device to the second terminal device, thereby controlling the first terminal device to send control commands to the second terminal device, and thus controlling the second terminal device to perform the corresponding operation. This simplifies the device control operation, making the device control method of this disclosure applicable to some application scenarios with harsh conditions, such as inconvenient operation or closed environments without network.
[0049] In some optional implementations of this embodiment, the second terminal device is used to collect data, and the control instructions include data collection instructions to instruct the second terminal device to collect data.
[0050] In this embodiment, the second terminal device can be various types of sensors, such as image sensors, inertial sensors, sound sensors, distance sensors, etc., used to acquire various types of data.
[0051] Optionally, the data acquisition instruction can be a single acquisition instruction, used to instruct the second terminal device to acquire data once; it can also be a continuous acquisition instruction, used to instruct the second terminal device to acquire data continuously; or it can be an interval acquisition instruction, used to instruct the second terminal device to acquire data once at certain intervals.
[0052] The first terminal device can act as the host computer of the second terminal device. Through the control program, it can convert the operation instructions issued by the user into control instructions for the second terminal device and send the control instructions to the second terminal device to instruct the second terminal device to perform the corresponding operation. For example, when the serial port of the first terminal device receives a control signal, the control program running on it can send a data acquisition instruction to the second terminal device to instruct the second terminal device to acquire data.
[0053] In this embodiment, the control program on the first terminal device can be controlled through the serial port of the first terminal device, thereby controlling the second terminal device to collect data. This simplifies the data collection process and is applicable to demanding application scenarios such as inconvenient operation or closed environments without network access.
[0054] In some optional implementations of this embodiment, monitoring the communication status of the serial port of the first terminal device using a serial port monitoring program includes: monitoring the communication status of the serial port of the first terminal device using a software program or serial port monitoring software pre-installed on the first terminal device.
[0055] As an example, the software program may have a pre-integrated serial port monitoring module for monitoring the communication status of the first terminal device; or, the first terminal device may have pre-installed serial port monitoring software for monitoring the communication status of the first terminal device.
[0056] In this embodiment, software programs or serial port monitoring software can be selected to monitor the serial port of the first terminal device according to actual needs, which can further improve the flexibility of the device.
[0057] The following is for reference. Figure 4 , Figure 4 A schematic diagram of the architecture of an embodiment of the data acquisition system of this disclosure is shown, such as... Figure 4 As shown, the system includes: a data acquisition device 410, a terminal device 420, an adapter cable 430, and a control switch 440. One end of the adapter cable 430 is a logic gate circuit port, and the other end is a serial communication port. The logic gate circuit port is connected to the control switch 440, and the serial communication port is connected to the serial port of the terminal device 420. The control switch 440 is used to control the shorting and disconnection of the data receiving line and the data transmitting line in the logic gate circuit port. When the data receiving line and the data transmitting line are shorted, the logic gate circuit port generates a control signal and sends the control signal to the serial port through the adapter cable 430. The terminal device 420 runs the control program of the data acquisition device 410. When the serial port receives the control signal, the terminal device 420 executes the preset instruction in the control program. The preset instruction is to send an acquisition instruction to the data acquisition device 410 to instruct the data acquisition device 410 to acquire data.
[0058] In this embodiment, a control signal is generated by the logic gate circuit port of the control switch control adapter and sent to the serial port of the terminal device. The control program on the terminal device responds to the control signal and sends a data acquisition command to the data acquisition device to instruct the data acquisition device to acquire data. This realizes the control of the data acquisition process through the serial port without the need for a network or other peripheral devices. This simplifies the operation process and overcomes the dependence of the control process on the network or peripheral devices. It helps to expand the application scenarios of the data acquisition system disclosed in this invention, especially in some relatively harsh scenarios such as those without a network or with inconvenient operation.
[0059] The following is for reference. Figure 5 , Figure 5 A schematic diagram of the architecture of yet another embodiment of the data acquisition system of this disclosure is shown, such as... Figure 5 As shown, the data acquisition system includes a data acquisition device 510, a terminal device 520, a closed enclosure 530, and a control device 540. The data acquisition device 510 and the terminal device 520 are housed within the closed enclosure 530. The control device 540 supplies power to the data acquisition device 510 and the terminal device 520, and a control switch (not shown) is located on the control device 540.
[0060] In practice, some experimental scenarios require data acquisition devices and terminal equipment to be housed in a sealed enclosure to prevent interference with the experimental process. For example, particle drop experiments need to be conducted in a sealed container, using a high-speed pulse camera to film the particle drop process. Power is supplied to the terminal equipment, high-speed pulse camera, and other experimental equipment from a control device outside the sealed container. Since the data acquisition device and terminal equipment are located in a completely sealed environment, network signals are completely blocked, making it impossible to control the data acquisition device via the network. Furthermore, operators are not allowed to enter the sealed enclosure to control the data acquisition device through human-computer interaction, thus preventing commands from being issued to the terminal equipment via the network or other peripheral devices. In this embodiment, by modifying the logic gate circuit port, the data receiving and data transmitting lines of the logic gate circuit port are retained and connected to the two ends of a control switch (e.g., a power switch) on the control device. When the control switch is open, no control signal is generated to control the data acquisition device; when the control switch is closed, i.e., the data receiving and data transmitting lines are short-circuited, the logic gate circuit port generates a control signal and sends it to the serial port of the terminal equipment. Optionally, the serial port on the terminal device used to connect a mouse, printer, or keyboard can be used as the port to receive the control signal. Furthermore, the serial port monitoring software (e.g., a serial port assistant) pre-installed on the terminal device and the software program that controls the data acquisition device based on the control signal can be configured separately or integrated into the same software program. Upon receiving the control signal, the software program can send an acquisition command to the data acquisition device, instructing it to acquire image data.
[0061] With the data acquisition system of this embodiment, when the operator observes that data needs to be acquired, he can use the control switch set on the control device to short-circuit the data transmission line and the data reception line to generate a control signal and send it to the serial port of the terminal device. The control program running on the terminal device responds to the control signal and sends an acquisition command to the data acquisition device (e.g., a high-speed pulse camera) to instruct the data acquisition device to acquire data, thereby realizing the control of the data acquisition device in a closed environment through the serial port.
[0062] In this embodiment, the terminal device and data acquisition device housed in a closed enclosure can meet the needs of some special experimental scenarios, and the data acquisition process can be controlled via a serial port. Placing the control switch on the control device helps improve the integration level of the data acquisition system; operators can manipulate the control device to generate control signals, further enhancing operational convenience.
[0063] In some embodiments, the data acquisition device includes any of the following: a pulse camera, a high-speed camera, a vision camera, an audio player, a video player, a navigation device, a fixed-position terminal, an entertainment unit, a smartphone, a communication device, a mobile device, a device in a motor vehicle, a vehicle-mounted camera, a mobile phone camera, an action or wearable camera, a traffic camera, an industrial inspection camera, a camera mounted on a flying object, a medical camera, a security camera, or a home appliance camera.
[0064] The following is for reference. Figure 6 , Figure 6 This diagram illustrates a structural schematic of an embodiment of the device control apparatus of this disclosure. The apparatus is applied to a first terminal device pre-installed with software. The serial port of the first terminal device is connected to the serial communication port of an adapter cable. The other end of the adapter cable is a logic gate circuit port. The data receiving line and data transmitting line of the logic gate circuit port are respectively connected to both ends of a control switch. When the control switch is closed, the data receiving line and the data transmitting line are short-circuited, such as... Figure 6 As shown, the device includes: a monitoring unit 610 configured to monitor the communication status of the serial port; and a response unit 620 configured to execute preset instructions in the software program in response to a control signal received by the serial port; wherein, in response to a short circuit between the data receiving line and the data transmitting line, a control signal is generated at the logic gate circuit port.
[0065] In one embodiment, the first terminal device and the second terminal device are communicatively connected, and the operation represented by the preset instruction is to send a control instruction to the second terminal device to control the second terminal device.
[0066] In one embodiment, the second terminal device is used to collect data, and the control instructions include data collection instructions to instruct the second terminal device to collect data.
[0067] In one embodiment, the monitoring unit is further configured to monitor the communication status of the serial port of the first terminal device using a software program or serial port monitoring software pre-installed on the first terminal device.
[0068] Below, for reference Figure 7 This describes an electronic device according to embodiments of the present disclosure. The electronic device may be either or both of a first device and a second device, or a standalone device independent of them, which may communicate with the first device and the second device to receive acquired input signals from them.
[0069] Figure 7 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0070] like Figure 7 As shown, the electronic device includes one or more processors and memory.
[0071] A processor can be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and can control other components in an electronic device to perform desired functions.
[0072] The memory can store one or more computer program products, and the memory can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program products can be stored on the computer-readable storage medium, and the processor can run the computer program products to implement the device control methods of the various embodiments of this disclosure described above and / or other desired functions.
[0073] In one example, the electronic device may also include input devices and output devices, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0074] In addition, the input device may also include, for example, a keyboard, a mouse, etc.
[0075] This output device can output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0076] Of course, for the sake of simplicity, Figure 7 Only some of the components of the electronic device relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.
[0077] Specifically, the device includes at least one of the following: camera, webcam, audio / video player, navigation device, fixed-location terminal, entertainment device, smartphone, communication device, mobile device, vehicle or facility, industrial equipment, medical device, security device, flight equipment, and home appliance.
[0078] In this disclosure, the camera includes, but is not limited to, pulse cameras, high-speed cameras, and industrial inspection cameras. The webcam includes, but is not limited to, vehicle-mounted cameras, mobile phone cameras, traffic cameras, cameras mounted on flying objects, medical cameras, security cameras, or home appliance cameras.
[0079] Taking a pulse camera as an example, the data acquisition device provided in the embodiments of this disclosure will be described in detail. Figure 8 This is a schematic diagram of the structure of a pulse camera provided in an embodiment of this disclosure. Figure 8 As shown, the pulse camera includes: a lens 801, a pulse signal circuit 802, a data processing circuit 803, a non-volatile memory 804, a power supply circuit 805, a volatile memory 806, a control circuit 807, and an I / O interface 808.
[0080] Lens 801 is used to receive incident light, i.e., light signals, from the subject.
[0081] The pulse signal circuit 802 is used to convert the optical signal received through the lens 801 into an electrical signal, and generate a pulse signal based on the electrical signal.
[0082] The data processing circuit 803 is used to control the pulse signal readout process. The data processing circuit 803 includes, for example, an arithmetic processing unit (e.g., a CPU) and / or an image processing unit (GPU). For example, it controls the pulse signal readout process of the pulse signal readout circuit, controls the readout row selector to send a row readout signal, and controls the reset row selector to send a column reset signal, etc.
[0083] 806 is volatile memory, such as random access memory (RAM), while 804 is non-volatile memory, such as solid state disk (SSD), hybrid hard disk (HHD), secure digital card (SD), mini SD card, etc.
[0084] In one embodiment of the present invention, the pulse camera further includes a display unit for real-time / playback display of pulse signals / image information. The pulse camera described in this embodiment may further include at least one of the following: a wired / wireless transmission interface, such as a WiFi interface, Bluetooth interface, USB interface, RJ45 interface, Mobile Industry Processor Interface (MIPI) interface, Low Voltage Differential Signaling (LVDS) interface, and other interfaces with wired or wireless transmission capabilities.
[0085] The pulse camera provided in this invention can be used to detect visible light, infrared light, ultraviolet light, X-rays, etc., and can be applied to various scenarios, including but not limited to: It can be used as an in-vehicle camera installed in various vehicles or facilities, such as for information acquisition and control in vehicle-to-everything (V2X) communication, intelligent transportation, and autonomous driving. For example, it can be installed in high-speed rail or other rail transit vehicles as a high-speed rail driving recorder; it can also be installed in autonomous vehicles or vehicles equipped with advanced driver assistance systems (ADAS) for detecting and alerting on information such as vehicles, pedestrians, lanes, and drivers.
[0086] It can be used as a traffic camera installed on traffic signal poles to capture, warn, and coordinate the control of vehicles and pedestrians on urban roads and highways.
[0087] It can be used as an industrial inspection camera, such as being installed on high-speed rail lines for high-speed rail inspection and for high-speed rail safety inspection; it can also be used for specific industrial scenarios such as coal mine conveyor belt breakage detection, substation arc detection, real-time detection of wind turbine blades, and high-speed turbine non-stop inspection for detection and early warning.
[0088] Installed on flyable objects, such as airplanes and satellites, for high-definition imaging of objects in high-speed flight or even high-speed rotation scenarios.
[0089] Industrial applications (machine vision in intelligent manufacturing, etc.), civilian applications (judicial evidence collection, sports refereeing, etc.), and consumer electronics (cameras, film and television media, etc.).
[0090] It can be used as a medical camera to provide high-definition medical imaging in clinical diagnosis and treatment, such as medical care, beauty, and health care.
[0091] It can be used as an action camera or a wearable camera, such as a head-mounted camera or a camera embedded in a wristwatch, to capture various scenes such as sports competitions and daily leisure activities.
[0092] It can also be used as a security camera, mobile phone camera, or home appliance camera, etc.
[0093] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps of the device control methods according to various embodiments of this disclosure as described in the "Exemplary Methods" section of this specification.
[0094] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0095] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the device control methods according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0096] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0097] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0098] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0099] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0100] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above, unless otherwise specifically stated. Furthermore, in one embodiment, this disclosure may also be implemented as a program recorded on a recording medium, the program comprising machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for executing the methods according to this disclosure.
[0101] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0102] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0103] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A device control method, characterized in that, The method is applied to a first terminal device pre-installed with software. The first terminal device is communicatively connected to a second terminal device. The serial port of the first terminal device is connected to the serial communication port of an adapter cable. The other end of the adapter cable is a logic gate circuit port. The data receiving line and data transmitting line of the logic gate circuit port are respectively connected to both ends of a control switch. When the control switch is closed, the data receiving line and the data transmitting line are short-circuited. The first terminal device and the second terminal device are enclosed in a sealed enclosure. The method includes: Monitor the communication status of the serial port; In response to the short circuit between the data receiving line and the data transmitting line, the logic gate circuit port generates a control signal and sends the control signal to the serial port through the adapter cable; In response to receiving a control signal on the serial port, a preset instruction in the software program is executed to achieve the corresponding function. The preset instruction represents the operation of sending a control instruction to the second terminal device to control the second terminal device.
2. The method according to claim 1, characterized in that, The second terminal device is used to collect data, and the control command includes a data collection command, which instructs the second terminal device to collect data.
3. The method according to claim 1 or 2, characterized in that, Monitoring the communication status of the serial port includes: The communication status of the serial port is monitored using the software program or the serial port monitoring software pre-installed on the first terminal device.
4. A device control apparatus, characterized in that, The device is applied to a first terminal device pre-installed with software. The first terminal device is communicatively connected to a second terminal device. The serial port of the first terminal device is connected to the serial communication port of an adapter cable. The other end of the adapter cable is a logic gate circuit port. The data receiving line and data transmitting line of the logic gate circuit port are respectively connected to both ends of a control switch. When the control switch is closed, the data receiving line and the data transmitting line are short-circuited. The first terminal device and the second terminal device are enclosed in a sealed enclosure. The device includes: The monitoring unit is configured to monitor the communication status of the serial port; The response unit is configured to execute a preset instruction in the software program to implement a corresponding function in response to a control signal received by the serial port. The preset instruction represents an operation of sending a control instruction to the second terminal device to control the second terminal device. In response to the short circuit between the data receiving line and the data transmitting line, the logic gate circuit port generates the control signal and sends the control signal to the serial port through the adapter cable.
5. A data acquisition system, characterized in that, The system includes: a data acquisition device, a terminal device, a control switch, and an adapter cable. The data acquisition device and the terminal device are housed in a closed enclosure. One end of the adapter cable is a logic gate circuit port, and the other end is a serial communication port. The logic gate circuit port is connected to the control switch, and the serial communication port is connected to the serial port of the terminal device. The control switch is used to control the shorting and disconnection of the data receiving line and the data transmitting line in the logic gate circuit port. When the data receiving line and the data transmitting line are shorted, the logic gate circuit port generates a control signal and sends the control signal to the serial port of the terminal device through the adapter cable. The terminal device runs a control program for the data acquisition device. When the serial port receives the control signal, the terminal device executes a preset instruction in the control program to achieve the corresponding function. The preset instruction is to send an acquisition instruction to the data acquisition device to instruct the data acquisition device to acquire data.
6. The system according to claim 5, characterized in that, It also includes a control device for supplying power to the data acquisition device and the terminal device, and the control switch is disposed on the control device.
7. The system according to claim 5 or 6, characterized in that, The data acquisition device includes any one of the following: pulse camera, high-speed camera, vision camera, audio player, video player, navigation device, fixed-position terminal, entertainment unit, smartphone, communication device, mobile device, device in motor vehicle, vehicle camera, mobile phone camera, action or wearable camera, traffic camera, industrial inspection camera, camera mounted on a flying object, medical camera, security camera, or home appliance camera.
8. An electronic device, characterized in that, include: The processor, and the memory communicatively connected to the processor, further include the device control device as described in claim 4; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to control the device control device to implement the device control method according to any one of claims 1-3.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, cause the computer to perform the device control method according to any one of claims 1-3.
Citation Information
Patent Citations
Exposure control method, system and readable storage medium of X-ray exposure system
CN108852393A
Transmission control method and apparatus, controller, shooting device and unmanned aerial vehicle
CN108924520A
Novel comprehensive information monitoring system and method, computer equipment and storage medium
CN113433859A
Camera remote control system
CN213938119U