Nothing Special   »   [go: up one dir, main page]

CN114363292A - Network address generation method, communication method, system, device and storage medium - Google Patents

Network address generation method, communication method, system, device and storage medium Download PDF

Info

Publication number
CN114363292A
CN114363292A CN202111491514.8A CN202111491514A CN114363292A CN 114363292 A CN114363292 A CN 114363292A CN 202111491514 A CN202111491514 A CN 202111491514A CN 114363292 A CN114363292 A CN 114363292A
Authority
CN
China
Prior art keywords
network address
communication
module
communication module
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111491514.8A
Other languages
Chinese (zh)
Inventor
张平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Simcom Wireless Solutions Co Ltd
Original Assignee
Shanghai Simcom Wireless Solutions 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 Shanghai Simcom Wireless Solutions Co Ltd filed Critical Shanghai Simcom Wireless Solutions Co Ltd
Priority to CN202111491514.8A priority Critical patent/CN114363292A/en
Publication of CN114363292A publication Critical patent/CN114363292A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for generating a network address, a communication method, a system, equipment and a storage medium, wherein the generation method comprises the following steps: acquiring network prefix information of a user identification card; acquiring host identification information of the communication module, wherein the host identification information comprises an identification for identifying the communication module; generating a network address to be registered according to the network prefix information and the host identification information; and finishing network registration according to the network address to be registered, and taking the network address to be registered as the target network address of the communication module. In the invention, the network address to be registered can be generated according to the host identification information and the network prefix information of the user identification card, a fixed target network address can be obtained after network registration, and when the communication module needs to be communicated, the communication module can be positioned by utilizing the fixed target network address and the target network address, so that the communication module can be initiatively initiated to communicate.

Description

网络地址的生成方法、通讯方法、系统、设备及存储介质Network address generation method, communication method, system, device and storage medium

技术领域technical field

本发明涉及无线通讯领域,特别涉及一种网络地址的生成方法、通讯方法、系统、设备及存储介质。The present invention relates to the field of wireless communication, in particular to a method for generating a network address, a communication method, a system, a device and a storage medium.

背景技术Background technique

在通讯的过程中,需要根据网络地址定位通讯模块以与通讯模块进行通讯,网络地址通常由前缀信息和主机标识组成。在一些网络协议下,如IPV6(Internet ProtocolVersion 6,互联网协议第6版),主机标识是由通讯模块的通讯模块随机生成的,这种情况下,由于无法预先知道知道通讯模块的网络地址,无法对通讯模块定位,由此无法主动与通讯模块进行通讯。During the communication process, the communication module needs to be located according to the network address to communicate with the communication module. The network address is usually composed of prefix information and host identification. Under some network protocols, such as IPV6 (Internet Protocol Version 6, Internet Protocol Version 6), the host ID is randomly generated by the communication module of the communication module. In this case, since the network address of the communication module cannot be known in advance, it is impossible to Position the communication module so that it cannot actively communicate with the communication module.

发明内容SUMMARY OF THE INVENTION

本发明实施例要解决的技术问题是为了克服现有技术中无法预先知道知道通讯模块的网络地址,从而无法主动与通讯模块进行通讯的缺陷,提供一种可以预先知道通讯模块的网络地址,从而可以主动与通讯模块进行通讯的网络地址的生成方法、通讯方法、系统、设备及存储介质。The technical problem to be solved by the embodiments of the present invention is to overcome the defect in the prior art that the network address of the communication module cannot be known in advance, so that the communication module cannot be actively communicated, so as to provide a network address that can know the communication module in advance, thereby A method for generating a network address that can actively communicate with a communication module, a communication method, a system, a device and a storage medium.

本发明实施例是通过下述技术方案来解决上述技术问题:The embodiment of the present invention solves the above-mentioned technical problems through the following technical solutions:

本发明实施例提供了一种网络地址的生成方法,所述生成方法包括:An embodiment of the present invention provides a method for generating a network address, and the generating method includes:

获取用户识别卡的网络前缀信息;Obtain the network prefix information of the subscriber identity card;

获取通讯模块的主机标识信息,所述主机标识信息包括用于识别所述通讯模块的标识;Obtain host identification information of the communication module, where the host identification information includes an identification used to identify the communication module;

根据所述网络前缀信息及所述主机标识信息生成待注册网络地址;generating a network address to be registered according to the network prefix information and the host identification information;

根据所述待注册网络地址完成网络注册,并将所述待注册网络地址作为所述通讯模块的目标网络地址。Complete network registration according to the to-be-registered network address, and use the to-be-registered network address as the target network address of the communication module.

较佳地,所述获取用户识别卡的网络前缀信息包括:Preferably, the obtaining the network prefix information of the subscriber identity card includes:

发送网络激活信息,所述网络激活信息包括用户识别卡的识别信息及网络激活的请求指令;Sending network activation information, the network activation information includes identification information of the subscriber identity card and a request instruction for network activation;

接收所述用户识别卡的网络前缀信息。Receive the network prefix information of the subscriber identity card.

较佳地,所述获取所述通讯模块的主机标识信息包括:Preferably, the obtaining the host identification information of the communication module includes:

获取所述通讯模块的设备号;Obtain the device number of the communication module;

根据所述设备号生成主机标识信息。Generate host identification information according to the device number.

较佳地,所述目标网络地址的格式包括IPV6地址格式。Preferably, the format of the target network address includes an IPV6 address format.

本发明实施例还提供了一种通讯方法,所述接收端包括通讯模块及用户识别卡,所述通讯方法包括:The embodiment of the present invention also provides a communication method, the receiving end includes a communication module and a user identification card, and the communication method includes:

根据如上所述的网络地址的生成方法来生成目标网络地址;Generate a target network address according to the method for generating a network address as described above;

接收所述发送端的通讯请求;receiving a communication request from the sender;

与所述发送端进行数据通讯。perform data communication with the sender.

本发明实施例还提供了一种通讯方法,所述通讯方法应用于发送端,所述通讯方法包括:The embodiment of the present invention also provides a communication method, the communication method is applied to the sending end, and the communication method includes:

获取通讯模块的目标网络地址,所述目标网络地址为根据如上所述的生成方法生成的网络地址;Obtain the target network address of the communication module, where the target network address is a network address generated according to the above-mentioned generation method;

根据所述目标网络地址定位通讯模块;Locate the communication module according to the target network address;

向所述通讯模块发起通讯请求;Initiating a communication request to the communication module;

与所述通讯模块进行数据通讯。perform data communication with the communication module.

本发明实施例还提供了一种网络地址的生成系统,所述生成系统包括:前缀信息获取模块、标识信息获取模块、及网络地址生成模块及网络地址注册模块;The embodiment of the present invention also provides a network address generation system, the generation system includes: a prefix information acquisition module, an identification information acquisition module, a network address generation module and a network address registration module;

所述前缀信息获取模块用于获取用户识别卡的网络前缀信息;The prefix information obtaining module is used to obtain the network prefix information of the subscriber identity card;

所述标识信息获取模块用于获取通讯模块的主机标识信息,所述主机标识信息包括用于识别所述通讯模块的标识;The identification information acquisition module is used to obtain the host identification information of the communication module, and the host identification information includes an identification used to identify the communication module;

