








技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种信息采集方法、一种信息采集设备、一种信息采集远程服务器、一种电子设备和一种计算机可读存储介质。The present invention relates to the field of computer technology, in particular to an information collection method, an information collection device, an information collection remote server, an electronic device and a computer-readable storage medium.
背景技术Background technique
服务器是计算机的一种,可以在网络中为其它客户机,如PC(Personal Computer,个人计算机)、智能手机、ATM((Automated Teller Machine,自动取款机)等终端甚至是火车系统等大型设备,提供计算或者应用服务,服务器通常都具备承担响应服务请求、承担服务、保障服务的能力。The server is a kind of computer, which can serve other clients in the network, such as PC (Personal Computer, personal computer), smart phone, ATM ((Automated Teller Machine, automatic teller machine) and other terminals or even large equipment such as train systems, To provide computing or application services, servers usually have the ability to respond to service requests, undertake services, and guarantee services.
目前,通常可以基于网络远程来测试以及使用服务器,但是在不设置服务器的静态IP(Internet Protocol,网际互连协议)时,会由于各种因素导致服务器IP发生变化。在服务器IP发生变化时,通常只能通过现场查看的方式记录该服务器新的IP,导致效率低下,成本较高。At present, the server can be tested and used remotely based on the network, but when the static IP (Internet Protocol, Internet Protocol) of the server is not set, the server IP will change due to various factors. When the IP of the server changes, usually the new IP of the server can only be recorded by on-site inspection, resulting in low efficiency and high cost.
发明内容Contents of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种信息采集方法、一种信息采集设备、一种信息采集远程服务器、一种电子设备和一种计算机可读存储介质。In view of the above problems, the embodiments of the present invention are proposed to provide an information collection method, an information collection device, an information collection remote server, an electronic device and a A computer readable storage medium.
为了解决上述问题,本发明实施例公开了一种信息采集方法,所述方法应用于信息采集设备,所述信息采集设备包括LoRa(Long Range Radio,远距离无线电)模组,所述信息采集设备与远程服务器通信连接,所述方法包括:In order to solve the above problems, the embodiment of the present invention discloses an information collection method, the method is applied to an information collection device, and the information collection device includes a LoRa (Long Range Radio, long-distance radio) module, and the information collection device Communicating with a remote server, the method includes:
检测到所述远程服务器的IP发生变化时,获取针对所述远程服务器的信息采集指令数据;When it is detected that the IP of the remote server changes, acquire the information collection instruction data for the remote server;
采用所述LoRa模组,将所述信息采集指令数据封装为LoRa指令数据,并将所述LoRa指令数据发送至所述远程服务器;Using the LoRa module, encapsulating the information collection command data into LoRa command data, and sending the LoRa command data to the remote server;
采用所述LoRa模组,接收所述远程服务器基于所述LoRa指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息。The LoRa module is used to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and unseal the LoRa parameter data to obtain server parameter information.
可选地,所述信息采集指令数据包括目标远程服务器的机型信息,以及用于指示采集目标远程服务器参数信息的功能码,所述采用所述LoRa模组,5将所述信息采集指令数据封装为LoRa指令数据,并将所述LoRa指令数据发送至所述远程服务器,包括:Optionally, the information collection instruction data includes the model information of the target remote server, and a function code for instructing the parameter information of the target remote server to be collected, and by using the LoRa module, 5 converts the information collection instruction data to Encapsulate as LoRa command data, and send the LoRa command data to the remote server, including:
采用所述LoRa模组,根据封装协议将所述目标远程服务器的机型信息和所述功能码封装为LoRa指令数据;Using the LoRa module, according to the encapsulation protocol, the model information of the target remote server and the function code are encapsulated as LoRa command data;
将所述LoRa指令数据广播发送至多个远程服务器,以使目标远程服务0器在接收到所述LoRa指令数据后,返回LoRa参数数据。The LoRa command data broadcast is sent to a plurality of remote servers, so that the target remote server returns LoRa parameter data after receiving the LoRa command data.
可选地,所述将所述LoRa指令数据广播发送至多个远程服务器,包括:Optionally, the broadcasting of the LoRa instruction data to a plurality of remote servers includes:
对所述LoRa指令数据进行加密,得到LoRa指令加密数据;Encrypt the LoRa command data to obtain the LoRa command encrypted data;
将所述LoRa指令加密数据广播发送至多个远程服务器。Send the LoRa instruction encrypted data broadcast to multiple remote servers.
可选地,所述采用所述LoRa模组,接收所述远程服务器基于所述LoRa5指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息,包括:Optionally, using the LoRa module, receiving the LoRa parameter data sent by the remote server based on the LoRa5 command data, and unpacking the LoRa parameter data to obtain server parameter information, including:
采用所述LoRa模组,接收所述目标远程服务器基于所述LoRa指令数据发送的LoRa参数加密数据;Using the LoRa module to receive the LoRa parameter encrypted data sent by the target remote server based on the LoRa command data;
对所述LoRa参数加密数据进行解密,得到LoRa参数数据;0对所述LoRa参数数据进行解封装,得到服务器参数信息。Decrypt the encrypted data of the LoRa parameter to obtain the LoRa parameter data; 0 decapsulate the LoRa parameter data to obtain the server parameter information.
本发明实施例还公开了另一种信息采集方法,所述方法应用于远程服务器,所述远程服务器包括LoRa模组,所述远程服务器与信息采集设备通信连接,所述方法包括:The embodiment of the present invention also discloses another information collection method. The method is applied to a remote server, the remote server includes a LoRa module, and the remote server communicates with an information collection device. The method includes:
采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令数据;5根据所述LoRa指令数据,判断所述远程服务器是否为目标远程服务器;Using the LoRa module to receive the LoRa command data sent by the information collection device; 5. According to the LoRa command data, determine whether the remote server is a target remote server;
若所述远程服务器为目标远程服务器,则获取用于指示采集目标远程服务器参数信息的功能码,并根据所述功能码采集所述远程服务器的服务器参数信息;If the remote server is the target remote server, then acquire a function code for instructing to collect parameter information of the target remote server, and collect server parameter information of the remote server according to the function code;
采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备。The LoRa module is used to encapsulate the server parameter information into LoRa parameter data, and the LoRa parameter data is sent to the information collection device.
可选地,所述采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令数据,包括:Optionally, using the LoRa module to receive the LoRa command data sent by the information collection device includes:
采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令加密数据;Using the LoRa module to receive the encrypted data of the LoRa command sent by the information collection device;
对所述LoRa指令加密数据进行解密,得到LoRa指令数据;Decrypt the encrypted data of the LoRa command to obtain the LoRa command data;
对所述LoRa指令数据进行解封装,得到信息采集指令数据。Decapsulating the LoRa command data to obtain information collection command data.
可选地,所述根据所述LoRa指令数据,判断所述远程服务器是否为目标远程服务器,包括:Optionally, the judging whether the remote server is a target remote server according to the LoRa instruction data includes:
从所述信息采集指令数据中获取目标远程服务器的机型信息;Obtaining the model information of the target remote server from the information collection instruction data;
获取所述远程服务器自身的机型信息,并判断所述远程服务器自身的机型信息与所述目标远程服务器的机型信息是否匹配。Obtaining the model information of the remote server itself, and judging whether the model information of the remote server itself matches the model information of the target remote server.
可选地,所述采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备,包括:Optionally, using the LoRa module, packaging the server parameter information as LoRa parameter data, and sending the LoRa parameter data to the information collection device, including:
采用所述LoRa模组,根据封装协议将所述服务器参数信息封装为LoRa参数数据;Using the LoRa module, the server parameter information is encapsulated as LoRa parameter data according to the encapsulation protocol;
对所述所述LoRa参数数据进行加密,得到LoRa参数加密数据;Encrypt the LoRa parameter data to obtain LoRa parameter encrypted data;
将所述LoRa参数加密数据发送至所述信息采集设备。Send the encrypted data of the LoRa parameter to the information collection device.
本发明实施例还公开了一种信息采集设备,所述信息采集设备包括LoRa模组,所述信息采集设备与远程服务器通信连接,所述信息采集设备包括:The embodiment of the present invention also discloses an information collection device, the information collection device includes a LoRa module, the information collection device is connected to a remote server through communication, and the information collection device includes:
检测模块,用于检测到所述远程服务器的IP发生变化时,获取针对所述远程服务器的信息采集指令数据;A detection module, configured to obtain information collection instruction data for the remote server when detecting that the IP of the remote server has changed;
发送模块,用于采用所述LoRa模组,将所述信息采集指令数据封装为LoRa指令数据,并将所述LoRa指令数据发送至所述远程服务器;A sending module, configured to use the LoRa module to encapsulate the information collection instruction data into LoRa instruction data, and send the LoRa instruction data to the remote server;
接收模块,用于采用所述LoRa模组,接收所述远程服务器基于所述LoRa指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息。The receiving module is used to adopt the LoRa module to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and unpack the LoRa parameter data to obtain server parameter information.
可选地,所述信息采集指令数据包括目标远程服务器的机型信息,以及用于指示采集目标远程服务器参数信息的功能码,所述发送模块,包括:Optionally, the information collection instruction data includes model information of the target remote server, and a function code for instructing to collect parameter information of the target remote server, and the sending module includes:
封装子模块,用于采用所述LoRa模组,根据封装协议将所述目标远程5服务器的机型信息和所述功能码封装为LoRa指令数据;Encapsulation sub-module, for adopting described LoRa module, according to encapsulation agreement, the model information of described target remote 5 server and described function code are encapsulated as LoRa command data;
广播发送子模块,用于将所述LoRa指令数据广播发送至多个远程服务器,以使目标远程服务器在接收到所述LoRa指令数据后,返回LoRa参数数据。The broadcast sending submodule is used to broadcast and send the LoRa command data to a plurality of remote servers, so that the target remote server returns LoRa parameter data after receiving the LoRa command data.
可选地,所述广播发送子模块,包括:Optionally, the broadcast sending submodule includes:
0指令加密单元,用于对所述LoRa指令数据进行加密,得到LoRa指令加密数据;0 command encryption unit, used to encrypt the LoRa command data, obtain the LoRa command encrypted data;
数据广播发送单元,用于将所述LoRa指令加密数据广播发送至多个远程服务器。The data broadcast sending unit is used to send the LoRa command encrypted data broadcast to multiple remote servers.
可选地,所述接收模块,包括:Optionally, the receiving module includes:
5加密数据接收单元,用于采用所述LoRa模组,接收所述目标远程服务器基于所述LoRa指令数据发送的LoRa参数加密数据;5. An encrypted data receiving unit, configured to use the LoRa module to receive the LoRa parameter encrypted data sent by the target remote server based on the LoRa command data;
数据解密单元,用于对所述LoRa参数加密数据进行解密,得到LoRa参数数据;The data decryption unit is used to decrypt the encrypted data of the LoRa parameter to obtain the LoRa parameter data;
解封装单元,用于对所述LoRa参数数据进行解封装,得到服务器参数0信息。The decapsulation unit is configured to decapsulate the LoRa parameter data to obtain server parameter 0 information.
本发明实施例还公开了一种信息采集远程服务器,所述远程服务器包括LoRa模组,所述远程服务器与信息采集设备通信连接,所述服务器包括:The embodiment of the present invention also discloses a remote server for information collection, the remote server includes a LoRa module, the remote server communicates with the information collection device, and the server includes:
数据接收模块,用于采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令数据;The data receiving module is used to adopt the LoRa module to receive the LoRa command data sent by the information collection device;
5判断模块,用于根据所述LoRa指令数据,判断所述远程服务器是否为5 judging modules, for judging whether the remote server is
目标远程服务器;target remote server;
采集模块,用于若所述远程服务器为目标远程服务器,则获取用于指示采集目标远程服务器参数信息的功能码,并根据所述功能码采集所述远程服务器的服务器参数信息;A collection module, configured to obtain, if the remote server is a target remote server, a function code for instructing to collect parameter information of the target remote server, and collect server parameter information of the remote server according to the function code;
数据发送模块,用于采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备。The data sending module is used to use the LoRa module to encapsulate the server parameter information into LoRa parameter data, and send the LoRa parameter data to the information collection device.
可选地,所述数据接收模块,包括:Optionally, the data receiving module includes:
加密数据接收子模块,用于采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令加密数据;The encrypted data receiving submodule is used to adopt the LoRa module to receive the encrypted data of the LoRa command sent by the information collection device;
数据解密子模块,用于对所述LoRa指令加密数据进行解密,得到LoRa指令数据;The data decryption submodule is used to decrypt the encrypted data of the LoRa command to obtain the LoRa command data;
解封装子模块,用于对所述LoRa指令数据进行解封装,得到信息采集指令数据。The decapsulation sub-module is used to decapsulate the LoRa command data to obtain information collection command data.
可选地,所述判断模块,包括:Optionally, the judging module includes:
功能码获取子模块,用于从所述信息采集指令数据中获取目标远程服务器的机型信息;The function code acquisition sub-module is used to acquire the model information of the target remote server from the information acquisition instruction data;
匹配判断子模块,用于获取所述远程服务器自身的机型信息,并判断所述远程服务器自身的机型信息与所述目标远程服务器的机型信息是否匹配。The matching judging submodule is used to acquire the model information of the remote server itself, and judge whether the model information of the remote server itself matches the model information of the target remote server.
可选地,所述数据发送模块,包括:Optionally, the data sending module includes:
参数封装子模块,用于采用所述LoRa模组,根据封装协议将所述服务器参数信息封装为LoRa参数数据;The parameter encapsulation sub-module is used to encapsulate the server parameter information into LoRa parameter data according to the encapsulation protocol by using the LoRa module;
参数加密子模块,用于对所述所述LoRa参数数据进行加密,得到LoRa参数加密数据;The parameter encryption submodule is used to encrypt the LoRa parameter data to obtain the LoRa parameter encrypted data;
加密数据发送子模块,用于将所述LoRa参数加密数据发送至所述信息采集设备。The encrypted data sending submodule is used to send the encrypted data of the LoRa parameters to the information collection device.
本发明实施例还公开了一种电子设备,包括:处理器、存储器及存储在所述存储器上并能够在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的信息采集方法的步骤。The embodiment of the present invention also discloses an electronic device, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the The steps of the above-mentioned information collection method.
本发明实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的信息采集方法的步骤。The embodiment of the present invention also discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned information collection method are realized.
本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:
在本发明实施例中,信息采集设备检测到远程服务器的IP发生变化时,可以首先获取针对远程服务器的信息采集指令数据,接着采用LoRa模组将信息采集指令数据封装为LoRa指令数据,并将LoRa指令数据发送至远程服务器,再采用LoRa模组接收远程服务器基于LoRa指令数据发送的LoRa参数数据,并解封LoRa参数数据得到服务器参数信息,从而在远程服务器的IP发生变化时,可以通过LoRa远距离无线电技术发送信息采集指令以及接收远程服务器新的服务器参数信息,避免通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, when the information collection device detects that the IP of the remote server has changed, it can first obtain the information collection instruction data for the remote server, and then use the LoRa module to package the information collection instruction data into LoRa instruction data, and The LoRa command data is sent to the remote server, and then the LoRa module is used to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and the LoRa parameter data is unsealed to obtain the server parameter information, so that when the IP of the remote server changes, the LoRa Long-distance radio technology sends information collection instructions and receives new server parameter information from remote servers, avoiding recording the new IP of remote servers through on-site inspection, thereby improving efficiency, saving time and reducing costs.
附图说明Description of drawings
图1是本发明实施例提供的一种信息采集方法的步骤流程图;Fig. 1 is a flow chart of the steps of an information collection method provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种信息采集方法的步骤流程图;Fig. 2 is a flow chart of steps of another information collection method provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种信息采集方法的步骤流程图;FIG. 3 is a flowchart of steps of another information collection method provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种信息采集方法的步骤流程图;FIG. 4 is a flowchart of steps of another information collection method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种信息采集设备与远程服务器之间进行数据传输的示意图;5 is a schematic diagram of data transmission between an information collection device and a remote server provided by an embodiment of the present invention;
图6是本发明实施例提供的一种信息采集设备的结构框图;FIG. 6 is a structural block diagram of an information collection device provided by an embodiment of the present invention;
图7是本发明实施例提供的一种信息采集远程服务器的结构框图;Fig. 7 is a structural block diagram of a remote server for information collection provided by an embodiment of the present invention;
图8是本发明实施例提供的电子设备的结构框图;FIG. 8 is a structural block diagram of an electronic device provided by an embodiment of the present invention;
图9是本发明实施例提供的计算机可读存储介质的结构框图。Fig. 9 is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
通常可以基于网络远程来测试以及使用服务器,但是在不设置服务器的静态IP时,若服务器IP发生变化时,则只能通过现场查看的方式记录该服务器新的IP,导致效率低下,成本较高。Usually, the server can be tested and used remotely based on the network, but if the server IP is not set, if the server IP changes, the new IP of the server can only be recorded through on-site inspection, resulting in low efficiency and high cost .
本发明实施例的核心构思之一在于,信息采集设备检测到远程服务器的IP发生变化时,可以首先获取针对远程服务器的信息采集指令数据,接着采用LoRa模组将信息采集指令数据封装为LoRa指令数据,并将LoRa指令数据发送至远程服务器,再采用LoRa模组接收远程服务器基于LoRa指令数据发送的LoRa参数数据,并解封LoRa参数数据得到服务器参数信息,从而在远程服务器的IP发生变化时,可以通过LoRa远距离无线电技术发送信息采集指令以及接收远程服务器新的服务器参数信息,避免通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。One of the core concepts of the embodiment of the present invention is that when the information collection device detects that the IP of the remote server has changed, it can first obtain the information collection instruction data for the remote server, and then use the LoRa module to package the information collection instruction data into LoRa instructions data, and send the LoRa command data to the remote server, and then use the LoRa module to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and unseal the LoRa parameter data to obtain the server parameter information, so that when the IP of the remote server changes , you can send information collection instructions and receive new server parameter information from remote servers through LoRa long-distance radio technology, avoiding recording the new IP of remote servers through on-site viewing, thereby improving efficiency, saving time and reducing costs.
参照图1,示出了本发明实施例提供的一种信息采集方法的步骤流程图,所述方法应用于信息采集设备,所述信息采集设备包括LoRa模组,所述信息采集设备与远程服务器通信连接,所述方法具体可以包括如下步骤:Referring to Fig. 1, it shows a flow chart of the steps of an information collection method provided by an embodiment of the present invention, the method is applied to an information collection device, the information collection device includes a LoRa module, and the information collection device is connected to a remote server Communication connection, the method may specifically include the following steps:
步骤101,检测到所述远程服务器的IP发生变化时,获取针对所述远程服务器的信息采集指令数据。
本发明实施例的信息采集方法可以应用于信息采集设备,信息采集设备可以在检测到远程服务器的IP发生变化时,获取针对远程服务器的信息采集指令数据,通过LoRa模组发送LoRa指令数据至远程服务器,以及接收远程服务器返回的LoRa参数信息,从而不需要通过现场查看的方式,即可记录远程服务器新的服务器参数信息。The information collection method of the embodiment of the present invention can be applied to information collection equipment. When the information collection equipment detects that the IP of the remote server has changed, it can obtain the information collection instruction data for the remote server, and send the LoRa instruction data to the remote server through the LoRa module. server, and receive the LoRa parameter information returned by the remote server, so that the new server parameter information of the remote server can be recorded without on-site inspection.
LoRa是一种低功耗局域网无线标准,在同样的功耗条件下可以比其他无线方式传播更远的距离,实现低功耗和远距离的统一,在同样的功耗下可以较传统的无线射频通信距离扩大3-5倍,LoRa只要参数配置就可以自组网,互相传输数据。在本发明实施例中,可以在信息采集设备侧设置LoRa模组,并基于LoRa模组与远程服务器进行数据传输。LoRa is a low-power local area network wireless standard. Under the same power consumption conditions, it can spread farther than other wireless methods, realizing the unity of low power consumption and long-distance. The radio frequency communication distance is expanded by 3-5 times, and LoRa can self-organize a network and transmit data to each other as long as the parameters are configured. In the embodiment of the present invention, a LoRa module can be installed on the side of the information collection device, and data transmission can be performed with the remote server based on the LoRa module.
具体的,可以采用信息采集设备主板的M.2接口或其他接口,将LoRa模组与主控芯片进行连接,从而实现LoRa模组到信息采集设备端的连接。Specifically, the M.2 interface or other interfaces on the main board of the information collection device can be used to connect the LoRa module to the main control chip, so as to realize the connection between the LoRa module and the information collection device.
在信息采集设备主板的ROM(Read-Only Memory,只读存储器)芯片上,可以部署有BIOS(Basic Input Output System,基础输入输出系统)程序,可以由BIOS程序负责计算系统自检程序和系统自启动程序,在计算机系统启动后,可以首先运行BIOS程序,从而进行信息采集。On the ROM (Read-Only Memory, read-only memory) chip of the main board of the information collection device, a BIOS (Basic Input Output System, basic input and output system) program can be deployed, and the BIOS program can be responsible for calculating the system self-test program and system self-checking program. Start the program. After the computer system is started, the BIOS program can be run first, so as to collect information.
步骤102,采用所述LoRa模组,将所述信息采集指令数据封装为LoRa指令数据,并将所述LoRa指令数据发送至所述远程服务器。
在获取到针对远程服务器的信息采集指令数据后,可以采用LoRa模组,根据封装协议对信息采集指令数据进行封装,封装得到LoRa指令数据,并将LoRa指令数据发送至远程服务器。After obtaining the information collection instruction data for the remote server, the LoRa module can be used to encapsulate the information collection instruction data according to the packaging protocol, and the LoRa instruction data is obtained by packaging, and the LoRa instruction data is sent to the remote server.
步骤103,采用所述LoRa模组,接收所述远程服务器基于所述LoRa指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息。
在将LoRa指令数据发送至远程服务器后,可以采用LoRa模组接收远程服务器返回的LoRa参数数据,并对LoRa参数数据进行解封装,得到向信息采集设备返回LoRa参数数据的远程服务器自身的服务器参数信息。其中,服务器参数信息可以包括服务器当前IP地址、服务器机型和MAC(Media Access Control Address,媒体存取控制位址)地址等。After sending the LoRa command data to the remote server, the LoRa module can be used to receive the LoRa parameter data returned by the remote server, and decapsulate the LoRa parameter data to obtain the server parameters of the remote server itself that returns the LoRa parameter data to the information collection device information. Wherein, the server parameter information may include a current IP address of the server, a server model, a MAC (Media Access Control Address, Media Access Control Address) address, and the like.
在本发明实施例中,信息采集设备检测到远程服务器的IP发生变化时,可以首先获取针对远程服务器的信息采集指令数据,接着采用LoRa模组将信息采集指令数据封装为LoRa指令数据,并将LoRa指令数据发送至远程服务器,再采用LoRa模组接收远程服务器基于LoRa指令数据发送的LoRa参数数据,并解封LoRa参数数据得到服务器参数信息,从而在远程服务器的IP发生变化时,可以通过LoRa远距离无线电技术发送信息采集指令以及接收远程服务器新的服务器参数信息,避免通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, when the information collection device detects that the IP of the remote server has changed, it can first obtain the information collection instruction data for the remote server, and then use the LoRa module to package the information collection instruction data into LoRa instruction data, and The LoRa command data is sent to the remote server, and then the LoRa module is used to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and the LoRa parameter data is unsealed to obtain the server parameter information, so that when the IP of the remote server changes, the LoRa Long-distance radio technology sends information collection instructions and receives new server parameter information from remote servers, avoiding recording the new IP of remote servers through on-site inspection, thereby improving efficiency, saving time and reducing costs.
参照图2,示出了本发明实施例提供的另一种信息采集方法的步骤流程图,所述方法应用于信息采集设备,所述信息采集设备包括LoRa模组,所述信息采集设备与远程服务器通信连接,所述方法具体可以包括如下步骤:Referring to Fig. 2, it shows a flow chart of steps of another information collection method provided by an embodiment of the present invention, the method is applied to an information collection device, the information collection device includes a LoRa module, and the information collection device is connected to a remote server communication connection, the method may specifically include the following steps:
步骤201,检测到所述远程服务器的IP发生变化时,获取针对所述远程服务器的信息采集指令数据。
在一种可选的实施例中,所述信息采集指令数据包括目标远程服务器的机型信息,以及用于指示采集目标远程服务器参数信息的功能码。In an optional embodiment, the information collection instruction data includes model information of the target remote server and a function code for instructing to collect parameter information of the target remote server.
在检测到远程服务器的IP发生变化时,可以获取目标远程服务器的机型信息,以及目标远程服务器参数信息的功能码。在从信息采集设备向服务器发送功能码后,功能码可以用于指示目标远程服务器采集目标远程服务器参数信息。When it is detected that the IP of the remote server changes, the model information of the target remote server and the function code of the parameter information of the target remote server can be obtained. After the function code is sent from the information collection device to the server, the function code can be used to instruct the target remote server to collect parameter information of the target remote server.
步骤202,采用所述LoRa模组,根据封装协议将所述目标远程服务器的机型信息和所述功能码封装为LoRa指令数据。
目标远程服务器可以为IP发生变化的至少一个远程服务器,在具体实现中,可以分别获取单个远程服务器新的参数信息,也可以批量获取多个远程服务器新的参数信息。在本发明实施例中,在获取目标远程服务器的机型信息,以及目标远程服务器参数信息的功能码之后,可以采用LoRa模组,根据封装协议将目标远程服务器的机型信息和功能码封装为LoRa指令数据。The target remote server may be at least one remote server whose IP has changed. In specific implementation, new parameter information of a single remote server may be acquired respectively, or new parameter information of multiple remote servers may be acquired in batches. In the embodiment of the present invention, after obtaining the model information of the target remote server and the function code of the parameter information of the target remote server, the LoRa module can be used to package the model information and function code of the target remote server according to the encapsulation protocol as LoRa command data.
步骤203,将所述LoRa指令数据广播发送至多个远程服务器,以使目标远程服务器在接收到所述LoRa指令数据后,返回LoRa参数数据。
在本发明实施例中,在封装得到LoRa指令数据后,可以将LoRa指令数据进行广播发送,发送至多个远程服务器。多个远程服务器中的目标远程服务器在接收到LoRa指令数据后,可以向信息采集设备返回LoRa参数数据;非目标远程服务器在接收到LoRa指令数据后,则不向信息采集设备返回LoRa参数数据。In the embodiment of the present invention, after the LoRa command data is encapsulated, the LoRa command data can be broadcasted and sent to multiple remote servers. After receiving the LoRa command data, the target remote server among multiple remote servers can return LoRa parameter data to the information collection device; after receiving the LoRa command data, the non-target remote server does not return LoRa parameter data to the information collection device.
在一种可选的实施例中,所述步骤203可以包括以下子步骤S11-S12:In an optional embodiment, the
子步骤S11,对所述LoRa指令数据进行加密,得到LoRa指令加密数据。Sub-step S11, encrypting the LoRa command data to obtain LoRa command encrypted data.
子步骤S12,将所述LoRa指令加密数据广播发送至多个远程服务器。Sub-step S12, broadcasting the encrypted data of the LoRa command to multiple remote servers.
LoRa指令加密数据可以是指加密后的LoRa指令数据。在封装得到LoRa指令数据后,可以采用加密算法对LoRa指令数据进行加密,得到LoRa指令加密数据,并将LoRa指令加密数据进行广播发送,发送至多个远程服务器。The encrypted data of the LoRa command may refer to the encrypted LoRa command data. After the LoRa command data is encapsulated, the LoRa command data can be encrypted with an encryption algorithm to obtain the LoRa command encrypted data, and the LoRa command encrypted data is broadcast and sent to multiple remote servers.
步骤204,采用所述LoRa模组,接收所述远程服务器基于所述LoRa指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息。
在一种可选的实施例中,所述步骤204可以包括以下子步骤S21-S23:In an optional embodiment, the
子步骤S21,采用所述LoRa模组,接收所述目标远程服务器基于所述LoRa指令数据发送的LoRa参数加密数据。Sub-step S21, using the LoRa module to receive the LoRa parameter encrypted data sent by the target remote server based on the LoRa command data.
子步骤S22,对所述LoRa参数加密数据进行解密,得到LoRa参数数据。Sub-step S22, decrypting the encrypted data of LoRa parameters to obtain LoRa parameter data.
子步骤S23,对所述LoRa参数数据进行解封装,得到服务器参数信息。Sub-step S23, decapsulating the LoRa parameter data to obtain server parameter information.
LoRa参数加密数据可以是指加密后的LoRa参数数据。在信息采集设备将LoRa指令加密数据广播发送至多个远程服务器后,目标远程服务器可以基于LoRa指令数据返回LoRa参数加密数据,信息采集设备可以采用LoRa模组,接收目标远程服务器基于LoRa指令数据发送的LoRa参数加密数据,采用解密算法对LoRa参数加密数据进行解密,得到LoRa参数数据,并进一步对LoRa参数数据进行解封装,从而得到目标远程服务器新的服务器参数信息。The LoRa parameter encrypted data may refer to encrypted LoRa parameter data. After the information collection device broadcasts the LoRa command encrypted data to multiple remote servers, the target remote server can return the LoRa parameter encrypted data based on the LoRa command data, and the information collection device can use the LoRa module to receive the data sent by the target remote server based on the LoRa command data. The LoRa parameter encrypted data is decrypted by the decryption algorithm to obtain the LoRa parameter data, and the LoRa parameter data is further decapsulated to obtain the new server parameter information of the target remote server.
在本发明实施例中,信息采集设备检测到远程服务器的IP发生变化时,可以首先获取针对远程服务器的信息采集指令数据,接着采用LoRa模组将信息采集指令数据封装为LoRa指令数据,并将LoRa指令数据发送至远程服务器,再采用LoRa模组接收远程服务器基于LoRa指令数据发送的LoRa参数数据,并解封LoRa参数数据得到服务器参数信息,从而在远程服务器的IP发生变化时,可以通过LoRa远距离无线电技术发送信息采集指令以及接收远程服务器新的服务器参数信息,避免远程服务器的IP发生变化时需要通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, when the information collection device detects that the IP of the remote server has changed, it can first obtain the information collection instruction data for the remote server, and then use the LoRa module to package the information collection instruction data into LoRa instruction data, and The LoRa command data is sent to the remote server, and then the LoRa module is used to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and the LoRa parameter data is unsealed to obtain the server parameter information, so that when the IP of the remote server changes, the LoRa Long-distance radio technology sends information collection instructions and receives new server parameter information from the remote server, avoiding the need to record the new IP of the remote server through on-site inspection when the IP of the remote server changes, thereby improving efficiency, saving time and reducing costs.
参照图3,示出了本发明实施例提供的另一种信息采集方法的步骤流程图,所述方法应用于远程服务器,所述远程服务器包括LoRa模组,所述远程服务器与信息采集设备通信连接,所述方法具体可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of steps of another information collection method provided by an embodiment of the present invention, the method is applied to a remote server, the remote server includes a LoRa module, and the remote server communicates with an information collection device Connection, the method may specifically include the following steps:
步骤301,采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令数据。
本发明实施例的信息采集方法可以应用于远程服务器,远程服务器可以通过LoRa模组接收信息采集设备发送的LoRa指令数据,以及在确定自身为目标远程服务器后,采集信息采集设备需要的服务器参数信息,并向信息采集设备返回服务器参数信息,从而不需要通过现场查看的方式,就可以使信息采集设备记录目标远程服务器新的服务器参数信息。The information collection method of the embodiment of the present invention can be applied to a remote server, and the remote server can receive the LoRa command data sent by the information collection device through the LoRa module, and after determining itself as the target remote server, collect the server parameter information required by the information collection device , and return the server parameter information to the information collection device, so that the information collection device can record the new server parameter information of the target remote server without on-site inspection.
LoRa是一种低功耗局域网无线标准,在同样的功耗条件下可以比其他无线方式传播更远的距离,实现低功耗和远距离的统一,在同样的功耗下可以较传统的无线射频通信距离扩大3-5倍,LoRa只要参数配置就可以自组网,互相传输数据。在本发明实施例中,可以在远程服务器侧设置LoRa模组,并基于LoRa模组与信息采集设备进行数据传输。LoRa is a low-power local area network wireless standard. Under the same power consumption conditions, it can spread farther than other wireless methods, realizing the unity of low power consumption and long-distance. The radio frequency communication distance is expanded by 3-5 times, and LoRa can self-organize a network and transmit data to each other as long as the parameters are configured. In the embodiment of the present invention, a LoRa module can be set on the remote server side, and data transmission can be performed based on the LoRa module and the information collection device.
在接收到信息采集设备发送的LoRa指令数据后,可以对LoRa指令数据进行数据校验,当数据校验通过后,可以继续执行根据LoRa指令数据判断远程服务器是否为目标远程服务器的步骤。After receiving the LoRa command data sent by the information collection device, data verification can be performed on the LoRa command data. When the data verification is passed, the step of judging whether the remote server is the target remote server according to the LoRa command data can be continued.
步骤302,根据所述LoRa指令数据,判断所述远程服务器是否为目标远程服务器。
在本发明实施例中,每个远程服务器在接收到信息采集设备广播发送的LoRa指令数据后,可以判断自身是否为目标远程服务器。In the embodiment of the present invention, each remote server can determine whether it is a target remote server after receiving the LoRa instruction data broadcasted by the information collection device.
步骤303,若所述远程服务器为目标远程服务器,则获取用于指示采集目标远程服务器参数信息的功能码,并根据所述功能码采集所述远程服务器的服务器参数信息。
在本发明实施例中,在远程服务器确定自身为目标远程服务器后,可以从LoRa指令数据中获取用于指示采集目标远程服务器参数信息的功能码,并基于该功能码采集目标远程服务器新的服务器参数信息。其中,服务器参数信息可以包括服务器当前IP地址、服务器机型和MAC(Media Access Control Address,媒体存取控制位址)地址等。In the embodiment of the present invention, after the remote server determines itself as the target remote server, it can obtain the function code used to instruct the parameter information of the target remote server to be collected from the LoRa command data, and collect the new server of the target remote server based on the function code. Parameter information. Wherein, the server parameter information may include a current IP address of the server, a server model, a MAC (Media Access Control Address, Media Access Control Address) address, and the like.
步骤304,采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备。
在目标远程服务器基于LoRa指令数据采集好新的服务器参数信息后,可以通过LoRa模组,对服务器参数信息进行封装,封装得到LoRa参数数据并发送至信息采集设备,使得信息采集设备可以获取到目标远程服务器新的服务器参数信息。After the target remote server collects new server parameter information based on the LoRa command data, the server parameter information can be encapsulated through the LoRa module, and the LoRa parameter data can be encapsulated and sent to the information collection device, so that the information collection device can obtain the target The new server parameter information of the remote server.
在本发明实施例中,远程服务器可以采用LoRa模组接收信息采集设备发送的LoRa指令数据,接着根据LoRa指令数据判断远程服务器是否为目标远程服务器,若远程服务器为目标远程服务器,则根据功能码采集远程服务器的服务器参数信息,再采用LoRa模组将服务器参数信息封装为LoRa参数数据,并将LoRa参数数据发送至信息采集设备,从而可以通过LoRa远距离无线电技术接收指令,以及采集远程服务器新的服务器参数信息发送至信息采集设备,避免远程服务器的IP发生变化时需要通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, the remote server can use the LoRa module to receive the LoRa command data sent by the information collection device, and then judge whether the remote server is the target remote server according to the LoRa command data. If the remote server is the target remote server, then according to the function code Collect the server parameter information of the remote server, then use the LoRa module to encapsulate the server parameter information into LoRa parameter data, and send the LoRa parameter data to the information collection device, so that instructions can be received through LoRa long-distance radio technology, and remote server information can be collected The server parameter information is sent to the information collection device, avoiding the need to record the new IP of the remote server through on-site inspection when the IP of the remote server changes, thereby improving efficiency, saving time and reducing costs.
参照图4,示出了本发明实施例提供的另一种信息采集方法的步骤流程图,所述方法应用于远程服务器,所述远程服务器包括LoRa模组,所述远程服务器与信息采集设备通信连接,所述方法具体可以包括如下步骤:Referring to FIG. 4 , it shows a flow chart of steps of another information collection method provided by an embodiment of the present invention, the method is applied to a remote server, the remote server includes a LoRa module, and the remote server communicates with an information collection device Connection, the method may specifically include the following steps:
步骤401,采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令加密数据。
在本发明实施例中,远程服务器可以采用LoRa模组,接收信息采集设备通过LoRa模组发送的LoRa指令加密数据,并对LoRa指令加密数据进行数据校验。在数据校验通过时,再执行对LoRa指令加密数据进行解密的步骤。In the embodiment of the present invention, the remote server can use the LoRa module to receive the encrypted data of the LoRa command sent by the information collection device through the LoRa module, and perform data verification on the encrypted data of the LoRa command. When the data verification is passed, the step of decrypting the encrypted data of the LoRa command is performed.
步骤402,对所述LoRa指令加密数据进行解密,得到LoRa指令数据。
远程服务器在接收到LoRa指令加密数据后,可以采用解密算法对LoRa指令加密数据进行解密,得到LoRa指令数据。After the remote server receives the encrypted data of the LoRa command, it can use the decryption algorithm to decrypt the encrypted data of the LoRa command to obtain the data of the LoRa command.
步骤403,对所述LoRa指令数据进行解封装,得到信息采集指令数据。
远程服务器在解密得到LoRa指令数据后,可以对LoRa指令数据进行解封装,从而得到信息采集指令数据。After the remote server decrypts the LoRa command data, it can decapsulate the LoRa command data to obtain the information collection command data.
步骤404,根据所述LoRa指令数据,判断所述远程服务器是否为目标远程服务器。
在一种可选的实施例中,所述步骤404可以包括以下子步骤S31-S32:In an optional embodiment, the
子步骤S31,从所述信息采集指令数据中获取目标远程服务器的机型信息。Sub-step S31, acquiring model information of the target remote server from the information collection instruction data.
子步骤S32,获取所述远程服务器自身的机型信息,并判断所述远程服务器自身的机型信息与所述目标远程服务器的机型信息是否匹配。Sub-step S32, obtaining the model information of the remote server itself, and judging whether the model information of the remote server itself matches the model information of the target remote server.
信息采集指令数据可以包括目标远程服务器的机型信息,以及用于指示采集目标远程服务器参数信息的功能码。远程服务器可以从信息采集指令数据中获取目标远程服务器的机型信息,从而通过判断目标远程服务器的机型信息和远程服务器自身的机型信息是否匹配,来判断远程服务器是否为目标远程服务器。The information collection instruction data may include model information of the target remote server and a function code for instructing to collect parameter information of the target remote server. The remote server can obtain the model information of the target remote server from the information collection instruction data, thereby judging whether the remote server is the target remote server by judging whether the model information of the target remote server matches the model information of the remote server itself.
步骤405,若所述远程服务器为目标远程服务器,则获取用于指示采集目标远程服务器参数信息的功能码,并根据所述功能码采集所述远程服务器的服务器参数信息。
步骤406,采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备。
在一种可选的实施例中,所述步骤406可以包括以下子步骤S41-S43:In an optional embodiment, the
子步骤S41,采用所述LoRa模组,根据封装协议将所述服务器参数信息封装为LoRa参数数据。Sub-step S41, using the LoRa module to encapsulate the server parameter information into LoRa parameter data according to the encapsulation protocol.
子步骤S42,对所述所述LoRa参数数据进行加密,得到LoRa参数加密数据。Sub-step S42, encrypting the LoRa parameter data to obtain LoRa parameter encrypted data.
子步骤S43,将所述LoRa参数加密数据发送至所述信息采集设备。Sub-step S43, sending the encrypted data of LoRa parameters to the information collection device.
目标远程服务器在采集好新的服务器参数信息后,可以通过LoRa模组,根据封装协议对服务器参数信息进行封装,封装得到LoRa参数数据,进一步采用加密算法对LoRa参数数据进行加密,加密得到LoRa参数加密数据并发送至信息采集设备,从而使得信息采集设备可以获取到目标远程服务器新的服务器参数信息。在本发明实施例中,通过对数据进行加密之后再进行数据传输,有利于保证数据传输的安全性。After the target remote server collects the new server parameter information, it can encapsulate the server parameter information through the LoRa module according to the encapsulation protocol to obtain the LoRa parameter data, and further use the encryption algorithm to encrypt the LoRa parameter data to obtain the LoRa parameter. The data is encrypted and sent to the information collection device, so that the information collection device can obtain new server parameter information of the target remote server. In the embodiment of the present invention, the data is transmitted after encrypting the data, which is beneficial to ensure the security of the data transmission.
在本发明实施例中,远程服务器可以采用LoRa模组接收信息采集设备发送的LoRa指令数据,接着根据LoRa指令数据判断远程服务器是否为目标远程服务器,若远程服务器为目标远程服务器,则根据功能码采集远程服务器的服务器参数信息,再采用LoRa模组将服务器参数信息封装为LoRa参数数据,并将LoRa参数数据发送至信息采集设备,从而可以通过LoRa远距离无线电技术接收指令,以及采集远程服务器新的服务器参数信息发送至信息采集设备,避免远程服务器的IP发生变化时需要通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, the remote server can use the LoRa module to receive the LoRa command data sent by the information collection device, and then judge whether the remote server is the target remote server according to the LoRa command data. If the remote server is the target remote server, then according to the function code Collect the server parameter information of the remote server, then use the LoRa module to encapsulate the server parameter information into LoRa parameter data, and send the LoRa parameter data to the information collection device, so that instructions can be received through LoRa long-distance radio technology, and remote server information can be collected The server parameter information is sent to the information collection device, avoiding the need to record the new IP of the remote server through on-site inspection when the IP of the remote server changes, thereby improving efficiency, saving time and reducing costs.
为了使本领域技术人员更好地理解本发明实施例,下面通过一个例子加以说明:In order to enable those skilled in the art to better understand the embodiment of the present invention, an example is used below to illustrate:
参照图5,示出了本发明实施例提供的一种信息采集设备与远程服务器之间进行数据传输的示意图。Referring to FIG. 5 , it shows a schematic diagram of data transmission between an information collection device and a remote server according to an embodiment of the present invention.
(1)信息采集设备首先获取针对远程服务器的信息采集指令数据,采用LoRa模组对信息采集指令数据进行封装得到LoRa指令数据,接着对LoRa指令数据进行加密得到LoRa指令加密数据并发送至远程服务器;(1) The information collection device first obtains the information collection instruction data for the remote server, uses the LoRa module to encapsulate the information collection instruction data to obtain the LoRa instruction data, and then encrypts the LoRa instruction data to obtain the LoRa instruction encrypted data and sends it to the remote server ;
(2)远程服务器接收LoRa指令加密数据,对LoRa指令加密数据进行数据校验,当数据校验通过时,对LoRa指令加密数据进行解密得到LoRa指令数据,对LoRa指令数据进行解封装得到信息采集指令数据。接着判断远程服务器是否为目标远程服务器,若远程服务器为目标远程服务器,则采集远程服务器的服务器参数信息,对服务器参数信息进行封装得到LoRa参数数据,对LoRa参数数据进行加密得到LoRa参数加密数据并发送至信息采集设备;(2) The remote server receives the encrypted data of the LoRa command and performs data verification on the encrypted data of the LoRa command. When the data verification passes, the encrypted data of the LoRa command is decrypted to obtain the data of the LoRa command, and the data of the LoRa command is decapsulated to obtain information collection command data. Then judge whether the remote server is the target remote server, if the remote server is the target remote server, then collect the server parameter information of the remote server, encapsulate the server parameter information to obtain the LoRa parameter data, encrypt the LoRa parameter data to obtain the LoRa parameter encrypted data and Send to the information collection device;
(3)信息采集设备接收LoRa参数加密数据,对LoRa参数加密数据进行数据校验,当数据校验通过时,对LoRa参数加密数据进行解密得到LoRa参数数据,对LoRa参数数据进行解封装得到服务器参数信息。(3) The information collection device receives the encrypted data of the LoRa parameter, and performs data verification on the encrypted data of the LoRa parameter. When the data verification is passed, the encrypted data of the LoRa parameter is decrypted to obtain the LoRa parameter data, and the LoRa parameter data is decapsulated to obtain the server Parameter information.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图6,示出了本发明实施例提供的一种信息采集设备的结构框图,所述信息采集设备包括LoRa模组,所述信息采集设备与远程服务器通信连接,所述信息采集设备具体可以包括如下模块:Referring to FIG. 6 , it shows a structural block diagram of an information collection device provided by an embodiment of the present invention. The information collection device includes a LoRa module. The information collection device is connected to a remote server in communication. The information collection device can specifically be Including the following modules:
检测模块601,用于检测到所述远程服务器的IP发生变化时,获取针对所述远程服务器的信息采集指令数据;The detection module 601 is configured to obtain information collection instruction data for the remote server when detecting that the IP of the remote server has changed;
发送模块602,用于采用所述LoRa模组,将所述信息采集指令数据封装为LoRa指令数据,并将所述LoRa指令数据发送至所述远程服务器;The sending module 602 is configured to use the LoRa module to encapsulate the information collection instruction data into LoRa instruction data, and send the LoRa instruction data to the remote server;
接收模块603,用于采用所述LoRa模组,接收所述远程服务器基于所述LoRa指令数据发送的LoRa参数数据,并解封所述LoRa参数数据得到服务器参数信息。The receiving module 603 is configured to use the LoRa module to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and unpack the LoRa parameter data to obtain server parameter information.
在一种可选的实施例中,所述信息采集指令数据包括目标远程服务器的机型信息,以及用于指示采集目标远程服务器参数信息的功能码,所述发送模块,包括:In an optional embodiment, the information collection instruction data includes model information of the target remote server, and a function code for instructing to collect parameter information of the target remote server, and the sending module includes:
封装子模块,用于采用所述LoRa模组,根据封装协议将所述目标远程服务器的机型信息和所述功能码封装为LoRa指令数据;An encapsulation sub-module is used to encapsulate the model information of the target remote server and the function code into LoRa command data according to the encapsulation protocol by using the LoRa module;
广播发送子模块,用于将所述LoRa指令数据广播发送至多个远程服务器,以使目标远程服务器在接收到所述LoRa指令数据后,返回LoRa参数数据。The broadcast sending submodule is used to broadcast and send the LoRa command data to a plurality of remote servers, so that the target remote server returns LoRa parameter data after receiving the LoRa command data.
在一种可选的实施例中,所述广播发送子模块,包括:In an optional embodiment, the broadcast sending submodule includes:
指令加密单元,用于对所述LoRa指令数据进行加密,得到LoRa指令加密数据;An instruction encryption unit is used to encrypt the LoRa instruction data to obtain the LoRa instruction encrypted data;
数据广播发送单元,用于将所述LoRa指令加密数据广播发送至多个远程服务器。The data broadcast sending unit is used to send the LoRa command encrypted data broadcast to multiple remote servers.
在一种可选的实施例中,所述接收模块,包括:In an optional embodiment, the receiving module includes:
加密数据接收单元,用于采用所述LoRa模组,接收所述目标远程服务器基于所述LoRa指令数据发送的LoRa参数加密数据;The encrypted data receiving unit is used to adopt the LoRa module to receive the LoRa parameter encrypted data sent by the target remote server based on the LoRa command data;
数据解密单元,用于对所述LoRa参数加密数据进行解密,得到LoRa参数数据;The data decryption unit is used to decrypt the encrypted data of the LoRa parameter to obtain the LoRa parameter data;
解封装单元,用于对所述LoRa参数数据进行解封装,得到服务器参数信息。The decapsulation unit is used to decapsulate the LoRa parameter data to obtain server parameter information.
在本发明实施例中,信息采集设备检测到远程服务器的IP发生变化时,可以首先获取针对远程服务器的信息采集指令数据,接着采用LoRa模组将信息采集指令数据封装为LoRa指令数据,并将LoRa指令数据发送至远程服务器,再采用LoRa模组接收远程服务器基于LoRa指令数据发送的LoRa参数数据,并解封LoRa参数数据得到服务器参数信息,从而在远程服务器的IP发生变化时,可以通过LoRa远距离无线电技术发送信息采集指令以及接收远程服务器新的服务器参数信息,避免远程服务器的IP发生变化时需要通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, when the information collection device detects that the IP of the remote server has changed, it can first obtain the information collection instruction data for the remote server, and then use the LoRa module to package the information collection instruction data into LoRa instruction data, and The LoRa command data is sent to the remote server, and then the LoRa module is used to receive the LoRa parameter data sent by the remote server based on the LoRa command data, and the LoRa parameter data is unsealed to obtain the server parameter information, so that when the IP of the remote server changes, the LoRa Long-distance radio technology sends information collection instructions and receives new server parameter information from the remote server, avoiding the need to record the new IP of the remote server through on-site inspection when the IP of the remote server changes, thereby improving efficiency, saving time and reducing costs.
参照图7,示出了本发明实施例提供的一种信息采集远程服务器的结构框图,所述远程服务器包括LoRa模组,所述远程服务器与信息采集设备通信连接,所述服务器具体可以包括如下模块:Referring to FIG. 7 , it shows a structural block diagram of a remote server for information collection provided by an embodiment of the present invention. The remote server includes a LoRa module, and the remote server communicates with an information collection device. The server may specifically include the following module:
数据接收模块701,用于采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令数据;The data receiving module 701 is used to adopt the LoRa module to receive the LoRa command data sent by the information collection device;
判断模块702,用于根据所述LoRa指令数据,判断所述远程服务器是否为目标远程服务器;Judging module 702, for judging whether the remote server is a target remote server according to the LoRa command data;
采集模块703,用于若所述远程服务器为目标远程服务器,则获取用于指示采集目标远程服务器参数信息的功能码,并根据所述功能码采集所述远程服务器的服务器参数信息;The collection module 703 is configured to, if the remote server is a target remote server, obtain a function code for instructing to collect parameter information of the target remote server, and collect server parameter information of the remote server according to the function code;
数据发送模块704,用于采用所述LoRa模组,将所述服务器参数信息封装为LoRa参数数据,并将所述LoRa参数数据发送至所述信息采集设备。The data sending module 704 is configured to use the LoRa module to encapsulate the server parameter information into LoRa parameter data, and send the LoRa parameter data to the information collection device.
在一种可选的实施例中,所述数据接收模块,包括:In an optional embodiment, the data receiving module includes:
加密数据接收子模块,用于采用所述LoRa模组,接收所述信息采集设备发送的LoRa指令加密数据;The encrypted data receiving submodule is used to adopt the LoRa module to receive the encrypted data of the LoRa command sent by the information collection device;
数据解密子模块,用于对所述LoRa指令加密数据进行解密,得到LoRa指令数据;The data decryption submodule is used to decrypt the encrypted data of the LoRa command to obtain the LoRa command data;
解封装子模块,用于对所述LoRa指令数据进行解封装,得到信息采集指令数据。The decapsulation sub-module is used to decapsulate the LoRa command data to obtain information collection command data.
在一种可选的实施例中,所述判断模块,包括:In an optional embodiment, the judging module includes:
功能码获取子模块,用于从所述信息采集指令数据中获取目标远程服务器的机型信息;The function code acquisition sub-module is used to acquire the model information of the target remote server from the information acquisition instruction data;
匹配判断子模块,用于获取所述远程服务器自身的机型信息,并判断所述远程服务器自身的机型信息与所述目标远程服务器的机型信息是否匹配。The matching judging submodule is used to acquire the model information of the remote server itself, and judge whether the model information of the remote server itself matches the model information of the target remote server.
在一种可选的实施例中,所述数据发送模块,包括:In an optional embodiment, the data sending module includes:
参数封装子模块,用于采用所述LoRa模组,根据封装协议将所述服务器参数信息封装为LoRa参数数据;The parameter encapsulation sub-module is used to encapsulate the server parameter information into LoRa parameter data according to the encapsulation protocol by using the LoRa module;
参数加密子模块,用于对所述所述LoRa参数数据进行加密,得到LoRa参数加密数据;The parameter encryption submodule is used to encrypt the LoRa parameter data to obtain the LoRa parameter encrypted data;
加密数据发送子模块,用于将所述LoRa参数加密数据发送至所述信息采集设备。The encrypted data sending submodule is used to send the encrypted data of the LoRa parameters to the information collection device.
在本发明实施例中,远程服务器可以采用LoRa模组接收信息采集设备发送的LoRa指令数据,接着根据LoRa指令数据判断远程服务器是否为目标远程服务器,若远程服务器为目标远程服务器,则根据功能码采集远程服务器的服务器参数信息,再采用LoRa模组将服务器参数信息封装为LoRa参数数据,并将LoRa参数数据发送至信息采集设备,从而可以通过LoRa远距离无线电技术接收指令,以及采集远程服务器新的服务器参数信息发送至信息采集设备,避免远程服务器的IP发生变化时需要通过现场查看的方式记录远程服务器新的IP,从而提高效率、节约时间和降低成本。In the embodiment of the present invention, the remote server can use the LoRa module to receive the LoRa command data sent by the information collection device, and then judge whether the remote server is the target remote server according to the LoRa command data. If the remote server is the target remote server, then according to the function code Collect the server parameter information of the remote server, then use the LoRa module to encapsulate the server parameter information into LoRa parameter data, and send the LoRa parameter data to the information collection device, so that instructions can be received through LoRa long-distance radio technology, and remote server information can be collected The server parameter information is sent to the information collection device, avoiding the need to record the new IP of the remote server through on-site inspection when the IP of the remote server changes, thereby improving efficiency, saving time and reducing costs.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本发明实施例还提供了一种电子设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信,The embodiment of the present invention also provides an electronic device, as shown in FIG. complete the mutual communication,
存储器803,用于存放计算机程序;
处理器801,用于执行存储器803上所存放的程序时,实现上述菜单设置方法实施例的各个过程。The
上述终端提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned by the terminal above may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述终端与其他设备之间的通信。The communication interface is used for communication between the terminal and other devices.
存储器可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
本发明实施例还提供了一种计算机可读存储介质,如图9所示,计算机可读存储介质90上存储有计算机程序91,计算机程序91被处理器执行时实现上述菜单设置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present invention also provides a computer-readable storage medium. As shown in FIG. 9, a computer program 91 is stored on the computer-
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Accordingly, embodiments of the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or processor of other programmable data processing terminal equipment to produce a machine such that instructions executed by the computer or processor of other programmable data processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Having described preferred embodiments of embodiments of the present invention, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本发明所提供的信息采集方法、设备、服务器、电子设备和存储介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above information collection method, equipment, server, electronic equipment and storage medium provided by the present invention have been introduced in detail. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211711708.9ACN115866572A (en) | 2022-12-29 | 2022-12-29 | Information acquisition method, information acquisition equipment, server, electronic equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211711708.9ACN115866572A (en) | 2022-12-29 | 2022-12-29 | Information acquisition method, information acquisition equipment, server, electronic equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN115866572Atrue CN115866572A (en) | 2023-03-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211711708.9APendingCN115866572A (en) | 2022-12-29 | 2022-12-29 | Information acquisition method, information acquisition equipment, server, electronic equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN115866572A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110519401A (en)* | 2019-07-05 | 2019-11-29 | 中国平安财产保险股份有限公司 | Improve method, apparatus, equipment and the storage medium of network Access Success Rate |
| CN111711714A (en)* | 2020-06-17 | 2020-09-25 | 厦门亿联网络技术股份有限公司 | IP address query method, device, server, control equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110519401A (en)* | 2019-07-05 | 2019-11-29 | 中国平安财产保险股份有限公司 | Improve method, apparatus, equipment and the storage medium of network Access Success Rate |
| CN111711714A (en)* | 2020-06-17 | 2020-09-25 | 厦门亿联网络技术股份有限公司 | IP address query method, device, server, control equipment and medium |
| Publication | Publication Date | Title |
|---|---|---|
| TWI719312B (en) | Information interaction method, device and equipment for internet of things equipment | |
| US10419409B2 (en) | Method and apparatus for secure network communications | |
| CN110460521A (en) | An edge computing soft gateway | |
| EP2727390B1 (en) | Secure context-based computing | |
| CN114666156A (en) | Data security protection system, method, apparatus, computer equipment and storage medium | |
| US20200236104A1 (en) | Methods and apparatus to verify encrypted handshakes | |
| CN113904965B (en) | Method, device, medium and program product for determining camera | |
| CN101923465A (en) | An easily extensible web service system for embedded applications | |
| CN114143068A (en) | Electric power internet of things gateway equipment container safety protection system and method thereof | |
| CN113010858B (en) | A method and device for logging in an application in user equipment | |
| CN108282551B (en) | Message identification processing method and device, monitoring equipment and readable storage medium | |
| CN104123244A (en) | USB redirection system and method | |
| CN112995119A (en) | Data monitoring method and device | |
| CN112448808A (en) | Communication method, device, access point, server, system and storage medium | |
| CN115866572A (en) | Information acquisition method, information acquisition equipment, server, electronic equipment and storage medium | |
| CN113141582B (en) | Log export method and device, computer equipment and storage medium | |
| CN114362997A (en) | Data transmission method and device for intelligent equipment of transformer substation, intelligent equipment and medium | |
| CN116910330B (en) | Financial archive management method, system, electronic equipment and storage medium | |
| CN115701026A (en) | Test method, device and terminal for transport layer security protocol | |
| CN110062016A (en) | Method and device for trusted service management | |
| CN116527427A (en) | Remote network distribution method and system | |
| CN113783835B (en) | Password sharing method, device, equipment and storage medium | |
| CN115604371A (en) | Message processing method, system and device | |
| CN116546532A (en) | Communication test method, device and storage medium | |
| CN113099025A (en) | Method and device for adding friends in social application |
| 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 | ||
| CB02 | Change of applicant information | Country or region after:China Address after:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant after:Suzhou Yuannao Intelligent Technology Co.,Ltd. Address before:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before:China |