CN112769876B - Method, device, equipment and medium for acquiring equipment channel information - Google Patents

Method, device, equipment and medium for acquiring equipment channel information Download PDF

Info

Publication number
CN112769876B
CN112769876B CN201911000081.4A CN201911000081A CN112769876B CN 112769876 B CN112769876 B CN 112769876B CN 201911000081 A CN201911000081 A CN 201911000081A CN 112769876 B CN112769876 B CN 112769876B
Authority
CN
China
Prior art keywords
equipment
keep
client
channel information
alive message
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.)
Active
Application number
CN201911000081.4A
Other languages
Chinese (zh)
Other versions
CN112769876A (en
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201911000081.4A priority Critical patent/CN112769876B/en
Publication of CN112769876A publication Critical patent/CN112769876A/en
Application granted granted Critical
Publication of CN112769876B publication Critical patent/CN112769876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for acquiring equipment channel information. The method is performed by a cloud server, and comprises the following steps: if the client is detected to be in an offline state, sending a pre-stored first keep-alive message to the equipment end and acquiring equipment channel information from the equipment end at regular time; responding to a re-login request of the client, and issuing the equipment channel information to the client for a user to check. According to the technical scheme, in the off-line state of the client, the cloud server replaces the client to continuously send the keep-alive information to the equipment end and regularly acquire the equipment channel information from the equipment end, so that when the user logs in the client again, the equipment can be directly acquired from the cloud server in advance without waiting for equipment login, and convenience in user operation is improved.

Description

Method, device, equipment and medium for acquiring equipment channel information
Technical Field
The embodiment of the invention relates to the technical field of video monitoring, in particular to a method, a device, equipment and a medium for acquiring equipment channel information.
Background
With the continuous development of standardized and easily-expanded network technology and IP technology, the intelligent monitoring technology based on IP and network is rapidly developed, and IP monitoring has become the mainstream of monitoring at present. In some small distribution users, the application APP software views monitoring scenes more and more.
In the related technology, the precondition that the APP software checks the channel details under a Network Video Recorder (NVR)/Video Management Server (VMS) is that the device login is successful, but once the APP is closed and then started, the device needs to be logged in again, a certain time is needed to wait for the device login, the channel details of the device cannot be immediately obtained, and the requirement that the user uses the APP service quickly and conveniently is influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for acquiring equipment channel information, which can directly acquire the equipment channel information from a cloud server in advance without waiting for equipment login when a user logs in a client again, so that the convenience of user operation is improved.
In a first aspect, an embodiment of the present invention provides an apparatus channel information obtaining method, which is executed by a cloud server, and includes:
if the client is detected to be in an off-line state, sending a pre-stored first keep-alive message to the equipment side and regularly acquiring equipment channel information from the equipment side;
responding to a re-login request of the client, and issuing the equipment channel information to the client for a user to check.
In a second aspect, an embodiment of the present invention provides an apparatus for acquiring device channel information, where the apparatus is configured in a cloud server, and the apparatus includes:
the keep-alive message sending module is used for sending a first keep-alive message stored in advance to the equipment terminal and acquiring equipment channel information from the equipment terminal at regular time if the client is detected to be in an offline state;
and the channel information acquisition module is used for responding to a re-login request of the client and sending the equipment channel information to the client for the user to check.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the device channel information acquisition method according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a medium, where a computer program is stored, and when the program is executed by a processor, the computer program implements the device channel information acquiring method described in any of the embodiments of the present invention.
According to the method, the device, the equipment and the medium for acquiring the equipment channel information, when the cloud server detects that the client is in an offline state, the cloud server sends the pre-stored first keep-alive message to the equipment side and acquires the equipment channel information from the equipment side at regular time, and when the client logs in again, the cloud server responds to a re-login request of the client and sends the regularly acquired equipment channel information to the client for a user to check. According to the technical scheme of the embodiment of the invention, after the client is offline, the cloud server replaces the client to continuously send the keep-alive information to the equipment terminal, the online state of the equipment is kept, the equipment channel information is regularly acquired from the equipment terminal and stored in the database, when the user logs in the client again, the equipment channel information can be directly acquired from the cloud server in advance, and the convenience of user operation is improved.
Drawings
Fig. 1 is a flowchart of an apparatus channel information obtaining method according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for acquiring device channel information according to an embodiment of the present invention;
fig. 3 is a block diagram of a device channel information obtaining apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a method for acquiring device channel information according to an embodiment of the present invention, which is applicable to a case of acquiring device details. Typically, the method can be applied to the case of viewing the device channel details in the NVR/VMS through an application program in the mobile terminal, and the method can be executed by a cloud server. Referring to fig. 1, the method may specifically include:
and step 110, if the client is detected to be in an offline state, sending a pre-stored first keep alive message to the equipment side and regularly acquiring equipment channel information from the equipment side.
The first keep-alive message comprises keep-alive message content, a keep-alive interval and keep-alive state values of the client and the equipment terminal. The content of the keep-alive message is used for keeping the equipment alive, so that a constant connection state is established between the cloud server and the equipment; the keep-alive interval can be set according to actual requirements; the keep-alive state value represents the keep-alive states of the client and the equipment, and comprises two states of keep-alive neutralization and keep-alive failure.
The device is a network camera accessed under NVR/VMS, and the device channel information at least comprises: channel name, channel number, video code rate, coding format, whether the cradle head is supported, equipment version and other information.
Specifically, if it is detected that the client is in an offline state, sending a pre-stored first keep-alive message to the device side and regularly acquiring device channel information from the device side, including:
if a second keep-alive message reported by the equipment terminal is received, determining whether the client is in an offline state according to a keep-alive state value in the second keep-alive message;
and if the device is in the offline state, regularly sending a first pre-stored keep-alive message to the device end, wherein the first pre-stored keep-alive message is used for indicating the device end to feed back the device channel information.
And the keep-alive state value in the second keep-alive message is determined by the equipment terminal according to whether the first keep-alive message is received from the client terminal within a preset time period.
Specifically, if the device side receives a first keep-alive message from the client side within a preset time period, the keep-alive state value in the second keep-alive message is a first numerical value; otherwise, the keep-alive state value is a second numerical value.
The first value indicates that the client and the equipment end are in keep-alive, and the client is in an online state; the second value identifies keep-alive failure of the client and the equipment terminal, and the client is in an offline state. Illustratively, the keep-alive status value may be implemented by a new field, where 0 is used to indicate keep-alive, and 1 is used to indicate keep-alive failure, i.e. the first value may be indicated by 0, and the second value may be indicated by 1.
For example, if the device end does not receive the first keep-alive message sent by the client for three consecutive times, the device end uploads a second keep-alive message to the cloud server, and a keep-alive state value in the second keep-alive message is 1, so that the cloud server is informed that the client is offline at this time.
After receiving the keep-alive message sent by the device side, the cloud server inquires whether a binding relationship exists between the device side and the cloud account, and if the binding relationship exists, the stored keep-alive state value is changed to 1, which indicates that the client side is in an offline state. The binding relationship is pre-established through the unique identifier of the equipment end equipment and the cloud account and stored in a cloud server database.
After detecting that the client is in an off-line state, the cloud server sends a first pre-stored keep alive message to the equipment side, keeps a normal login state of the equipment side, calls the first interface to obtain equipment channel information from the equipment side at regular time according to a preset time length, and stores the obtained equipment channel information into a cloud server database. The preset time period can be set by actual requirements.
And 120, responding to a re-login request of the client, and sending the equipment channel information to the client for a user to check.
In the embodiment, when the user logs in the client again, the cloud server responds to the re-login request of the client, and the device channel information stored in the database is sent to the client for the user to check, so that the user can acquire the device channel information in advance when logging in the client again, the device login does not need to be waited, and the operation experience of the user is improved.
Specifically, after the client logs in again, the first interface can be directly called to obtain the device channel information from the cloud server, meanwhile, the second interface is called to forward the first keep-alive message to the device through the cloud server, wherein the keep-alive state value is 0 and indicates that the client is in a login state, the cloud server changes the stored keep-alive state value to 0 correspondingly according to the received keep-alive message, the sending of the keep-alive message to the device end is stopped, meanwhile, the first interface is also stopped to be called, and the client directly calls the first interface to obtain the device channel information from the device end after waiting for the device end to log in again.
According to the technical scheme of the embodiment of the invention, after the cloud server detects that the client is offline, the cloud server replaces the client to continuously send the keep-alive information to the equipment terminal, keeps the online state of the equipment, and regularly acquires the equipment channel information from the equipment terminal and stores the equipment channel information into the database.
On the basis of the above embodiment, before step 110, the method further includes: and the client calls the second interface to forward the first keep alive message to the equipment terminal through the cloud server, and meanwhile, the cloud server stores the first keep alive message into a cloud server database.
Fig. 2 is a flowchart of another method for acquiring device channel information according to an embodiment of the present invention, and this embodiment provides another implementable manner for step 120 for a case where a P2P forwarding networking is performed between a client and a device on the basis of the foregoing embodiment. Referring to fig. 2, the method may specifically include:
step 210, if it is detected that the client is in an offline state, sending a pre-stored first keep alive message to the device side and periodically acquiring device channel information from the device side.
Step 220, responding to the re-login request of the client, and determining whether the connection between the client and the equipment terminal is established according to the pre-stored communication connection relation;
the communication connection relation comprises the unique identification of the client, the port value and the IP address of the client and the incidence relation between the port value and the IP address of the equipment end.
In this embodiment, the communication connection relationship is generated when the client logs in for the first time. And for the condition that the client and the equipment terminal walk through P2P forwarding networking, the cloud server serves as a forwarding server and forwards data interacted between the client and the equipment terminal.
Specifically, a correspondence table for storing the client IP address and the port value, the device IP address and the port value, and the unique client identifier is established in the cloud server database. The IP addresses and port values of the client and the Device are allocated by the cloud server, the Unique Identifier of the client may be the Unique Identifier of the Mobile terminal to which the client belongs, and for example, an International Mobile Equipment Identity (IMEI) or a Universal Device Identity (UDID) of a Mobile phone may be used as the Unique Identifier of the client.
When the client logs in for the first time and forwards the first keep alive message to the equipment side through the cloud server, the cloud server allocates the IP address and the port value to the client and the equipment side respectively, and meanwhile, the client calls the third interface to report the unique identifier of the client to the cloud server. And the cloud server stores the allocated IP address and port value of the client, the allocated IP address and port value of the equipment terminal and the unique identifier of the client into a corresponding table.
And when the client logs out and logs in again, the client calls the fourth interface to report the unique identification information of the client, and the cloud server determines whether the client and the equipment end have established connection or not according to the communication connection relation stored in the table and the unique identification information of the client.
Illustratively, when a client logs in for the first time and performs P2P forwarding with a device for the first time, a cloud server allocates an IP1+ port 1 to the client, allocates an IP2+ port 2 to the device, calls a third interface at the same time, uploads a unique mobile phone identifier X to the cloud server, and the forwarding server stores the IP1+ port 1 of the client, the IP2+ port 2 of the device and the unique mobile phone identifier X in a corresponding table of a database.
When the client logs out of the re-login, the client calls the fourth interface to report the unique identifier of the mobile phone where the client is located, and determines whether the forwarding relation of the mobile phone is stored in the database corresponding table according to the unique identifier of the mobile phone, namely, whether the communication connection relation between the current client and the equipment terminal is established is judged.
And step 230, if yes, adopting the port value and the IP address of the client and the port value and the IP address of the equipment end to perform login-free communication.
In this embodiment, if the forwarding relationship of the client is already stored in the cloud server table, the client and the device continue to use the forwarding relationship established for the first time, and the client can directly inherit the login state of the device, so that the login process is omitted, and direct interaction with the device is performed.
Illustratively, if the unique identifier of the mobile phone is X, the cloud server allocates an IP1+ port 1 to the current client and correspondingly allocates an IP2+ port 2 to the device according to the communication connection relationship stored in the correspondence table, and because the cloud server can regularly send keep-alive messages to the device and maintain a link between the cloud server and the device, the client and the device can continue to use the first forwarding relationship therebetween without reallocation and establishment of connection, thereby performing login-free communication.
According to the technical scheme, when the client side is used for checking the details of the equipment side, whether the connection between the client side and the equipment side is established or not is determined according to the pre-stored communication connection relation for the situation of P2P forwarding networking, if the communication connection relation is established, the client side can directly inherit the login state of the equipment, the login process is omitted, direct interaction with the equipment is achieved, user operation is facilitated, and operation experience of a user is improved.
As another optional embodiment, the cloud server may create a virtual client according to the unique identifier of the client, simulate the client to send a keep-alive message to the device, keep the device online, and obtain device channel information under the NVR/VMS.
Fig. 3 is a block diagram of a device channel information acquiring apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus may include:
a keep-alive message sending module 310, configured to send a first keep-alive message stored in advance to the device side and obtain device channel information from the device side at regular time if it is detected that the client is in an offline state;
the channel information obtaining module 320 is configured to respond to a re-login request of the client, and send the device channel information to the client for the user to view.
On the basis of the above embodiment, the device channel information acquiring apparatus further includes: the keep-alive message sending module 310 is specifically configured to:
if a second keep-alive message reported by the equipment terminal is received, determining whether the client is in an offline state according to a keep-alive state value in the second keep-alive message;
and if the device is in the offline state, regularly sending a first pre-stored keep-alive message to the device end, wherein the first pre-stored keep-alive message is used for indicating the device end to feed back the device channel information.
And the keep-alive state value in the second keep-alive message is determined by the equipment terminal according to whether the first keep-alive message is received from the client terminal within a preset time period.
If the device side receives a first keep-alive message from the client side within a preset time period, the keep-alive state value in the second keep-alive message is a first numerical value; otherwise, the keep-alive state value is a second numerical value.
Optionally, the device channel information at least includes: channel name, channel number, video code rate, coding format, whether the cradle head is supported or not and equipment version.
On the basis of the above embodiment, the device channel information acquiring module further includes: the connection relation judging module is used for responding to a re-login request of the client and determining whether the connection between the client and the equipment terminal is established according to a pre-stored communication connection relation; the communication connection relation comprises a unique identification of the client, a port value and an IP address of the client and an incidence relation between the port value and the IP address of the equipment end;
and the login-free communication module is used for carrying out login-free communication by adopting the port value and the IP address of the client and the port value and the IP address of the equipment terminal if the terminal is the login-free communication module.
The device channel information acquisition device provided by the embodiment of the invention can execute the device channel information acquisition method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, and fig. 4 shows a block diagram of an exemplary server suitable for implementing an embodiment of the present invention. The device shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 4, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the device channel information acquisition method provided by the embodiment of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program is used for executing, when executed by a processor, an apparatus channel information obtaining method, where the method is executed by a cloud server, and the method includes:
if the client is detected to be in an offline state, sending a pre-stored first keep-alive message to the equipment end and acquiring equipment channel information from the equipment end at regular time;
responding to a re-login request of the client, and issuing the equipment channel information to the client for a user to check.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method for acquiring device channel information is executed by a cloud server, and the method comprises the following steps:
if the client is detected to be in an offline state, sending a pre-stored first keep-alive message to the equipment end and acquiring equipment channel information from the equipment end at regular time; wherein the device channel information at least includes: the method comprises the following steps of (1) channel name, channel number, video code rate, coding format, whether a holder and equipment version are supported or not;
responding to a re-login request of the client, and issuing the equipment channel information to the client for a user to check;
if the client is detected to be in an offline state, sending a pre-stored first keep alive message to the equipment side and regularly acquiring equipment channel information from the equipment side, wherein the method comprises the following steps:
if a second keep-alive message reported by the equipment terminal is received, determining whether the client terminal is in an off-line state or not according to a keep-alive state value in the second keep-alive message;
if the equipment is in the off-line state, regularly sending a pre-stored first keep-alive message to the equipment end, wherein the pre-stored first keep-alive message is used for indicating the equipment end to feed back the equipment channel information;
and the keep-alive state value in the second keep-alive message is determined by the equipment terminal according to whether the first keep-alive message is received from the client terminal within a preset time period.
2. The method according to claim 1, wherein if the device side receives a first keep-alive message from the client side within a preset time period, the keep-alive state value in the second keep-alive message is a first numerical value; otherwise, the keep-alive state value is a second numerical value.
3. The method of claim 1, further comprising:
responding to a re-login request of the client, and determining whether the connection between the client and the equipment terminal is established according to a pre-stored communication connection relation; the communication connection relation comprises a unique identification of the client, a port value and an IP address of the client and an incidence relation between the port value and the IP address of the equipment end;
and if so, adopting the port value and the IP address of the client side and the port value and the IP address of the equipment side to carry out login-free communication.
4. The method of claim 3, wherein the communication connection relationship is generated upon first login of the client.
5. An apparatus for acquiring device channel information, configured to a cloud server, the apparatus comprising:
the keep-alive message sending module is used for sending a first keep-alive message stored in advance to the equipment terminal and acquiring equipment channel information from the equipment terminal at regular time if the client is detected to be in an offline state; wherein the device channel information at least includes: the method comprises the following steps of (1) channel name, channel number, video code rate, coding format, whether a holder and equipment version are supported or not;
the channel information acquisition module is used for responding to a re-login request of the client and sending the equipment channel information to the client for a user to check;
the device channel information acquisition apparatus further includes: the keep-alive message sending module is specifically configured to:
if a second keep-alive message reported by the equipment terminal is received, determining whether the client terminal is in an off-line state or not according to a keep-alive state value in the second keep-alive message;
if the device is in the off-line state, a first pre-stored keep-alive message is sent to the device end at regular time and used for indicating the device end to feed back the device channel information;
and the keep-alive state value in the second keep-alive message is determined by the equipment terminal according to whether the first keep-alive message is received from the client terminal within a preset time period.
6. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the device channel information acquisition method of any one of claims 1-4.
7. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the device channel information acquisition method according to any one of claims 1 to 4.
CN201911000081.4A 2019-10-21 2019-10-21 Method, device, equipment and medium for acquiring equipment channel information Active CN112769876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911000081.4A CN112769876B (en) 2019-10-21 2019-10-21 Method, device, equipment and medium for acquiring equipment channel information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911000081.4A CN112769876B (en) 2019-10-21 2019-10-21 Method, device, equipment and medium for acquiring equipment channel information

Publications (2)

Publication Number Publication Date
CN112769876A CN112769876A (en) 2021-05-07
CN112769876B true CN112769876B (en) 2023-04-07

Family

ID=75691658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911000081.4A Active CN112769876B (en) 2019-10-21 2019-10-21 Method, device, equipment and medium for acquiring equipment channel information

Country Status (1)

Country Link
CN (1) CN112769876B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086263B (en) * 2022-07-22 2024-04-05 康键信息技术(深圳)有限公司 IM message sending method, system, storage medium and computer equipment of IOS terminal
CN115361432B (en) * 2022-08-31 2023-05-09 小米汽车科技有限公司 Communication control method and device between master and slave devices, vehicle and storage medium
CN117640724A (en) * 2024-01-25 2024-03-01 深圳市鲸视科技有限公司 Data forwarding method, system, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047511A (en) * 2006-03-27 2007-10-03 腾讯科技(深圳)有限公司 File transmission method and system
CN101155147A (en) * 2006-09-26 2008-04-02 阿里巴巴公司 Method and apparatus for distributing monitoring data of instant communication server
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming
CN101808048A (en) * 2010-03-10 2010-08-18 杭州乐港科技有限公司 Web instant messaging method
CN102045374A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Implementation method and system supporting capability of actively pushing data messages
CN102217283A (en) * 2011-05-25 2011-10-12 华为技术有限公司 Method and apparatus for pp file transmission
CN103684988A (en) * 2013-11-22 2014-03-26 深圳市迈桥科技有限公司 Cross-mobile-terminal message pushing method and device
CN107213634A (en) * 2017-06-13 2017-09-29 北京凯罗天下科技有限公司 A kind of game user management method, game server and system
CN110198351A (en) * 2019-05-29 2019-09-03 深圳前海微众银行股份有限公司 Storage method, device, server-side and the readable storage medium storing program for executing of offline message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458436B (en) * 2012-05-31 2016-08-03 中兴通讯股份有限公司 The detection method of link keep-alive and device between AC and AP

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047511A (en) * 2006-03-27 2007-10-03 腾讯科技(深圳)有限公司 File transmission method and system
CN101155147A (en) * 2006-09-26 2008-04-02 阿里巴巴公司 Method and apparatus for distributing monitoring data of instant communication server
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming
CN102045374A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Implementation method and system supporting capability of actively pushing data messages
CN101808048A (en) * 2010-03-10 2010-08-18 杭州乐港科技有限公司 Web instant messaging method
CN102217283A (en) * 2011-05-25 2011-10-12 华为技术有限公司 Method and apparatus for pp file transmission
CN103684988A (en) * 2013-11-22 2014-03-26 深圳市迈桥科技有限公司 Cross-mobile-terminal message pushing method and device
CN107213634A (en) * 2017-06-13 2017-09-29 北京凯罗天下科技有限公司 A kind of game user management method, game server and system
CN110198351A (en) * 2019-05-29 2019-09-03 深圳前海微众银行股份有限公司 Storage method, device, server-side and the readable storage medium storing program for executing of offline message

Also Published As

Publication number Publication date
CN112769876A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN112769876B (en) Method, device, equipment and medium for acquiring equipment channel information
US11509505B2 (en) Method and apparatus for operating smart network interface card
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN112333044B (en) Shunting equipment performance test method, device and system, electronic equipment and medium
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN113296981A (en) Data processing method and device, electronic equipment and storage medium
CN113382056A (en) Data reporting method, device, equipment, storage medium and system
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
CN113709151A (en) Method, apparatus, device, medium and product for logging in cloud application
CN114363334B (en) Cloud system, network configuration method, device and equipment of cloud desktop virtual machine
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN110896362A (en) Fault detection method and device
CN112395242B (en) Multi-chip control method, device, electronic equipment and computer readable storage medium
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
WO2020177731A1 (en) Real-time communication method between hosted applications
CN114785861B (en) Service request forwarding system, method, computer equipment and storage medium
CN113452948B (en) Conference terminal control method, device, equipment and storage medium
CN108833568B (en) Message synchronization method, client, server and electronic equipment
CN113946376A (en) Load adjustment method and device, electronic equipment and storage medium
CN109327726B (en) Barrage message processing method and device, terminal and storage medium
CN109726026B (en) Interactive data processing method, device, equipment and storage medium
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium
CN110798398A (en) Group message management method, device, equipment and medium
CN110011767B (en) Method and apparatus for TCP connection backup

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
GR01 Patent grant
GR01 Patent grant