Remote control method, communication protocol compression method, system and related equipment
Through the remote control method of the Internet of Things platform, information exchange between the remote control server and the device is used to generate and verify the controlled device information, which realizes efficient and secure remote control of the information release display screen, and solves the problem of low operation and maintenance efficiency.
Patent Information
- Application Number
- CN202410011038.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the operation and maintenance efficiency of information publishing display screens is low, and a safe and reliable remote control method is needed to reduce the time and cost of manual inspection.
Through the Internet of Things platform, information exchange between remote control servers and devices is used to generate and verify controlled device information and service information, so as to realize flexible and efficient remote control of main control devices and controlled devices to ensure security.
Without anyone participating, the master control equipment is able to achieve flexible and efficient remote control of controlled devices, improve operation and maintenance efficiency, reduce operation and maintenance costs, and enhance the security of remote control.
Smart Images

Figure CN120263829A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of the Internet of Things, and particularly relates to a remote control method, a communication protocol compression method, a system and related devices. Background Art
[0002] With the progress of technology, information release displays have been more and more widely used. Monitoring information release displays takes a large amount of time and energy of operation and maintenance personnel, and the operation and maintenance efficiency is low. There is an urgent need to develop a safe and reliable remote control method. Summary of the Invention
[0003] In view of this, the purpose of the present disclosure is to provide a remote control method, a communication protocol compression method, a system and related devices.
[0004] Based on the above purpose, the present disclosure provides a remote control method based on an Internet of Things platform, which is applied to an Internet of Things server. The Internet of Things server is communicatively connected to a master control device and at least one controlled device, and the Internet of Things server stores information of at least one remote control server; the remote control method includes:
[0005] Obtain a first remote request of the master control device, where the remote request includes a target controlled device;
[0006] Generate controlled device information and remote control service information according to the target controlled device and the information of at least one remote control server;
[0007] Send a remote control command to the target controlled device; wherein, the remote control command includes the controlled device information and the remote control service information, so that the target controlled device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; and
[0008] Send the controlled device information and the remote control service information to the master control device, so that the master control device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; wherein,
[0009] The controlled device information can be verified by the remote control server to determine whether to establish remote control.
[0010] Based on the same inventive concept, an embodiment of the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a controlled device; the controlled device is communicatively connected to an Internet of Things server; the remote control method includes:
[0011] Obtain a remote control command sent by the Internet of Things server; the remote control command includes the controlled device information and the remote control service information;
[0012] Establish a communication connection with the remote control server corresponding to the remote control service information, and send the controlled device information so that the remote control server can verify the controlled device information.
[0013] Based on the same inventive concept, an embodiment of the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a master device, and the master device is communicatively connected to an Internet of Things server; the remote control method includes:
[0014] Send a first remote request to the Internet of Things server;
[0015] Obtain the controlled device information and the remote control service information sent by the Internet of Things server;
[0016] Establish a communication connection with the remote control server corresponding to the remote control service information according to the remote control service information;
[0017] Send a second remote request to the remote control server; the second remote request includes the controlled device information so that the remote control server can verify the controlled device information; and
[0018] Obtain the verification result feedback by the remote control server, and display the corresponding result information according to the verification result.
[0019] Based on the same inventive concept, an embodiment of the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a remote control server; the remote control server is communicatively connected to a controlled device and a master device, and the remote control method includes:
[0020] Obtain the second remote request sent by the master device; wherein, the second remote request includes the controlled device information;
[0021] Obtain the controlled device information sent by the controlled device;
[0022] Verify the controlled device information sent by the master device and the controlled device information sent by the controlled device;
[0023] In response to determining that the verification is successful, establish a remote control connection service and feedback it to the master device;
[0024] In response to determining that the verification fails, send a failure result to the master device.
[0025] An embodiment of the present disclosure further provides a communication protocol compression method, including:
[0026] Determine a second code point table according to a pre-stored first code point table and a string to be transmitted; wherein, the first code point table and the second code point table are obtained according to variable-length coding;
[0027] Encode the string to be transmitted by using the first code point table and the second code point table respectively to obtain first coding information and second coding information;
[0028] Compare the byte lengths of the first coding information and the second coding information;
[0029] In response to determining that the byte length of the second coding information is less than the byte length of the first coding information and the shortening ratio meets the threshold; then send the second coding information to a decoding device, and send the second code point table to the decoding device, so that the decoding device updates the stored code point table and decodes the second coding information according to the updated code point table;
[0030] In response to determining that the byte length of the second coding information is not less than the byte length of the first coding information or determining that the byte length of the second coding information is less than the byte length of the first coding information and the shortening ratio does not meet the threshold; then send the first coding information to the decoding device.
[0031] Based on the same inventive concept, an embodiment of the present disclosure further provides a remote control system based on an Internet of Things platform. The remote control system includes an Internet of Things server, a main control device, at least one controlled device, and at least one remote control server; wherein,
[0032] The Internet of Things server is communicatively connected to the main control device and the controlled device, and the Internet of Things server stores information of at least one of the remote control servers; the Internet of Things server is configured to:
[0033] Obtain a first remote request of the main control device, where the remote request includes a target controlled device;
[0034] Generate controlled device information and remote control service information according to the target controlled device and the information of at least one remote control server;
[0035] Send a remote control command to the target controlled device; wherein, the remote control command includes the controlled device information and the remote control service information, so that the target controlled device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; and
[0036] Send the controlled device information and the remote control service information to the main control device, so that the main control device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; wherein,
[0037] The controlled device information can be verified by the remote control server to determine whether to establish remote control;
[0038] The controlled device is configured to:
[0039] Obtain the remote control command sent by the Internet of Things server; the remote control command includes the controlled device information and the remote control service information;
[0040] According to the remote control service information, establish a communication connection with the remote control server corresponding to the remote control service information, and send the controlled device information so that the remote control server can verify the controlled device information;
[0041] The master device is configured to:
[0042] Send a first remote request to the Internet of Things server;
[0043] Obtain the controlled device information and remote control service information sent by the Internet of Things server;
[0044] According to the remote control service information, establish a communication connection with the remote control server corresponding to the remote control service information;
[0045] Send a second remote request to the remote control server; the second remote request includes the controlled device information so that the remote control server can verify the controlled device information; and
[0046] Obtain the verification result feedback by the remote control server, and display the corresponding result information according to the verification result;
[0047] The remote control server is configured to:
[0048] Obtain the second remote request sent by the master device; wherein, the second remote request includes the controlled device information;
[0049] Obtain the controlled device information sent by the controlled device;
[0050] Verify the controlled device information sent by the master device and the controlled device information sent by the controlled device;
[0051] In response to determining that the verification is successful, establish a remote control connection service and feedback to the master device;
[0052] In response to determining that the verification fails, send a failure result to the master device.
[0053] Based on the same inventive concept, embodiments of the present disclosure further provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the remote control method or communication protocol compression method described in any one of the above.
[0054] Based on the same inventive concept, embodiments of the present disclosure further provide a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the remote control method or communication protocol compression method described in any one of the above.
[0055] As can be seen from the above, a remote control method, communication protocol compression method, system, and related devices provided by embodiments of the present disclosure are based on an Internet of Things platform. Under the first remote request of a master device, an Internet of Things server generates controlled device information and remote control service information, and sends the controlled device information and remote control service information to a target controlled device and the master device, so that they can respectively communicate and connect to a corresponding remote control server according to the remote control service information and send the controlled device information; wherein, the controlled device information can be verified by the remote control server to determine whether to establish remote control. In this way, with the help of the remote control service information, the master device and the controlled device respectively establish communication connections with the remote control server, and the remote control server determines whether to establish remote control based on the result of verifying the controlled device information, which can flexibly and efficiently implement remote control of the master end over the controlled end without the participation of anyone at the controlled end, and the verification of the controlled device information can improve the security of establishing remote control. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0057] Figure 1 Shows an application scenario schematic diagram of an information publishing system provided by an embodiment of the present disclosure;
[0058] Figure 2A Shows a schematic structural diagram of a remote control system provided by an embodiment of the present disclosure;
[0059] Figure 2B Shows a schematic structural diagram of another remote control system provided by an embodiment of the present disclosure;
[0060] Figure 3Schematic flowchart of a remote control method provided by an embodiment of the present disclosure;
[0061] Figure 4 Schematic flowchart of another remote control method provided by an embodiment of the present disclosure;
[0062] Figure 5A Schematic diagram of a string to be transmitted provided by an embodiment of the present disclosure;
[0063] Figure 5B Show Figure 5A Character statistics result graph of the string to be transmitted;
[0064] Figures 5C - 5I Partial process schematic diagram of an encoding method provided by an embodiment of the present disclosure;
[0065] Figure 6 Schematic structural diagram of a communication message format provided by an embodiment of the present disclosure;
[0066] Figure 7A Schematic structural diagram of a service message provided by an embodiment of the present disclosure;
[0067] Figure 7B Schematic structural diagram of a coded point table message provided by an embodiment of the present disclosure;
[0068] Figure 8A Partial process schematic diagram of another method for generating a coded point table provided by an embodiment of the present disclosure;
[0069] Figure 8B Schematic flowchart of a communication protocol compression method provided by an embodiment of the present disclosure;
[0070] Figure 9 Schematic flowchart of another remote control method provided by an embodiment of the present disclosure;
[0071] Figure 10 Schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0072] To make the objectives, technical solutions and advantages of the present disclosure more clear and understandable, the present disclosure will be further described in detail below with reference to specific embodiments and the accompanying drawings.
[0073] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0074] In order to facilitate understanding of the technical solutions of the present disclosure, some technical terms involved in the present disclosure are introduced below.
[0075] The information publishing system is composed of a server, a network, a player, and a display device. The server information is sent to the player through the network (applicable to wide area networks / local area networks / dedicated networks, including wireless networks). The player then combines audio, video, pictures, text and other information (including playback position and playback content, etc.) and transmits it to LCD TVs and other display devices that can accept audio and video input to form audio and video file playback. In this way, a system is formed that can send all server information to the terminal through the network.
[0076] The Internet of Things (IoT) originated in the field of media and is the third revolution in the information technology industry. The Internet of Things refers to connecting any object to the network through information sensing devices according to agreed protocols, and objects exchange and communicate information through information transmission media to achieve intelligent identification, positioning, tracking, supervision and other functions.
[0077] Figure 1 A schematic diagram of an application scenario of an information release system provided by an embodiment of the present disclosure is shown. There are numerous buildings and roads in outdoor places. In order to improve the customer reach and efficiency of information, information release terminals 300A and 300B are often set near the buildings and roads. For example, a large-size display terminal 300A is set in front of a building; for another example, an electronic sign 300B is set near a road. Information release terminals 300A and 300B have electronic display screens that can play various information as needed for user viewing. In this way, information release is flexible and the information presentation form is richer.
[0078] It should be noted that Figure 1The application scenarios are only exemplary. The information release system is widely used in enterprise buildings, the medical industry, elevator advertising machines, large exhibition centers, competition venues, and the transportation industry (such as airports, railway stations, subways, etc.).
[0079] As described in the background art section, it is usually necessary to monitor whether the information release terminals 300A and 300B are playing information properly. Compared with the operation and maintenance personnel going to the equipment in person for inspection, or using the remote control method to achieve the inspection or operation and maintenance of the information release terminals 300A and 300B, it can greatly save costs, improve efficiency, and reduce the work intensity of the operation and maintenance personnel.
[0080] In view of this, the embodiments of the present disclosure provide a remote control method, a communication protocol compression method, a system and related devices. Based on the Internet of Things platform, the Internet of Things server generates controlled device information and remote control service information under the first remote request of the master device, and sends the controlled device information and remote control service information to the target controlled device and the master device, so that they can respectively communicate with the corresponding remote control server according to the remote control service information and send the controlled device information; wherein, the controlled device information can be verified by the remote control server to determine whether to establish remote control. In this way, with the help of the remote control service information, the master device and the controlled device respectively establish communication connections with the remote control server, and the remote control server determines whether to establish remote control based on the result of verifying the controlled device information, which can flexibly and efficiently achieve remote control of the master device over the controlled device without the participation of personnel at the controlled end, and the verification of the controlled device information can improve the security of establishing remote control.
[0081] In order to make the technical solutions of the present disclosure clearer and easier to understand, the structure of the remote control system provided by the embodiments of the present disclosure will be introduced below with reference to the accompanying drawings.
[0082] Figure 2AA schematic structural diagram of a remote control system provided by an embodiment of the present disclosure is shown. The remote control system includes an Internet of Things server 100, a master control device 200, at least one controlled device 300A, 300B, 300C, and at least one remote control server 400A, 400B. Among them, the Internet of Things server 100, the master control device 200, at least one controlled device 300A, 300B, 300C, and at least one remote control server 400A, 400B can all be connected through a wired or wireless communication network. The master control device 200 includes, but is not limited to, a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA), or other electronic devices capable of implementing the above functions. The Internet of Things server 100 and the remote control servers 400A, 400B can both be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The controlled devices 300A, 300B, 300C can be information publishing terminals with display screens in an information publishing system, such as electronic signage, a large display screen with an information publishing box, etc. Among them, the display screen and the information publishing box can be separate or integrated, and the present disclosure does not limit this.
[0083] Next, in combination with Figure 2B an exemplary introduction to the functions of the Internet of Things server 100, the master control device 200, the controlled device 300, and the remote control server 400 will be given. Figure 2B A schematic structural diagram of another remote control system provided by an embodiment of the present disclosure is shown.
[0084] In some embodiments, the Internet of Things server 100 provides Internet of Things services for the master control device 200 and the controlled device 300 to realize the management of devices in the Internet of Things. Exemplarily, the Internet of Things server 100 can register the controlled device 300, store the information of the controlled device 300, and generate a list of controlled devices; the Internet of Things platform Web page running on the Internet of Things server 100 can be logged in by the master control device 200 to provide the master control device 200 with a list of controlled devices.
[0085] In some embodiments, the master device 200 is a device used by operation and maintenance personnel to remotely control and inspect the controlled device 300. The master device 200 includes a browser and a master-end remote control plugin (such as RemoteDesk). Among them, through the browser, the IoT platform web page of the IoT server 100 can be logged in. Based on the list of controlled devices displayed on the IoT platform web page, a target controlled device can be selected and a request can be sent to the IoT server 100 to remotely control the target controlled device. Among them, the master-end remote control plugin can be called by the IoT server 100. If it is found that the master-end remote control plugin is not installed on the master device 200, the web page will prompt a download link for manual download and installation. The master-end remote control plugin can establish a communication connection with the remote control server 400 based on the communication message of the IoT server 100 and request to establish a remote control with the controlled device 300. In addition, the master-end remote control plugin can also display the desktop of the controlled device or display a prompt message indicating that the remote control request fails according to the feedback information of the remote control server 400.
[0086] In some embodiments, the controlled device 300 includes an IoT platform plugin and a controlled-end remote control plugin (such as RemoteDesk). Among them, the IoT platform plugin can be DMA. DMA (IoT Device Management Agents) is a set of native processes running on the terminal (such as the controlled device 300), providing device access, two-way communication, device management, etc. The controlled device 300 communicates with the IoT server 100 by using the IoT platform plugin and can call the controlled-end remote control plugin according to the remote control command of the IoT server 100, so that the controlled-end remote control plugin can establish a connection and log in to the remote control server 400 based on the relevant information of the remote control command. It should be noted that the functions of the above IoT platform plugin and controlled-end remote control plugin are only listed, and the embodiments of the present disclosure do not limit their specific functions. For example, they can also execute other steps involved in the following remote control method and communication protocol compression method.
[0087] In some embodiments, the remote control server 400 is respectively communicatively connected to the master device 200 and the controlled device 300, and is used to provide remote control services. Exemplarily, the remote control server 400 can provide services such as remote desktop address registration and TCP hole punching connection.
[0088] Next, the remote control method provided by the embodiments of the present disclosure will be described in detail from the perspective of the remote control system.
[0089] Figure 3 A flowchart showing a remote control method provided by an embodiment of the present disclosure; Figure 4The flowchart shows another remote control method provided by an embodiment of the present disclosure. Refer to Figure 3 and Figure 4 the flowchart of the remote control method shown, the method includes:
[0090] First, S301: The controlled device 300 obtains the device unique identifier and sends the registration information including the unique identifier to the Internet of Things server 100. Exemplarily, the device MAC address (Media Access Control Address, abbreviated as MAC address) can be obtained by using the Internet of Things platform plugin, and the MAC address is used as the unique identifier for the controlled device 300 to access the Internet of Things.
[0091] It should be noted that the MAC address is only an example, and any identifier that can uniquely identify the controlled device 300 can replace the MAC address, such as the serial number (Serial Number, abbreviated as SN). For the method of obtaining the SN address, an embodiment of the present disclosure is exemplified as follows: In response to the user executing "dma.msghub --sn" in the command line, the SN of the controlled device 300 can be obtained.
[0092] It should be understood that the controlled device 300 sending the unique identifier to the Internet of Things server 100 usually indicates that the controlled device 300 has the ability to be remotely controlled.
[0093] Next, S101: The Internet of Things server 100 can register the controlled device 300 according to the unique identifier. It should be noted that the Internet of Things server 100 can distinguish multiple controlled devices 300 on the Internet of Things platform by means of the unique identifier, so as to send messages to the target controlled device 300.
[0094] Then, S102: The Internet of Things server 100 stores the registration information and generates a list of controlled devices. Here, the registration information includes the unique identifier of the controlled device. It should be noted that if there is already a list of controlled devices, the generation of the list of controlled devices here refers to updating the existing list of controlled devices and adding new controlled devices 300.
[0095] It should be noted that the controlled device 300 only needs to be registered when it first accesses the Internet of Things platform. Thus, subsequent inspection personnel do not need to go to the site of the controlled device 300, and the controlled device 300 can automatically access the Internet of Things platform, which can greatly save labor costs.
[0096] S201: An operator (such as an operation and maintenance personnel) of the master control device 200 can log in to the web page of the Internet of Things platform using a browser. Further, S202: Through the web page, the browser of the master control device 200 displays a list of controlled devices from the Internet of Things server 100. Through the list of controlled devices, the operator can conveniently view information such as whether the controlled device 300 can be remotely controlled and whether it is online.
[0097] It should be understood that step S202 can be after step S102; that is to say, there is no clear sequence between step S201 and step S102.
[0098] In some embodiments, S302: The controlled device 300 can periodically report device status information, such as device heartbeat, etc., using an Internet of Things platform plugin. Next, S103: The Internet of Things server 100 determines the online / offline status of the device based on the device status information and updates the online / offline status. Then, S203: The master control device 200 can display the online / offline status of the device while displaying the device list, enabling the user to conveniently understand the controlled device 300 that can be remotely controlled.
[0099] Based on the above steps, the controlled device 300 completes the registration on the Internet of Things platform, and the master control device 200 can know which controlled devices 300 can be remotely controlled through the list of controlled devices provided by the Internet of Things server 100.
[0100] Next, referring to Figure 4 , S204: The master control device 200 logs in to the web page of the Internet of Things platform. In some embodiments, if the master control device 200 is in the logged-in state, then S204 can be omitted.
[0101] Then, S205: The user can select at least one of the controlled devices 300 in the list of controlled devices and click the remote control option to initiate a remote control request. In some embodiments, in response to a remote control operation on a target controlled device, the master control device 200 sends a first remote request to the Internet of Things server 100. Here, the first remote request includes the identifier of the target controlled device. Here, this identifier is only used for the Internet of Things server 100 to know the target controlled device.
[0102] It should be noted that based on the above steps, the user has selected the target controlled device, and subsequent remote control steps do not require user operation and only need to be automatically completed by the remote control system. Thus, it can be seen that the entire remote control method is easy to operate and can achieve the technical effects of improving remote operation and maintenance efficiency and reducing remote operation and maintenance costs.
[0103] Next, based on the information of at least one remote control server stored, the Internet of Things server 100 assigns a remote control server 400 to the master control device 200 and the target controlled device.
[0104] In some embodiments, S104: The Internet of Things server 100 generates controlled device information and remote control service information based on the information of the target controlled device and at least one remote control server.
[0105] Optionally, the controlled device information includes a control code and a password. Among them, the password can be a random password. Optionally, the remote control service information includes the remote control service IP and port. Exemplarily, the control code can be a unique identifier, such as the SN; of course, the control code can be other identifiers that can identify the controlled device, such as SN + a specific sequence; the password can be a 6 - digit random password, such as a combination of letters + numbers; the control service IP and port can be configured according to the deployed Internet of Things platform environment variables, and the present disclosure does not make specific limitations on this.
[0106] Then, S105: The Internet of Things server 100 sends a remote control command to the target controlled device 300, where the remote control command is the controlled device information and the remote control service information; and sends the controlled device information and the remote control service information to the master control device 200.
[0107] Next, the received controlled device 300 (i.e., the target controlled device selected by the master control device 200) and the master control device 200 respectively execute corresponding steps based on the information or command from the Internet of Things server 100. Among them, the controlled device 300 executes steps S303 to S305; the master control device 200 executes steps S206 to S2012.
[0108] In some embodiments, S303: The controlled device 300 uses the Internet of Things platform plug - in to obtain the remote control command; then, the Internet of Things platform plug - in invokes the controlled - end remote control plug - in and transfers the controlled device information and the remote control service information to the controlled - end remote control plug - in. Then, S304: The controlled - end remote control plug - in sets the remote control service IP, port, sets the local control code and password. Next, S305: Connects to and logs in to the remote control server 400, and sends the controlled device information to the remote control server 400.
[0109] Optionally, after S305, the Internet of Things platform plug - in can also send a message indicating that the remote control command has been successfully executed to the Internet of Things server 100.
[0110] Next, the remote control server 400 executes the corresponding step S401 of S305: Receives the login information of the controlled device 300 and stores the controlled device information, such as the control code and password.
[0111] In some embodiments, the master device 200 performs the following steps:
[0112] S206: The Web interface starts the master remote control plugin. It should be noted that if it is found that the master device 200 does not install the master remote control plugin (i.e., the control - side RemoeteDesk software), the Web interface will prompt a download link for manual download and installation. Further, the master remote control plugin receives the controlled device information and the remote control service information. Here, the step of the Web interface starting the master remote control plugin can be executed after determining the target controlled device 300, without waiting for the Internet of Things server 100 to send the controlled device information and the remote control service information.
[0113] Next, S207: The master remote control plugin sets the remote control service IP and port according to the remote control service information; and S208: Connects and logs in to the remote control service. Correspondingly, the remote control server 400 receives the login information of the master device 200.
[0114] Then, S209: Sends a second remote request to the remote control server 400 to establish a connection with the target controlled device, and transfers the controlled device information.
[0115] The remote control server 400 executes step S403 to receive the second remote request and S404: Verifies the controlled device information. Exemplarily, the controlled device information stored in step S401 and the controlled device information transferred by the master device 200 are verified. For example, it is compared whether the control code and password are consistent. If the verification fails, a failure message is sent to the master device 200. At this time, the master remote control plugin of the master device 200 executes S2011 to display an error message. If the verification is successful, then step S405 is executed: Establish a remote control connection service, and send the desktop of the controlled device 300 to the master device 200. At this time, the master remote control plugin of the master device 200 executes S2012 to establish remote control and display the desktop of the controlled device. Here, the desktop of the controlled device 300 refers to the display screen of the controlled device 300.
[0116] In summary, the above - mentioned remote control method establishes a remote control connection of the master device 200 to the controlled device 300, and can display the desktop of the controlled device 300 on the master remote control plugin of the master device 200.
[0117] Using the above remote control method, each time a remote control connection is established, the Internet of Things server 100 generates new remote control service information and controlled device information and sends them to the master control device 200 and the controlled device 300 respectively. The remote control server 400 verifies the controlled device information from the master control device 200 and the controlled device 300 respectively, reducing risks such as password leakage and ensuring the security of the remote control service.
[0118] It should be understood that while the remote control method provided by the embodiments of the present disclosure improves the security of the remote control service, it also increases the amount of information transmission within the remote control system. To reduce the bandwidth occupied by relevant information in the remote control system, the embodiments of the present disclosure also provide a communication protocol compression method to reduce the communication bandwidth pressure while ensuring the transmission security of the remote control service information and the controlled device information.
[0119] The coding core of the communication protocol compression method provided by the embodiments of the present disclosure is to convert the characters to be transmitted into binary code representations in remote communication. It should be noted that Huffman coding is a variable-length coding. The higher the frequency of a character appears, the shorter the code is assigned, and the lower the frequency, the longer the code is assigned, making the average length of the overall coding the shortest. Specifically, using a binary tree, the leaves with larger weights are placed closer to the root. Taking the probability value of each character as the weight value, a coding tree is constructed. The nodes with higher probabilities have shorter paths. The root node weights are merged in ascending order from left to right, and finally a binary tree is generated. Mark 0 on the left branch of the coding tree and 1 on the right branch. Connect the path labels from the root to each leaf as the coding represented by the leaf.
[0120] Figure 5A A schematic diagram showing a string to be transmitted provided by the embodiments of the present disclosure. Figures 5C - 5I A partial process schematic diagram showing a coding method provided by the embodiments of the present disclosure. The following combines Figure 5A the string to be transmitted shown and Figures 5C - 5I , and makes an exemplary description of the above binary coding.
[0121] First, traverse the number of occurrences of each character in the string to be transmitted, Figure 5B showing Figure 5A the character statistical result diagram of the string to be transmitted.
[0122] Next, taking each character as a node and the number of occurrences of the character as the weight value, according to n given characters {C1, C2,..., C n}, weights {W1, W2,..., W n}, a forest F = {T1, T2,..., T n} of n binary trees is constructed, where T i has only one node with a weight of Wi The root node of
[0123] From the Figure 5B statistical results of, the result of the forest F is as Figure 5C shown. Two adjacent rectangles above and below represent a root node. Among them, the value in the upper rectangle represents the weight, and the character of the root node is displayed in the lower rectangle. For example, T2 represents a weight of 1 and the character 9.
[0124] Then, as Figure 5D shown, select two trees with the smallest root node weights in F as the left and right subtrees to construct a new binary tree, and set the weight of the root node of the new binary tree to the sum of the weights of its left and right subtree root nodes. Delete these two trees in F, and at the same time add the newly obtained binary tree to the forest. Refer to Figure 5E , Figure 5F , Figure 5G , and repeat this step until there is only one tree in the forest. This tree is the point table tree ( Figure 5G shown).
[0125] Next, as Figure 5H shown, the left branch of the point table tree is marked 0, and the right branch is marked 1.
[0126] Then, the character C i corresponds to the encoding E i which is the sequential concatenation result of the path branch marks from the root node of the point table tree to this character node. For example, the encoding E i of the character n is 0000000; the encoding E i of the character i is 000011.
[0127] Finally, all characters {C1, C2, ……, C n} and the corresponding encodings are concatenated to generate the encoding point table as will be Figure 5I shown.
[0128] In some embodiments, the format of the encoding point table includes: each line represents a character and the corresponding encoding and weight; the first line is fixed as the version number, with a value range of the numbers 0 - 15, and the new version is incremented by 1 and used cyclically; C i If it is a character, use ':' as the separator, and if it is a number, use ';' as the separator; both Ei and the version number are represented by binary strings; W i is represented by a hexadecimal string.
[0129] Based on the above binary encoding, the communication message format will be introduced next. Figure 6 shows a schematic structural diagram of a communication message format provided by an embodiment of the present disclosure. As Figure 6As shown, the communication includes a message header and a body. Among them, the message header is the first byte at the start of the message. The first bit of the message header is the message identifier. Exemplarily, 0 - indicates service data sent by a device (such as a controlled device, a master device, a server); 1 - identifies the coded point table data.
[0130] Figure 7A Shows a schematic structural diagram of a service message provided by an embodiment of the present disclosure. Refer to Figure 7A , the message is represented in binary. The message includes 5 parts, namely the message identifier, the point table version number, the number of trailing 0s, the coded message body, and the trailing padding. Among them, the message identifier: binary 0. The point table version number: the version number of the coded point table used by the message; represented by the 2nd - 5th bits before the first byte, with a value range of 0 - 15 and cyclic use. The number of trailing 0s: if the bit length of the coded message body cannot be divided evenly by 8, then the last 1 BYTE needs to be padded with binary 0s to make 8 bits; represented by the 3 bits after the first byte, with a value range of 0 - 7. The coded message body: the message coded using the point table; represented in binary. The trailing padding: when the bit length of the coded message is not an integer number of BYTEs, it is padded with binary 0s.
[0131] Figure 7B Shows a schematic structural diagram of a coded point table message provided by an embodiment of the present disclosure. Among them, the message includes 2 parts, namely the message identifier and the point table version number of the coded point table; the message is represented in binary. The message identifier: binary 1. The point table version number: the current version number of the coded point table; represented by the 2nd - 5th bits before the first byte, with a value range of 0 - 15 and cyclic use.
[0132] Based on the above - mentioned coding rules and the message format of the communication message, an embodiment of the present disclosure provides a communication protocol compression method. Figure 8A Shows a partial process schematic diagram of generating a coded point table provided by an embodiment of the present disclosure; Figure 8B Shows a flow schematic diagram of a communication protocol compression method provided by an embodiment of the present disclosure. An exemplary embodiment of the present disclosure combines Figure 8A and Figure B to describe the communication protocol compression method in detail.
[0133] First, the communication protocol compression method is applied to the coding device and the decoding device. Exemplarily, for the aforementioned remote control method, the Internet of Things server 100 generates controlled device information and remote control service information, which can be used as the coding device, and the remaining devices are used as decoding devices.
[0134] In addition, the controlled devices 300 are distributed in different scenarios. The controlled devices 300 can be used to collect information about the surrounding environment, such as weather information, noise information, etc. Using the Internet of Things platform, the controlled devices 300 can also send the surrounding environment information to the Internet of Things server 100 for comprehensive utilization of the information. At this time, the controlled devices 300 act as encoding devices, and the Internet of Things server 100 acts as a decoding device. Next, taking the controlled devices 300 as encoding devices and the Internet of Things server 100 as a decoding device as an example, an exemplary description will be given of a communication protocol compression method provided by the disclosed embodiments.
[0135] The decoding device stores at least one latest version of the encoding point table. It should be noted that if the decoding device is a device with sufficient storage space such as the Internet of Things server 100, it can store 16 versions of the encoding point table. The version numbers 0 - 15 are recycled, and a marker is used to specify the current latest version. If the decoding device is the controlled device 300 with limited storage space, it can only store the latest version of the encoding point table.
[0136] As Figure 8B shown, if the encoding device does not locally store the encoding point table, it can execute S801: Pull the encoding point table. Next, the decoding device pushes the latest version of the encoding point table V1. Here, V1 represents the latest version of the encoding point table, not the version number of the encoding point table. Then, the encoding device executes S802: Save the encoding point table V1. It should be noted that if the encoding device locally stores the latest encoding point table V1, steps S801 and S802 can be omitted.
[0137] Further, S803: Traverse the string to be transmitted. Here, traversing the string to be transmitted can count the characters and the number of times the characters appear.
[0138] Next, S804: Combine the traversal results with the encoding point table V1 to generate the encoding point table V2 of the information. The result can be referred to Figure 8A . Among them, the version number of the encoding point table V2 can be +1 based on the version number of the encoding point table V1. For example, if the version number of the encoding point table V1 is 14, then the version number of the encoding point table V2 can be 15.
[0139] Then, S805: Determine whether there are new characters in the encoding point table V2; if there are new characters, execute step S8062; if there are no new characters, execute step S8061.
[0140] In some embodiments, S8061 encodes the string to be transmitted using the encoding point table V1 and the encoding point table V2 respectively, and executes S808.
[0141] Further, S808 includes: comparing the length l1 of the first encoded information in the encoding point table V1 and the length l2 of the second encoded information after encoding in the encoding point table V2; if l2 is greater than l1, then discard the encoding point table V2 and execute step S8010; if l2 is not greater than l1, then calculate the shortening ratio of l2 compared to l1 and determine whether this shortening ratio is greater than a preset threshold. If it is not greater than the preset threshold, then also discard the encoding point table V2 and execute step S8010; if it is greater than the preset threshold, then execute step S8062. It should be noted that the length can refer to the length in bytes. Optionally, when discarding the encoding point table V2, the to-be-transmitted string encoded using V2 is also discarded.
[0142] Optionally, the shortening ratio can be calculated by (l1 - l2) / l1. Correspondingly, the preset threshold can be 0.05. Of course, those skilled in the art can choose a suitable way to calculate the shortening ratio and set the corresponding threshold, and the present disclosure does not limit this.
[0143] Next, S8062: Delete the encoding point table V1, and set the encoding point table V2 as the encoding point table V1 (i.e., the latest encoding point table).
[0144] Then, if S8062 is directly executed through step S805, next execute step S807: Encode using the encoding point table V1 to obtain the encoded to-be-transmitted string. It should be noted that since the to-be-transmitted string has been encoded in S8061, if S8062 is executed after step S808, step S807 can also be omitted, delete the to-be-transmitted string encoded by the encoding point table V1 in step S8061, and retain the to-be-transmitted string encoded by the encoding point table V2.
[0145] Next, S809: Send the new encoding point table V1 to the decoding device. In some embodiments, the decoding device deletes the oldest version, sets the new encoding point table V1 as the latest version, and updates the local encoding point table library. Exemplarily, the decoding device stores multiple encoding point tables (e.g., 16), and if the version number of the combined encoding point table V2 (i.e., the new encoding point table V1) is 15, then delete the encoding point table with the old version number 15, and correspond the latest version mark with the new encoding point table. Exemplarily, if the decoding device stores one version of the encoding point table (by default, it is the latest version), then the new encoding point table V1 can be directly used to replace the old encoding point table.
[0146] Finally, S8010: Send the encoded to-be-transmitted string to the decoding device. Here, the encoded to-be-transmitted string is encoded using the latest encoding point table V1, for example, encoded in S807.
[0147] It should be noted that the string to be transmitted after encoding is transmitted in the format of a service message during the communication process. The decoding device receives the service message and can perform decoding according to the version of the encoding point table specified in the message and stored in the decoding device. Here, if the decoding device receives the encoding point table message and updates the corresponding encoding point table before receiving the service message, the stored encoding point table version is the updated version; if the decoding device does not receive the encoding point table message before receiving the service message, the stored encoding point table version is the unupdated version.
[0148] By adopting such a method, it can be ensured that the byte length of the string to be transmitted after encoding is relatively short, reducing the amount of data transmitted and thus saving bandwidth traffic. At the same time, only when new characters appear in the encoding point table V2 or the shortening ratio relative to the encoding point table V1 meets the requirements of the preset threshold, will the transmission and update of the encoding point table be carried out. Thus, the synchronization frequency of the encoding point table can be reduced, further saving bandwidth traffic.
[0149] It should be noted that the method of the embodiments of the present disclosure can be executed by a single device, such as a computer or a server, etc. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In such a distributed scenario, one of the multiple devices can only execute one or more steps of the method of the embodiments of the present disclosure, and these multiple devices will interact with each other to complete the described method.
[0150] It should be noted that some embodiments of the present disclosure have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order from those in the above embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0151] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure also provides a remote control method based on an Internet of Things platform.
[0152] Figure 9 A flowchart showing another remote control method provided by the embodiments of the present disclosure is shown. The remote control method is applied to an Internet of Things server 100, and the Internet of Things server is communicatively connected to a master control device 200 and at least one controlled device 300. The Internet of Things server 100 stores information of at least one remote control server 400 (as Figure 2A and Figure 2B shown); the remote control method includes:
[0153] S902: AsFigure 4 As shown, obtain a first remote request of the master device 200, where the remote request includes a target controlled device;
[0154] S904: Generate controlled device information and remote control service information according to the information of the target controlled device and at least one remote control server;
[0155] S906: Send a remote control command to the target controlled device 300; where the remote control command includes the controlled device information and the remote control service information, so that the target controlled device communicates with and connects to the corresponding remote control server according to the remote control service information and sends the controlled device information; and
[0156] S908: Send the controlled device information and remote control service information to the master device 200, so that the master device communicates with and connects to the corresponding remote control server according to the remote control service information and sends the controlled device information; where
[0157] The controlled device information can be verified by the remote control server 400 to determine whether to establish remote control.
[0158] Adopting such a solution, the operation of the entire remote control method is simple, and the technical effects of improving the remote operation and maintenance efficiency and reducing the remote operation and maintenance cost can be achieved. At the same time, each time a remote control connection is established with the Internet of Things server 100, new remote control service information and controlled device information are generated and sent to the master device 200 and the controlled device 300 respectively. The remote control server 400 verifies the controlled device information respectively from the master device 200 and the controlled device 300, reducing risks such as password leakage, and ensuring the security of the remote control service.
[0159] In some embodiments, the controlled device information includes a controlled device control code and a random password. Optionally, the controlled device control code can be a MAC code, an SN code.
[0160] In some embodiments, the remote control service information includes a remote control server address, such as an IP address and a port.
[0161] In some embodiments, it further includes:
[0162] As Figure 3 shown, obtain and register the controlled device according to an identity registration message (S101) sent by at least one controlled device 300 and add it to a controlled device list; where the controlled device list can be displayed by the master device 200. Here, the identity registration message can be a MAC code, an SN code, etc., and the present disclosure does not limit this.
[0163] In some embodiments, it further includes:
[0164] As Figure 3 shown, obtain and update the status of the corresponding controlled device in the controlled device list according to the status information sent by each of the controlled devices 300 (S103).
[0165] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a controlled device 300; the controlled device is communicatively connected to an Internet of Things server 100 (as Figure 2A and Figure 2B shown); the remote control method includes:
[0166] As Figure 4 shown, obtain the remote control command sent by the Internet of Things server 100 (S303); the remote control command includes the controlled device information and the remote control service information;
[0167] According to the remote control service information, establish a communication connection with a remote control server 400 corresponding to the remote control service information, and send the controlled device information so that the remote control server 400 can verify the controlled device information (S304 and S305). Here, the corresponding remote control server 400 can be determined based on the remote control server IP and port in the remote control service information.
[0168] In some embodiments, it further includes:
[0169] As Figure 3 shown, send at least one of an identity registration message (S301) and status information (S302) to the Internet of Things server; wherein, the identity registration information is used for the controlled device to be registered in the Internet of Things server and added to the controlled device list; the status information is used to update the status of the controlled device in the controlled device list.
[0170] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a master control device 200, and the master control device is communicatively connected to an Internet of Things server (as Figure 2A and Figure 2B shown); the remote control method includes:
[0171] As Figure 4 shown, send a first remote request to the Internet of Things server 100 (S205);
[0172] Obtain the controlled device information and remote control service information sent by the Internet of Things server 100 (S206);
[0173] Establish a communication connection with the remote control server 400 corresponding to the remote control service information (S207 and S208); here, the corresponding remote control server 400 can be determined based on the remote control server IP and port in the remote control service information.
[0174] Send a second remote request to the remote control server 400 (S209); the second remote request includes the controlled device information so that the remote control server 400 can verify the controlled device information; and
[0175] Obtain the verification result fed back by the remote control server 400, and display the corresponding result information according to the verification result (S2011 and S2012).
[0176] In some embodiments, before sending the first remote request to the Internet of Things server 400, it further includes:
[0177] As Figure 4 shown, obtain a list of controlled devices (S204); wherein, the list of controlled devices is sourced from the Internet of Things server 100;
[0178] In response to a selection operation for at least one controlled device, determine the at least one controlled device as the target controlled device (S205).
[0179] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure further provides a remote control method based on an Internet of Things platform, which is applied to a remote control server 400; the remote control server 400 is communicatively connected to a controlled device 300 and a master control device 200, and the remote control method includes:
[0180] As Figure 4 shown, obtain a second remote request sent by the master control device 200 (S403); wherein, the second remote request includes controlled device information;
[0181] Obtain the controlled device information sent by the controlled device 300 (S401);
[0182] Verify the controlled device information sent by the master control device 200 and the controlled device information sent by the controlled device 300 (S404);
[0183] In response to determining that the verification is successful, establish a remote control connection service and feedback to the master control device 200 (S405); in this way, the master control device 200 can achieve remote control of the controlled device 300, such as remote monitoring.
[0184] In response to determining that the inspection fails, send a failure result to the master device 300.
[0185] An embodiment of the present disclosure also provides a communication protocol compression method. As Figure 8B shown, the method includes:
[0186] Determine a second coding point table according to a pre-stored first coding point table and a string to be transmitted (S804); wherein, the first coding point table and the second coding point table are obtained according to variable-length coding; exemplarily, the variable-length coding may be Huffman coding, Shannon coding;
[0187] Encode the string to be transmitted by using the first coding point table and the second coding point table respectively to obtain first coding information and second coding information (S8061);
[0188] Compare the byte lengths of the first coding information and the second coding information (S808);
[0189] In response to determining that the byte length of the second coding information is less than the byte length of the first coding information and the shortening ratio meets the threshold (S808); then send the second coding information to the decoding device, and send the second coding point table to the decoding device (S809), so that the decoding device updates the stored coding point table and decodes the second coding information according to the updated coding point table;
[0190] In response to determining that the byte length of the second coding information is not less than the byte length of the first coding information or determining that the byte length of the second coding information is less than the byte length of the first coding information and the shortening ratio does not meet the threshold; then send the first coding information to the decoding device.
[0191] In this way, not only the amount of coded information transmitted is small, but also the synchronization frequency of the coding point table can be reduced, thereby reducing the bandwidth pressure.
[0192] In some embodiments, the sending time of sending the second coding information to the decoding device is after the sending time of sending the second coding point table to the decoding device. In this way, it can be ensured that the decoding device decodes by using an accurate coding point table, ensuring the accuracy of decoding.
[0193] In some embodiments, it further includes:
[0194] As Figure 8B shown, compare the characters of the second coding point table and the first coding point table (S805);
[0195] In response to determining that there are no new characters in the second code point table, the first code point table and the second code point table respectively encode the string to be transmitted to obtain first encoding information and second encoding information (S8061);
[0196] In response to determining that there are new characters in the second code point table, the second code point table is used to encode the string to be transmitted to obtain second encoding information (S807), and the second encoding information is sent to the decoding device (S8010). The second code point table is sent to the decoding device (S809) so that the decoding device can update the stored code point table and decode the second encoding information according to the updated code point table.
[0197] In some embodiments, as Figure 6 , Figure 7A and Figure 7B shown, the message format of the communication protocol includes a message header and a body; the message header includes a message identifier;
[0198] The sending the second encoding information to the decoding device includes:
[0199] Generating a second service message according to the second encoding information and the version number of the second code point table;
[0200] The sending the second code point table to the decoding device includes:
[0201] Generating a code point table message according to the second code point table; wherein, the message identifier distinguishes the second service message and the code point table message.
[0202] In some embodiments, it further includes: The sending the first encoding information to the decoding device includes:
[0203] Generating a first service message according to the first encoding information and the version number of the first code point table. Similarly, the message identifier can distinguish the first service message and the code point table message.
[0204] In this way, it is convenient for the decoding device to distinguish whether the message is encoding information (i.e., service information) or a code point table.
[0205] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the method of any of the above embodiments.
[0206] Figure 10Fig. 0 shows a more specific schematic diagram of the hardware structure of the electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. Among them, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other inside the device through the bus 1050.
[0207] The processor 1010 may be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0208] The memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0209] The input / output interface 1030 is used to connect to an input / output module to implement information input and output. The input / output module may be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Among them, the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0210] The communication interface 1040 is used to connect to a communication module (not shown in the figure) to implement communication interaction between this device and other devices. Among them, the communication module may implement communication in a wired manner (such as USB, network cable, etc.) or in a wireless manner (such as mobile network, WIFI, Bluetooth, etc.).
[0211] The bus 1050 includes a path for transmitting information between various components of the device (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0212] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0213] The electronic device of the above embodiment is used to implement the corresponding method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0214] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method described in any of the foregoing embodiments.
[0215] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device.
[0216] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute the method described in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0217] Based on the same inventive concept, corresponding to the method described in any of the above embodiments, the present disclosure also provides a computer program product including computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of the computer to cause the computer and / or the processor to execute the color correction method. Corresponding to the execution subject of each step in each embodiment of the color correction method, the processor executing the corresponding step can belong to the corresponding execution subject.
[0218] The computer program product of the above embodiments is used to cause the computer and / or the processor to execute the method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0219] Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples; under the concept of the present disclosure, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
[0220] In addition, for the sake of simplicity of description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. In addition, the devices may be shown in block diagram form in order not to make the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure are to be implemented (i.e., these details should be completely within the understanding of those skilled in the art). In the case where specific details (such as circuits) are set forth to describe the exemplary embodiments of the present disclosure, it will be apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with variations of these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0221] Although the present disclosure has been described in connection with specific embodiments of the present disclosure, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other memory architectures (such as dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0222] The embodiments of the present disclosure are intended to cover all such alternatives, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure shall be included within the protection scope of the present disclosure.
Claims
1. A remote control method based on an Internet of Things platform, characterized in that, Applied to an Internet of Things server, the Internet of Things server is communicatively connected to a main control device and at least one controlled device, and the Internet of Things server stores information of at least one remote control server; The remote control method includes: Obtaining a first remote request from the main control device, the remote request including a target controlled device; Generating controlled device information and remote control service information according to the target controlled device and the information of at least one remote control server; Sending a remote control command to the target controlled device; wherein, the remote control command includes the controlled device information and the remote control service information, so that the target controlled device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; and Sending the controlled device information and the remote control service information to the main control device, so that the main control device communicatively connects to a corresponding remote control server according to the remote control service information and sends the controlled device information; wherein, The controlled device information can be verified by the remote control server to determine whether to establish remote control.
2. The remote control method according to claim 1, wherein The controlled device information includes a controlled device control code and a random password; and / or The remote control service information includes a remote control server address and a port.
3. The remote control method according to claim 1, characterized in that It further includes: Obtaining and registering the controlled device according to an identity registration message sent by at least one controlled device and adding it to a controlled device list; wherein, the controlled device list can be displayed by the main control device.
4. The remote control method according to claim 3, characterized in that It further includes: Obtaining and updating the status of the corresponding controlled device in the controlled device list according to the status information sent by each controlled device.
5. Remote control method based on Internet of Things platform, characterized in that, Applied to a controlled device; The controlled device is communicatively connected to an Internet of Things server; The remote control method includes: Obtaining a remote control command sent by the Internet of Things server; the remote control command includes the controlled device information and the remote control service information; Establishing a communication connection with a remote control server corresponding to the remote control service information according to the remote control service information and sending the controlled device information, so that the remote control server can verify the controlled device information.
6. The remote control method according to claim 5, wherein It further includes: Sending at least one of an identity registration message and status information to the Internet of Things server; wherein, the identity registration information is used for the controlled device to be registered in the Internet of Things server and added to the controlled device list; the status information is used to update the status of the controlled device in the controlled device list.
7. A remote control method based on an Internet of Things platform, characterized in that, Applied to a main control device, the main control device is communicatively connected to an Internet of Things server; The remote control method includes: Sending a first remote request to the Internet of Things server; Obtaining the controlled device information and the remote control service information sent by the Internet of Things server; Establishing a communication connection with a remote control server corresponding to the remote control service information according to the remote control service information; Sending a second remote request to the remote control server; the second remote request includes the controlled device information, so that the remote control server can verify the controlled device information; and Obtain the inspection result feedback by the remote control server, and display the corresponding result information according to the inspection result.
8. The remote control method according to claim 7, wherein Before sending the first remote request to the IoT server, it further includes: Obtain a list of controlled devices; wherein, the list of controlled devices is sourced from the IoT server; In response to a selection operation for at least one controlled device, determine the at least one controlled device as the target controlled device.
9. A remote control method based on an Internet of Things platform, characterized in that, Applied to a remote control server; The remote control server is communicatively connected to a controlled device and a master device, and the remote control method includes: Obtain a second remote request sent by the master device; wherein, the second remote request includes controlled device information; Obtain the controlled device information sent by the controlled device; Inspect the controlled device information sent by the master device and the controlled device information sent by the controlled device; In response to determining that the inspection is successful, establish a remote control connection service and feedback it to the master device; In response to determining that the inspection fails, send a failure result to the master device.
10. A communication protocol compression method, characterized in that, Includes: Determine a second code point table according to a pre-stored first code point table and a string to be transmitted; wherein, the first code point table and the second code point table are obtained according to variable-length coding; Encode the string to be transmitted using the first code point table and the second code point table respectively to obtain first encoded information and second encoded information; Compare the byte lengths of the first encoded information and the second encoded information; In response to determining that the byte length of the second encoded information is less than the byte length of the first encoded information and the shortening ratio meets the threshold; then send the second encoded information to the decoding device, and send the second code point table to the decoding device, so that the decoding device updates the stored code point table and decodes the second encoded information according to the updated code point table; In response to determining that the byte length of the second encoded information is not less than the byte length of the first encoded information or determining that the byte length of the second encoded information is less than the byte length of the first encoded information and the shortening ratio does not meet the threshold; then send the first encoded information to the decoding device.
11. The communication protocol compression method according to claim 10, characterized in that, The sending time of sending the second encoded information to the decoding device is after the sending time of sending the second code point table to the decoding device.
12. The communication protocol compression method according to claim 10, wherein It further includes: Compare the characters of the second code point table and the first code point table; In response to determining that there are no new characters in the second code point table, the first code point table and the second code point table encode the string to be transmitted respectively to obtain first encoded information and second encoded information; In response to determining that there are new characters in the second code point table, encode the string to be transmitted using the second code point table to obtain second encoded information, and send the second encoded information to the decoding device; Send the second code point table to the decoding device, so that the decoding device updates the stored code point table and decodes the second encoded information according to the updated code point table.
13. The communication protocol compression method according to claim 10, characterized in that, The message format of the communication protocol includes a message header and a body; the message header includes a message identifier; The sending the second encoded information to the decoding device includes: Generate a second service message according to the second coding information and the version number of the second coding point table; The step of sending the second coding point table to the decoding device includes: Generate a coding point table message according to the second coding point table; wherein, the message identifier differentiates the second service message and the coding point table message.
14. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable by the processor, characterized in that, When the processor executes the computer program, it implements the remote control method according to any one of claims 1 to 9 or the communication protocol compression method according to any one of claims 10 to 13.
15. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the remote control method according to any one of claims 1 to 9 or the communication protocol compression method according to any one of claims 10 to 13.
16. A remote control system based on an Internet of Things platform, characterized in that, The remote control system includes an Internet of Things server, a master control device, at least one controlled device, and at least one remote control server; wherein, The Internet of Things server is communicatively connected to the master control device and the controlled device, and the Internet of Things server stores information of at least one of the remote control servers; the Internet of Things server is configured to: Obtain a first remote request from the master control device, the remote request including a target controlled device; Generate controlled device information and remote control service information according to the target controlled device and the information of at least one remote control server; Send a remote control command to the target controlled device; wherein, the remote control command includes the controlled device information and the remote control service information, so that the target controlled device communicates with the corresponding remote control server according to the remote control service information and sends the controlled device information; and Send the controlled device information and the remote control service information to the master control device, so that the master control device communicates with the corresponding remote control server according to the remote control service information and sends the controlled device information; wherein, The controlled device information can be verified by the remote control server to determine whether to establish remote control; The controlled device is configured to: Obtain the remote control command sent by the Internet of Things server; the remote control command includes the controlled device information and the remote control service information; Establish a communication connection with the remote control server corresponding to the remote control service information according to the remote control service information, and send the controlled device information, so that the remote control server can verify the controlled device information; The master control device is configured to: Send a first remote request to the Internet of Things server; Obtain the controlled device information and the remote control service information sent by the Internet of Things server; Establish a communication connection with the remote control server corresponding to the remote control service information according to the remote control service information; Send a second remote request to the remote control server; the second remote request includes the controlled device information, so that the remote control server can verify the controlled device information; and Obtain the verification result feedback by the remote control server, and display the corresponding result information according to the verification result; The remote control server is configured to: Obtain a second remote request sent by the master device; wherein, the second remote request includes controlled device information; Obtain the controlled device information sent by the controlled device; Verify the controlled device information sent by the master device and the controlled device information sent by the controlled device; In response to determining that the verification is successful, establish a remote control connection service and feedback to the master device; In response to determining that the verification fails, send a failure result to the master device.