Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method and equipment for controlling a display terminal by a multi-protocol handheld terminal, which have strong universality and are suitable for various display terminals.
The technical scheme of the invention is as follows:
The technical scheme is as follows:
A control method of a multi-protocol handheld terminal to a display terminal comprises the following steps:
Confirming a first wireless communication protocol according to hardware configuration of the handheld terminal and the display terminal; the first wireless communication protocol is used for transmitting a control command of the handheld terminal to the display terminal;
confirming a second wireless communication protocol; the handheld terminal transmits the image data to the display terminal through a second wireless communication protocol;
If the first wireless communication protocol is different from the second wireless communication protocol, the handheld terminal transmits configuration information required by the pairing connection of the second wireless communication protocol to the display terminal through the first wireless communication protocol.
Further, the first wireless communication protocol is a bluetooth protocol, and a security verification mechanism is established through bluetooth, and the specific steps are as follows:
setting a terminal identifier; the handheld terminal generates a time stamp according to the current time; combining the terminal identifier with the timestamp to obtain a first character string; carrying out hash encryption on the first character string through a password hash function to obtain a first secret key; the method comprises the steps that a handheld terminal generates a first check code, wherein the first check code consists of a time stamp and a first secret key;
The handheld terminal sends a first check code to the display terminal; the display terminal generates a second key through the password hash function according to the timestamp in the first check code and the locally stored terminal identifier; and the display terminal compares the second secret key with the first secret key in the first check code, and if the comparison results are consistent, the check is passed.
Further, a user password is further provided in the security verification mechanism, and the specific steps are as follows:
Setting a user password; the handheld terminal generates a time stamp according to the current time; combining the terminal identifier, the user password and the timestamp to obtain a second character string; carrying out hash encryption on the second character string through a password hash function to obtain a third key; the handheld terminal generates a second check code, wherein the second check code consists of a time stamp and a third secret key;
The handheld terminal sends a second check code to the display terminal; the display terminal generates a fourth secret key through the password hash function according to the time stamp in the second check code, the locally stored user password and the terminal identifier; and the display terminal compares the fourth secret key with the third secret key in the second check code, and if the comparison results are consistent, the check is passed.
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hot spot protocol;
Confirming that Bluetooth is a first wireless communication protocol;
judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, confirming that the WiFi is a second wireless communication protocol; otherwise, confirming the hot spot as the second wireless communication protocol.
Further, the hot spot is opened by the display terminal.
Further, the method also comprises the step of sharing the image data through the FTP server, and the steps are as follows:
setting up an FTP server, and uploading the image data to the FTP server by the handheld terminal;
the presentation terminal obtains image data to be displayed from the FTP server.
Further, the first wireless communication protocol and the second wireless communication protocol are one of bluetooth, WIFI, hot spot, NFC or other wireless communication protocols.
The second technical scheme is as follows:
A multi-protocol handheld terminal to presentation terminal control device comprising a memory and a processor, the memory storing instructions adapted to be loaded by the processor and to perform the steps of:
Confirming a first wireless communication protocol according to hardware configuration of the handheld terminal and the display terminal; the first wireless communication protocol is used for transmitting a control command of the handheld terminal to the display terminal;
confirming a second wireless communication protocol; the handheld terminal transmits the image data to the display terminal through a second wireless communication protocol;
If the first wireless communication protocol is different from the second wireless communication protocol, the handheld terminal transmits configuration information required by the pairing connection of the second wireless communication protocol to the display terminal through the first wireless communication protocol.
Further, the first wireless communication protocol is a bluetooth protocol, and a security verification mechanism is established through bluetooth, and the specific steps are as follows:
setting a terminal identifier; the handheld terminal generates a time stamp according to the current time; combining the terminal identifier with the timestamp to obtain a first character string; carrying out hash encryption on the first character string through a password hash function to obtain a first secret key; the method comprises the steps that a handheld terminal generates a first check code, wherein the first check code consists of a time stamp and a first secret key;
The handheld terminal sends a first check code to the display terminal; the display terminal generates a second key through the password hash function according to the timestamp in the first check code and the locally stored terminal identifier; and the display terminal compares the second secret key with the first secret key in the first check code, and if the comparison results are consistent, the check is passed.
Further, a user password is further provided in the security verification mechanism, and the specific steps are as follows:
Setting a user password; the handheld terminal generates a time stamp according to the current time; combining the terminal identifier, the user password and the timestamp to obtain a second character string; carrying out hash encryption on the second character string through a password hash function to obtain a third key; the handheld terminal generates a second check code, wherein the second check code consists of a time stamp and a third secret key;
The handheld terminal sends a second check code to the display terminal; the display terminal generates a fourth secret key through the password hash function according to the time stamp in the second check code, the locally stored user password and the terminal identifier; and the display terminal compares the fourth secret key with the third secret key in the second check code, and if the comparison results are consistent, the check is passed.
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hot spot protocol;
Confirming that Bluetooth is a first wireless communication protocol;
judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, confirming that the WiFi is a second wireless communication protocol; otherwise, confirming the hot spot as the second wireless communication protocol.
Further, the hot spot is opened by the display terminal.
Further, the method also comprises the step of sharing the image data through the FTP server, and the steps are as follows:
setting up an FTP server, and uploading the image data to the FTP server by the handheld terminal;
the presentation terminal obtains image data to be displayed from the FTP server.
Further, the first wireless communication protocol and the second wireless communication protocol are one of bluetooth, WIFI, hot spot, NFC or other wireless communication protocols.
The invention has the following beneficial effects:
1. The invention confirms the first wireless communication protocol according to the hardware configuration (namely the supported wireless communication protocol) of the display terminal and the handheld terminal. For a display terminal which only supports a single wireless communication protocol or has small data transmission quantity, the transmission of control commands and image data is directly finished through a first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits configuration information required by the second wireless communication pairing connection, and then the control command and the image data are transmitted separately through the first wireless communication protocol and the second wireless communication protocol, so that the data and the control command are transmitted in a branching way, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the invention is suitable for various display terminals, has strong universality, does not need to manually input the password of the second wireless communication protocol, and optimizes the user experience. The user can also switch the second wireless communication protocol quickly and freely according to the actual requirements.
2. According to the invention, a security verification mechanism is established through Bluetooth, the handheld terminal sends the verification code to the display terminal, and the display terminal verifies the identity of the handheld terminal according to the verification code, so that management of Bluetooth connection objects of the display terminal and security verification of control commands transmitted by Bluetooth are realized, and practicability and security are enhanced. The time stamp enables the verification code to dynamically change, and the difficulty of verification code cracking is increased. MD5 is used to avoid the transmission of a terminal identifier and a user password in the clear between the presentation terminal and the handheld terminal. The terminal identifier enables the presentation terminal to be controlled only by the hand-held terminal using the control method of the present invention. The user password further limits the display terminal to be connected and controlled only by the handheld terminal which uses the control method and stores the user password.
3. According to the invention, the second wireless communication protocol is automatically confirmed according to the conditions of the communication module supported by the display terminal and the handheld terminal, the connected network and the like. WiFi, hot spot, and bluetooth are common communication protocols. Therefore, the control method has low hardware requirements on the handheld terminal and the display terminal, can save cost and has strong practicability. Meanwhile, the fact that hardware configuration of the handheld terminal is not uniform, uncertainty exists, and the handheld terminal is fixed to the display terminal equipment to open hot spots is considered.
4. According to the invention, the FTP server shares the image data, and the handheld terminal and the display terminal do not need to be connected to an external communication network, so that the image data and the control command can be directly transmitted in the internal network of the unit, and the risks of data leakage, network delay, communication faults and the like are avoided.
Detailed Description
The invention will now be described in detail with reference to the drawings and to specific embodiments.
Example 1
Referring to fig. 1, a method for controlling a presentation terminal by a multi-protocol handheld terminal includes the following steps:
And confirming a first wireless communication protocol according to the hardware configuration of the handheld terminal (mobile phone and tablet) and the display terminal, wherein the first wireless communication protocol is used for transmitting a control command of the handheld terminal to the display terminal.
Since bluetooth is a standard configuration of a handheld terminal and a display terminal, and is suitable for transmitting a control command with a smaller data amount, bluetooth is generally confirmed to be a first wireless communication protocol. When the display terminal and the handheld terminal both support wireless communication protocols such as NFC, NFC can also be selected as the first wireless communication protocol.
The control commands include device control instructions and image material control instructions. The equipment control instruction comprises an instruction for setting the display terminal body, such as: change device name instructions, device firmware upgrade instructions, restore factory settings instructions, user key settings, verification instructions, and the like. The image material control instruction comprises an instruction for controlling the display effect of the image material on the display terminal, such as: designating a playlist instruction, clearing the playlist instruction, acquiring the playlist instruction, deleting the designated image material instruction, and clearing the image pixel material instruction. Wherein the playlist refers to a list composed of at least one image material including an image display order, a display duration. The method comprises the steps that a play list is created on a handheld terminal, a play list instruction is acquired and transmitted to the display terminal, the play list on the current display terminal is designated through a play list designating instruction, all play lists stored on the display terminal are emptied through a play list emptying instruction, designated image material instructions or image material emptying instructions are deleted or all image materials transmitted to the display terminal are emptied, and the storage space of the display terminal is released.
And confirming the second wireless communication protocol, and transmitting the image data to the display terminal through the second wireless communication protocol by the handheld terminal.
If the first wireless communication protocol is different from the second wireless communication protocol, the handheld terminal transmits configuration information required by the pairing connection of the second wireless communication protocol to the display terminal through the first wireless communication protocol.
The embodiment has the advantage that the first wireless communication protocol is confirmed according to the hardware configuration (namely the supported wireless communication protocol) of the display terminal and the handheld terminal. For a display terminal supporting only a single wireless communication protocol, the transmission of control commands and image data is directly completed through a first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits configuration information required by the second wireless communication pairing connection, and then the control command and the image data are transmitted separately through the first wireless communication protocol and the second wireless communication protocol, so that the data and the control command are transmitted in a branching way, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the invention is suitable for various display terminals, has strong universality, does not need to manually input the password of the second wireless communication protocol, and optimizes the user experience. The user can also switch the second wireless communication protocol quickly and freely according to the actual requirements.
Compared with the method and the system for pairing the wireless user terminals in the background technology, the method and the system fully utilize the two established wireless communication connections and transmit the image data and the control command in parallel.
Example two
The two terminals for establishing the Bluetooth connection can randomly check service information, characteristic value information and the like of the Bluetooth module of the opposite party, acquire part of terminal information by reading the readable characteristic value, and attempt to write data and the like into the writable characteristic value. Therefore, a certain limitation needs to be made on the object for displaying the bluetooth connection of the terminal to ensure the security of bluetooth communication. Existing bluetooth connections may optionally set pairing codes to limit the objects of the bluetooth connection. When no pairing is set, bluetooth connection is directly established between terminals. If pairing is set, inquiring whether the users are paired or not through a popup window, and then manually inputting a pairing code by the users to pair, and establishing Bluetooth connection after successful pairing. However, the popup window is easy to intercept, a certain potential safety hazard still exists, a password is required to be manually input, and the user experience is poor.
Furthermore, in the embodiment, a security verification mechanism is established through bluetooth, so as to realize the management of a bluetooth connection object and the security verification of a control command transmitted by bluetooth (such as modifying an image/video displayed by a display terminal, restoring factory settings, and the like), and the specific steps are as follows:
Terminal identifiers are set (the same character string is uniformly set as the terminal identifier for a plurality of display terminals to be controlled, and the user has no authority change; in this embodiment, the terminal identifier is set as × &65#% ms#). The handheld terminal generates a time stamp (e.g., 1573439902) based on the current time. The terminal identifier is combined with the timestamp to obtain a first string (& 65#% ms# 1573439902). The first string is hashed by a cryptographic hash function (MD 5) to obtain a first key (334 BEBBC, 48EAD6C905611A170528B1A 4). The handheld terminal generates a first check code (1573439902334 BEBBC EAD6C905611A170528B1A 4) comprised of a time stamp and a first key. The time stamp is dynamically generated according to the current time, so that the first check code and the first secret key obtained each time are different from the last time.
The handheld terminal sends a first check code to the display terminal; the display terminal generates a second key through the password hash function according to the timestamp in the first check code and the locally stored terminal identifier; and the display terminal compares the second secret key with the first secret key in the first check code, and if the comparison results are consistent, the check is passed. The MD5 is an irreversible encryption algorithm and is used for avoiding plaintext transmission of a terminal identifier between a display terminal and a handheld terminal.
In this embodiment, the control method of the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The terminal identifier is well known within the APP. Only the handheld terminal provided with the APP can be connected with and control the corresponding display terminal, and the display terminal can be prevented from being connected by other Bluetooth equipment.
The improvement of the embodiment is that a security verification mechanism is established, the security verification mechanism is established through Bluetooth, the handheld terminal sends a verification code to the display terminal, the display terminal verifies the identity of the handheld terminal according to the verification code, management of Bluetooth connection objects and security verification of control commands transmitted by Bluetooth are achieved, and the practicability and security of the scheme are enhanced. The time stamp enables the first secret key to be dynamically changed, and the first secret key cracking difficulty is increased. MD5 is used to avoid the transmission of a terminal identifier in the clear between the presentation terminal and the handheld terminal. The terminal identifier enables the presentation terminal to be controlled only by the hand-held terminal using the control method of the present invention.
Example III
Furthermore, a user password is also arranged in the security verification mechanism. The initial state defaults to not setting the user password. After the user sets or modifies the user password on the handheld terminal, the handheld terminal sends a check code (if the user password is set for the first time, the check code is the first check code at this time, and if the user password is modified, the check code is the second check code at this time) and the set or modified user password to the display terminal, and the user password is stored after the display terminal is successfully checked.
In this embodiment, the control method of the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The user sets the user password through the APP on the handheld terminal A and informs the user password to the display terminal B. The user password is stored in the handheld terminal a and the presentation terminal B and is not known internally as APP. The hand-held terminal A is connected with and controls the display terminal B, while other hand-held terminals which are also provided with the APP cannot be connected with and control the display terminal B under the premise of unknown user passwords.
The improvement of the embodiment is that a user password is set, so that the display terminal can only be connected and controlled by the handheld terminal which uses the control method and stores the user password, and the management of Bluetooth connection objects and the safety verification of control commands transmitted by Bluetooth are further enhanced.
Example IV
Further, referring to fig. 2, in this embodiment, the screen of the display terminal is an ink screen, and bluetooth is confirmed to be the first wireless communication protocol and the second wireless communication protocol. And the display terminal and the handheld terminal are connected through Bluetooth.
The ink screen display terminal can only display black, white and red colors at most, so that image data is required to be preprocessed, and the method comprises the following steps: the image is processed into a dither pattern of black and white/red and white/black and white colors by an error diffusion algorithm or other image processing algorithm that modifies the image by randomly adding different colors between adjacent pixels so that the human eye perceives the image to appear more colors than originally. Compressing the jitter diagram.
And sending the compressed jittering image to the display terminal through Bluetooth. And displaying the shaking graph by the display terminal.
Example five
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hot spot protocol. And confirming that Bluetooth is a first wireless communication protocol, and establishing connection between the display terminal and the handheld terminal through Bluetooth.
Judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, confirming that the WiFi is a second wireless communication protocol. And then transmitting WiFi configuration information through Bluetooth, wherein the WiFi configuration information comprises information such as a network name SSID, a password pwd of connection, an encryption mode and the like.
If the hot spot is not in the same WiFi, the hot spot is confirmed to be in the second line communication mode. And the handheld terminal sends the hot spot information to the display terminal through Bluetooth, and the display terminal sets and opens the hot spot according to the hot spot information.
The embodiment is advanced in that the second wireless communication protocol is automatically confirmed according to the conditions of the communication modules supported by the display terminal and the handheld terminal, the connected network and the like. WiFi, hot spot, and bluetooth are common communication protocols. Therefore, the control method has low hardware requirements on the handheld terminal and the display terminal, can save cost and has strong practicability. Meanwhile, the fact that hardware configuration of the handheld terminal is not uniform, uncertainty exists, and the handheld terminal is fixed to the display terminal equipment to open hot spots is considered.
Example six
Further, referring to fig. 3, in this embodiment, the connection between the display terminal and the handheld terminal is established through bluetooth. Setting up an FTP server on the display terminal, and setting configuration information of the FTP server, including a host IP address, a port number, a user name, a password and the like.
WiFi is acknowledged as the second wireless communication protocol in this implementation. The display terminal and the handheld terminal are connected to the same WiFi network.
The display terminal sends the host IP address to the handheld terminal through Bluetooth. The handheld terminal establishes connection with the FTP server through the host IP address. The FTP server starts an FTP server. And the handheld terminal uploads the image data to the appointed directory of the FTP server through WiFi according to the IP address and the port number of the host.
After the uploading is finished, the handheld terminal sends the synchronous code (comprising a command for informing the completion of the uploading and a time stamp) to the display terminal through Bluetooth. And the display terminal copies the uploaded image data into an SD card of the display terminal, and generates a corresponding thumbnail according to the image data. The presentation terminal transmits a synchronization code (including a time stamp and SD card status) to the handheld terminal via bluetooth. The handheld terminal compares the locally stored same-class synchronous codes according to the received synchronous codes to determine whether the thumbnail needs to be updated.
After updating the thumbnail, the user selects the thumbnail on the handheld terminal and sets an image material control instruction. The handheld terminal sends an image material control instruction to the display terminal through Bluetooth; and the display terminal displays the image according to the received image material control instruction.
In addition, a web server can be built on the handheld terminal. A fixed folder in the SD card of the hand-held terminal is mapped to the root directory of the web server, and the display terminal is informed of the address (e.g., 192.168.200.1/template12. Jpg) of the image data under the root directory. And the display terminal downloads the image data according to the address.
The improvement of the embodiment is that the FTP server is used for sharing the image data, the handheld terminal and the display terminal do not need to be connected to an external communication network, the image data and the control command can be directly transmitted in the unit internal network, and risks such as data leakage, network delay and communication faults are avoided.
Example seven
An apparatus for a multi-protocol handheld terminal to display terminal control method, comprising a memory and a processor, the memory storing instructions adapted to be loaded by the processor and to perform the steps of:
And confirming a first wireless communication protocol according to the hardware configuration of the handheld terminal (mobile phone and tablet) and the display terminal, wherein the first wireless communication protocol is used for transmitting a control command of the handheld terminal to the display terminal.
Since bluetooth is a standard configuration of a handheld terminal and a display terminal, and is suitable for transmitting a control command with a smaller data amount, bluetooth is generally confirmed to be a first wireless communication protocol. When the display terminal and the handheld terminal both support wireless communication protocols such as NFC, NFC can also be selected as the first wireless communication protocol.
The control commands include device control instructions and image material control instructions. The equipment control instruction comprises an instruction for setting the display terminal body, such as: change device name instructions, device firmware upgrade instructions, restore factory settings instructions, user key settings, verification instructions, and the like. The image material control instruction comprises an instruction for controlling the display effect of the image material on the display terminal, such as: designating a playlist instruction, clearing the playlist instruction, acquiring the playlist instruction, deleting the designated image material instruction, and clearing the image pixel material instruction. Wherein the playlist refers to a list composed of at least one image material including an image display order, a display duration. The method comprises the steps that a play list is created on a handheld terminal, a play list instruction is acquired and transmitted to the display terminal, the play list on the current display terminal is designated through a play list designating instruction, all play lists stored on the display terminal are emptied through a play list emptying instruction, designated image material instructions or image material emptying instructions are deleted or all image materials transmitted to the display terminal are emptied, and the storage space of the display terminal is released.
And confirming the second wireless communication protocol, and transmitting the image data to the display terminal through the second wireless communication protocol by the handheld terminal.
If the first wireless communication protocol is different from the second wireless communication protocol, the handheld terminal transmits configuration information required by the pairing connection of the second wireless communication protocol to the display terminal through the first wireless communication protocol.
The embodiment has the advantage that the first wireless communication protocol is confirmed according to the hardware configuration (namely the supported wireless communication protocol) of the display terminal and the handheld terminal. For a display terminal supporting only a single wireless communication protocol, the transmission of control commands and image data is directly completed through a first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits configuration information required by the second wireless communication pairing connection, and then the control command and the image data are transmitted separately through the first wireless communication protocol and the second wireless communication protocol, so that the data and the control command are transmitted in a branching way, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the invention is suitable for various display terminals, has strong universality, does not need to manually input the password of the second wireless communication protocol, and optimizes the user experience. The user can also switch the second wireless communication protocol quickly and freely according to the actual requirements.
Example eight
The two terminals for establishing the Bluetooth connection can randomly check service information, characteristic value information and the like of the Bluetooth module of the opposite party, acquire part of terminal information by reading the readable characteristic value, and attempt to write data and the like into the writable characteristic value. Therefore, a certain limitation needs to be made on the object for displaying the bluetooth connection of the terminal to ensure the security of bluetooth communication. Existing bluetooth connections may optionally set pairing codes to limit the objects of the bluetooth connection. When no pairing is set, bluetooth connection is directly established between terminals. If pairing is set, inquiring whether the users are paired or not through a popup window, and then manually inputting a pairing code by the users to pair, and establishing Bluetooth connection after successful pairing. However, the popup window is easy to intercept, a certain potential safety hazard still exists, a password is required to be manually input, and the user experience is poor.
Furthermore, in the embodiment, a security verification mechanism is established through bluetooth, so as to realize the management of a bluetooth connection object and the security verification of a control command transmitted by bluetooth (such as modifying an image/video displayed by a display terminal, restoring factory settings, and the like), and the specific steps are as follows:
Terminal identifiers are set (the same character string is uniformly set as the terminal identifier for a plurality of display terminals to be controlled, and the user has no authority change; in this embodiment, the terminal identifier is set as × &65#% ms#). The handheld terminal generates a time stamp (e.g., 1573439902) based on the current time. The terminal identifier is combined with the timestamp to obtain a first string (& 65#% ms# 1573439902). The first string is hashed by a cryptographic hash function (MD 5) to obtain a first key (334 BEBBC, 48EAD6C905611A170528B1A 4). The handheld terminal generates a first check code (1573439902334 BEBBC EAD6C905611A170528B1A 4) comprised of a time stamp and a first key. The time stamp is dynamically generated according to the current time, so that the first check code and the first secret key obtained each time are different from the last time.
The handheld terminal sends a first check code to the display terminal; the display terminal generates a second key through the password hash function according to the timestamp in the first check code and the locally stored terminal identifier; and the display terminal compares the second secret key with the first secret key in the first check code, and if the comparison results are consistent, the check is passed. The MD5 is an irreversible encryption algorithm and is used for avoiding plaintext transmission of a terminal identifier between a display terminal and a handheld terminal.
In this embodiment, the control method of the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The terminal identifier is well known within the APP. Only the handheld terminal provided with the APP can be connected with and control the corresponding display terminal, and the display terminal can be prevented from being connected by other Bluetooth equipment.
The improvement of the embodiment is that a security verification mechanism is established, the security verification mechanism is established through Bluetooth, the handheld terminal sends a verification code to the display terminal, the display terminal verifies the identity of the handheld terminal according to the verification code, management of Bluetooth connection objects and security verification of control commands transmitted by Bluetooth are achieved, and the practicability and security of the scheme are enhanced. The time stamp enables the first secret key to be dynamically changed, and the first secret key cracking difficulty is increased. MD5 is used to avoid the transmission of a terminal identifier in the clear between the presentation terminal and the handheld terminal. The terminal identifier enables the presentation terminal to be controlled only by the hand-held terminal using the control method of the present invention.
Example nine
Furthermore, a user password is also arranged in the security verification mechanism. The initial state defaults to not setting the user password. After the user sets or modifies the user password on the handheld terminal, the handheld terminal sends a check code (if the user password is set for the first time, the check code is the first check code at this time, and if the user password is modified, the check code is the second check code at this time) and the set or modified user password to the display terminal, and the user password is stored after the display terminal is successfully checked.
In this embodiment, the control method of the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The user sets the user password through the APP on the handheld terminal A and informs the user password to the display terminal B. The user password is stored in the handheld terminal a and the presentation terminal B and is not known internally as APP. The hand-held terminal A is connected with and controls the display terminal B, while other hand-held terminals which are also provided with the APP cannot be connected with and control the display terminal B under the premise of unknown user passwords.
The improvement of the embodiment is that a user password is set, so that the display terminal can only be connected and controlled by the handheld terminal which uses the control method and stores the user password, and the management of Bluetooth connection objects and the safety verification of control commands transmitted by Bluetooth are further enhanced.
Examples ten
Further, referring to fig. 2, in this embodiment, the screen of the display terminal is an ink screen, and bluetooth is confirmed to be the first wireless communication protocol and the second wireless communication protocol. And the display terminal and the handheld terminal are connected through Bluetooth.
The ink screen display terminal can only display black, white and red colors at most, so that image data is required to be preprocessed, and the method comprises the following steps: the image is processed into a dither pattern of black and white/red and white/black and white colors by an error diffusion algorithm or other image processing algorithm that modifies the image by randomly adding different colors between adjacent pixels so that the human eye perceives the image to appear more colors than originally. Compressing the jitter diagram.
And sending the compressed jittering image to the display terminal through Bluetooth. And displaying the shaking graph by the display terminal.
Example eleven
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hot spot protocol. And confirming that Bluetooth is a first wireless communication protocol, and establishing connection between the display terminal and the handheld terminal through Bluetooth.
Judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, confirming that the WiFi is a second wireless communication protocol. And then transmitting WiFi configuration information through Bluetooth, wherein the WiFi configuration information comprises information such as a network name SSID, a password pwd of connection, an encryption mode and the like.
If the hot spot is not in the same WiFi, the hot spot is confirmed to be in the second line communication mode. And the handheld terminal sends the hot spot information to the display terminal through Bluetooth, and the display terminal sets and opens the hot spot according to the hot spot information.
The embodiment is advanced in that the second wireless communication protocol is automatically confirmed according to the conditions of the communication modules supported by the display terminal and the handheld terminal, the connected network and the like. WiFi, hot spot, and bluetooth are common communication protocols. Therefore, the control method has low hardware requirements on the handheld terminal and the display terminal, can save cost and has strong practicability. Meanwhile, the fact that hardware configuration of the handheld terminal is not uniform, uncertainty exists, and the handheld terminal is fixed to the display terminal equipment to open hot spots is considered.
Example twelve
Further, referring to fig. 3, in this embodiment, the connection between the display terminal and the handheld terminal is established through bluetooth. Setting up an FTP server on the display terminal, and setting configuration information of the FTP server, including a host IP address, a port number, a user name, a password and the like.
WiFi is acknowledged as the second wireless communication protocol in this implementation. The display terminal and the handheld terminal are connected to the same WiFi network.
The display terminal sends the host IP address to the handheld terminal through Bluetooth. The handheld terminal establishes connection with the FTP server through the host IP address. The FTP server starts an FTP server. And the handheld terminal uploads the image data to the appointed directory of the FTP server through WiFi according to the IP address and the port number of the host.
After the uploading is finished, the handheld terminal sends the synchronous code (comprising a command for informing the completion of the uploading and a time stamp) to the display terminal through Bluetooth. And the display terminal copies the uploaded image data into an SD card of the display terminal, and generates a corresponding thumbnail according to the image data. The presentation terminal transmits a synchronization code (including a time stamp and SD card status) to the handheld terminal via bluetooth. The handheld terminal compares the locally stored same-class synchronous codes according to the received synchronous codes to determine whether the thumbnail needs to be updated.
After updating the thumbnail, the user selects the thumbnail on the handheld terminal and sets an image material control instruction. The handheld terminal sends an image material control instruction to the display terminal through Bluetooth; and the display terminal displays the image according to the received image material control instruction.
In addition, a web server can be built on the handheld terminal. A fixed folder in the SD card of the hand-held terminal is mapped to the root directory of the web server, and the display terminal is informed of the address (e.g., 192.168.200.1/template12. Jpg) of the image data under the root directory. And the display terminal downloads the image data according to the address.
The improvement of the embodiment is that the FTP server is used for sharing the image data, the handheld terminal and the display terminal do not need to be connected to an external communication network, the image data and the control command can be directly transmitted in the unit internal network, and risks such as data leakage, network delay and communication faults are avoided.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.