所述网络地址生成模块用于根据所述网络前缀信息及所述主机标识信息生成待注册网络地址;The network address generation module is configured to generate a to-be-registered network address according to the network prefix information and the host identification information;

所述网络地址注册模块用于根据所述待注册网络地址完成网络注册,并将所述待注册网络地址作为所述通讯模块的目标网络地址。The network address registration module is configured to complete network registration according to the to-be-registered network address, and use the to-be-registered network address as the target network address of the communication module.

本发明实施例还提供了一种通讯系统,所述通讯系统应用于接收端,所述通讯系统包括:地址生成模块、地址发送模块、请求接收模块及第一通讯模块;The embodiment of the present invention also provides a communication system, the communication system is applied to the receiving end, and the communication system includes: an address generating module, an address sending module, a request receiving module and a first communication module;

所述地址生成模块用于根据如上所述的网络地址的生成系统来生成目标网络地址;The address generation module is configured to generate the target network address according to the network address generation system as described above;

所述请求接收模块用于接收发送端的通讯请求;The request receiving module is used for receiving the communication request of the sender;

所述第一通讯模块用于与所述发送端进行数据通讯。The first communication module is used for data communication with the sending end.

本发明实施例还提供了一种通讯系统,所述通讯系统应用于发送端,所述通讯系统包括:地址获取模块、定位模块、通讯请求模块及第二通讯模块;The embodiment of the present invention also provides a communication system, the communication system is applied to the sending end, and the communication system includes: an address acquisition module, a positioning module, a communication request module and a second communication module;

所述地址获取模块用于获取通讯模块的目标网络地址,所述目标网络地址为根据如上所述的生成方法生成的网络地址;The address obtaining module is used to obtain the target network address of the communication module, and the target network address is the network address generated according to the above-mentioned generating method;

所述定位模块用于根据所述目标网络地址定位通讯模块;The locating module is used for locating the communication module according to the target network address;

所述通讯请求模块用于向所述通讯模块发起通讯请求;The communication request module is configured to initiate a communication request to the communication module;

所述第二通讯模块用于与所述通讯模块进行数据通讯。The second communication module is used for data communication with the communication module.

本发明实施例还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的网络地址的生成方法或如上所述的通讯方法。An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the above-mentioned network address when executing the computer program the generation method or the communication method as described above.

本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的网络地址的生成方法或如上所述的通讯方法。Embodiments of the present invention further provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned network address generation method or the above-mentioned communication method.

本发明实施例的积极进步效果在于:本发明可以根据主机标识信息及用户识别卡的网络前缀信息生成待注册网络地址,完成网络注册后,则可以得到通讯模块的固定的目标网络地址,在需要与通讯模块进行通讯时,可以根据目标网络地址对通讯模块进行定位,本发明克服了由于网络地址中的主机标识是随机生成的,在需要通讯时难以根据网络地址定位通讯模块,而无法主动与通讯模块进行通讯的缺陷,本发明中,可以生成固定的目标网络地址,利用目标网络地址对通讯模块定位,进而可以主动向通讯模块发起通讯。The positive improvement effect of the embodiment of the present invention is that: the present invention can generate the network address to be registered according to the host identification information and the network prefix information of the user identification card, and after the network registration is completed, the fixed target network address of the communication module can be obtained. When communicating with the communication module, the communication module can be located according to the target network address. The present invention overcomes the difficulty in locating the communication module according to the network address when communication is required because the host identification in the network address is randomly generated, and cannot actively communicate with the communication module. The communication module has the defect of communication. In the present invention, a fixed target network address can be generated, the target network address can be used to locate the communication module, and then communication can be actively initiated to the communication module.

附图说明Description of drawings

图1为本发明实施例1中网络地址的生成方法的流程图。FIG. 1 is a flowchart of a method for generating a network address in Embodiment 1 of the present invention.

图2为本发明实施例1中步骤101的具体实现方式的流程图。FIG. 2 is a flowchart of a specific implementation manner of step 101 in Embodiment 1 of the present invention.

图3为本发明实施例1中步骤102的具体实现方式的流程图。FIG. 3 is a flowchart of a specific implementation manner of step 102 in Embodiment 1 of the present invention.

图4为本发明实施例2中应用于接收端的通讯方法的流程图。FIG. 4 is a flowchart of a communication method applied to a receiving end in Embodiment 2 of the present invention.

图5为本发明实施例2中应用于发送端的通讯方法的流程图。FIG. 5 is a flowchart of a communication method applied to a sending end in Embodiment 2 of the present invention.

图6为本发明实施例2中接收端与发送端的通讯交互示意图。FIG. 6 is a schematic diagram of communication interaction between a receiving end and a sending end in Embodiment 2 of the present invention.

图7为本发明实施例2中接收端与发送端的进行通讯交互的场景示意图。FIG. 7 is a schematic diagram of a scenario of communication interaction between a receiving end and a sending end in Embodiment 2 of the present invention.

图8为本发明实施例3中网络地址的生成系统的模块示意图。FIG. 8 is a schematic block diagram of a system for generating a network address in Embodiment 3 of the present invention.

图9为本发明实施例4中应用于接收端的通讯系统的模块示意图。FIG. 9 is a schematic block diagram of a communication system applied to a receiving end in Embodiment 4 of the present invention.

图10为本发明实施例4中应用于发送端的通讯系统的模块示意图。FIG. 10 is a schematic block diagram of a communication system applied to a sending end in Embodiment 4 of the present invention.

图11为本发明实施例5中电子设备的模块示意图。FIG. 11 is a schematic diagram of a module of an electronic device in Embodiment 5 of the present invention.

具体实施方式Detailed ways

下面先介绍本实施例中常出现的术语以便于理解:The terms that often appear in this embodiment are first introduced below for ease of understanding:

【包括的定义】如这里所使用的术语“具有”、“可以具有”、“包括”或“可以包括”指示本公开的相应功能、操作、元件等的存在,并且不限制其它的一个或多个功能、操作、元件等的存在。此外应当理解到,如这里所使用的术语“包括”或“具有”是指示在说明书中所描述的特点、数字、步骤、操作、元件、部件或其组合的存在,而不排除一个或多个其它特点、数字、步骤、操作、元件、部件或其组合的存在或增加。[Definition of Inclusion] The terms "have", "may have", "include" or "may include" as used herein indicate the existence of the corresponding function, operation, element, etc. of the present disclosure, and do not limit other one or more The existence of a function, operation, element, etc. In addition, it should be understood that the terms "comprising" or "having" as used herein are intended to indicate the presence of features, numbers, steps, operations, elements, components or combinations thereof described in the specification, without excluding one or more The presence or addition of other features, numbers, steps, operations, elements, parts or combinations thereof.

【第一、第二的定义】本申请实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。例如,可以将第一元件称为第二元件,而没脱离本公开的范围,类似地,可以将第二元件称为第一元件。[Definition of the first and the second] The descriptions of the first, the second, etc. appearing in the embodiments of this application are only used for illustration and distinguishing the description objects, and there is no order. The specific limitation of the number cannot constitute any limitation to the embodiments of the present application. For example, a first element could be termed a second element without departing from the scope of the present disclosure, and similarly, a second element could be termed a first element.

