CN112218279A - Method and equipment for controlling multi-protocol handheld terminal to display terminal - Google Patents

Method and equipment for controlling multi-protocol handheld terminal to display terminal Download PDF

Info

Publication number
CN112218279A
CN112218279A CN202011098878.5A CN202011098878A CN112218279A CN 112218279 A CN112218279 A CN 112218279A CN 202011098878 A CN202011098878 A CN 202011098878A CN 112218279 A CN112218279 A CN 112218279A
Authority
CN
China
Prior art keywords
terminal
wireless communication
display terminal
handheld terminal
communication protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011098878.5A
Other languages
Chinese (zh)
Inventor
王振杰
陈金龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Xiaofei Technology Co ltd
Original Assignee
Fujian Xiaofei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Xiaofei Technology Co ltd filed Critical Fujian Xiaofei Technology Co ltd
Priority to CN202011098878.5A priority Critical patent/CN112218279A/en
Publication of CN112218279A publication Critical patent/CN112218279A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention relates to a method for controlling a display terminal by a multi-protocol handheld terminal, which comprises the following steps: confirming a first wireless communication protocol according to hardware configurations 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; acknowledging the second wireless communication protocol; the handheld terminal transmits 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 second wireless communication protocol pairing connection to the display terminal through the first wireless communication protocol.

Description

