The application is a divisional application, the application number of the original application is 2020100450155, the application date is 20200116, and the invention is named as an off-line updating method, system, terminal and medium for elevator car display screen resources.
Disclosure of Invention
The utility model aims to solve the technical problems of complex operation and low efficiency of updating display screen resources of the existing elevator car display screen, and provides an elevator car display screen resource offline updating system based on UDP protocol and FTP transmission.
In order to solve the technical problems, the application is realized by the following technical scheme:
an elevator car display screen resource offline updating system based on UDP protocol and FTP transmission, applied to an elevator display end for updating display screen resources, comprising:
the receiving verification ID module is used for receiving the verification ID sent by the terminal through the UDP protocol;
a verification ID module for verifying whether the verification ID is consistent with the device ID;
the starting and sending module is used for starting the FTP server when the checking result of the checking and verifying ID module is yes, and sending the login information of the FTP server to the terminal through a UDP protocol;
and the acquisition updating module is used for acquiring display screen resources uploaded after the terminal logs in the FTP server according to the login information through the FTP server and updating the acquired display screen resources.
The elevator car display screen resource offline updating system based on the UDP protocol and the FTP transmission is characterized in that the login information is the identity of the elevator display end, the IP of the FTP server and the access port number.
The elevator car display screen resource offline updating system based on the UDP protocol and the FTP transmission comprises a user name and a password.
The elevator car display screen resource offline updating system based on UDP protocol and FTP transmission as described above, the starting and sending module comprises:
an FTP server;
an FTP server unit is started and is used for starting the FTP server;
a login information generating unit for generating the login information for logging in to the FTP server;
and the login information sending unit is used for sending the login information to the terminal through a UDP protocol.
The elevator car display screen resource offline updating system based on UDP protocol and FTP transmission as described above, the acquisition updating module comprises:
the method comprises the steps of obtaining a display screen resource unit, wherein the display screen resource unit is used for obtaining the display screen resource uploaded to an FTP server by a terminal;
the display screen resource storage unit is used for storing the acquired display screen resource to a local place;
and updating the display screen resource unit, wherein the updating display screen resource unit is used for updating the saved display screen resource into a picture displayed by the current elevator display terminal.
The elevator car display screen resource offline updating system based on the UDP protocol and the FTP transmission is described above, and the elevator display end and the terminal are Android operating systems.
The elevator car display screen resource offline updating system based on the UDP protocol and the FTP transmission is characterized in that the terminal is a mobile phone, a tablet computer or a notebook computer based on an Android operating system.
Compared with the prior art, the application has the following advantages:
the invention discloses an elevator car display screen resource offline updating system based on UDP protocol and FTP transmission, which is applied to an elevator display end for updating display screen resources, the system comprises a verification ID receiving module, a starting sending module and an updating obtaining module, wherein the verification ID receiving module is used for receiving verification ID sent by a terminal through the UDP protocol, the terminal adopts a UDP wireless communication mode between the terminal and the elevator display end in a local area network, the terminal sends verification ID to the elevator display end through the UDP protocol for identity verification, the verification ID receiving module is used for receiving verification ID sent by the terminal, the verification ID receiving module is used for verifying whether the verification ID is consistent with the equipment ID for identity verification, if the verification ID is the equipment ID, the verification ID passes, the sending module is started to open an FTP server, waiting for receiving resource files, and sending login information of the FTP server to the terminal through the UDP protocol, the terminal is connected with the FTP server in a login mode, the FTP connection is established with the elevator display end, the display screen resources to be updated are uploaded to the FTP server, the updating obtaining module is used for obtaining the display screen resources through the server, the updating obtaining of the display screen resources through the server and updating obtaining the server is used for updating the display screen resources, the elevator resources are not required to be updated, the elevator resources can be transmitted in a wireless mode without any need of the elevator resources can be replaced, and the elevator resources can be replaced by a user can be realized without using the elevator resources, and the elevator resources can be replaced by a user.
The invention discloses an off-line updating method of elevator car display screen resources, which is applied to an elevator display end for updating display screen resources, firstly, a terminal receives verification ID sent by a UDP protocol, the terminal adopts a UDP wireless communication mode between a local area network and the elevator display end, the terminal sends the verification ID to the elevator display end through the UDP protocol to carry out identity verification, then the elevator display end receives the verification ID sent by the terminal and checks whether the verification ID is consistent with the equipment ID to carry out identity verification, if the verification ID is the equipment ID, the elevator display end opens an FTP server, waits for receiving resource files, sends login information of the FTP server to the terminal through the UDP protocol, then the terminal receives the login information and logs in to be connected with the FTP server, establishes FTP connection with the elevator display end and realizes data sharing, uploads the display screen resources to be updated to the FTP server, and then the elevator display end obtains the display screen resources through the FTP server and carries out display screen resource updating, off-line updating of the display screen resources is realized by utilizing wireless communication and FTP transmission under the condition that no network is completed, under the condition that the elevator has no Internet transmission, the elevator resources are enabled to be replaced, the elevator resources can be removed, the elevator operation part is not needed, and the operation difficulty of the elevator is reduced, and the elevator operation part is not required to be replaced.
The invention discloses an off-line updating terminal for elevator car display screen resources, which comprises an authentication ID sending module, a login information receiving module and a login uploading module, wherein the terminal is in a local area network and adopts a UDP wireless communication mode, the authentication ID sending module sends authentication ID to an elevator display terminal through a UDP protocol so as to carry out identity authentication, when the authentication ID sent by the authentication ID sending module is received by the elevator display terminal and is consistent with the equipment ID of the elevator display terminal, the authentication passes, the elevator display terminal sends login information of an FTP server to the terminal through the UDP protocol, the login information receiving module receives the login information, the login uploading module is connected with the FTP server in a login mode, the FTP connection is established with the elevator display terminal and realizes data sharing, display screen resources to be updated are uploaded to the FTP server, the elevator display terminal acquires the display screen resources through the FTP server and updates the display screen resources, the wireless communication and the FTP transmission are utilized under the condition of no network, the elevator has no need of off-line updating of the display screen resources, and the elevator has no Internet transmission resources through the local area network, the elevator maintenance staff can be ensured, the elevator parts are not required to be disassembled and the operation time is reduced.
A medium of the present application stores a computer program, which when executed by a processor, implements the steps of the method for offline updating of elevator car display screen resources. The medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
Detailed Description
The present application is described in further detail below with reference to the drawings by way of specific embodiments, as shown in fig. 1-3.
An off-line updating method for elevator car display screen resources, which is applied to an elevator display end, comprises the following steps:
receiving an authentication ID sent by the terminal through a UDP protocol;
checking whether the verification ID is consistent with the ID of the device;
if the login information is consistent with the login information, starting an FTP server, and sending the login information of the FTP server to the terminal through a UDP protocol;
and the display screen resources uploaded by the terminal after logging in the FTP server according to the login information are obtained, and the obtained display screen resources are updated.
The invention discloses an off-line updating method of elevator car display screen resources, which is applied to an elevator display end for updating display screen resources, firstly, a terminal receives verification ID sent by a UDP protocol, the terminal adopts a UDP wireless communication mode between a local area network and the elevator display end, the terminal sends the verification ID to the elevator display end through the UDP protocol to carry out identity verification, then the elevator display end receives the verification ID sent by the terminal and checks whether the verification ID is consistent with the equipment ID to carry out identity verification, if the verification ID is the equipment ID, the elevator display end opens an FTP server, waits for receiving resource files, sends login information of the FTP server to the terminal through the UDP protocol, then the terminal receives the login information and logs in to be connected with the FTP server, establishes FTP connection with the elevator display end and realizes data sharing, uploads the display screen resources to be updated to the FTP server, and then the elevator display end obtains the display screen resources through the FTP server and carries out display screen resource updating, off-line updating of the display screen resources is realized by utilizing wireless communication and FTP transmission under the condition that no network is completed, under the condition that the elevator has no Internet transmission, the elevator resources are enabled to be replaced, the elevator resources can be removed, the elevator operation part is not needed, and the operation difficulty of the elevator is reduced, and the elevator operation part is not required to be replaced.
The step of starting the FTP server and sending the login information of the FTP server to the terminal through the UDP protocol specifically comprises the following steps:
starting an FTP server;
generating login information for logging in an FTP server, wherein the login information comprises a user name and a password;
and sending the generated login information to a terminal through a UDP protocol.
After the terminal passes the authentication, an FTP server for a file transfer protocol is started on the elevator display end, the FTP login information is automatically generated when the FTP server is started, and the login information is sent to the terminal through UDP communication. The login information comprises a user name and a password, and the login information can be used for logging in an FTP server on the terminal through the FTP client so that an FTP transmission connection is formed between the terminal and the elevator display terminal. Alternatively, the login information can also be an identity of an elevator display end, an IP of an FTP server, and an access port number.
The step of acquiring the display screen resources uploaded by the terminal after logging in the FTP server according to the login information and updating the acquired display screen resources specifically comprises the following steps:
acquiring the display screen resource uploaded to the FTP server by the terminal;
storing the display screen resource to a local place;
and updating the saved display screen resource into a currently displayed picture.
When the terminal uploads the resource to the FTP server, the corresponding FTP server on the elevator display terminal receives the uploaded display screen resource file at the same time, after the uploaded display screen resource is acquired on the FTP display, the uploaded display screen resource is stored and updated, and the transmission of the resource file in the local area network can be realized by using the FTP without a network.
An elevator car display screen resource offline updating system based on UDP protocol and FTP transmission, comprising:
a reception authentication ID module 11 for receiving an authentication ID transmitted by the terminal through a UDP protocol;
a verification ID module 12 for verifying whether the verification ID is identical to the device ID;
the starting and sending module 13 is used for starting the FTP server and sending the login information of the FTP server to the terminal through a UDP protocol when the checking and verifying ID module checks that the checking result is yes;
and the acquisition updating module 14 is used for acquiring display screen resources uploaded after the terminal logs in the FTP server according to the login information and updating the acquired display screen resources.
The application discloses an elevator car display screen resource offline updating system based on UDP protocol and FTP transmission, which is applied to an elevator display end for updating display screen resources, the system comprises a receiving verification ID module 11, a verification ID module 12, a starting transmission module 13 and an acquisition updating module 14, wherein the receiving verification ID module 11 receives verification ID sent by a terminal through the UDP protocol, the terminal adopts a UDP wireless communication mode between a local area network and the elevator display end, the terminal sends verification ID to the elevator display end through the UDP protocol for identity verification, the receiving verification ID module 11 receives verification ID sent by the terminal, the verification ID module 12 is used for verifying whether the verification ID is consistent with the equipment ID or not, if the verification ID is the equipment ID, the verification ID is passed, the starting transmission module 13 is used for opening an FTP server, waiting for receiving resource files, and sending the login information of the FTP server to the terminal through the UDP protocol, then the terminal receives the login information and logs in the upper FTP server, establishes connection with the elevator display end and realizes data sharing, the display screen resources to be updated are uploaded to the server, then the acquisition updating module 14 is used for acquiring the verification ID through the elevator display end and acquiring the FTP display screen and acquiring the verification ID sent by the user ID to the elevator display screen, the display screen resources are not required to be updated, the elevator display screen resources can be replaced, the elevator display resources can be free from the condition of the elevator display screen resources can be replaced, and the elevator display resources can be realized, the elevator resources can be not be replaced, the elevator resources can be replaced, the elevator resources and the elevator resources can be free from the elevator resources and the elevator resources can be used by the wireless resources and the elevator resources are not be used by the wireless resources and the elevator resources are not required to be used by the wireless resources, and the wireless resources and the elevator resources.
The start transmitting module 13 includes:
FTP server 131;
an FTP server unit 132 for starting the FTP server 131;
a login information generating unit 133 for generating the login information for logging in the FTP server 131, the login information including a user name and a password;
and a login information transmitting unit 134 for transmitting the login information to the terminal through a UDP protocol.
When the terminal passes the authentication, the FTP server unit 132 is started to start the FTP server 131 for the file transfer protocol on the elevator display end, the login information generating unit 133 automatically generates the login information of the FTP when the FTP server unit 132 is started to start the FTP server 131, and the login information transmitting unit 134 transmits the login information to the terminal through UDP communication. The login information comprises a user name and a password, and the FTP server 131 can be logged in on the terminal through the FTP client through the login information, so that an FTP transmission connection is formed between the terminal and the elevator display terminal. Alternatively, the login information may be an identity of the elevator display end, an IP of the FTP server 131, and an access port number.
The acquisition update module 14 includes:
an acquiring display screen resource unit 141, configured to acquire the display screen resource uploaded to the FTP server 131 by the terminal;
a display screen resource unit 142, configured to store the acquired display screen resource locally;
and an update display screen resource unit 143, configured to update the saved display screen resource to a picture displayed on the current elevator display terminal.
When the terminal uploads the resource to the FTP server 131, the corresponding FTP server 131 on the elevator display end receives the uploaded display screen resource file at the same time, after the display screen resource obtaining unit 141 obtains the uploaded display screen resource on the FTP display, the display screen resource storing unit 142 stores the uploaded display screen resource and then the update display screen resource unit 143 updates the display screen resource, so that the transmission of the resource file in the local area network can be realized by using the FTP without network.
An elevator car display screen resource offline update terminal, comprising:
a verification ID transmitting module 21 for transmitting a verification ID to the elevator display terminal through a UDP protocol;
a login information receiving module 22, configured to receive login information sent by the elevator display end and used for logging in the FTP server through a UDP protocol when the verification ID passes the verification;
the login uploading module 23 is configured to login to the FTP server according to the login information, and upload the display screen resource to the FTP server.
The utility model provides an elevator car display screen resource off-line updating terminal, including verifying ID sending module 21, login information receiving module 22 and login uploading module 23, the terminal is in the LAN with adopting UDP wireless communication mode, verifying ID sending module 21 sends verification ID to the elevator display terminal through the UDP protocol in order to carry out the authentication, when the elevator display terminal receives the verification ID that verifies that ID sending module 21 sent and elevator display terminal equipment ID is unanimous, then verify the identity and pass through, the elevator display terminal sends the login information of FTP server to the terminal through the UDP protocol, then login information receiving module 22 receives the login information, and log in and connect the FTP server through login uploading module 23, establish FTP connection and realize data sharing with the elevator display screen resource that will be updated, acquire the display screen resource through the FTP server and carry out the update of display screen resource by the elevator display terminal, utilize wireless UDP communication and FTP transmission to realize the off-line update of display screen resource under the condition that the elevator does not have the network, under the elevator does not have the Internet condition, through the LAN transmission resource, can make elevator maintenance personnel keep the elevator, unnecessary part of elevator maintenance and the operation time is reduced, the operation time is reduced and the operation is carried out.
The login uploading module 23 includes:
FTP client 231;
an FTP client opening unit 232 for opening the FTP client 231;
a login FTP server unit 233 configured to login an FTP server on the FTP client 231 according to the login information;
and an upload display screen resource unit 234 for uploading the display screen resource to the FTP server.
After the FTP client unit 232 is started to start the FTP client 231, the FTP server is logged in after the login information of the elevator display terminal is input through the login FTP server unit 233, so that the terminal and the elevator display terminal realize data sharing, and the display screen resource file is sent through the uploading display screen resource unit 234, so that the Internet is realized, and the resource file is transmitted in the local area network.
The elevator car display screen resource offline updating terminal is a mobile phone, a tablet computer or a notebook computer based on an Android operating system. The preferable terminal is an Android system, and the elevator display terminal is an Android system module.
A medium having stored thereon a computer program which when executed by a processor implements the steps of the elevator car display screen resource offline updating method. The medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.