【电子设备的含义】根据本公开各种实施例的电子设备例如可以包括以下至少之一:智能手机、平板个人计算机(PC)、移动电话、视频电话、电子书阅读器、台式PC、膝上PC、上网本、工作站、服务器、个人数字助手(PDA)、便携式多媒体播放器(PMP)、MP3播放器、移动医疗设备、照相机或可穿戴设备(例如,头戴设备(HMD)、电子眼镜、电子衣服、电子手镯、电子项链、电子配件、电子纹身、智能镜子或智能手表)。在其它实施例中,电子设备可以是智能家用电器,例如,电视(TV)、数字视频盘(DVD)播放器、音频组件、电冰箱、空调、吸尘器、烤箱、微波炉、洗碗机、空气净化器、机顶盒、家庭自动控制板、安全控制板、TV盒、游戏台、电子词典、电子钥匙、摄录像机或电子相框。[Meaning of an electronic device] An electronic device according to various embodiments of the present disclosure may include, for example, at least one of the following: a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PCs, netbooks, workstations, servers, personal digital assistants (PDAs), portable multimedia players (PMPs), MP3 players, mobile medical devices, cameras or wearable devices (eg, head mounted devices (HMDs), electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic accessories, electronic tattoos, smart mirrors or smart watches). In other embodiments, the electronic device may be a smart home appliance, eg, a television (TV), a digital video disc (DVD) player, an audio component, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave oven, a dishwasher, an air purification appliances, set-top boxes, home automation panels, security panels, TV boxes, game consoles, electronic dictionaries, electronic keys, camcorders or electronic photo frames.

在其它实施例中,电子设备可以包括以下至少之一:医疗设备(例如移动医疗设备(例如,血糖监视设备、心率监视器、血压监视设备或温度计))、磁共振血管造影(MRA)机器、磁共振成像(MRI)机器、计算机断层摄影(CT)扫描仪或超声器);导航设备;全球定位系统(GPS)接收机;事件数据记录器(EDR);飞行数据记录器(FDR);车内信息娱乐设备;船用电子设备(例如,船舶导航设备和/或回转罗盘);航空电子设备;安全设备;汽车音响;工业或家庭机器人;金融机构的自动提款机(ATM);零售商店的销售点(POS)设备;或物联网设备(例如,灯泡、各种传感器、电表、燃气表、洒水车、火警、恒温器、街灯、烤面包机、运动设备、热水瓶、加热器或热水器等)。In other embodiments, the electronic device may include at least one of: a medical device (eg, a mobile medical device (eg, a blood glucose monitoring device, a heart rate monitor, a blood pressure monitoring device, or a thermometer)), a magnetic resonance angiography (MRA) machine, magnetic resonance imaging (MRI) machines, computed tomography (CT) scanners or ultrasound machines); navigation equipment; global positioning system (GPS) receivers; event data recorders (EDR); flight data recorders (FDR); vehicles interior infotainment equipment; marine electronics (e.g., marine navigation equipment and/or gyrocompass); avionics; safety equipment; car audio; industrial or home robotics; automated teller machines (ATMs) in financial institutions; Point-of-sale (POS) devices; or IoT devices (e.g., light bulbs, various sensors, electricity meters, gas meters, sprinklers, fire alarms, thermostats, street lights, toasters, sports equipment, thermos, heaters or water heaters, etc.) .

在某些实施例中,电子设备可以包括一件家具或建筑/结构、电子板、电子签名接收设备、投影仪以及各种测量仪器(例如,水表、电表、燃气表或波长计)至少之一。In some embodiments, the electronic device may include at least one of a piece of furniture or building/structure, an electronic board, an electronic signature receiving device, a projector, and various measuring instruments (eg, water, electricity, gas, or wavelength meters) .

根据本公开各种实施例的电子设备也可以包括以上所提及设备的一个或多个的组合。进一步,根据本公开各种实施例的电子设备不限于以上所提及的设备,这对于本领域技术人员将是显然的。Electronic devices according to various embodiments of the present disclosure may also include a combination of one or more of the above-mentioned devices. Further, electronic devices according to various embodiments of the present disclosure are not limited to the above-mentioned devices, as will be apparent to those skilled in the art.

下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。The present invention is further described below by way of examples, but the present invention is not limited to the scope of the described examples.

实施例1Example 1

本实施例提供了一种网络地址的生成方法,具体而言,该生成方法具体可以应用于终端,终端具体包括用户识别卡及通讯模块,如图1所示,该生成方法包括:This embodiment provides a method for generating a network address. Specifically, the generating method can be applied to a terminal. The terminal specifically includes a user identification card and a communication module. As shown in FIG. 1 , the generating method includes:

步骤101、获取用户识别卡的网络前缀信息。Step 101: Obtain the network prefix information of the subscriber identity card.

其中,用户识别卡通常为的SIM(Subscriber Identity Module,用户身份识别模块)卡,由运营商发放对应的前缀信息。The subscriber identity card is usually a SIM (Subscriber Identity Module, subscriber identity module) card, and the operator issues corresponding prefix information.

步骤102、获取通讯模块的主机标识信息。Step 102: Obtain host identification information of the communication module.

主机标识信息包括用于识别通讯模块的标识,本实施例中,具体而言,该标识为用于识别通讯模块的唯一标识。The host identification information includes an identification used to identify the communication module. In this embodiment, specifically, the identification is a unique identification used to identify the communication module.

应当理解,在其他的实施例中,也可以先执行步骤102,再执行步骤101。It should be understood that, in other embodiments, step 102 may also be performed first, and then step 101 may be performed.

步骤103、根据网络前缀信息及主机标识信息生成待注册网络地址。Step 103: Generate a network address to be registered according to the network prefix information and the host identification information.

步骤104、根据待注册网络地址完成网络注册,并将待注册网络地址作为通讯模块的目标网络地址。Step 104: Complete network registration according to the network address to be registered, and use the network address to be registered as the target network address of the communication module.

其中,在完成网络注册后,通讯模块则有了唯一的网络地址,即目标网络地址,通讯模块完成入网则可以进行网络通讯。应当理解,网络注册的方式可以参考现有技术中通讯模块进行网络注册的方式。Among them, after completing the network registration, the communication module has a unique network address, that is, the target network address, and the communication module can perform network communication after completing the network access. It should be understood that the manner of network registration may refer to the manner in which the communication module performs network registration in the prior art.

本实施例中,可以根据主机标识信息及用户识别卡的网络前缀信息生成待注册网络地址,完成网络注册后,则可以得到通讯模块的固定的目标网络地址,在需要与通讯模块进行通讯时,可以根据目标网络地址对通讯模块进行定位,本实施例克服了由于网络地址中的主机标识是随机生成的,在需要通讯时难以根据网络地址定位通讯模块,而无法主动与通讯模块进行通讯的缺陷,本实施例中,可以生成固定的目标网络地址,利用目标网络地址可以对通讯模块进行定位,进而可以主动向通讯模块发起通讯。In this embodiment, the network address to be registered can be generated according to the host identification information and the network prefix information of the user identification card. After the network registration is completed, the fixed target network address of the communication module can be obtained. When it is necessary to communicate with the communication module, The communication module can be located according to the target network address. This embodiment overcomes the defect that because the host identifier in the network address is randomly generated, it is difficult to locate the communication module according to the network address when communication is required, and it cannot actively communicate with the communication module. In this embodiment, a fixed target network address can be generated, and the communication module can be located by using the target network address, and then communication can be actively initiated to the communication module.

在一种具体的实施方式中,如图2所示,步骤101具体包括:In a specific implementation manner, as shown in FIG. 2 , step 101 specifically includes:

步骤1011、发送网络激活信息。Step 1011, sending network activation information.

其中,网络激活信息包括用户识别卡的识别信息及网络激活的请求指令,请求指令用于触发网络端根据识别信息获取用户识别卡的网络前缀信息。The network activation information includes the identification information of the subscriber identity card and a request instruction for network activation, and the request instruction is used to trigger the network terminal to obtain the network prefix information of the subscriber identity card according to the identification information.

步骤1012、接收用户识别卡的网络前缀信息。Step 1012: Receive the network prefix information of the subscriber identity card.

应当理解,在其他实施例中,也可以通过其他的方式来获取用户识别卡的网络前缀信息,如在存储器中事先存储各个用户识别卡的网络前缀信息,在需要时,从存储器中调用对应的用户识别卡的网络前缀信息。It should be understood that, in other embodiments, the network prefix information of the subscriber identity card can also be obtained in other ways, such as storing the network prefix information of each subscriber identity card in the memory in advance, and calling the corresponding network prefix information from the memory when necessary. The network prefix information of the subscriber identity card.

本实施例中,通过发送网络激活信息的方式可以接收到用户识别卡的网络前缀信息,一方面可以有效地获取到网络前缀信息,另一方面,也无需事先存储网络前缀信息,降低了存储压力,节约了系统资源。In this embodiment, the network prefix information of the subscriber identity card can be received by sending the network activation information. On the one hand, the network prefix information can be obtained effectively. On the other hand, the network prefix information does not need to be stored in advance, which reduces the storage pressure. , saving system resources.

在一种具体的实施方式中,如图3所示,步骤102具体包括:In a specific implementation manner, as shown in FIG. 3 , step 102 specifically includes:

步骤1021、获取通讯模块的设备号;Step 1021, obtaining the device number of the communication module;

步骤1022、根据设备号生成主机标识信息。Step 1022: Generate host identification information according to the device number.

具体的,由于每一通讯模块都有一个唯一的设备号,即IMEI(Internati onalMobile Equipment Identity,国际移动设备识别码)号,而设备号可以直接从通讯模块上获得,如通过通讯模块上贴的标签来获取。因此,本实施例中,可以简单、高效地获取设备号,并且基于设备号可以生成用于识别通讯模块的主机表示信息,进而可以生成能有效对通讯模块进行定位的目标网络地址。Specifically, because each communication module has a unique device number, namely IMEI (International Mobile Equipment Identity, International Mobile Equipment Identity) number, and the device number can be obtained directly from the communication module, such as through the communication module posted on the label to get. Therefore, in this embodiment, the device number can be obtained simply and efficiently, and based on the device number, host representation information for identifying the communication module can be generated, and then a target network address that can effectively locate the communication module can be generated.

在一种具体的实施方式中,该网络地址的格式包括IPV6地址格式。In a specific implementation manner, the format of the network address includes an IPV6 address format.

IPV6为现在主流的通讯协议,该协议下网络地址的总长度为128位,具有地址空间巨大的特点,本实施例具体使用在IPV6的场景下,网络地址具体为IPV6的格式的地址,因此,可以适应主流的通讯需求,更具有实用性。IPV6 is the current mainstream communication protocol. The total length of the network address under this protocol is 128 bits, which has the characteristics of huge address space. This embodiment is specifically used in the scenario of IPV6, and the network address is specifically an address in the format of IPV6. Therefore, It can adapt to mainstream communication needs and is more practical.

应当理解,在其他的实施方式中,也可以使用在其他网络协议的场景下,即其他的主机标识是由终端的通讯模块随机生成的网络协议的场景下,本实施例并不对此进行限制。It should be understood that in other implementation manners, other network protocols may also be used, that is, other host identifiers are network protocols randomly generated by the communication module of the terminal, and this embodiment does not limit this.

为了更好地理解本实施例,下面以IPV6协议为例,通过一具体实例说明目标网络地址的生成过程:In order to better understand this embodiment, the following takes the IPV6 protocol as an example to illustrate the generation process of the target network address through a specific example:

IPv6地址的总长度为128位,其格式如下:The total length of an IPv6 address is 128 bits, and its format is as follows:

XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXXXXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX

冒号分十六进制,每4个十六进制数为一组,每一组可以表示16个二进制数,所以一共有128个二进制数。该协议对字母大小不敏感,最终显示的均为大写,并且每一组前面设置0是允许的,但IPV4(Internet Protocol Version 4,互联网协议第4版)中不可以在每一组前面设置0。The colon is divided into hexadecimal, and each 4 hexadecimal number is a group, and each group can represent 16 binary numbers, so there are 128 binary numbers in total. The protocol is not sensitive to letter size, and the final display is all uppercase, and it is allowed to set 0 in front of each group, but IPV4 (Internet Protocol Version 4, Internet Protocol Version 4) cannot set 0 in front of each group. .

一般来说,对于通讯模块而言,设备号共15位(16进制),其中最后一位(即16位)为校验位。而主机标识信息占64位,相当于16个16进制数,通过将设备号IMEI后面补上1(在其它的实施方式中,也可以将设备号IMEI后面补上0),凑齐16位16进制数,可以作为主机标识信息。Generally speaking, for a communication module, the device number has 15 digits (hexadecimal), of which the last digit (ie, 16 digits) is the check digit. The host identification information occupies 64 bits, which is equivalent to 16 hexadecimal numbers. By adding 1 to the end of the device number IMEI (in other implementations, it is also possible to add 0 to the end of the device number IMEI) to make up 16 bits. A hexadecimal number that can be used as host identification information.

对于IPV6格式的网络地址,网络前缀信息占64位(二进制),由于网络前缀信息是运营商下发的,因此,网络前缀信息可以通过用户识别卡的卡商提前确认,如,接收端发送网络激活信息至与用户识别卡对应的基站,基站接收到网络激活指令后,根据其中的用户识别卡的识别信息找到对应的网络前缀信息,再将网络前缀信息发送至接收端,从而接收端可以获取网络前缀信息。For the network address in IPV6 format, the network prefix information occupies 64 bits (binary). Since the network prefix information is issued by the operator, the network prefix information can be confirmed in advance by the card dealer of the user identification card. The activation information is sent to the base station corresponding to the user identity card. After receiving the network activation instruction, the base station finds the corresponding network prefix information according to the identification information of the user identity card, and then sends the network prefix information to the receiving end, so that the receiving end can obtain the information. Network prefix information.

由此,根据64位的网络前缀信息及64位的主机标识信息生成128位的待注册网络地址,在进行网络注册后,则可以得到目标网络地址,通过该目标网络地址可以定位到接收端,具体而言,可以定位到接收端中的通讯模块,便可以主动向通讯模块发起通讯请求。Thus, according to the 64-bit network prefix information and the 64-bit host identification information, a 128-bit network address to be registered is generated. After the network registration is performed, the target network address can be obtained, and the receiving end can be located through the target network address. Specifically, the communication module in the receiving end can be located, and a communication request can be actively initiated to the communication module.

实施例2Example 2