Method and equipment for controlling multi-protocol handheld terminal to display terminal
Technical Field
The invention relates to a method and equipment for controlling a multi-protocol handheld terminal to a display terminal, and belongs to the field of Internet of things.
Background
The display terminal generally uses a liquid crystal screen or an ink screen as a display screen. The two screens display different image data formats and different data transmission rates. The liquid crystal display has large power consumption, higher requirement on data transmission rate and more types of supported wireless communication protocols (WiFi, Bluetooth, NFC and the like); the ink screen has low power consumption and low requirement on data transmission rate, and only supports the Bluetooth protocol generally.
In the prior art, control and data transmission of a display terminal are basically realized by the following two methods. One method is to upload data resources to a cloud server, and a user controls a display terminal to access a cloud end through a handheld terminal so as to acquire selected data. Cloud services have the following disadvantages: 1. the user data is stored in the cloud server, is easy to be attacked by hackers or leaked by workers, and is poor in safety; 2. the cloud server is affected by regular and unpredictable factors to interrupt service, and the stability is poor; 3. the playing of the display terminal caused by network delay and interruption is blocked or even has no picture; 4. long-term rental cloud services are costly. And secondly, the connection is directly established between the handheld terminal and the display terminal through near field communication protocols such as Bluetooth, WiFi, NFC, Zigbee, WIDI and the like so as to carry out corresponding control and data transmission. The disadvantages are: the application range of each communication protocol is different, and only a small number of display terminals and handheld terminals support communication protocols such as NFC, Zigbee, WIDI and the like.
The patent publication No. CN103684546A patent of invention, a method and a system for pairing wireless user terminals, discloses a method for transmitting key information of unpaired short-range wireless communication modules by establishing connection between any one kind of short-range wireless communication modules; and establishing pairing connection between the corresponding short-distance wireless communication modules by using the key information. And transmitting data through the recently paired communication channel or the communication channel selected by the user, and displaying the data through a display screen of the source wireless user terminal. This patent has realized that quick pairing connection and data transmission between two terminals. However, the short-range wireless communication module established first in the patent is only used for transmitting the key information to establish another communication connection, and the short-range wireless communication connection established first cannot be fully utilized.
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 first technical scheme is as follows:
a method for controlling a display terminal by a multi-protocol handheld terminal comprises the following steps:
confirming a first wireless communication protocol according to hardware configurations 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;
acknowledging the second wireless communication protocol; the handheld terminal transmits 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 second wireless communication protocol pairing connection 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 timestamp 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 handheld terminal generates a first check code, wherein the first check code consists of a timestamp and a first secret key;
the handheld terminal sends a first check code to the display terminal; the display terminal generates a second secret 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 result is consistent, the check is passed.
Further, a user password is further set in the security verification mechanism, and the specific steps are as follows:
setting a user password; the handheld terminal generates a timestamp 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 secret key; the handheld terminal generates a second check code, wherein the second check code consists of a timestamp 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 result is 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 hotspot protocol;
confirming that the Bluetooth is a first wireless communication protocol;
judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, determining that the WiFi is a second wireless communication protocol; otherwise, the hotspot is confirmed to be the second wireless communication protocol.
Furthermore, the hot spot is opened by the display terminal.
Further, the method also comprises the step of sharing the image data through an FTP server, and the steps are as follows:
building an FTP server, and uploading 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, hotspot, NFC, or other wireless communication protocols.
The second technical scheme is as follows:
a control device for a multi-protocol handheld terminal to a display terminal, 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 configurations 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;
acknowledging the second wireless communication protocol; the handheld terminal transmits 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 second wireless communication protocol pairing connection 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 timestamp 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 handheld terminal generates a first check code, wherein the first check code consists of a timestamp and a first secret key;
the handheld terminal sends a first check code to the display terminal; the display terminal generates a second secret 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 result is consistent, the check is passed.
Further, a user password is further set in the security verification mechanism, and the specific steps are as follows:
setting a user password; the handheld terminal generates a timestamp 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 secret key; the handheld terminal generates a second check code, wherein the second check code consists of a timestamp 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 result is 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 hotspot protocol;
confirming that the Bluetooth is a first wireless communication protocol;
judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, determining that the WiFi is a second wireless communication protocol; otherwise, the hotspot is confirmed to be the second wireless communication protocol.
Furthermore, the hot spot is opened by the display terminal.
Further, the method also comprises the step of sharing the image data through an FTP server, and the steps are as follows:
building an FTP server, and uploading 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, hotspot, NFC, or other wireless communication protocols.
The invention has the following beneficial effects:
1. the present invention validates the first wireless communication protocol based on the hardware configuration (i.e., supported wireless communication protocols) of the display terminal and the handheld terminal. For a display terminal which only supports a single wireless communication protocol or has a small data transmission amount, the transmission of the control command and the image data is directly completed through the first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits the configuration information required by the second wireless communication pairing connection, and then the first wireless communication protocol and the second wireless communication protocol separately transmit the control command and the image data, so that the data and the control command can be transmitted in a separated line manner, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the method and the device are suitable for various display terminals, have strong universality, do not need to manually input the password of the second wireless communication protocol, and optimize the user experience. The user can also switch the second wireless communication protocol quickly and freely according to actual requirements.
2. According to the invention, a safety 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 the management of the Bluetooth connection object of the display terminal and the safety verification of the control command transmitted by the Bluetooth are realized, and the practicability and the safety are enhanced. The time stamp enables the verification code to dynamically change, and the difficulty of cracking the verification code is increased. MD5 is used to avoid plaintext transmission of terminal identifiers and user passwords between the display terminal and the handheld terminal. The terminal identifier enables the display terminal to be controlled only by the handheld terminal using the control method of the invention. The user password further limits that the display terminal can only be connected and controlled by the handheld terminal which uses the control method and stores the user password.
3. The invention automatically confirms the second wireless communication protocol according to the communication modules supported by the display terminal and the handheld terminal, the connected network and other conditions. The WiFi, the hotspot and the bluetooth are common communication protocols. Therefore, the control method has low requirement on hardware of the hand-held terminal and the display terminal, can save cost and has strong practicability. Meanwhile, considering that the hardware configuration of the handheld terminal is not uniform and uncertainty exists, the handheld terminal is fixed on a starting hotspot of the display terminal device.
4. According to the invention, the image data is shared by the FTP server, the handheld terminal and the display terminal do not need to be accessed 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 failure are avoided.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flowchart illustrating the display terminal acquiring and displaying an image according to the fourth embodiment;
fig. 3 is a flowchart of acquiring and displaying an image by the display terminal in the sixth embodiment.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example one
Referring to fig. 1, a method for controlling a display terminal by a multi-protocol handheld terminal includes the following steps:
according to hardware configurations of the handheld terminal (mobile phone and tablet) and the display terminal, a first wireless communication protocol is confirmed, and 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 for handheld terminals and display terminals and is suitable for transmitting control commands with small data volume, bluetooth is generally determined as the 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 device control instruction comprises an instruction for setting the display terminal body, such as: an instruction for changing the name of the equipment, an instruction for upgrading the firmware of the equipment, an instruction for restoring factory settings, a user key setting, an instruction for checking 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: the method comprises the steps of specifying a playlist instruction, clearing the playlist instruction, obtaining the playlist instruction, deleting the specified image material instruction and clearing the image material instruction. The playlist refers to a list composed of at least one image material and containing image display sequence and display time length. The method comprises the steps that a playlist is created on a handheld terminal, a playlist instruction is obtained and transmitted to a display terminal, the playlist on the current display terminal is designated through a designated playlist instruction, all playlists stored on the display terminal are emptied through an emptying playlist instruction, designated image materials or all image materials transmitted to the display terminal are deleted or emptied through a deleting designated image material instruction or an emptying image material instruction, 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 by the handheld terminal through the 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 second wireless communication protocol pairing connection 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 (i.e. supported wireless communication protocol) of the display terminal and the handheld terminal. For the display terminal only supporting a single wireless communication protocol, the transmission of the control command and the image data is directly completed through the first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits the configuration information required by the second wireless communication pairing connection, and then the first wireless communication protocol and the second wireless communication protocol separately transmit the control command and the image data, so that the data and the control command can be transmitted in a separated line manner, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the method and the device are suitable for various display terminals, have strong universality, do not need to manually input the password of the second wireless communication protocol, and optimize the user experience. The user can also switch the second wireless communication protocol quickly and freely according to actual requirements.
Comparing the invention with the method and system for pairing wireless user terminals in the background technology, the invention makes full use of two established wireless communication connections to transmit image data and control commands in parallel.
Example two
The two terminals establishing the Bluetooth connection can randomly check the service information, the characteristic value information and the like of the Bluetooth module of the other side, obtain partial terminal information by reading the readable characteristic value, try to write data into the writable characteristic value and the like. Therefore, certain restrictions need to be made on the object to which the bluetooth connection of the display terminal is connected, so as to ensure the security of the bluetooth communication. The existing bluetooth connection can choose to set a pairing code to limit the objects of the bluetooth connection. When pairing is not set, the Bluetooth connection is directly established between the terminals. And if the pairing is set, inquiring whether the user is paired through a popup window, manually inputting a pairing code by the user for pairing, and establishing Bluetooth connection after the pairing is successful. However, the popup is easy to intercept, certain potential safety hazards still exist, the password needs to be manually input, and user experience is poor.
Further, in this embodiment, a security verification mechanism is established via bluetooth to implement management of bluetooth connection objects and security verification of control commands transmitted via bluetooth (e.g., modifying images/videos displayed on a display terminal, restoring factory settings, etc.), which specifically includes the following steps:
setting a terminal identifier (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 to change the terminal identifier in the embodiment of # #& 65 #% ms #). The handheld terminal generates a timestamp (e.g., 1573439902) based on the current time. The terminal identifier is combined with the timestamp to obtain the first string (# &65 #% ms # 1573439902). The first string is hashed and encrypted by a cryptographic hash function (MD5) to obtain a first key (334BEBBC48EAD6C905611a170528B1a 4). The handheld terminal generates a first check code (1573439902334BEBBC48EAD6C905611A170528B1A4), the first check code consisting of a timestamp and a first secret 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 secret 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 result is consistent, the check is passed. The MD5 is an irreversible encryption algorithm, and is used to avoid plaintext transmission of the terminal identifier between the display terminal and the handheld terminal.
In this embodiment, the control method for the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The terminal identifier is known internally 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 with other Bluetooth equipment.
The embodiment has the advantages that a safety verification mechanism is established, the safety verification mechanism is established through the Bluetooth, the handheld terminal sends the verification code to the display terminal, the display terminal verifies the identity of the handheld terminal according to the verification code, management of the Bluetooth connection object and safety verification of the control command transmitted by the Bluetooth are achieved, and practicability and safety of the scheme are enhanced. The time stamp enables the first secret key to dynamically change, and the difficulty of cracking the first secret key is increased. MD5 is used to avoid clear text transmission of terminal identifiers between the presentation terminal and the hand-held terminal. The terminal identifier enables the display terminal to be controlled only by the handheld terminal using the control method of the invention.
EXAMPLE III
Furthermore, a user password is also set in the security authentication 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 verified.
In this embodiment, the control method for the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The user sets a 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 display terminal B and is not known as APP internally. The handheld terminal A is connected with and controls the display terminal B, and other handheld terminals with the APP cannot be connected with and control the display terminal B on the premise that the user password is unknown.
The present embodiment is further characterized in that a user password is set, so that the display terminal can only be connected and controlled by the handheld terminal using the control method of the present invention and storing the user password, and further, the management of the bluetooth connection object and the security verification of the bluetooth transmission control command are enhanced.
Example four
Further, referring to fig. 2, in this embodiment, the screen of the display terminal is an ink screen, and it is determined that the bluetooth is the first wireless communication protocol and the second wireless communication protocol. The display terminal and the handheld terminal are connected through Bluetooth.
The ink screen display terminal can only display three colors of black, white and red at most, so image data is needed to be preprocessed, and the steps are as follows: the image is processed into a dither map of black and white red/red white/black and white colors by an error diffusion algorithm or other image processing algorithms (the image processing algorithms modify the image by randomly adding different colors between adjacent pixels so that the human eye perceives the image to appear more colors than it originally). The dither map is compressed.
And sending the compressed jitter image to a display terminal through Bluetooth. The display terminal displays the dither map.
EXAMPLE five
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hotspot protocol. And confirming that the Bluetooth is the first wireless communication protocol, and establishing connection between the display terminal and the handheld terminal through the Bluetooth.
And 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 connected password pwd, an encryption mode and the like.
And if the mobile terminal is not under the same WiFi, determining that the hot spot is in a second-line communication mode. And then the handheld terminal sends the hotspot information to the display terminal through the Bluetooth, and the display terminal sets and opens the hotspot according to the hotspot information.
The present embodiment is advanced in that the second wireless communication protocol is automatically confirmed according to the communication modules supported by the presentation terminal and the handheld terminal, the connected network, and the like. The WiFi, the hotspot and the bluetooth are common communication protocols. Therefore, the control method has low requirement on hardware of the hand-held terminal and the display terminal, can save cost and has strong practicability. Meanwhile, considering that the hardware configuration of the handheld terminal is not uniform and uncertainty exists, the handheld terminal is fixed on a starting hotspot of the display terminal device.
EXAMPLE six
Further, referring to fig. 3, in this embodiment, the display terminal and the handheld terminal are connected through bluetooth first. And (3) 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 identified in this implementation as the second wireless communication protocol. The display terminal and the handheld terminal are connected to the same WiFi network.
And the display terminal sends the IP address of the host to the handheld terminal through the Bluetooth. And the handheld terminal establishes connection with the FTP server through the IP address of the host. And the FTP server starts the FTP server. And the handheld terminal uploads the image data to a designated 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 codes (including the command and the timestamp informing the completion of the uploading) to the display terminal through the 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 display terminal sends a synchronization code (including a timestamp and an SD card status) to the handheld terminal through Bluetooth. And the handheld terminal compares the received synchronous codes with the locally stored same type of synchronous codes to determine whether the thumbnail needs to be updated.
And after the thumbnail is updated, the user selects the thumbnail on the handheld terminal and sets an image material control instruction. The handheld terminal sends the pixel material control instruction to the display terminal through the 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 hand-held terminal SD card is mapped to a root directory of the web server, and the address (such as 192.168.200.1/template12.jpg) of the image data under the root directory is told to the display terminal. And the display terminal downloads the image data according to the address.
The embodiment has the advantages that the image data are shared by the FTP server, the handheld terminal and the display terminal do not need to be accessed to an external communication network, the image data and the control command can be directly transmitted in a unit internal network, and risks such as data leakage, network delay and communication faults are avoided.
EXAMPLE seven
An apparatus for a method of controlling a display terminal by a multi-protocol handheld terminal, comprising a memory and a processor, the memory storing instructions adapted to be loaded by the processor and to perform the steps of:
according to hardware configurations of the handheld terminal (mobile phone and tablet) and the display terminal, a first wireless communication protocol is confirmed, and 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 for handheld terminals and display terminals and is suitable for transmitting control commands with small data volume, bluetooth is generally determined as the 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 device control instruction comprises an instruction for setting the display terminal body, such as: an instruction for changing the name of the equipment, an instruction for upgrading the firmware of the equipment, an instruction for restoring factory settings, a user key setting, an instruction for checking 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: the method comprises the steps of specifying a playlist instruction, clearing the playlist instruction, obtaining the playlist instruction, deleting the specified image material instruction and clearing the image material instruction. The playlist refers to a list composed of at least one image material and containing image display sequence and display time length. The method comprises the steps that a playlist is created on a handheld terminal, a playlist instruction is obtained and transmitted to a display terminal, the playlist on the current display terminal is designated through a designated playlist instruction, all playlists stored on the display terminal are emptied through an emptying playlist instruction, designated image materials or all image materials transmitted to the display terminal are deleted or emptied through a deleting designated image material instruction or an emptying image material instruction, 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 by the handheld terminal through the 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 second wireless communication protocol pairing connection 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 (i.e. supported wireless communication protocol) of the display terminal and the handheld terminal. For the display terminal only supporting a single wireless communication protocol, the transmission of the control command and the image data is directly completed through the first wireless communication protocol (Bluetooth, NFC and the like). For the display terminal supporting multiple wireless communication protocols, the first wireless communication protocol transmits the configuration information required by the second wireless communication pairing connection, and then the first wireless communication protocol and the second wireless communication protocol separately transmit the control command and the image data, so that the data and the control command can be transmitted in a separated line manner, congestion is avoided, and the working efficiency of the display terminal is effectively improved. Therefore, the method and the device are suitable for various display terminals, have strong universality, do not need to manually input the password of the second wireless communication protocol, and optimize the user experience. The user can also switch the second wireless communication protocol quickly and freely according to actual requirements.
Example eight
The two terminals establishing the Bluetooth connection can randomly check the service information, the characteristic value information and the like of the Bluetooth module of the other side, obtain partial terminal information by reading the readable characteristic value, try to write data into the writable characteristic value and the like. Therefore, certain restrictions need to be made on the object to which the bluetooth connection of the display terminal is connected, so as to ensure the security of the bluetooth communication. The existing bluetooth connection can choose to set a pairing code to limit the objects of the bluetooth connection. When pairing is not set, the Bluetooth connection is directly established between the terminals. And if the pairing is set, inquiring whether the user is paired through a popup window, manually inputting a pairing code by the user for pairing, and establishing Bluetooth connection after the pairing is successful. However, the popup is easy to intercept, certain potential safety hazards still exist, the password needs to be manually input, and user experience is poor.
Further, in this embodiment, a security verification mechanism is established via bluetooth to implement management of bluetooth connection objects and security verification of control commands transmitted via bluetooth (e.g., modifying images/videos displayed on a display terminal, restoring factory settings, etc.), which specifically includes the following steps:
setting a terminal identifier (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 to change the terminal identifier in the embodiment of # #& 65 #% ms #). The handheld terminal generates a timestamp (e.g., 1573439902) based on the current time. The terminal identifier is combined with the timestamp to obtain the first string (# &65 #% ms # 1573439902). The first string is hashed and encrypted by a cryptographic hash function (MD5) to obtain a first key (334BEBBC48EAD6C905611a170528B1a 4). The handheld terminal generates a first check code (1573439902334BEBBC48EAD6C905611A170528B1A4), the first check code consisting of a timestamp and a first secret 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 secret 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 result is consistent, the check is passed. The MD5 is an irreversible encryption algorithm, and is used to avoid plaintext transmission of the terminal identifier between the display terminal and the handheld terminal.
In this embodiment, the control method for the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The terminal identifier is known internally 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 with other Bluetooth equipment.
The embodiment has the advantages that a safety verification mechanism is established, the safety verification mechanism is established through the Bluetooth, the handheld terminal sends the verification code to the display terminal, the display terminal verifies the identity of the handheld terminal according to the verification code, management of the Bluetooth connection object and safety verification of the control command transmitted by the Bluetooth are achieved, and practicability and safety of the scheme are enhanced. The time stamp enables the first secret key to dynamically change, and the difficulty of cracking the first secret key is increased. MD5 is used to avoid clear text transmission of terminal identifiers between the presentation terminal and the hand-held terminal. The terminal identifier enables the display terminal to be controlled only by the handheld terminal using the control method of the invention.
Example nine
Furthermore, a user password is also set in the security authentication 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 verified.
In this embodiment, the control method for the multi-protocol handheld terminal to the display terminal is presented on the handheld terminal in the form of APP. The user sets a 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 display terminal B and is not known as APP internally. The handheld terminal A is connected with and controls the display terminal B, and other handheld terminals with the APP cannot be connected with and control the display terminal B on the premise that the user password is unknown.
The present embodiment is further characterized in that a user password is set, so that the display terminal can only be connected and controlled by the handheld terminal using the control method of the present invention and storing the user password, and further, the management of the bluetooth connection object and the security verification of the bluetooth transmission control command are enhanced.
Example ten
Further, referring to fig. 2, in this embodiment, the screen of the display terminal is an ink screen, and it is determined that the bluetooth is the first wireless communication protocol and the second wireless communication protocol. The display terminal and the handheld terminal are connected through Bluetooth.
The ink screen display terminal can only display three colors of black, white and red at most, so image data is needed to be preprocessed, and the steps are as follows: the image is processed into a dither map of black and white red/red white/black and white colors by an error diffusion algorithm or other image processing algorithms (the image processing algorithms modify the image by randomly adding different colors between adjacent pixels so that the human eye perceives the image to appear more colors than it originally). The dither map is compressed.
And sending the compressed jitter image to a display terminal through Bluetooth. The display terminal displays the dither map.
EXAMPLE eleven
Furthermore, the communication modules of the handheld terminal and the display terminal support a Bluetooth protocol, a WiFi protocol and a hotspot protocol. And confirming that the Bluetooth is the first wireless communication protocol, and establishing connection between the display terminal and the handheld terminal through the Bluetooth.
And 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 connected password pwd, an encryption mode and the like.
And if the mobile terminal is not under the same WiFi, determining that the hot spot is in a second-line communication mode. And then the handheld terminal sends the hotspot information to the display terminal through the Bluetooth, and the display terminal sets and opens the hotspot according to the hotspot information.
The present embodiment is advanced in that the second wireless communication protocol is automatically confirmed according to the communication modules supported by the presentation terminal and the handheld terminal, the connected network, and the like. The WiFi, the hotspot and the bluetooth are common communication protocols. Therefore, the control method has low requirement on hardware of the hand-held terminal and the display terminal, can save cost and has strong practicability. Meanwhile, considering that the hardware configuration of the handheld terminal is not uniform and uncertainty exists, the handheld terminal is fixed on a starting hotspot of the display terminal device.
Example twelve
Further, referring to fig. 3, in this embodiment, the display terminal and the handheld terminal are connected through bluetooth first. And (3) 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 identified in this implementation as the second wireless communication protocol. The display terminal and the handheld terminal are connected to the same WiFi network.
And the display terminal sends the IP address of the host to the handheld terminal through the Bluetooth. And the handheld terminal establishes connection with the FTP server through the IP address of the host. And the FTP server starts the FTP server. And the handheld terminal uploads the image data to a designated 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 codes (including the command and the timestamp informing the completion of the uploading) to the display terminal through the 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 display terminal sends a synchronization code (including a timestamp and an SD card status) to the handheld terminal through Bluetooth. And the handheld terminal compares the received synchronous codes with the locally stored same type of synchronous codes to determine whether the thumbnail needs to be updated.
And after the thumbnail is updated, the user selects the thumbnail on the handheld terminal and sets an image material control instruction. The handheld terminal sends the pixel material control instruction to the display terminal through the 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 hand-held terminal SD card is mapped to a root directory of the web server, and the address (such as 192.168.200.1/template12.jpg) of the image data under the root directory is told to the display terminal. And the display terminal downloads the image data according to the address.
The embodiment has the advantages that the image data are shared by the FTP server, the handheld terminal and the display terminal do not need to be accessed to an external communication network, the image data and the control command can be directly transmitted in a unit internal network, and risks such as data leakage, network delay and communication faults are avoided.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for controlling a display terminal by a multi-protocol handheld terminal is characterized by comprising the following steps:
confirming a first wireless communication protocol according to hardware configurations 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;
acknowledging the second wireless communication protocol; the handheld terminal transmits 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 second wireless communication protocol pairing connection to the display terminal through the first wireless communication protocol.
2. The method for controlling the display terminal by the multi-protocol handheld terminal according to claim 1, wherein the first wireless communication protocol is a bluetooth protocol, and a security verification mechanism for verifying the identity of the handheld terminal is established by bluetooth, and the method comprises the following specific steps:
setting a terminal identifier; the handheld terminal generates a timestamp 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 handheld terminal generates a first check code, wherein the first check code consists of a timestamp and a first secret key;
the handheld terminal sends a first check code to the display terminal; the display terminal generates a second secret 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 result is consistent, the check is passed.
3. The method for controlling the display terminal by the multi-protocol handheld terminal according to claim 2, wherein a user password for further verifying the identity of the handheld terminal is further provided in the security verification mechanism, and the specific steps are as follows:
setting a user password; the handheld terminal generates a timestamp 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 secret key; the handheld terminal generates a second check code, wherein the second check code consists of a timestamp 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 result is consistent, the check is passed.
4. The method for controlling the display terminal by the multi-protocol handheld terminal according to claim 1, wherein the communication modules of the handheld terminal and the display terminal support a bluetooth protocol, a WiFi protocol and a hotspot protocol;
confirming that the Bluetooth is a first wireless communication protocol;
judging whether the display terminal and the handheld terminal are under the same WiFi, and if so, determining that the WiFi is a second wireless communication protocol; otherwise, the hotspot is confirmed to be the second wireless communication protocol.
5. The method as claimed in claim 4, wherein the hotspot is initiated by the display terminal.
6. The method for controlling the display terminal by the multi-protocol handheld terminal according to claim 1, further comprising the step of sharing the image data by an FTP server, comprising:
building an FTP server, and uploading image data to the FTP server by the handheld terminal;
the presentation terminal obtains image data to be displayed from the FTP server.
7. The method as claimed in claim 1, wherein the first wireless communication protocol and the second wireless communication protocol are one of bluetooth, WIFI, hotspot, NFC or other wireless communication protocols.
8. A control device for a multi-protocol handheld terminal to a display terminal, comprising a memory and a processor, wherein the memory stores instructions adapted to be loaded by the processor and to execute a method for controlling a multi-protocol handheld terminal to a display terminal according to any one of claims 1 to 7.
CN202011098878.5A 2020-10-14 2020-10-14 Method and equipment for controlling multi-protocol handheld terminal to display terminal Pending CN112218279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011098878.5A CN112218279A (en) 2020-10-14 2020-10-14 Method and equipment for controlling multi-protocol handheld terminal to display terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011098878.5A CN112218279A (en) 2020-10-14 2020-10-14 Method and equipment for controlling multi-protocol handheld terminal to display terminal

Publications (1)

Publication Number Publication Date
CN112218279A true CN112218279A (en) 2021-01-12

Family

ID=74052697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011098878.5A Pending CN112218279A (en) 2020-10-14 2020-10-14 Method and equipment for controlling multi-protocol handheld terminal to display terminal

Country Status (1)

Country Link
CN (1) CN112218279A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686299A (en) * 2008-09-26 2010-03-31 兄弟工业株式会社 Data processing device
CN105427105A (en) * 2014-09-11 2016-03-23 中兴通讯股份有限公司 Mobile payment method, system and device
CN106652855A (en) * 2016-12-28 2017-05-10 天津恒达文博科技有限公司 Navigation method for gathering and intensively displaying information
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
CN107852420A (en) * 2016-06-16 2018-03-27 华为技术有限公司 The method and apparatus to be communicated between wearable device and mobile terminal
CN108370319A (en) * 2015-12-04 2018-08-03 维萨国际服务协会 unique code for token authentication
CN108616547A (en) * 2016-12-02 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of transmission file
CN108763895A (en) * 2018-04-28 2018-11-06 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, storage medium
WO2019047208A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 File transmission method and system
CN109891416A (en) * 2016-10-27 2019-06-14 株式会社电装 For authenticating and the system and method for authorization device
CN111447053A (en) * 2020-03-24 2020-07-24 重庆邮电大学 Data secure transmission method and system based on chaotic logic mapping and RC4 stream cipher

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686299A (en) * 2008-09-26 2010-03-31 兄弟工业株式会社 Data processing device
CN105427105A (en) * 2014-09-11 2016-03-23 中兴通讯股份有限公司 Mobile payment method, system and device
CN108370319A (en) * 2015-12-04 2018-08-03 维萨国际服务协会 unique code for token authentication
CN107852420A (en) * 2016-06-16 2018-03-27 华为技术有限公司 The method and apparatus to be communicated between wearable device and mobile terminal
CN109891416A (en) * 2016-10-27 2019-06-14 株式会社电装 For authenticating and the system and method for authorization device
CN108616547A (en) * 2016-12-02 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of transmission file
CN106652855A (en) * 2016-12-28 2017-05-10 天津恒达文博科技有限公司 Navigation method for gathering and intensively displaying information
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system
WO2019047208A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 File transmission method and system
CN108763895A (en) * 2018-04-28 2018-11-06 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, storage medium
CN111447053A (en) * 2020-03-24 2020-07-24 重庆邮电大学 Data secure transmission method and system based on chaotic logic mapping and RC4 stream cipher

Similar Documents

Publication Publication Date Title
CN104010309B (en) The method and terminal of connection are established between access point and terminal
US11917054B2 (en) Network key processing method and system and related device
CN106465121B (en) Electronic subscriber identity module configuration
US20160241537A1 (en) Method for transferring profile and electronic device supporting the same
US20150135240A1 (en) Video display terminal, video transmission terminal, video communication system, video display method, video transmission method, and computer-readable recording medium recording program
US20040131188A1 (en) Method of generating key data for successful communication during a network link
CN109525989B (en) Data processing and identity authentication method and system, and terminal
US10887745B2 (en) Method and device for sharing file between different terminals
US20160360343A1 (en) Method and system for data sharing
CN105323757A (en) WIFI squatter prevention wireless routing equipment and method
CN103873454A (en) Authentication method and equipment
EP3352528A1 (en) Remote control method and apparatus and mobile terminal
US20120059945A1 (en) Data-Transfer Method and Terminal
US20170006004A1 (en) Network Configuration Method, and Related Apparatus and System
CN112672351A (en) Wireless local area network authentication method and device, electronic equipment and storage medium
US20180139792A1 (en) Wireless communication terminal, wireless communication system, wireless communication method, and non-transitory medium saving program
US20230401020A1 (en) First communication device and non-transitory computer-readable medium storing computer-readable instructions for first communication device
CN106341815A (en) Wireless connection method, terminal and AP
US11063939B2 (en) Method and apparatus for secure interaction between terminals
EP3171263A1 (en) Projection system with portable device for automatically configuring wireless link and displaying images
US11844007B2 (en) Ecosystem-based wireless network setup
US20230156467A1 (en) Terminal device and non-transitory computer-readable recording medium storing computer readable instructions for terminal device
CN112218279A (en) Method and equipment for controlling multi-protocol handheld terminal to display terminal
CN103763697A (en) Wireless access point multi-secret key support system and method
CN114826591A (en) Cross-device data transmission method, system and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination