A Login Method, Device, Electronic Device and Medium for an Intercom Terminal

The server verifies the device identification information of the intercom terminal, so that the intercom platform can be logged into the intercom platform without the user entering the account password, solving the problem of errors that users are prone to log in and improving the user experience.

CN116208956BActive Publication Date: 2025-06-17SHANGHAI SHUGUO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211734585.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-06-17
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Users are prone to errors when logging in to the intercom application using the mobile intercom terminal, resulting in a poor user experience.

Method used

Verify the device identification information of the intercom terminal through the server to verify whether it meets the requirements of logging into the intercom platform. You do not need to enter the account password and log in to the intercom platform directly.

Benefits of technology

It simplifies the login process of the intercom terminal, avoids login failure caused by users forgetting their account password or entering errors, and optimizes the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208956B_ABST
    Figure CN116208956B_ABST
Patent Text Reader

Abstract

This application relates to the field of communication technologies, and particularly to a login method, device, electronic device, and medium for an intercom terminal. A login method for an intercom terminal, which is applied to a server, the method comprising: receiving a login verification request from the intercom terminal and determining the configurations of multiple communication channels between the server and the intercom terminal; the login verification request including the device identification information of the intercom terminal; determining the service status of the configurations of the multiple communication channels based on the device identification information of the intercom terminal; if the service status of the configurations of the multiple communication channels is normal, then passing the login verification request of the intercom terminal. By verifying the device identification information of the intercom terminal, it is verified whether the intercom terminal meets the requirements for logging in to the intercom platform. Without the user having to enter an account password on the intercom terminal, the intercom terminal can log in to the intercom platform, simplifying the login process of the intercom terminal and optimizing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a login method, device, electronic device, and medium for an intercom terminal. Background Art

[0002] With the rapid development of the global Internet of Things, terminal devices based on mobile wireless networks are used more and more widely. Among them, intercom terminals have been widely used. Intercom terminals based on wireless data services are mainly applied to factories, large shopping malls, law enforcement, property management, transportation and logistics and other occasions, and are used for one-to-one or one-to-many communication between people through the intercom terminal.

[0003] Currently, when a mobile intercom terminal logs in to an intercom application, the user manually enters an account password for login verification; the intercom service interacts with the background service for verification. If the verification is successful, the server information is updated to the mobile intercom terminal.

[0004] Regarding the above related technologies, the inventor believes that the intercom account and password are generally relatively complex, and it is easy to make mistakes during the process of the user using the mobile intercom terminal to log in to the intercom application, resulting in a poor user experience. Summary of the Invention

[0005] In order to solve the problem that it is easy to make mistakes during the process of the user using the mobile intercom terminal to log in to the intercom application, resulting in a poor user experience, this application provides a login method, device, electronic device, and medium for an intercom terminal.

[0006] In the first aspect of this application, a login method for an intercom terminal is provided, which is applied to a server. The method includes: receiving a login verification request from the intercom terminal, and determining the configurations of multiple communication channels between the server and the intercom terminal; the login verification request includes the device identification information of the intercom terminal; based on the device identification information of the intercom terminal, determining the service status of the configurations of the multiple communication channels; if the service status of the configurations of the multiple communication channels is normal, then passing the login verification request of the intercom terminal.

[0007] By adopting the above technical solution, the server verifies whether the intercom terminal meets the requirements for logging in to the intercom platform by verifying the device identification information of the intercom terminal. Without the user entering an account password on the intercom terminal, the intercom terminal can log in to the intercom platform, as much as possible avoiding the situation that the user cannot log in to the intercom platform because of forgetting the account password when logging in to the intercom platform, and the situation that the user cannot log in because of pressing the wrong button when entering the account password, simplifying the login process of the intercom terminal and optimizing the user experience.

[0008] In a possible implementation, the multiple communication channels with the intercom terminal include a first communication channel and a second communication channel; the service status of the configurations of the multiple communication channels is determined based on the device identification information of the intercom terminal, specifically including: based on the device identification information of the intercom terminal, performing a first verification operation on the login verification request of the intercom terminal to verify whether the service status of the configuration of the first communication channel is normal; if the verification result is sending a first communication token to the intercom terminal, it is determined that the service status of the configuration of the first communication channel is normal.

[0009] By adopting the above technical solution, the server verifies whether the model of the intercom terminal matches the intercom platform by checking the device identification information of the intercom terminal, and further verifies whether the service status of the configuration of the first communication channel is normal.

[0010] In a possible implementation, determining the service status of the configurations of the plurality of communication channels based on the device identification information of the intercom terminal also includes: performing a second verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal to verify whether the service status of the configuration of the second communication channel is normal; if the verification result is sending a second communication token to the intercom terminal, determining that the service status of the configuration of the second communication channel is normal.