本实施例提供了一种通讯方法,该通讯方法应用于接收端,具体而言该接收端包括通讯模块及用户识别卡,本实施例中的接收端为被动接收对端通讯请求的终端,发送端为主动向对端发送通讯请求的终端,应当理解,本实施例中的发送端与接收端为相对的概念,在其它实施例中,也可以将接收端作为发送端,将发送端作为接收端。This embodiment provides a communication method. The communication method is applied to a receiving end. Specifically, the receiving end includes a communication module and a user identification card. The receiving end in this embodiment is a terminal that passively receives a communication request from a peer end. The terminal is a terminal that actively sends a communication request to the opposite terminal. It should be understood that the sending terminal and the receiving terminal in this embodiment are relative concepts. In other embodiments, the receiving terminal can also be used as the sending terminal. end.

如图4所示,该通讯方法包括:As shown in Figure 4, the communication method includes:

步骤201、生成目标网络地址。Step 201: Generate a target network address.

具体的,步骤201可以通过实施例1中的网络地址的生成方法来生成目标网络地址。Specifically, in step 201, the target network address may be generated by the method for generating a network address in Embodiment 1.

步骤202、接收发送端的通讯请求。Step 202: Receive a communication request from the sender.

步骤203、与发送端进行数据通讯。Step 203: Perform data communication with the sender.

本实施例中,发送端可以利用目标网络地址主动向接收端发送通讯请求,接收端可以接收发送端主动发送的通讯请求,并基于该通讯请求与发送端进行数据通讯。In this embodiment, the sender can actively send a communication request to the receiver by using the target network address, and the receiver can receive the communication request actively sent by the sender, and perform data communication with the sender based on the communication request.

本实施例还提供了一种通讯方法,该通讯方法应用于接收端,如图5所示,该通讯方法包括:This embodiment also provides a communication method, and the communication method is applied to the receiving end. As shown in FIG. 5 , the communication method includes:

步骤301、获取通讯模块的目标网络地址。Step 301: Obtain the target network address of the communication module.

其中,所述目标网络地址为根据实施例1所述的生成方法生成的网络地址,也就是步骤201生成的网络地址。The target network address is the network address generated according to the generation method described in Embodiment 1, that is, the network address generated in step 201 .

步骤302、根据目标网络地址定位通讯模块;Step 302, locating the communication module according to the target network address;

步骤303、向通讯模块发起通讯请求。Step 303 , initiate a communication request to the communication module.

本实施例中,步骤202接收的通讯请求即为步骤303发起的通讯请求。In this embodiment, the communication request received in step 202 is the communication request initiated in step 303 .

步骤304、与通讯模块进行数据通讯。Step 304 , perform data communication with the communication module.

本实施例中,发送端可以在需要与通讯模块进行通讯时,根据目标网络地址对通讯模块进行定位,本实施例克服了由于网络地址中的主机标识是由通讯模块随机生成的,使发送端难以根据网络地址定位接收端(具体为接收端的通讯模块),而无法主动与通讯模块进行通讯的缺陷,本实施例中,通过根据主机标识信息生成的目标网络地址,可以使发送端顺利定位通讯模块,进而可以主动向通讯模块发起通讯。In this embodiment, the sender can locate the communication module according to the target network address when it needs to communicate with the communication module. It is difficult to locate the receiving end (specifically, the communication module of the receiving end) according to the network address, and the defect cannot be actively communicated with the communication module. In this embodiment, the target network address generated according to the host identification information can enable the sending end to locate the communication smoothly. module, and then can actively initiate communication to the communication module.

为了更好地理解本实施例,下面以IPV6协议为例,通过一具体实例说明发送端与接收端的通讯过程:In order to better understand this embodiment, the following uses the IPV6 protocol as an example to illustrate the communication process between the sender and the receiver through a specific example:

如图6所示,接收端通过步骤201生成目标网络地址后,在发送端需要与接收端进行通讯时,可以执行步骤302,根据目标网络地址定位终端,并且可以主动向接收端发起通讯请求,即执行步骤303,接收端执行步骤203接收到通讯请求后,发送端便可以与接收端进行通讯。As shown in Figure 6, after the receiving end generates the target network address through step 201, when the sending end needs to communicate with the receiving end, step 302 can be executed to locate the terminal according to the target network address, and can actively initiate a communication request to the receiving end, That is, step 303 is executed, and after the receiving end executes step 203 and receives the communication request, the sending end can communicate with the receiving end.

具体而言,如图7所示,假设接收端为网络侧的服务器,发送端具体为终端,该场景下至少包括3个发送端,每个发送端各自包括通讯模块A、通讯模块B及通讯模块C。通讯模块A可以通过步骤201生成固定的第一目标网络地址,通讯模块B通过步骤201生成固定的第二目标网络地址,通讯模块C通过步骤201生成固定的第三目标网络地址,服务器可以根据通讯模块各自的固定网络地址对通讯模块进行定位,如服务器需要与通讯模块B进行通讯,需要获取通讯模块B的数据,服务器则可以通过第二目标网络地址定位通讯模块B进而主动向通讯模块B发起通讯请求,主动获取通讯模块B的数据。例如,通讯模块B为电表终端的通讯模块,一般来说,需要电表终端主动上报电表数据,如每月上报给服务器一次,但是通过本实施例的通讯方法,服务器可以在需要时,主动获取电表终端的电表数据,克服了被动接收通讯模块B上报的数据的缺陷。Specifically, as shown in FIG. 7 , it is assumed that the receiving end is a server on the network side, and the sending end is a terminal. In this scenario, at least three sending ends are included, and each sending end includes a communication module A, a communication module B and a communication module. module C. The communication module A can generate a fixed first target network address through step 201, the communication module B can generate a fixed second target network address through step 201, and the communication module C can generate a fixed third target network address through step 201. The fixed network address of each module locates the communication module. If the server needs to communicate with the communication module B and needs to obtain the data of the communication module B, the server can locate the communication module B through the second target network address and then actively initiate the communication to the communication module B. Communication request, actively obtain the data of communication module B. For example, the communication module B is the communication module of the electric meter terminal. Generally speaking, the electric meter terminal needs to actively report the electric meter data, such as reporting it to the server once a month. However, through the communication method of this embodiment, the server can actively obtain the electric meter when needed. The meter data of the terminal overcomes the defect of passively receiving the data reported by the communication module B.

实施例3Example 3

本实施例提供了一种网络地址的生成系统,如图8所示,该生成系统包括:前缀信息获取模块401、标识信息获取模块402、网络地址生成模块403及网络地址注册模块404;This embodiment provides a network address generation system. As shown in FIG. 8 , the generation system includes: a prefix information acquisition module 401, an identification information acquisition module 402, a network address generation module 403, and a network address registration module 404;

前缀信息获取模块401用于获取用户识别卡的网络前缀信息;The prefix information obtaining module 401 is used to obtain the network prefix information of the subscriber identity card;

标识信息获取模块402用于获取通讯模块的主机标识信息,主机标识信息包括用于识别通讯模块的标识;The identification information acquisition module 402 is used to obtain the host identification information of the communication module, and the host identification information includes an identification used to identify the communication module;

网络地址生成模块403用于根据网络前缀信息及主机标识信息生成待注册网络地址。The network address generation module 403 is configured to generate the network address to be registered according to the network prefix information and the host identification information.

网络地址注册模块404用于根据待注册网络地址完成网络注册,并将待注册网络地址作为通讯模块的目标网络地址。The network address registration module 404 is configured to complete network registration according to the network address to be registered, and use the network address to be registered as the target network address of the communication module.

