Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The following describes in detail a method, an apparatus, a device, and a medium for automatically configuring an APN of an internet of things card according to an embodiment of the present invention with reference to the accompanying drawings. It should be noted that these examples are not intended to limit the scope of the present disclosure.
Fig. 1 is a flowchart illustrating a method for automatically configuring an APN of an internet of things card according to an embodiment of the present invention. As shown in fig. 1, a method 100 for automatically configuring an APN of an internet of things card in the embodiment of the present invention includes the following steps:
s110, obtaining the IMSI of the Internet of things card to be configured.
In some embodiments, a card reader may be used to obtain the IMSI of the internet access card a to be configured, and one internet access card a to be configured can only be read by the card reader once.
And S120, after registering to the network element side HLR, acquiring APN information which corresponds to the IMSI and needs to be configured from the online Internet of things card.
In S120, before registering with the network element side HLR, the BOSS system may send the IMSI of the network card to be configured and the APN information to be configured for the network card to be configured to the online network card B, or may send the IMSI and the APN information to be configured for the network card to be configured to one or more other online network cards at the same time, or may manually or otherwise input the IMSI and the APN information to be configured for the network card to be configured to the online network card B or other online network cards.
In some embodiments, after registering to the network element side HLR, an APN request short message of the network access card to be configured is sent to the online network access card B having the APN information to be configured for the network access card to be configured.
In some embodiments, the method for automatically configuring an APN of an internet of things card in the embodiments of the present invention further includes: and when the APN information needing to be configured is not obtained from the online Internet of things card B, the APN information needing to be configured is obtained from other online Internet of things cards. In this embodiment, when the data of the online internet of things card B is not obtained, an APN request short message of the internet of things card a to be configured is sent to the online internet of things card C.
S130, the acquired APN information needing to be configured is sent to the network element side HLR and is used for being stored in an APN configuration table of the network element side HLR.
In some embodiments, the method for automatically configuring an APN of an internet of things card in the embodiments of the present invention further includes:
and configuring APN information of the intelligent terminal corresponding to the to-be-configured Internet of things card according to the APN information which is acquired by the to-be-configured Internet of things card A and needs to be configured.
In some embodiments, the method for automatically configuring an APN of an internet of things card in the embodiments of the present invention further includes:
and the intelligent terminal sends a request for applying communication to the HLR of the network element side and tests whether the configuration of the Internet of things card to be configured is successful.
In some embodiments, in case that the result of testing whether the configuration of the internet of things card to be configured is successful is no, the method further comprises,
the following configuration operations are repeatedly performed:
and the intelligent terminal acquires the APN information which needs to be configured and corresponds to the IMSI of the networking card to be configured from the online networking card again.
And sending the acquired APN information needing to be configured to a network element side HLR for storing in an APN configuration table of the network element side HLR.
And configuring APN information of the intelligent terminal according to the APN information needing to be configured.
And the intelligent terminal sends a request for applying communication to the HLR of the network element side.
If the intelligent terminal can communicate, the APN automatic configuration is successful, if the intelligent terminal cannot communicate, the APN automatic configuration fails, and if the configuration fails, the configuration operation is repeatedly executed.
In some embodiments, after the failure times of repeatedly performing the configuration operation to configure the internet of things card to be configured reach the subscription times, the failure information is sent to the HLR on the network element side. For example, a preset number of times may be set to be 3 times, and after the configuration operation is repeatedly performed for 3 times, the failure information is sent to the HLR on the network element side.
In some embodiments, while sending the failure information to the network element side HLR, the APN information that needs to be configured and corresponds to the IMSI of the to-be-configured internet of things card is automatically acquired from the online internet of things card every preset time, and is used for configuring an APN configuration table of the network element side HLR and APN information of the intelligent terminal.
In some embodiments, in the case that the result of testing whether the configuration of the internet of things card to be configured is successful is yes, the method further includes:
and the to-be-configured Internet of things card A sends an APN query short message to at least one online Internet of things card according to a specified time interval.
And updating the APN configuration table of the HLR and the APN information of the intelligent terminal according to the APN information which needs to be configured and is acquired from the online Internet of things card.
In some embodiments, when the APN information required to be configured cannot be acquired from the online internet of things card to update the APN configuration table of the network element side HLR and the APN information of the intelligent terminal, an APN query short message is sent to other online internet of things cards, and the APN configuration table of the network element side HLR and the APN information of the intelligent terminal are updated according to the APN information required to be configured acquired from other online internet of things cards.
According to the method for automatically configuring the APN of the Internet of things card, disclosed by the embodiment of the invention, the problem of long time consumption for configuring the APN of the Internet of things card is solved and the configuration efficiency is improved by sending the IMSI of the Internet of things card to be configured and the APN information to be configured of the Internet of things card to be configured to other online Internet of things cards; the APN of the Internet of things card is convenient to adjust; and when the internet of things card breaks down, the internet of things card is easy to check.
Fig. 2 is a schematic structural diagram of a device for automatically configuring an APN of an internet of things card according to an embodiment of the present invention. As shown in fig. 2, the apparatus 200 for automatically configuring an APN of an internet of things card corresponds to the method 100 for automatically configuring an APN of an internet of things card, and the apparatus 200 for automatically configuring an APN of an internet of things card specifically includes:
the first obtaining unit 210 is configured to obtain an IMSI of the internet of things card to be configured.
In an embodiment of the present invention, the first obtaining unit 210 includes a card reader in the BOSS system, and reads the IMSI of the internet of things card to be configured through the card reader.
A second obtaining unit 220, configured to obtain APN information that needs to be configured and corresponds to the IMSI from the online internet of things card after registering with the HLR.
In an embodiment of the present invention, the second obtaining unit 220 may be executed by a BOSS system.
A first sending unit 230, configured to send the obtained APN information to be configured to the HLR, for storing in an APN configuration table of the network element side HLR.
In an embodiment of the present invention, the first sending unit 230 includes an intelligent terminal, and the intelligent terminal in an embodiment of the present invention may be an access card, an electric meter, a two-dimensional code setting end of a shared bicycle, and the like.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the second sending unit is used for sending the IMSI of the Internet of things card to be configured and the APN information to be configured to one or more online Internet of things cards in the same APN network.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the third sending unit is used for sending the APN request short message of the Internet of things card to be configured to the online Internet of things card.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the second acquiring subunit is configured to acquire the APN information to be configured from other online internet of things cards when the APN information to be configured is not acquired from the online internet of things card.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the configuration unit is used for configuring the APN information of the intelligent terminal corresponding to the networking card of the object to be configured according to the APN information which is acquired by the networking card of the object to be configured and needs to be configured.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the testing unit is used for sending a request for applying communication to the HLR of the network element side by the intelligent terminal and testing whether the configuration of the Internet of things card to be configured is successful.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
a repeated execution configuration unit for repeatedly executing configuration operation, wherein the configuration operation comprises the following steps: the intelligent terminal acquires APN information which needs to be configured and corresponds to the IMSI of the networking card to be configured from the online networking card again; sending the acquired APN information needing to be configured to a network element side HLR for storing in an APN configuration table of the network element side HLR; configuring APN information of the intelligent terminal according to the APN information required to be configured; and the intelligent terminal sends a request for applying communication to the HLR of the network element side.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the fault information sending unit is used for sending fault information to the HLR of the network element side after the failure times of repeatedly executing the configuration operation to configure the Internet of things card to be configured reach the preset times.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the automatic acquisition unit is used for automatically acquiring APN information which needs to be configured and corresponds to the IMSI number of the to-be-configured Internet of things network card from the online Internet of things network card at preset time intervals while sending the fault information to the network element side HLR, and is used for configuring an APN configuration table of the network element side HLR and APN information of the intelligent terminal.
According to an aspect of the embodiments of the present invention, the apparatus for automatically configuring an APN of an internet of things card further includes:
and the first updating module is used for sending the APN inquiry short message to at least one online Internet of things card according to the appointed time interval.
And the second updating module is used for updating the APN configuration table of the HLR and the APN information of the intelligent terminal according to the APN information which is acquired from the online Internet of things card and needs to be configured.
In addition, the method 100 for automatically configuring the APN of the internet of things card and the apparatus 200 for automatically configuring the APN of the internet of things card according to the embodiments of the present invention may be implemented by the device 300 for automatically configuring the APN of the internet of things card. Fig. 3 is a schematic diagram of a hardware structure of a device for automatically configuring an APN of an internet access card according to an embodiment of the present invention.
As shown in fig. 3, the device 300 for automatically configuring the APN of the internet of things card includes an input device 301, an input interface 302, a central processing unit 303, a memory 304, an output interface 305, and an output device 306. The input interface 302, the central processing unit 303, the memory 304, and the output interface 305 are connected to each other through a bus 310, and the input device 301 and the output device 306 are connected to the bus 310 through the input interface 302 and the output interface 305, respectively, and further connected to other components of the device 300 for automatically configuring the APN of the internet of things card.
Specifically, the input device 301 receives input information from the outside (for example, an instruction for automatically configuring an internet of things card APN), and transmits the input information to the central processor 303 through the input interface 302; central processor 303 processes the input information based on computer-executable instructions stored in memory 304 to generate output information, stores the output information temporarily or permanently in memory 304, and then transmits the output information to output device 306 through output interface 305; the output device 306 outputs the output information to the outside of the device 300 for automatically configuring the APN of the internet of things card for use by the user.
That is to say, the device for automatically configuring the APN of the internet of things card shown in fig. 3 may also be implemented to include: a memory storing computer-executable instructions; and a processor, which when executing computer executable instructions may implement the method and apparatus for automatically configuring an internet of things card APN described in conjunction with fig. 1 and 2.
In one embodiment, the device 300 for automatically configuring an internet of things card APN shown in fig. 3 may be implemented as a device, which may include: a memory for storing a program; and the processor is used for operating the program stored in the memory so as to execute the method for automatically configuring the APN of the Internet of things card provided by the embodiment of the invention.
In addition, with reference to the method for automatically configuring the APN of the internet of things card in the foregoing embodiment, an embodiment of the present invention may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; when executed by a processor, the computer program instructions implement the method for automatically configuring any one of the internet of things cards APN in the above embodiments.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or apparatus based on a series of steps or apparatus. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As will be apparent to those skilled in the art, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.