[0011] By adopting the above technical solution, the server verifies whether the model of the intercom terminal matches the intercom platform by checking the device identification information of the intercom terminal, and further verifies whether the service status of the configuration of the second communication channel is normal.

[0012] In a possible implementation, if there is a first type of communication channel among multiple communication channels, and the first type of communication channel is a communication channel whose configured service status is determined to be abnormal after the first verification, the method further includes: based on the device identification information of the intercom terminal, repeatedly performing corresponding verification operations on the login verification request of the intercom terminal to repeatedly verify whether the configured service status of the first type of communication channel is normal; if the number of verification operations reaches a preset number of times, and according to the verification result of the last verification, it is determined that the configured service status of the first type of communication channel is abnormal, then rejecting the login verification request of the intercom terminal.

[0013] By adopting the above technical solution, the server repeatedly performs service status verification operations on the configuration of the first type of communication channel to determine that the first type of communication channel cannot communicate normally, and avoids as much as possible the situation where the service status of the communication channel is temporarily abnormal due to sudden failures, thereby causing the intercom terminal to be unable to log in to the intercom platform.

[0014] In a possible implementation, after the login verification request of the intercom terminal, the method further includes: receiving a timing message of the intercom terminal to verify the login status of the intercom terminal; if the timing message sent by the intercom terminal is not received after a preset time, determining that the login status of the intercom terminal is abnormal, and processing a plurality of the communication channels with the intercom terminal.

[0015] By adopting the above technical solution, if the server does not receive a message from the intercom terminal after a preset time interval, it determines that the login status of the intercom terminal is abnormal and processes each communication channel with the intercom terminal, avoiding waste of network resources.

[0016] In a possible implementation, the timing message includes a message content and a message sending time. The step of, if the timing message sent by the intercom terminal is not received after a preset time, determining that the login status of the intercom terminal is abnormal and processing a plurality of the communication channels with the intercom terminal specifically includes: querying the message sending records of several timing messages of the intercom terminal, the message sending records including the message sending times of several timing messages, and the message sending times being determined based on the message sending time; based on the message sending records, determining the abnormal type of the login status of the intercom terminal; and based on the abnormal type of the login status of the intercom terminal, determining the processing methods of the plurality of communication channels.

[0017] By adopting the above technical solution, the server determines the abnormal type of the login status of the intercom terminal according to the historical records of the timing messages sent by the intercom terminal, and then determines the processing methods of a plurality of communication channels with the intercom terminal, so as to avoid misjudging the abnormal type of the login status of the intercom terminal as much as possible, such as the situation of disconnecting the communication channel when the intercom terminal cannot send a timing message only because of poor network.

[0018] In a possible implementation, the step of, based on the message sending records, determining the abnormal type of the login status of the intercom terminal specifically includes: plotting a timing message curve based on the message sending times of the several timing messages; calculating a network index of the intercom terminal based on the timing message curve; if the network index of the intercom terminal is less than or equal to a preset value, determining that the abnormal type of the login status of the intercom terminal is disconnection; and if the network index of the intercom terminal is greater than the preset value, determining that the abnormal type of the login status of the intercom terminal is invalid connection.

[0019] In a second aspect of the present application, there is provided a login device for an intercom terminal. The device is a server and includes:

[0020] A receiving unit, configured to receive a login verification request of an intercom terminal, where the login verification request includes device identification information of the intercom terminal;

[0021] A processing unit, configured to determine the configurations of multiple communication channels with an intercom terminal; determine the service status of the configurations of the multiple communication channels based on the device identification information of the intercom terminal; and pass the login verification request of the intercom terminal if the service status of the configurations of the multiple communication channels is normal.

[0022] In a possible implementation, the multiple communication channels with the intercom terminal include a first communication channel and a second communication channel; the processing unit is further configured to perform a first verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal, so as to verify whether the service status of the configuration of the first communication channel is normal; if the verification result is to send a first communication token to the intercom terminal, it is determined that the service status of the configuration of the first communication channel is normal.

[0023] In a possible implementation, the processing unit is further configured to perform a second verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal, so as to verify whether the service status of the configuration of the second communication channel is normal; if the verification result is to send a second communication token to the intercom terminal, it is determined that the service status of the configuration of the second communication channel is normal.

[0024] In a possible implementation, if there are first-class communication channels among the multiple communication channels, the processing unit is further configured to repeatedly perform corresponding verification operations on the login verification request of the intercom terminal based on the device identification information of the intercom terminal, so as to repeatedly verify whether the service status of the configuration of the first-class communication channels is normal; if the number of times of the verification operation reaches a preset number of times, and according to the verification result of the last verification, it is determined that the service status of the configuration of the first-class communication channels is abnormal, the login verification request of the intercom terminal is rejected.