具体的,前缀信息获取模块401获取用户识别卡的网络前缀信息的方式、标识信息获取模块402获取通讯模块的主机标识信息的方式、网络地址生成模块403生成待注册网络地址及网络地址注册模块404生成目标网络地址的方式可以参考实施例1中的方式,本实施例便不再赘述。Specifically, the prefix information acquisition module 401 acquires the network prefix information of the subscriber identity card, the identification information acquisition module 402 acquires the host identification information of the communication module, the network address generation module 403 generates the to-be-registered network address and the network address registration module 404 For the manner of generating the target network address, reference may be made to the manner in Embodiment 1, which will not be repeated in this embodiment.

本实施例中,网络地址生成模块可以根据主机标识信息及用户识别卡的网络前缀信息生成目标网络地址,网络地址注册模块完成网络注册后,则可以得到通讯模块的固定的目标网络地址,在需要与通讯模块进行通讯时,可以根据目标网络地址对通讯模块进行定位,本实施例克服了由于网络地址中的主机标识是随机生成的,在需要通讯时难以根据网络地址定位通讯模块,而无法主动与通讯模块进行通讯的缺陷,本实施例中,可以生成固定的目标网络地址,利用目标网络地址可以对通讯模块进行定位,进而可以主动向通讯模块发起通讯。In this embodiment, the network address generation module can generate the target network address according to the host identification information and the network prefix information of the subscriber identity card. After the network address registration module completes the network registration, it can obtain the fixed target network address of the communication module. When communicating with the communication module, the communication module can be located according to the target network address. This embodiment overcomes that because the host identifier in the network address is randomly generated, it is difficult to locate the communication module according to the network address when communication is required. The disadvantage of communicating with the communication module is that in this embodiment, a fixed target network address can be generated, the communication module can be located by using the target network address, and then communication can be actively initiated to the communication module.

实施例4Example 4

本实施例提供了一种通讯系统,该通讯方法应用于接收端,接收端具体可以包括通讯模块及用户识别卡,如图9所示,该通讯系统包括:地址生成模块501、请求接收模块502及第一通讯模块503。This embodiment provides a communication system, and the communication method is applied to a receiving end. The receiving end may specifically include a communication module and a user identification card. As shown in FIG. 9 , the communication system includes: an address generation module 501 and a request receiving module 502 and the first communication module 503 .

地址生成模块501用于根据实施例3的网络地址的生成系统来生成目标网络地址;The address generation module 501 is configured to generate a target network address according to the network address generation system of Embodiment 3;

请求接收模块502用于接收发送端的通讯请求;The request receiving module 502 is used for receiving the communication request of the sender;

第一通讯模块503用于与发送端进行数据通讯。The first communication module 503 is used for data communication with the sending end.

具体的,地址生成模块501生成目标网络地址的方式、请求接收模块502接收通讯请求的方式及第一通讯模块503进行数据通讯的方式可以参考实施例3中的方式,本实施例便不再赘述。Specifically, the manner in which the address generation module 501 generates the target network address, the manner in which the request receiving module 502 receives the communication request, and the manner in which the first communication module 503 performs data communication can refer to the manner in Embodiment 3, and details are not repeated in this embodiment. .

本实施例中,发送端可以利用固定的目标网络地址主动向接收端发送通讯请求,接收模块可以接收发送端主动发送的通讯请求,第一通讯模块可以基于该通讯请求与发送端进行数据通讯。In this embodiment, the sending end can actively send a communication request to the receiving end using a fixed target network address, the receiving module can receive the communication request actively sent by the sending end, and the first communication module can perform data communication with the sending end based on the communication request.

本实施例还提供了一种通讯系统,通讯系统应用于发送端,如图10所示,该通讯系统包括:地址获取模块601、定位模块602、通讯请求模块603及第二通讯模块604。This embodiment also provides a communication system, which is applied to the sending end. As shown in FIG. 10 , the communication system includes: an address acquisition module 601 , a positioning module 602 , a communication request module 603 and a second communication module 604 .

地址获取模块601用于获取通讯模块的目标网络地址,目标网络地址为根据如实施例1中的生成方法生成的网络地址;The address acquisition module 601 is configured to acquire the target network address of the communication module, and the target network address is the network address generated according to the generation method in Embodiment 1;

定位模块602用于根据目标网络地址定位通讯模块;The locating module 602 is used for locating the communication module according to the target network address;

通讯请求模块603用于向通讯模块发起通讯请求;The communication request module 603 is used to initiate a communication request to the communication module;

第二通讯模块604用于与通讯模块进行数据通讯。The second communication module 604 is used for data communication with the communication module.

具体的,地址获取模块601获取目标网络地址的方式、定位模块602定位通讯模块的方式、通讯请求模块603发起通讯请求的方式及第二通讯模块604进行数据通讯的方式可以参考实施例2中的方式,本实施例便不再赘述。Specifically, the method for the address acquisition module 601 to acquire the target network address, the method for the positioning module 602 to locate the communication module, the method for the communication request module 603 to initiate a communication request, and the method for the second communication module 604 to perform data communication can refer to the method in Embodiment 2. manner, which will not be repeated in this embodiment.

本实施例中,发送端可以在需要与接收端进行通讯时,根据目标网络地址对接收端的通讯模块进行定位,本实施例克服了由于网络地址中的主机标识是由通讯模块随机生成的,使发送端难以根据网络地址定位接收端的通讯模块,而无法主动与接收端进行通讯的缺陷,本实施例中,定位模块可以根据地址获取模块获取的目标网络地址顺利定位接收端,进而使第二通讯模块可以主动向接收端发起通讯。In this embodiment, the sending end can locate the communication module of the receiving end according to the target network address when it needs to communicate with the receiving end. The sending end is difficult to locate the communication module of the receiving end according to the network address, and cannot actively communicate with the receiving end. In this embodiment, the positioning module can successfully locate the receiving end according to the target network address obtained by the address obtaining module, thereby enabling the second communication The module can actively initiate communication to the receiving end.

实施例5Example 5

本实施例提供一种电子设备,电子设备可以通过计算设备的形式表现(例如可以为服务器设备),包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中处理器执行计算机程序时可以实现实施例1中网络地址的生成方法及实施例2中的通讯方法。This embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, a server device), and includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor The method for generating a network address in Embodiment 1 and the communication method in Embodiment 2 can be implemented when the computer program is executed.

图11示出了本实施例的硬件结构示意图,如图11所示,电子设备9具体包括:FIG. 11 shows a schematic diagram of the hardware structure of this embodiment. As shown in FIG. 11 , the electronic device 9 specifically includes:

至少一个处理器91、至少一个存储器92以及用于连接不同系统组件(包括处理器91和存储器92)的总线93,其中:At least one processor 91, at least one memory 92, and a bus 93 for connecting different system components (including processor 91 and memory 92), wherein:

总线93包括数据总线、地址总线和控制总线。The bus 93 includes a data bus, an address bus and a control bus.

存储器92包括易失性存储器,例如随机存取存储器(RAM)921和/或高速缓存存储器922,还可以进一步包括只读存储器(ROM)923。Memory 92 includes volatile memory, such as random access memory (RAM) 921 and/or cache memory 922 , and may further include read only memory (ROM) 923 .

