Remote controller
1. A remote control, comprising:
a housing comprising a communication interface;
the controller is positioned in the shell and used for receiving key signals;
the communication device is positioned in the shell and is in communication connection with the controller, the communication device is used for receiving a preset communication protocol through the communication interface, the communication device is also used for receiving the key signal, the key signal is coded according to the preset communication protocol and then is sent out through the communication interface, and the preset communication protocol is a protocol for communicating with controlled equipment.
2. The remote control of claim 1, wherein the housing further comprises:
and the communication device is also used for receiving feedback information of the controlled equipment through the communication interface, decoding the feedback information according to the preset communication protocol and then sending the decoded feedback information to the controller, and the controller is used for controlling the display device to display the feedback information.
3. The remote controller according to claim 1, further comprising:
the keyboard device comprises a scanning component and a key area, wherein the scanning component is in communication connection with the controller, the key area is located on the surface of the shell, the scanning component is located in the shell, and the scanning component is used for scanning the key area, determining a pressed key, generating a corresponding key signal and sending the key signal to the controller.
4. The remote controller according to claim 3, wherein the key signal comprises an emergency signal, the key comprises an emergency key, and the scanning component is further configured to stop a scanning action and generate and send out the emergency signal corresponding to the emergency key when detecting that the emergency key is pressed.
5. The remote control of claim 4, further comprising:
the isolation circuit is positioned in the shell, is in communication connection with the scanning component and the communication device respectively, and is used for receiving the emergency signal, converting the emergency signal into a switching value signal and sending the switching value signal to the communication device.
6. The remote control of claim 5, wherein the isolation circuit comprises:
the first Schmitt trigger is used for receiving the emergency signal, shaping the emergency signal and then sending the shaped emergency signal;
and the optical coupler is electrically connected with the first Schmitt trigger and used for receiving the shaped emergency signal and sending the shaped emergency signal.
7. The remote controller according to any one of claims 1 to 6, wherein the communication means comprises:
a protocol configurator for receiving the predetermined communication protocol through the communication interface;
and the protocol controller is in communication connection with the protocol configurator and is used for acquiring the preset communication protocol from the protocol configurator under the condition of receiving the key signal, coding the key signal according to the preset communication protocol and sending the coded key signal.
8. The remote control of any one of claims 1 to 6, wherein the communication interface comprises an RS485 interface.
9. The remote controller according to claim 1, further comprising:
and the power supply device is positioned in the shell and used for supplying power to the controller and the communication device.
10. The remote controller according to claim 1, further comprising:
and the second Schmitt trigger is positioned in the shell and is respectively in communication connection with the scanning assembly and the controller.
Background
The remote controllers for industrial control are mainly wired and wireless, the wireless is more, and the most common frequencies are 433M and 2.4G; the number of wires is small, 433M is used for controlling industrial field devices, and 2.4G is commonly used in occasions such as wireless hotspots.
Although the above 3 remote controllers have respective advantages, the disadvantages are quite obvious; wired type is more reliable than wireless, but is less convenient than wireless type; in the wireless mode, 433M transmission distance is long, penetrability is good, and anti-interference capability is good; 2.4G has the advantages of high bandwidth, poor interference resistance and easy obstruction by barriers; most professional remote controller manufacturers concentrate on wireless remote control research and development, wired remote control technology is relatively slow, and a receiving device is required to be configured for both remote controllers.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The present application mainly aims to provide a remote controller to solve the problem that a receiving device needs to be configured for a controlled device of the remote controller in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided a remote controller including a housing, a controller, and a communication device, wherein the housing includes a communication interface; the controller is positioned in the shell and used for receiving key signals; the communication device is positioned in the shell and is in communication connection with the controller, the communication device is used for receiving a preset communication protocol through the communication interface, the communication device is also used for receiving the key signal, the key signal is coded according to the preset communication protocol and then is sent out through the communication interface, and the preset communication protocol is a protocol for communicating with controlled equipment.
Further, the casing further comprises a display device, the display device is in communication connection with the controller, the communication device is further used for receiving feedback information of the controlled equipment through the communication interface, decoding the feedback information according to the preset communication protocol and then sending the decoded feedback information to the controller, and the controller is used for controlling the display device to display the feedback information.
Further, the remote controller further comprises a keyboard device, the keyboard device comprises a scanning component and a key area, the scanning component is in communication connection with the controller, the key area is located on the surface of the shell, the scanning component is located in the shell, the scanning component is used for scanning the key area, determining a pressed key, generating a corresponding key signal and sending the key signal to the controller.
Further, the key signal includes an emergency signal, the key includes an emergency key, and the scanning component is further configured to stop a scanning action and generate and send the emergency signal corresponding to the emergency key when detecting that the emergency key is pressed.
Furthermore, the remote controller also comprises an isolating circuit, the isolating circuit is positioned in the shell, the isolating circuit is in communication connection with the scanning component and the communication device respectively, and the isolating circuit is used for receiving the emergency signal, converting the emergency signal into a switching value signal and sending the switching value signal to the communication device.
Furthermore, the isolation circuit comprises a first schmitt trigger and an optical coupler, wherein the first schmitt trigger is used for receiving the emergency signal and sending out the emergency signal after shaping the emergency signal; the optical coupler is electrically connected with the first Schmitt trigger and used for receiving the shaped emergency signal and sending the shaped emergency signal.
Further, the communication device comprises a protocol configurator and a protocol controller, wherein the protocol configurator is used for receiving the predetermined communication protocol through the communication interface; the protocol controller is in communication connection with the protocol configurator, and is used for acquiring the preset communication protocol from the protocol configurator under the condition of receiving the key signal, encoding the key signal according to the preset communication protocol and sending the encoded key signal.
Further, the communication interface comprises an RS485 interface.
Further, the remote controller further comprises a power supply device, the power supply device is located in the shell, and the power supply device is used for supplying power to the controller and the communication device.
Furthermore, the remote controller also comprises a second Schmitt trigger which is positioned in the shell and is respectively in communication connection with the scanning component and the controller.
By applying the technical scheme of the application, the remote controller comprises a shell, and a controller and a communication device which are positioned in the shell, wherein the controller is in communication connection with the communication device, and the shell comprises a communication interface for communicating with the outside; the controller is used for receiving the key signal and sending the key signal to the communication device, the communication device is used for coding the key signal according to a preset communication protocol and sending the coded key signal to the controlled equipment, and the preset communication protocol is a protocol for communicating with the controlled equipment. The remote controller sends the key signal of the remote controller to the controlled equipment through the communication device, so that the signal transmission between the remote controller and the controlled equipment can be realized without configuring a receiving part in the controlled equipment, and the problem that the controlled equipment of the remote controller needs to be configured with the receiving device in the prior art is better solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 shows a schematic view of a remote control according to an embodiment of the application.
Wherein the figures include the following reference numerals:
10. a housing; 20. a controller; 30. a communication device; 100. a communication interface; 101. a display device; 300. a protocol configurator; 301. a protocol controller; 400. a scanning assembly; 401. a first Schmitt trigger; 402. an optical coupler; 403. a second Schmitt trigger.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background, the controlled device of the remote controller in the prior art needs to be configured with a receiving device, and in order to solve the above problems, the present application proposes a remote controller.
According to an exemplary embodiment of the present application, there is provided a remote controller, as shown in fig. 1, including a housing 10, a controller 20, and a communication device 30, wherein the housing 10 includes a communication interface 100; the controller 20 is located in the housing 10, and the controller 20 is configured to receive a key signal; the communication device 30 is located in the housing 10, the communication device 30 is communicatively connected to the controller 20, the communication device 30 is configured to receive a predetermined communication protocol through the communication interface 100, the communication device 30 is further configured to receive the key signal, encode the key signal according to the predetermined communication protocol, and transmit the encoded key signal through the communication interface 100, wherein the predetermined communication protocol is a protocol for communicating with a controlled device.
The remote controller comprises a shell, a controller and a communication device, wherein the controller and the communication device are positioned in the shell; the controller is configured to receive a key signal and send the key signal to the communication device, and the communication device is configured to encode the key signal according to a predetermined communication protocol and send the encoded key signal to a controlled device, where the predetermined communication protocol is a protocol for communicating with the controlled device. In the remote controller, the communication device sends the key signal of the remote controller to the controlled device, so that the signal transmission between the remote controller and the controlled device can be realized without configuring a receiving part in the controlled device, and the problem that the controlled device of the remote controller needs to be configured with the receiving device in the prior art is well solved.
In practical application, the remote controller can be applied to remote control of industrial equipment.
According to a specific embodiment of the present application, as shown in fig. 1, the housing 10 further includes a display device 101, the display device 101 is communicatively connected to the controller 20, the communication device 30 is further configured to receive feedback information of the controlled device through the communication interface 100, decode the feedback information according to the predetermined communication protocol, and send the decoded feedback information to the controller 20, and the controller 20 is configured to control the display device 101 to display the feedback information. The communication device receives and decodes the feedback information of the controlled equipment, and then sends the decoded feedback information to the controller, and the controller controls the display device to display the feedback information, so that a user can conveniently check the information of the controlled equipment.
In practical applications, the feedback information includes status information of the controlled device, such as voltage information and current information. Of course, the feedback information is not limited to the status information, and those skilled in the art can set the feedback information according to actual situations.
In another specific embodiment of the present application, as shown in fig. 1, the remote controller further includes a keyboard device (not shown), the keyboard device includes a scanning component 400 and a key area, the scanning component 400 is in communication connection with the controller 20, the key area is located on the surface of the housing 10, the scanning component 400 is located in the housing 10, and the scanning component 400 is configured to scan the key area, determine a pressed key, generate the corresponding key signal, and send the key signal to the controller 20. The remote controller scans the key area through the scanning component to determine the corresponding key signal, so that the key signal can be determined more quickly.
In an actual application process, the key area includes a plurality of keys, such as a function key and an emergency key, and different keys correspond to different functions and are used for triggering and generating different key signals. In a specific embodiment, the key signal includes an emergency signal, the key includes an emergency key, and the scanning component is further configured to stop a scanning operation when detecting that the emergency key is pressed, generate and send the emergency signal corresponding to the emergency key. Therefore, the emergency signal can be processed preferentially, and the operation safety of the controlled equipment is ensured.
In order to further ensure that the controlled device can receive the emergency signal in time and further ensure the reliability of the emergency signal when the emergency key is pressed, in another specific embodiment of the present application, the remote controller further includes an isolation circuit, the isolation circuit is located in the housing, the isolation circuit is in communication connection with the scanning component and the communication device, respectively, and the isolation circuit is configured to receive the emergency signal, convert the emergency signal into a switching value signal, and send the switching value signal to the communication device. The remote controller realizes double-path synchronous transmission of emergency signals through the controller and the isolation signals, further ensures the reliability of the emergency signals, and ensures that the controlled equipment can timely receive the emergency signals and respond.
In practical application, the emergency key may be a key with functions of an emergency stop key, a power-off key, and the like.
According to another specific embodiment of the present application, as shown in fig. 1, the isolation circuit includes a first schmitt trigger 401 and an optical coupler 402, wherein the first schmitt trigger 401 is configured to receive the emergency signal, shape the emergency signal, and then send the emergency signal; the optical coupler 402 is electrically connected to the first schmitt trigger 401, and is configured to receive the shaped emergency signal and transmit the shaped emergency signal. The emergency signal is shaped by the first Schmitt trigger, so that the effect of the shaped emergency signal is better, the reliability of the emergency signal is improved, and the emergency signal is prevented from being generated due to misoperation.
In a specific embodiment of the present application, the communication interface includes an RS485 interface. In a more specific embodiment of the present application, the communication interface is an RS485 interface. The RS485 interface has good noise and interference resistance; meanwhile, the highest data transmission rate of the RS485 interface can reach 10Mbps, so that high-speed transmission of signals between the remote controller and the controlled equipment is ensured; in addition, the maximum communication distance of the RS485 interface can reach 1219 meters, and the distance requirement of industrial remote control can be met.
In a specific embodiment, the remote controller is a wired remote controller, and the external end of the communication interface is an aviation plug. Thus, the on-site operation of workers is facilitated, and the wire is not damaged.
According to another specific embodiment of the present application, as shown in fig. 1, the communication device 30 includes a protocol configurator 300 and a protocol controller 301, wherein the protocol configurator 300 is configured to receive the predetermined communication protocol through the communication interface 100; the protocol controller 301 is communicatively connected to the protocol configurator 300, and the protocol controller 301 is configured to, upon receiving the key signal, obtain the predetermined communication protocol from the protocol configurator 300, encode the key signal according to the predetermined communication protocol, and send out the encoded key signal. When the predetermined communication protocol of the controlled device is determined, the communication between the remote controller and the controlled device can be realized by sending the predetermined communication protocol to the protocol configurator, that is, the remote controller can realize communication with controlled devices with different communication protocols.
In an actual application process, the protocol configurator and the protocol controller are both processors.
It should be noted that the protocol configurator supports online upgrade of a communication protocol, so that the remote controller of the present application is changed into a node of RS485, and a remote control receiving part is further omitted. Meanwhile, under the condition that the communication controlled equipment needs to be replaced, the remote controller only needs to send the communication protocol of the corresponding controlled equipment to the protocol configurator through the terminal, and the remote controller can be used for controlling the controlled equipment after the protocol configurator realizes the communication protocol upgrading, so that a user is prevented from modifying a large number of programs of the controlled equipment, and the workload is reduced.
In another specific embodiment of the present application, as shown in fig. 1, the remote controller further includes a second schmitt trigger 403, the second schmitt trigger 403 is located in the housing 10, and the second schmitt trigger 403 is respectively connected to the scanning assembly 400 and the controller 20 in a communication manner. Through the second Schmitt trigger, the reliability of the key signal is further ensured to be better.
In practical applications, the remote controller further includes a power supply device (not shown in the figure), the power supply device is located in the housing, and the power supply device is used for supplying power to the controller and the communication device. The power supply device is also used for supplying power to the keyboard device, the isolation circuit and the second Schmitt trigger. The power supply device ensures the normal operation of the remote controller.
In a specific embodiment, the controller is a single chip, after the remote controller is powered on, the single chip completes initialization and then completes handshake with the protocol controller, and the protocol controller completes handshake with the controlled device. The single chip microcomputer sends the received key signal to the protocol controller so that the protocol controller codes the key signal and sends the coded key signal to the controlled equipment, and the single chip microcomputer receives feedback information of the controlled equipment through the protocol controller and displays the feedback information on the display device. The display device can also display the working state of the remote controller sent by the controller, and the display device can also support the state query function of the controlled equipment and the remote controller. When the scanning component scans that the emergency key is pressed, the scanning component does not continue to scan other keys, and preferentially generates and sends an emergency signal corresponding to the emergency key.
The display device can adopt a common serial port screen, and the parameters of the display screen can be configured through an upper computer, so that the development is relatively easy; in a specific embodiment, the display device adopts Shenzhen panning TJC3224T024_011N, the parameters are 2.4inch, the resolution is 320X240, the net weight is 20g, the power consumption is 5V, and the power consumption is 0.09A; the serial port baud rate is typically 9600bps, and the interface level is 3.3V/5 VTTL; the controller adopts STM32L431CBT6 of an Italian semiconductor; the model of the first Schmitt trigger and the model of the second Schmitt trigger are selected according to the IO port and the subsequent wiring condition, and the model of the SN74LVC1G14DBVR with the TI can be selected. The emergency key of the remote controller selects a self-locking switch with a lamp, the model is K6-6133D-L1-02, and the RS485 interface selects TI ISO3082 DWR; the optical coupler selects an optical coupler of the type EL817S1(C) (TU) -F, and the aviation plug selects the aerial plug of the PLT-165-RF-R. Of course, the above-mentioned devices are not limited to the above-mentioned models, and those skilled in the art can select suitable types of devices according to actual situations.
In practical applications, the remote controller of the present application may further include a load switch, a light-carrying switch, and other devices besides the above devices.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
the remote controller comprises a shell, a controller and a communication device, wherein the controller and the communication device are positioned in the shell; the controller is configured to receive a key signal and send the key signal to the communication device, and the communication device is configured to encode the key signal according to a predetermined communication protocol and send the encoded key signal to a controlled device, where the predetermined communication protocol is a protocol for communicating with the controlled device. In the remote controller, the communication device sends the key signal of the remote controller to the controlled device, so that the signal transmission between the remote controller and the controlled device can be realized without configuring a receiving part in the controlled device, and the problem that the controlled device of the remote controller needs to be configured with the receiving device in the prior art is well solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:车队的安全管理方法、装置及设备