[0025] In a possible implementation, the receiving unit is further configured to receive the timing message of the intercom terminal to verify the login status of the intercom terminal; the processing unit is further configured to determine that the login status of the intercom terminal is abnormal and process the multiple communication channels with the intercom terminal if the timing message sent by the intercom terminal is not received after a preset time.

[0026] In a possible implementation, the scheduled message includes message content and message sending time, and the processing unit is further used to query the message sending records of several scheduled messages of the intercom terminal, the message sending records include the message sending time of several scheduled messages, and the message sending time is determined based on the message sending time; based on the message sending records, determine the abnormal type of the login status of the intercom terminal; based on the abnormal type of the login status of the intercom terminal, determine the processing method of the multiple communication channels.

[0027] In a possible implementation, the processing unit is further used to draw a timing message curve based on the message sending time of the plurality of timing messages; based on the timing message curve, calculate the network index of the intercom terminal; if the network index of the intercom terminal is less than or equal to a preset value, determine that the abnormal type of the login status of the intercom terminal is disconnected; if the network index of the intercom terminal is greater than a preset value, determine that the abnormal type of the login status of the intercom terminal is an invalid connection.

[0028] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any method described in the first aspect of the present application.

[0029] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program that can be loaded by a processor and execute the method as described in any one of the first aspects of the present application.

[0030] In summary, the present application includes at least one of the following beneficial technical effects:

[0031] 1. The server verifies whether the intercom terminal meets the requirements for logging into the intercom platform by verifying the device identification information of the intercom terminal. The intercom terminal can log into the intercom platform without the user having to enter the account and password on the intercom terminal. This avoids the situation where the user forgets the account and password when logging into the intercom platform and is unable to log in due to pressing the wrong button when entering the account and password, thus simplifying the login process of the intercom terminal and optimizing the user experience.

[0032] 2. The server determines the abnormal type of the intercom terminal's login status based on the historical record of the intercom terminal sending scheduled messages, and then determines the processing method of multiple communication channels with the intercom terminal, so as to avoid misjudging the abnormal type of the intercom terminal's login status and disconnecting the communication channel when the intercom terminal cannot send a scheduled message simply because of a poor network. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic flow chart of a login method for an intercom terminal according to an embodiment of the present application;

[0034] Figure 2 It is a schematic module diagram of a login device for an intercom terminal according to an embodiment of the present application;

[0035] Figure 3 It is a schematic structural diagram of an electronic device according to an embodiment of the present application.

[0036] Description of the reference numerals: 201, receiving unit; 202, processing unit; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. Detailed implementation manners

[0037] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments.

[0038] In the description of the embodiments of the present application, words such as "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "for example" in the embodiments of the present application should not be construed as being more preferred or more advantageous than other embodiments or design solutions. Exactly speaking, using "for example" is intended to present relevant concepts in a specific way. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the technical features indicated.

[0039] In order to solve the problem that it is easy to make mistakes during the process of users using a mobile intercom terminal to log in to an intercom application, resulting in a poor user experience, the present application provides a login method for an intercom terminal, which is applied to a server. Referring to Figure 1 , which shows a schematic flow chart of a login method for an intercom terminal provided by an embodiment of the present application, including the following steps S1 - S3.

[0040] Step S1: Receive a login verification request from the intercom terminal, and determine the configuration of multiple communication channels with the intercom terminal; the login verification request includes the device identification information of the intercom terminal.

[0041] In the above steps, after the user turns on the intercom terminal, the intercom terminal detects whether its network status meets the requirements for logging in to the intercom platform; when the network status of the intercom terminal meets the login requirements, the intercom terminal sends a login verification request to the server; after receiving the login verification request from the intercom terminal, the server provides the communication service address and communication port between the server and the intercom terminal; among them, the communication service address and communication port are the configurations of the communication channel; after successfully providing the communication service address and communication port, the server starts to verify the next login verification request of the intercom terminal.

[0042] It should be noted that the communication service address and communication port are set by the server according to the type of communication service provided. The intercom terminal that sends the login verification request to the server is the intercom terminal installed with this intercom platform, and the corresponding account has been created on the intercom platform using the device identification information. If the communication channel configuration cannot be provided between the intercom terminal and the server, the operation of providing the communication channel configuration is repeated; when the number of providing operations reaches the preset value and the result of the last providing operation is that the communication channel configuration cannot be provided, the login verification request of the intercom terminal is rejected; at the same time, the intercom terminal also stops the login application.

[0043] Among them, the reason why the server cannot provide the communication service address and communication port can be reflected in the malfunction of the function of the communication service provided by the server.

[0044] Among them, the login request of the intercom terminal includes the device identification information of the intercom terminal. The device identification information can be the integrated circuit card identification code ICCID of the SIM card in the intercom terminal, the international mobile subscriber identification number IMSI, or the IMEI of the intercom terminal. When the intercom terminal sends a login verification request, the hash algorithm is used to encrypt the device identification information, such as MD5; the encrypted device identification information is sent to the server.

[0045] When the intercom terminal sends a login verification request, the number of digits of the device identification information is carried in the request and sent to the server so that the server can quickly identify the type of device identification information. For example, the device identification information is the integrated circuit card identification code ICCID of the SIM card, and the login verification request includes the encrypted ICCID number and the number of digits of the ICCID number, which is 20.

[0046] Step S2: Based on the device identification information of the intercom terminal, determine the service status of multiple communication channel configurations.

[0047] In the above steps, the server verifies whether the model of the intercom terminal is compatible with the intercom platform according to the device identification information of the intercom terminal, and then verifies whether the service status of multiple communication channel configurations between the intercom terminal and the server is normal, that is, verifies whether multiple communication channels between the intercom terminal and the server can communicate normally.

[0048] Step S3: If the service statuses of the configurations of multiple communication channels are all normal, then pass the login verification request of the intercom terminal.

[0049] In the above steps, if the service statuses of the configurations of multiple communication channels are all normal, that is, multiple communication channels between the intercom terminal and the server can communicate normally, which is reflected in the model of the intercom terminal being adapted to the intercom platform; the server passes the login verification request of the intercom terminal, and the intercom terminal successfully logs in to the intercom platform.

[0050] The login verification process of the intercom terminal is relative to the process of establishing a stable and long-term communication channel between the intercom terminal and the server. Among them, the communication channel is established according to the communication service address and the communication port.

[0051] In a possible implementation manner, the multiple communication channels with the intercom terminal include a first communication channel and a second communication channel; based on the device identification information of the intercom terminal, determining the service statuses of the configurations of the multiple communication channels specifically includes: based on the device identification information of the intercom terminal, performing a first verification operation on the login verification request of the intercom terminal to verify whether the service status of the configuration of the first communication channel is normal; if the verification result is to send a first communication token to the intercom terminal, then determine that the service status of the configuration of the first communication channel is normal.

[0052] In the above example, the communication channels include an MQTT (Message Queuing Telemetry Transport) service communication channel and a platform service communication channel. Among them, the first communication channel is the MQTT service communication channel, and the second communication channel is the platform service communication channel. After the server receives the login verification request of the intercom terminal, it determines the IP address of the communication service and configures a communication service port for the intercom terminal. Among them, the IP addresses of multiple communication services can be the same IP address, and one communication service corresponds to one communication port.

[0053] The MQTT service communication channel is an instant communication channel for the intercom terminal and the server to communicate the online and offline messages of the same group of intercom terminals; the platform service communication channel is a communication channel for the intercom terminal to send messages to the server.

[0054] The steps for the server to verify the service status of the configuration of the first communication channel are: decrypting the device identification information and verifying the decrypted device identification information; if the verification is successful, then send a first communication token to the intercom terminal. The server sending the first communication token to the intercom terminal reflects that the service status of the configuration of the first communication channel is normal.

[0055] It should be noted that the communication channel between the intercom terminal and the server also includes an intercom service communication channel, that is, the intercom terminal realizes communication with other intercom terminals through this communication channel.

[0056] For example, the verification method for the service status configured for the first communication channel can be the JWT (JSON Web Token) authentication method.

[0057] The server decodes the device identification information, verifies the decoded device identification information; creates a JWT using a secret key, and sends the JWT to the intercom terminal; after receiving the JWT, the intercom terminal stores the JWT locally, and when sending a message to the server through the first communication channel, carries the JWT in the message; after authenticating the JWT, the server processes the message sent by the intercom terminal.

[0058] In a possible implementation manner, determining the service status configured for multiple communication channels based on the device identification information of the intercom terminal further includes: performing a second verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal to verify whether the service status configured for the second communication channel is normal; if the verification result is to send a second communication token to the intercom terminal, it is determined that the service status configured for the second communication channel is normal.

[0059] In the above example, the steps for the server to verify the service status configured for the second communication channel are: decrypt the device identification information, verify the decrypted authentication information; if the verification is successful, send a second communication token to the intercom terminal. The server sending the second communication token to the intercom terminal indicates that the service status configured for the second communication channel is normal.

[0060] For example, the verification method for the service status configured for the second communication channel can be the Token authentication method.