存储器92还包括具有一组(至少一个)程序模块924的程序/实用工具925,这样的程序模块924包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The memory 92 also includes a program/utility 925 having a set (at least one) of program modules 924 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, examples of which are Each or some combination of these may include an implementation of a network environment.

处理器91通过运行存储在存储器92中的计算机程序,从而执行各种功能应用以及数据处理,例如本发明实施例1中网络地址的生成方法及实施例2中的通讯方法。The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the network address generation method in Embodiment 1 and the communication method in Embodiment 2 of the present invention.

电子设备9进一步可以与一个或多个外部设备94(例如键盘、指向设备等)通信。这种通信可以通过输入/输出(I/O)接口95进行。并且,电子设备9还可以通过网络适配器96与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器96通过总线93与电子设备9的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备9使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID(磁盘阵列)系统、磁带驱动器以及数据备份存储系统等。The electronic device 9 may further communicate with one or more external devices 94 (eg, keyboards, pointing devices, etc.). Such communication may take place through input/output (I/O) interface 95 . Also, the electronic device 9 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 96 . The network adapter 96 communicates with other modules of the electronic device 9 via the bus 93 . It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.

应当注意,尽管在上文详细描述中提及了电子设备的若干单元/模块或子单元/模块,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多单元/模块的特征和功能可以在一个单元/模块中具体化。反之,上文描述的一个单元/模块的特征和功能可以进一步划分为由多个单元/模块来具体化。It should be noted that although several units/modules or sub-units/modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. Indeed, according to embodiments of the present application, the features and functions of two or more units/modules described above may be embodied in one unit/module. Conversely, the features and functions of one unit/module described above may be further subdivided to be embodied by multiple units/modules.

实施例6Example 6

本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现实施例1中网络地址的生成方法及实施例2中的通讯方法。This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for generating a network address in Embodiment 1 and the communication method in Embodiment 2 are implemented.

其中,可读存储介质可以采用的更具体可以包括但不限于:便携式盘、硬盘、随机存取存储器、只读存储器、可擦拭可编程只读存储器、光存储器件、磁存储器件或上述的任意合适的组合。Wherein, the readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any of the above suitable combination.

在可能的实施方式中,本发明还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行实现实施例1中网络地址的生成方法及实施例2中的通讯方法。In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program codes, when the program product runs on a terminal device, the program code is used to cause the terminal device to execute the implementation The method for generating a network address in the first embodiment and the communication method in the second embodiment.

其中,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明的程序代码,所述程序代码可以完全地在用户设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户设备上部分在远程设备上执行或完全在远程设备上执行。Wherein, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be completely executed on the user equipment, partially executed on the user equipment, as an independent The software package executes on the user's device, partly on the user's device, partly on the remote device, or entirely on the remote device.

虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although the specific embodiments of the present invention are described above, those skilled in the art should understand that this is only an illustration, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims (11)

1.一种网络地址的生成方法,其特征在于,所述生成方法包括:1. a method for generating a network address, wherein the method for generating comprises: 获取用户识别卡的网络前缀信息;Obtain the network prefix information of the subscriber identity card; 获取通讯模块的主机标识信息,所述主机标识信息包括用于识别所述通讯模块的标识;Obtain host identification information of the communication module, where the host identification information includes an identification used to identify the communication module; 根据所述网络前缀信息及所述主机标识信息生成待注册网络地址;generating a network address to be registered according to the network prefix information and the host identification information; 根据所述待注册网络地址完成网络注册,并将所述待注册网络地址作为所述通讯模块的目标网络地址。Complete network registration according to the to-be-registered network address, and use the to-be-registered network address as the target network address of the communication module. 2.如权利要求1所述的生成方法,其特征在于,所述获取用户识别卡的网络前缀信息包括:2. The generating method according to claim 1, wherein the acquiring the network prefix information of the subscriber identity card comprises: 发送网络激活信息,所述网络激活信息包括用户识别卡的识别信息及网络激活的请求指令;Sending network activation information, the network activation information includes identification information of the subscriber identity card and a request instruction for network activation; 接收所述用户识别卡的网络前缀信息。Receive the network prefix information of the subscriber identity card. 3.如权利要求1所述的生成方法,其特征在于,所述获取所述通讯模块的主机标识信息包括:3. The generating method according to claim 1, wherein the acquiring the host identification information of the communication module comprises: 获取所述通讯模块的设备号;Obtain the device number of the communication module; 根据所述设备号生成主机标识信息。Generate host identification information according to the device number. 4.如权利要求1所述的生成方法,其特征在于,所述目标网络地址的格式包括IPV6地址格式。4. The generating method according to claim 1, wherein the format of the target network address comprises an IPV6 address format. 5.一种通讯方法,其特征在于,所述通讯方法应用于接收端,所述通讯方法包括:5. A communication method, wherein the communication method is applied to a receiving end, and the communication method comprises: 根据如权利要求1-4任意一项所述的网络地址的生成方法来生成目标网络地址;Generate a target network address according to the method for generating a network address according to any one of claims 1-4; 接收发送端的通讯请求;Receive the communication request from the sender; 与所述发送端进行数据通讯。perform data communication with the sender. 6.一种通讯方法,其特征在于,所述通讯方法应用于发送端,所述通讯方法包括:6. A communication method, wherein the communication method is applied to a sending end, and the communication method comprises: 获取通讯模块的目标网络地址,所述目标网络地址为根据如权利要求1-4任意一项所述的网络地址的生成方法生成的网络地址;Obtain the target network address of the communication module, where the target network address is a network address generated according to the method for generating a network address according to any one of claims 1-4; 根据所述目标网络地址定位通讯模块;Locate the communication module according to the target network address; 向所述通讯模块发起通讯请求;Initiating a communication request to the communication module; 与所述通讯模块进行数据通讯。perform data communication with the communication module. 7.一种网络地址的生成系统,其特征在于,所述生成系统包括:前缀信息获取模块、标识信息获取模块、网络地址生成模块及网络地址注册模块;7. A network address generation system, wherein the generation system comprises: a prefix information acquisition module, an identification information acquisition module, a network address generation module and a network address registration module; 所述前缀信息获取模块用于获取用户识别卡的网络前缀信息;The prefix information obtaining module is used to obtain the network prefix information of the subscriber identity card; 所述标识信息获取模块用于获取通讯模块的主机标识信息,所述主机标识信息包括用于识别所述通讯模块的标识;The identification information acquisition module is used to obtain the host identification information of the communication module, and the host identification information includes an identification used to identify the communication module; 所述网络地址生成模块用于根据所述网络前缀信息及所述主机标识信息生成待注册网络地址;The network address generation module is configured to generate a to-be-registered network address according to the network prefix information and the host identification information; 所述网络地址注册模块用于根据所述待注册网络地址完成网络注册,并将所述待注册网络地址作为所述通讯模块的目标网络地址。The network address registration module is configured to complete network registration according to the to-be-registered network address, and use the to-be-registered network address as the target network address of the communication module. 8.一种通讯系统,其特征在于,所述通讯系统应用于接收端,所述通讯系统包括:地址生成模块、请求接收模块及第一通讯模块;8. A communication system, wherein the communication system is applied to a receiving end, and the communication system comprises: an address generation module, a request receiving module and a first communication module; 所述地址生成模块用于根据如权利要求7所述的网络地址的生成系统来生成目标网络地址;Described address generation module is used for generating target network address according to the generation system of network address as claimed in claim 7; 所述请求接收模块用于接收发送端的通讯请求;The request receiving module is used for receiving the communication request of the sender; 所述第一通讯模块用于与所述发送端进行数据通讯。The first communication module is used for data communication with the sending end. 9.一种通讯系统,其特征在于,所述通讯系统应用于发送端,所述通讯系统包括:地址获取模块、定位模块、通讯请求模块及第二通讯模块;9. A communication system, wherein the communication system is applied to a sending end, and the communication system comprises: an address acquisition module, a positioning module, a communication request module and a second communication module; 所述地址获取模块用于获取通讯模块的目标网络地址,所述目标网络地址为根据如权利要求1-4任意一项所述的网络地址的生成方法生成的网络地址;The address obtaining module is used to obtain the target network address of the communication module, and the target network address is a network address generated according to the method for generating a network address according to any one of claims 1-4; 所述定位模块用于根据所述目标网络地址定位通讯模块;The locating module is used for locating the communication module according to the target network address; 所述通讯请求模块用于向所述通讯模块发起通讯请求;The communication request module is configured to initiate a communication request to the communication module; 所述第二通讯模块用于与所述通讯模块进行数据通讯。The second communication module is used for data communication with the communication module. 10.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至4任一项所述的网络地址的生成方法、权利要求5或权利要求6所述的通讯方法。10. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any one of claims 1 to 4 when the processor executes the computer program The generating method of the network address described in item, the communication method described in claim 5 or claim 6. 11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至4任一项所述的网络地址的生成方法、权利要求5或权利要求6所述的通讯方法。11. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method for generating a network address according to any one of claims 1 to 4, claims 5 or the communication method of claim 6.
CN202111491514.8A 2021-12-08 2021-12-08 Network address generation method, communication method, system, device and storage medium Pending CN114363292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111491514.8A CN114363292A (en) 2021-12-08 2021-12-08 Network address generation method, communication method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111491514.8A CN114363292A (en) 2021-12-08 2021-12-08 Network address generation method, communication method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN114363292A true CN114363292A (en) 2022-04-15