[0061] The server decodes the device identification information, verifies the decoded device identification information, and generates an encrypted Token token, and sends the Token token to the intercom terminal; after receiving the Token token, the intercom terminal stores the Token token locally, and when sending a message to the server through the second communication channel, carries the Token token in the message; the server decrypts and performs signature verification on the Token token; after the verification is successful, processes the message sent by the intercom terminal.

[0062] The Token consists of a unique user ID, a timestamp of the login verification time, and a signature. The timestamp has a precision of seconds. To avoid multiple intercom terminals logging in at the same time within one second, resulting in duplicate calculated Token values, the server creates two Token generation paths to ensure that the intercom terminal queried is unique when the Token of the intercom terminal is subsequently verified.

[0063] In a possible implementation, if there is a first type of communication channel among multiple communication channels, and the first type of communication channel is a communication channel whose configured service status is abnormal after the first verification, it also includes: based on the device identification information of the intercom terminal, repeatedly performing corresponding verification operations on the login verification request of the intercom terminal to repeatedly verify whether the configured service status of the first type of communication channel is normal; if the number of verification operations reaches a preset number of times, and according to the verification result of the last verification, it is determined that the configured service status of the first type of communication channel is abnormal, then the login verification request of the intercom terminal is rejected.

[0064] In the above example, the server repeatedly performs service status verification operations on the configuration of the first type of communication channel to determine that the first type of communication channel cannot communicate normally, and tries to avoid the situation where the service status of the communication channel configuration is temporarily abnormal due to sudden failures, thereby causing the intercom terminal to be unable to log in to the intercom platform.

[0065] For example, the server verifies the service status of the configuration of a communication channel for the first time, and the verification result is a refusal to send a communication token to the intercom terminal, and it is determined that the service status of the configuration of the communication channel is abnormal; the server repeats the service status verification operation on the configuration of the communication channel until the number of verification operations reaches three times, and then stops verifying the service status of the configuration of the communication channel; if the last verification result is still a refusal to send a communication token to the intercom terminal, it is determined that the communication channel cannot communicate normally; rather than the communication channel being temporarily unable to communicate due to a sudden temporary failure, such as a network signal fluctuation; and the login verification request of the intercom terminal is rejected; at the same time, the intercom terminal also stops the login application.

[0066] That is, if a communication channel cannot be established between the intercom terminal and the server, the communication channel establishment operation is repeated; when the number of communication channel establishment operations reaches a preset value and the last communication channel establishment operation also ends in failure, the login verification request of the intercom terminal is rejected.

[0067] The reason why the verification result is a refusal to send the communication token to the intercom terminal may be that the model of the intercom terminal is incompatible with the intercom platform, that is, the device identification information of the intercom terminal cannot pass the verification; the service status of the intercom platform is abnormal and the function of the intercom service cannot be realized.

[0068] In a possible implementation, after the login verification request of the intercom terminal, it further includes: receiving the timing message of the intercom terminal to verify the login status of the intercom terminal; if the timing message sent by the intercom terminal is not received after a preset time, determining that the login status of the intercom terminal is abnormal and processing multiple communication channels with the intercom terminal.

[0069] In the above example, it is stipulated that the intercom terminal sends an online message to the server every preset time interval, and the server verifies the login status of the intercom terminal according to the received message; if the server does not receive the message from the intercom terminal after the preset time interval, it is determined that the login status of the intercom terminal is abnormal, and each communication channel with the intercom terminal is processed to avoid wasting network resources.

[0070] For example, after the intercom terminal logs in to the intercom platform, if the time interval set by the server is 3 minutes, the intercom terminal needs to send a message to the server every 3 minutes to inform the server that the intercom terminal is "online".

[0071] It should be noted that when a long connection is established between the intercom terminal and the server, it is necessary to periodically verify the connection status between the intercom terminal and the server. If no message is transmitted between the intercom terminal and the server after a preset time after the long connection is established between the intercom terminal and the server, the server will disconnect the connection relationship with the intercom device, that is, disconnect the communication channel with the intercom device, to avoid wasting network resources.

[0072] The verification method for the login status of the intercom terminal can be that the intercom terminal periodically sends a fixed message to the server to inform the server that the intercom terminal is "online"; or the server periodically queries the login status of the intercom terminal, that is, the server periodically sends a fixed message to the intercom terminal, and after receiving the fixed message, the intercom terminal sends the same fixed message to the server.

[0073] In a possible implementation, the timing message includes the message content and the message sending time. If the timing message sent by the intercom terminal is not received after a preset time, it is determined that the login status of the intercom terminal is abnormal, and multiple communication channels with the intercom terminal are processed. Specifically, it includes: querying the message sending records of several timing messages of the intercom terminal, where the message sending records include the message sending times of several timing messages, and the message sending times are determined based on the message sending time; determining the abnormal type of the login status of the intercom terminal based on the message sending records; determining the processing method for multiple communication channels based on the abnormal type of the login status of the intercom terminal.

[0074] In the above example, when the intercom terminal sends a timed message to the server, the sending time of the timed message is carried in the timed message. After receiving the timed message, the server calculates the time consumed by the intercom terminal to send the timed message based on the message sending time and the time when the timed message is received, and judges the network status of the intercom terminal according to the calculated time.

[0075] When the server detects that the time consumed by the intercom terminal to send a timed message is longer than the preset duration, a prompt message is sent to the intercom terminal to prompt the user that the current network status is poor.

[0076] For example, the preset duration is 5 seconds. If the server detects that the time consumed by the intercom terminal to send a timed message is 6 seconds, a prompt message is sent to the intercom terminal to prompt the user that the current network status is poor.

[0077] If the server does not receive the timed message from the intercom terminal after a preset time interval, the historical record of the intercom terminal sending the timed message is called, and the reason for the intercom terminal not sending the timed message is judged according to the historical record of the intercom terminal sending the timed message; the reason for the intercom terminal not sending the timed message currently is that the network status is poor and the timed message cannot be sent, or the intercom terminal is shut down; to determine the abnormal type of the login status of the intercom terminal, and then determine the processing method for multiple communication channels between the server and the intercom terminal; the processing method for the communication channel includes closing the communication channel or disconnecting the communication channel.

[0078] In a possible implementation manner, determining the abnormal type of the login status of the intercom terminal based on the message sending record specifically includes: plotting a timed message curve based on the message sending times of several timed messages; calculating the network index of the intercom terminal based on the timed message curve; if the network index of the intercom terminal is less than or equal to a preset value, determining that the abnormal type of the login status of the intercom terminal is disconnection; if the network index of the intercom terminal is greater than the preset value, determining that the abnormal type of the login status of the intercom terminal is invalid connection.

[0079] In the above steps, when the server does not receive the timed message from the intercom terminal after a preset time interval, the historical record of the intercom terminal sending the timed message is called from the database; taking the sending order of the timed messages as the abscissa and the time consumed by the intercom terminal to send each timed message as the ordinate, a timed message curve is plotted; the variance of the curve is calculated according to the timed message curve, and the calculated curve variance is used as the network index of the intercom terminal.

[0080] The preset value is the standard network index of the intercom terminal. When the network index of the intercom terminal is lower than the preset value, it indicates that the network status of the intercom section is normal; when the network index of the intercom terminal is higher than the preset value, it indicates that the network status of the intercom terminal is poor.

[0081] When the network status of the intercom terminal is normal, the server determines that the reason for the intercom terminal not sending a timed message this time is that the intercom terminal is powered off, and determines that the abnormal type of the login status of the intercom terminal is disconnected; the server disconnects the communication channel with the intercom terminal.

[0082] When the network status of the intercom terminal is poor, the server determines that the reason for the intercom terminal not sending a timed message this time is that the network status is poor and the timed message cannot be sent, and determines that the abnormal type of the login status of the intercom terminal is an invalid connection; the server closes the communication channel with the intercom terminal. When the network status of the intercom terminal is restored and a timed message is sent to the server again, the server opens the communication channel with the intercom terminal without the need to authenticate the intercom terminal again.

[0083] After a certain intercom terminal logs in to the intercom platform, the server groups the intercom terminal according to the grouping information of the main intercom terminal, and the main intercom terminal is an intercom terminal with grouping authority; and synchronously transmits the login information of the intercom terminal to other intercom terminals in the same group to inform other intercom terminals that the intercom terminal has gone online. When the intercom terminal exits the intercom platform, the server synchronously transmits the logout information of the intercom terminal to other intercom terminals in the same group to inform other intercom terminals that the intercom terminal has gone offline.

[0084] Refer to Figure 2 , which shows a schematic diagram of the modules of a login device for an intercom terminal provided by the present application. The device is a server and includes: a receiving unit 201 for receiving a login verification request of the intercom terminal, where the login verification request includes device identification information of the intercom terminal; a processing unit 202 for determining the configuration of multiple communication channels with the intercom terminal; determining the service status of the configuration of the multiple communication channels based on the device identification information of the intercom terminal; if the service status of the configuration of the multiple communication channels is normal, then pass the login verification request of the intercom terminal.

[0085] In a possible implementation manner, the multiple communication channels with the intercom terminal include a first communication channel and a second communication channel. The processing unit 202 is further configured to perform a first verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal to verify whether the service status of the configuration of the first communication channel is normal; if the verification result is to send a first communication token to the intercom terminal, then determine that the service status of the configuration of the first communication channel is normal.