Family

ID=81096900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111491514.8A Pending CN114363292A (en) 2021-12-08 2021-12-08 Network address generation method, communication method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN114363292A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190101A (en) * 2022-09-08 2022-10-14 北京交通大学 A device network address management and data transmission method
CN115604233A (en) * 2022-12-12 2023-01-13 河北振创电子科技有限公司(Cn) Method and device for actively registering address of modbus protocol equipment
CN118158072A (en) * 2024-03-08 2024-06-07 尊芯智能科技(苏州)有限公司 Communication method, system, equipment and medium of AMHS

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1418440A (en) * 2000-01-20 2003-05-14 诺基亚有限公司 Address acquisition
KR20060115784A (en) * 2005-05-06 2006-11-10 모다정보통신 주식회사 How to automatically generate Internet Protocol version 6 addresses using Internet Protocol version 6 identifiers
CN101091357A (en) * 2004-10-29 2007-12-19 意大利电信股份公司 Routing operation control method in network, related network and computer program thereof
US20090204691A1 (en) * 2008-02-13 2009-08-13 Futurewei Technologies, Inc. USAGE OF HOST GENERATING INTERFACE IDENTIFIERS IN DHCPv6
US20140307651A1 (en) * 2013-04-12 2014-10-16 Futurewei Technologies, Inc. Internet Protocol Address Registration
JP2017143364A (en) * 2016-02-09 2017-08-17 日本電信電話株式会社 Address generation method, apparatus, and program, and address delivery method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1418440A (en) * 2000-01-20 2003-05-14 诺基亚有限公司 Address acquisition
CN101091357A (en) * 2004-10-29 2007-12-19 意大利电信股份公司 Routing operation control method in network, related network and computer program thereof
KR20060115784A (en) * 2005-05-06 2006-11-10 모다정보통신 주식회사 How to automatically generate Internet Protocol version 6 addresses using Internet Protocol version 6 identifiers
US20090204691A1 (en) * 2008-02-13 2009-08-13 Futurewei Technologies, Inc. USAGE OF HOST GENERATING INTERFACE IDENTIFIERS IN DHCPv6
US20140307651A1 (en) * 2013-04-12 2014-10-16 Futurewei Technologies, Inc. Internet Protocol Address Registration
JP2017143364A (en) * 2016-02-09 2017-08-17 日本電信電話株式会社 Address generation method, apparatus, and program, and address delivery method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
F.DUPONT: "IMEI-based universal IPv6 interface IDs draft-dupont-ipv6-imei-10.txt", Retrieved from the Internet <URL:https://datatracker.ietf.org/doc/html/draft-dupont-ipv6-imei-06> *
M.FORD(BT): "IST-2001-34056 Deliverable D5.1.6 "Standardisation Report"", Retrieved from the Internet <URL:http://www.ipv6tf.org/pdf/IPv6STDReptDec03.pdf> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190101A (en) * 2022-09-08 2022-10-14 北京交通大学 A device network address management and data transmission method
CN115190101B (en) * 2022-09-08 2023-01-17 北京交通大学 Network address management and data transmission method of equipment
CN115604233A (en) * 2022-12-12 2023-01-13 河北振创电子科技有限公司(Cn) Method and device for actively registering address of modbus protocol equipment
CN118158072A (en) * 2024-03-08 2024-06-07 尊芯智能科技(苏州)有限公司 Communication method, system, equipment and medium of AMHS

Similar Documents

Publication Publication Date Title
CN114363292A (en) Network address generation method, communication method, system, device and storage medium
US10965455B2 (en) Device and method for secure connection
US10735427B2 (en) Method and apparatus for managing program of electronic device
US10979901B2 (en) Electronic device and method for processing data in electronic device
US12073230B2 (en) Scalable life-cycle maintenance of hardware
US10997584B2 (en) Payment system, electronic device and payment method thereof
US10120743B2 (en) System and method for error handling based on a boot profile
US10997582B2 (en) Payment transaction method and electronic device therefor
US10366246B2 (en) Electronic device and operating method thereof
US20170270524A1 (en) Electronic device for performing secure payment and method thereof
US9614673B2 (en) Method of managing keys and electronic device adapted to the same
EP3376454A1 (en) Payment system, electronic device and payment method thereof
US20170295174A1 (en) Electronic device, server, and method for authenticating biometric information
CN102148844A (en) Memory leak positioning method, server, client and system
US20170185762A1 (en) Electronic device for processing biometric information and method of controlling same
US20170200146A1 (en) Payment processing method and electronic device supporting the same
CN107924514B (en) Apparatus and method for performing payment transactions using dynamic MST configuration
US10122958B2 (en) Method for recording execution screen and electronic device for processing the same
US20160162106A1 (en) Method and electronic device for controlling touch input
US11650887B2 (en) Systems and methods for retrieving optimal firmware recovery image in an information handling system
CN111092949B (en) Method and device for registering equipment
CN110544099A (en) Payment method, payment processing system and payment acceptance terminal based on block chain
US12229750B2 (en) Systems and methods for generating and using virtual card numbers
CN116956306A (en) Method, device, equipment and storage medium for acquiring cheating application installation package
CN104426764A (en) Method and system for double-IP-address recovery

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220415