[0086] In a possible implementation, the processing unit 202 is further configured to perform a second verification operation on the login verification request of the intercom terminal based on the device identification information of the intercom terminal, so as to verify whether the service status of the configuration of the second communication channel is normal; if the verification result is to send a second communication token to the intercom terminal, it is determined that the service status of the configuration of the second communication channel is normal.

[0087] In a possible implementation, if there is a first type of communication channel among multiple communication channels, the processing unit 202 is further configured to repeatedly perform corresponding verification operations on the login verification request of the intercom terminal based on the device identification information of the intercom terminal, so as to repeatedly verify whether the service status of the configuration of the first type of communication channel is normal; if the number of verification operations reaches a preset number, and according to the verification result of the last verification, it is determined that the service status of the configuration of the first type of communication channel is abnormal, the login verification request of the intercom terminal is rejected.

[0088] In a possible implementation, the receiving unit 201 is further configured to receive the timing message of the intercom terminal to verify the login status of the intercom terminal; the processing unit 202 is further configured to determine that the login status of the intercom terminal is abnormal if the timing message sent by the intercom terminal is not received after a preset time, and process multiple communication channels with the intercom terminal.

[0089] In a possible implementation, the timing message includes a message content and a message sending time. The processing unit 202 is further configured to query the message sending records of several timing messages of the intercom terminal. The message sending records include the message sending times of several timing messages, and the message sending times are determined based on the message sending time; based on the message sending records, determine the abnormal type of the login status of the intercom terminal; based on the abnormal type of the login status of the intercom terminal, determine the processing method of multiple communication channels.

[0090] In a possible implementation, the processing unit 202 is further configured to draw a timing message curve based on the message sending times of several timing messages; calculate the network index of the intercom terminal based on the timing message curve; if the network index of the intercom terminal is less than or equal to a preset value, determine that the abnormal type of the login status of the intercom terminal is a disconnection; if the network index of the intercom terminal is greater than the preset value, determine that the abnormal type of the login status of the intercom terminal is an invalid connection.

[0091] It should be noted that when the device provided in the above embodiments realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0092] Referring to Figure 3 , a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As Figure 3 shown, the electronic device 300 may include: at least one processor 301, at least one network interface 304, a user interface 303, a memory 305, and at least one communication bus 302.

[0093] Among them, the communication bus 302 is used to realize the connection and communication between these components.

[0094] Among them, the user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may further include a standard wired interface and a wireless interface.

[0095] Among them, the network interface 304 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0096] Among them, the processor 301 may include one or more processing cores. The processor 301 connects various parts within the entire server using various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling the data stored in the memory 305, it performs various functions of the server and processes data. Optionally, the processor 301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 301 may integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 301 and may be implemented separately by a single chip.

[0097] Among them, the memory 305 may include random access memory (RAM) and may also include read-only memory. Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store the data involved in the above-mentioned various method embodiments. Optionally, the memory 305 may also be at least one storage device located far from the aforementioned processor 301. As Figure 3 shown, the memory 305, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for a login method of an intercom terminal.

[0098] In Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an interface for the user to input and obtain the data input by the user; and the processor 301 can be used to call the application program stored in the memory 305 for a login method of an intercom terminal. When executed by one or more processors, the electronic device is caused to execute the method as described in one or more of the above embodiments.

[0099] An electronic device-readable storage medium stores instructions. When executed by one or more processors, the electronic device is caused to execute the method as described in one or more of the above embodiments.

[0100] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0101] The above are only exemplary embodiments of the present disclosure and should not be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure still fall within the scope covered by the present disclosure. Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and the practice of the present disclosure. This application aims to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include the common general knowledge or conventional technical means in the technical field not recorded in the present disclosure. The specification and the embodiments are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A login method for an intercom terminal, characterized in that, Applied to a server, the method includes: Receiving a login verification request from an intercom terminal and determining the configurations of multiple communication channels with the intercom terminal; the login verification request includes the device identification information of the intercom terminal; Based on the device identification information of the intercom terminal, determining the service status of the configurations of the multiple communication channels; If the service status of the configurations of the multiple communication channels is all normal, passing the login verification request of the intercom terminal; After passing the login verification request of the intercom terminal, the method further includes: Receiving the timing message of the intercom terminal to verify the login status of the intercom terminal; If the timing message sent by the intercom terminal is not received after a preset time, determining that the login status of the intercom terminal is abnormal and processing the multiple communication channels with the intercom terminal; The timing message includes the message content and the message sending time, and the message sending time of the timing message is carried in the timing message; After receiving the timing message, calculating the duration consumed by the intercom terminal to send the timing message according to the message sending time and the time when the timing message is received, and judging the network condition of the intercom terminal according to the calculated duration; If it is detected that the duration consumed by the intercom terminal to send the timing message is greater than the preset duration, sending a prompt message to the intercom terminal to prompt the user that the current network status is poor; The step of if the timing message sent by the intercom terminal is not received after a preset time, determining that the login status of the intercom terminal is abnormal and processing the multiple communication channels with the intercom terminal specifically includes: Querying the message sending records of several timing messages of the intercom terminal, the message sending records include the message sending times of several timing messages, and the message sending time is determined based on the message sending time; Based on the message sending records, determining the abnormal type of the login status of the intercom terminal; Based on the abnormal type of the login status of the intercom terminal, determining the processing methods of the multiple communication channels.

2. The login method for an intercom terminal according to claim 1, characterized in that, The multiple communication channels with the intercom terminal include a first communication channel and a second communication channel; the step of based on the device identification information of the intercom terminal, determining the service status of the configurations of the multiple communication channels specifically includes: Based on the device identification information of the intercom terminal, performing a first verification operation on the login verification request of the intercom terminal to verify whether the service status of the configuration of the first communication channel is normal; If the verification result is to send a first communication token to the intercom terminal, determining that the service status of the configuration of the first communication channel is normal.

3. The login method for an intercom terminal according to claim 2, characterized in that, The step of based on the device identification information of the intercom terminal, determining the service status of the configurations of the multiple communication channels further includes: Based on the device identification information of the intercom terminal, performing a second verification operation on the login verification request of the intercom terminal to verify whether the service status of the configuration of the second communication channel is normal; If the verification result is to send a second communication token to the intercom terminal, determining that the service status of the configuration of the second communication channel is normal.

4. The login method for an intercom terminal according to claim 1, characterized in that, If there are first-class communication channels among multiple communication channels, and the first-class communication channels are communication channels whose service status of the configuration of the communication channels is determined to be abnormal after the first verification, the method further includes: Based on the device identification information of the intercom terminal, repeatedly perform corresponding verification operations on the login verification request of the intercom terminal to repeatedly verify whether the service status of the configuration of the first-class communication channels is normal; If the number of times of the verification operation reaches a preset number of times, and according to the verification result of the last verification, it is determined that the service status of the configuration of the first-class communication channels is abnormal, then reject the login verification request of the intercom terminal.

5. A login device for an intercom terminal, characterized in that, The device is a server, and the device includes: A receiving unit (201) for receiving a login verification request of an intercom terminal, where the login verification request includes the device identification information of the intercom terminal; A processing unit (202) for determining the configuration of multiple communication channels with the intercom terminal; determining the service status of the configurations of multiple communication channels based on the device identification information of the intercom terminal; if the service statuses of the configurations of multiple communication channels are all normal, then pass the login verification request of the intercom terminal; After passing the login verification request of the intercom terminal, the server receives the timing message of the intercom terminal to verify the login status of the intercom terminal; If the timing message sent by the intercom terminal is not received after a preset time, then determine that the login status of the intercom terminal is abnormal, and process multiple communication channels with the intercom terminal; The timing message includes a message content and a message sending time, and the message sending time of the timing message is carried in the timing message; After receiving the timing message, calculate the duration consumed by the intercom terminal to send the timing message according to the message sending time and the time when the timing message is received, and judge the network condition of the intercom terminal according to the calculated duration; If it is detected that the duration consumed by the intercom terminal to send the timing message is greater than a preset duration, send a prompt message to the intercom terminal to prompt the user that the current network status is poor; The step of if the timing message sent by the intercom terminal is not received after a preset time, then determine that the login status of the intercom terminal is abnormal, and process multiple communication channels with the intercom terminal, specifically includes: Query the message sending records of several timing messages of the intercom terminal, where the message sending records include the message sending times of several timing messages, and the message sending times are determined based on the message sending time; Based on the message sending records, determine the abnormal type of the login status of the intercom terminal; Based on the abnormal type of the login status of the intercom terminal, determine the processing methods of multiple communication channels.

6. An electronic device, characterized in that, It includes a processor (301), a memory (305), a user interface (303) and a network interface (304). The memory (305) is used to store instructions. The user interface (303) and the network interface (304) are used to communicate with other devices. The processor (301) is used to execute the instructions stored in the memory, so that the electronic device (300) executes the method according to any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that can be loaded and executed by a processor to execute the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Authentication method and system for mobile phone number login

    CN102148684A

  • Multicast-based POC large-scale cluster distribution method and system

    CN112187715A