WO2019091355A1 - Apn data format conversion method, smart device, and storage apparatus - Google Patents

Apn data format conversion method, smart device, and storage apparatus Download PDF

Info

Publication number
WO2019091355A1
WO2019091355A1 PCT/CN2018/114015 CN2018114015W WO2019091355A1 WO 2019091355 A1 WO2019091355 A1 WO 2019091355A1 CN 2018114015 W CN2018114015 W CN 2018114015W WO 2019091355 A1 WO2019091355 A1 WO 2019091355A1
Authority
WO
WIPO (PCT)
Prior art keywords
format
preset
apn
data
apn data
Prior art date
Application number
PCT/CN2018/114015
Other languages
French (fr)
Chinese (zh)
Inventor
满兴强
Original Assignee
捷开通讯(深圳)有限公司
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 捷开通讯(深圳)有限公司 filed Critical 捷开通讯(深圳)有限公司
Publication of WO2019091355A1 publication Critical patent/WO2019091355A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Definitions

  • the present application relates to the field of smart device technologies, and in particular, to a method, a smart device, and a storage device for converting an APN data format.
  • the technical problem to be solved by the present application is to provide an APN data format conversion method, an intelligent device, and a storage device, which can improve the conversion efficiency of APN data modification.
  • a technical solution adopted by the present application is to provide a method for converting an APN data format, the method comprising: acquiring APN data; determining whether a format of the APN data matches a preset format; if not, The APN data is processed according to the preset policy corresponding to the data type, and the format of the APN data is converted into a preset format.
  • the APN data type has a corresponding relationship with the preset policy, and each data type corresponds to At least one preset strategy; wherein the preset strategy is to insert a new string or special symbol into the string by using a splicing function.
  • a technical solution adopted by the present application is to provide a method for converting an APN data format, the method comprising: acquiring APN data; determining whether a format of the APN data matches a preset format; if not, The format of the APN data is converted to a preset format.
  • another technical solution adopted by the present application is to provide a smart device, where the smart device includes a processor and a memory, the processor is coupled to the memory, and the processor executes instructions during operation, and the APN can be implemented.
  • the conversion method of the data format is to provide a smart device, where the smart device includes a processor and a memory, the processor is coupled to the memory, and the processor executes instructions during operation, and the APN can be implemented.
  • another technical solution adopted by the present application is to provide a device having a storage function, the device storing a program, and when the program is executed, the conversion method of the APN data format can be implemented.
  • the utility model has the beneficial effects that the method for converting APN data format, the smart device and the storage device are provided.
  • the method includes acquiring APN data, and determining whether the format and the preset format of the APN data are different. Match; if it does not match, the format of the APN data is converted to a preset format. In this way, the APN profile data can be changed quickly and easily, saving system development and maintenance time and improving efficiency.
  • FIG. 1 is a schematic flowchart of an implementation manner of an APN data format conversion method in the present application
  • FIG. 2 is a schematic structural diagram of an implementation manner of a smart device according to the present application.
  • FIG. 3 is a schematic structural diagram of an embodiment of an apparatus having a storage function according to the present application.
  • FIG. 1 is a schematic flowchart diagram of an implementation manner of an APN data format conversion method according to the present application.
  • the embodiment provides a method for converting an APN data format, which is used to conveniently and quickly change APN profile data in a product.
  • the method includes the following steps:
  • the APN Access Point Name, APN refers to a network access technology, which is a parameter that must be configured when accessing the Internet through the smart device.
  • the access range and access mode of different access points are different. It determines which access method the smart device uses to access the network. Therefore, the format and type of these APN data will be different in different networks, different countries and regions, and different systems.
  • S102 Determine whether the format of the APN data matches the preset format.
  • the format of the APN data matches the preset format; if not, the format of the APN data is converted into a preset format, which can quickly and easily change the APN profile data, thereby saving system development and maintenance time. Improve efficiency.
  • the APN data when the format of the APN data does not match the preset format, the APN data is processed according to the preset policy, and then the format of the APN data is converted into a preset format.
  • the APN profile data may be classified into several types, and the APN data type and the preset policy have a corresponding relationship, where each data type corresponds to at least one preset policy.
  • the preset strategy may be to insert a new string or special symbol into the string using a splicing function.
  • a splicing function For example, the APN profile list file is saved in Excel format, and the data is spliced using EXCEL's splicing tool function CONCATENATE. The function is used to freely splicing the same column or the same row in the horizontal and vertical directions to form the required data at the end of the row and column. format.
  • the method can be used to quickly integrate APN profile list data that has been maintained in other systems into an Android system, an ISO system, a Symbian system, or a Windows system. It can also be used to adapt to APN data when smart devices enter different countries and regions.
  • the method can be used to quickly integrate the APN profile list data that has been maintained in other systems into the Android system.
  • the preset format is the Android system standard format, and the method includes the following steps:
  • the APN list data is traversed to determine whether the format of each APN data matches the standard format of the Android system.
  • the format of the APN data is converted into the Android system standard format and then inserted into the APN profile list of the Android system.
  • the format of converting the APN data format into the Android system standard format includes:
  • the Public Land Mobile Network is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC). Specifically, the first three bits in the MCC and the last two bits in the MNC are spliced to form a PLMN in the standard format of the Android system.
  • MCC Mobile Country Code
  • MNC Mobile Network Code
  • an APN data file with a standard format of the Android system is formed, which may be an apns-conf.xml file.
  • the required files can be automatically generated without manual modification, thereby improving efficiency.
  • FIG. 2 is a schematic structural diagram of an embodiment of a smart device according to the present application.
  • the present application provides a smart device, which includes a processor 201 and a memory 202.
  • the processor 201 is coupled to the memory 202.
  • the processor 201 can implement the steps in the foregoing method when working. For the specific method steps, refer to the foregoing method implementation manner. The description in the description will not be repeated here.
  • the smart device is a smart phone, a tablet computer, a laptop computer, a smart TV, a smart bracelet, a smart watch, and the like.
  • FIG. 3 is a schematic structural diagram of an apparatus having a storage function according to the present application.
  • the present application provides a device 30 having a storage function, on which program data 301 is stored, wherein the program data 301 is executed by the processor to implement the steps in the foregoing method.
  • program data 301 is executed by the processor to implement the steps in the foregoing method.
  • the specific method steps refer to the description in the foregoing method embodiment. I will not repeat them here.
  • the technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions. All or part of the steps of the method of the various embodiments of the present application are performed by a computer device (which may be a personal computer, server, or network device, etc.) or a processor.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An APN data format conversion method, a smart device, and a storage apparatus, the method comprising: acquiring APN data (S101); determining whether the format of the APN data matches a preset format (S102); and if the format of the APN data does not match the preset format, converting the format of the APN data into the preset format (S103). Said method can change APN profile data conveniently and quickly, saving the time for system development and maintenance, improving efficiency.

Description

一种APN数据格式的转换方法、智能设备及存储装置Method, intelligent device and storage device for converting APN data format 【技术领域】[Technical Field]
本申请涉及智能设备技术领域,特别是涉及一种APN数据格式的转换方法、智能设备及存储装置。The present application relates to the field of smart device technologies, and in particular, to a method, a smart device, and a storage device for converting an APN data format.
【背景技术】【Background technique】
随着人工智能技术的迅速发展,智能设备产品的种类越来越多,同时随着Android系统越来越流行,这些产品大都会基于Android系统进行开发,对于已经在其他系统中维护的APN profile列表,快速集成到Android系统中将是一个必然。然而对于已经集成在其他产品中的APN profile列表可能不符合android系统的格式要求,需要对APN数据格式进行转换。另外,当这些产品被销售到不同的国家和地区时,也会根据相应国家的网络厂商对APN profile进行相应更改。With the rapid development of artificial intelligence technology, there are more and more types of smart device products. At the same time, with the increasing popularity of Android systems, these products are mostly developed based on the Android system, for the list of APN profiles that have been maintained in other systems. Fast integration into the Android system will be a necessity. However, the list of APN profiles that have been integrated into other products may not conform to the format requirements of the Android system, and the APN data format needs to be converted. In addition, when these products are sold to different countries and regions, the APN profile will be changed according to the network manufacturer of the corresponding country.
本申请的发明人在长期的研发过程中,发现目前还没有很好的方法对APN数据格式进行修改转换,大多是人工手动修改,因为APN参数较多,人工手动修改不仅麻烦还容易出错误,因此需要开发一种修改方法来提高修改转换效率。In the long-term research and development process, the inventor of the present application found that there is currently no good way to modify and convert the APN data format, and most of them are manually modified manually. Because there are many APN parameters, manual manual modification is not only troublesome but also prone to errors. Therefore, it is necessary to develop a modification method to improve the conversion efficiency.
【发明内容】[Summary of the Invention]
本申请主要解决的技术问题是提供一种APN数据格式的转换方法、智能设备及存储装置,能够提高APN数据修改的转换效率。The technical problem to be solved by the present application is to provide an APN data format conversion method, an intelligent device, and a storage device, which can improve the conversion efficiency of APN data modification.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种APN数据格式的转换方法,所述方法包括:获取APN数据;判断APN数据的格式与预设格式是否匹配;若不匹配,则将APN数据按照其数据类型所对应的预设策略进行处理,进而将APN数据的格式转换为预设格式;其中,APN数据类型与预设策略之间存在对应关系,且每种数据类型对应至少一种预设策略;其中,预设策略为利用拼接函数在字串中插入新的字串或特殊符号。To solve the above technical problem, a technical solution adopted by the present application is to provide a method for converting an APN data format, the method comprising: acquiring APN data; determining whether a format of the APN data matches a preset format; if not, The APN data is processed according to the preset policy corresponding to the data type, and the format of the APN data is converted into a preset format. The APN data type has a corresponding relationship with the preset policy, and each data type corresponds to At least one preset strategy; wherein the preset strategy is to insert a new string or special symbol into the string by using a splicing function.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种 APN数据格式的转换方法,所述方法包括:获取APN数据;判断APN数据的格式与预设格式是否匹配;若不匹配,则将APN数据的格式转换为预设格式。To solve the above technical problem, a technical solution adopted by the present application is to provide a method for converting an APN data format, the method comprising: acquiring APN data; determining whether a format of the APN data matches a preset format; if not, The format of the APN data is converted to a preset format.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种智能设备,所述智能设备包括处理器和存储器,处理器耦接存储器,处理器在工作时执行指令,能够实现上述APN数据格式的转换方法。In order to solve the above technical problem, another technical solution adopted by the present application is to provide a smart device, where the smart device includes a processor and a memory, the processor is coupled to the memory, and the processor executes instructions during operation, and the APN can be implemented. The conversion method of the data format.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种具有存储功能的装置,所述装置存储有程序,所述程序被执行时能够实现上述APN数据格式的转换方法。In order to solve the above technical problem, another technical solution adopted by the present application is to provide a device having a storage function, the device storing a program, and when the program is executed, the conversion method of the APN data format can be implemented.
本申请的有益效果是:区别于现有技术的情况,本申请提供一种APN数据格式的转换方法、智能设备及存储装置,该方法包括获取APN数据;判断APN数据的格式与预设格式是否匹配;若不匹配,则将APN数据的格式转换为预设格式。通过这种方式,能够方便快捷的更改APN profile数据,节约系统开发维护时间,提高效率。The utility model has the beneficial effects that the method for converting APN data format, the smart device and the storage device are provided. The method includes acquiring APN data, and determining whether the format and the preset format of the APN data are different. Match; if it does not match, the format of the APN data is converted to a preset format. In this way, the APN profile data can be changed quickly and easily, saving system development and maintenance time and improving efficiency.
【附图说明】[Description of the Drawings]
图1是本申请APN数据格式转换方法一实施方式的流程示意图;1 is a schematic flowchart of an implementation manner of an APN data format conversion method in the present application;
图2是本申请智能设备一实施方式的结构示意图;2 is a schematic structural diagram of an implementation manner of a smart device according to the present application;
图3是本申请具有存储功能的装置一实施方式的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of an apparatus having a storage function according to the present application.
【具体实施方式】【Detailed ways】
为使本申请的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本申请进一步详细说明。In order to make the objects, technical solutions and effects of the present application more clear and clear, the present application will be further described in detail below with reference to the accompanying drawings.
请参阅图1,图1是本申请APN数据格式转换方法一实施方式的流程示意图。本实施方式提供一种APN数据格式的转换方法,该方法用于方便快捷的更改产品中的APN profile数据。在该实施方式中,所述方法包括如下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of an implementation manner of an APN data format conversion method according to the present application. The embodiment provides a method for converting an APN data format, which is used to conveniently and quickly change APN profile data in a product. In this embodiment, the method includes the following steps:
S101:获取APN数据。S101: Acquire APN data.
其中,APN(Access Point Name,APN)是指一种网络接入技术,是通过智能设备上网时必须配置的一个参数,不同的接入点所能访问的 范围以及接入的方式是不同的,它决定了智能设备通过哪种接入方式来访问网络。因此,在不同网络、不同国家和地区、不同系统中这些APN数据的格式和类型将不同。The APN (Access Point Name, APN) refers to a network access technology, which is a parameter that must be configured when accessing the Internet through the smart device. The access range and access mode of different access points are different. It determines which access method the smart device uses to access the network. Therefore, the format and type of these APN data will be different in different networks, different countries and regions, and different systems.
S102:判断APN数据的格式与预设格式是否匹配。S102: Determine whether the format of the APN data matches the preset format.
当智能设备在不同国家和地区使用、或与其他系统集成时,需要将其APN数据修改成符合预设格式的类型。在修改时先判断APN数据的格式与预设格式是否匹配,若匹配,则可以直接插入使用,若不匹配,则将APN数据的格式转换为预设格式。When smart devices are used in different countries and regions, or integrated with other systems, they need to modify their APN data to a type that conforms to the preset format. When modifying, first determine whether the format of the APN data matches the preset format. If it matches, it can be directly inserted and used. If it does not match, the format of the APN data is converted into a preset format.
S103:若不匹配,则将APN数据的格式转换为预设格式。S103: If there is no match, convert the format of the APN data to a preset format.
在本实施方式中,通过判断APN数据的格式与预设格式是否匹配;若不匹配,则将APN数据的格式转换为预设格式,能够方便快捷的更改APN profile数据,节约系统开发维护时间,提高效率。In this implementation manner, it is determined whether the format of the APN data matches the preset format; if not, the format of the APN data is converted into a preset format, which can quickly and easily change the APN profile data, thereby saving system development and maintenance time. Improve efficiency.
在一实施方式中,当APN数据的格式与预设格式不匹配时,按照预设策略对APN数据进行处理,进而将APN数据的格式转换为预设格式。In an embodiment, when the format of the APN data does not match the preset format, the APN data is processed according to the preset policy, and then the format of the APN data is converted into a preset format.
具体地,可以将APN profile数据分为几种类型,APN数据类型与预设策略之间存在对应关系,其中每种数据类型对应至少一种预设策略。先判断APN数据的数据类型,找到其对应的预设策略,再按照其数据类型所对应的预设策略进行处理,进而将APN数据的格式转换为预设格式,形成具有预设格式的APN数据文件。Specifically, the APN profile data may be classified into several types, and the APN data type and the preset policy have a corresponding relationship, where each data type corresponds to at least one preset policy. First, determine the data type of the APN data, find the corresponding preset policy, and then process according to the preset policy corresponding to the data type, and then convert the format of the APN data into a preset format to form the APN data with the preset format. file.
在一实施方式中,预设策略可以是利用拼接函数在字串中插入新的字串或特殊符号。例如,将APN profile列表文件保存为Excel格式,采用EXCEL的拼接工具函数CONCATENATE对数据进行函数拼接,使用该函数自由的横竖向拼接相同列或者相同行的方法,在行列的末行形成需要的数据格式。In an embodiment, the preset strategy may be to insert a new string or special symbol into the string using a splicing function. For example, the APN profile list file is saved in Excel format, and the data is spliced using EXCEL's splicing tool function CONCATENATE. The function is used to freely splicing the same column or the same row in the horizontal and vertical directions to form the required data at the end of the row and column. format.
在一实施方式中,该方法可用于将已经在其他系统中维护的APN profile列表数据快速集成到Android系统、ISO系统、塞班系统或Windows系统中。也可以用于在智能设备进入不同国家和地区时对APN数据的适应性修改。In an embodiment, the method can be used to quickly integrate APN profile list data that has been maintained in other systems into an Android system, an ISO system, a Symbian system, or a Windows system. It can also be used to adapt to APN data when smart devices enter different countries and regions.
在一应用场景中,该方法可用于将已经在其他系统中维护的APN profile列表数据快速集成到Android系统中;其中,预设格式为Android系统标准格式,该方法具体包括如下步骤:In an application scenario, the method can be used to quickly integrate the APN profile list data that has been maintained in other systems into the Android system. The preset format is the Android system standard format, and the method includes the following steps:
选择已有的APN profile列表文件,其中APN profile列表文件为Excel格式。Select an existing APN profile list file, where the APN profile list file is in Excel format.
解析APN列表文件,将所有数据读入内存中。Parse the APN list file and read all the data into memory.
遍历APN列表数据,判断每一项APN数据的格式与Android系统标准格式是否匹配。The APN list data is traversed to determine whether the format of each APN data matches the standard format of the Android system.
若匹配,则可直接插入Android系统的APN profile列表中。If it matches, it can be directly inserted into the APN profile list of the Android system.
若不匹配,则将APN数据的格式转换为Android系统标准格式后再插入Android系统的APN profile列表中。If it does not match, the format of the APN data is converted into the Android system standard format and then inserted into the APN profile list of the Android system.
其中,将APN数据的格式转换为Android系统标准格式包括:The format of converting the APN data format into the Android system standard format includes:
判断APN数据的数据类型,找到该数据类型所对应的预设策略,按照预设策略对APN数据进行处理,进而将APN数据的格式转换为Android系统标准格式,然后再插入Android系统的APN profile列表中。Determine the data type of the APN data, find the preset policy corresponding to the data type, process the APN data according to the preset policy, convert the format of the APN data into the standard format of the Android system, and then insert the APN profile list of the Android system. in.
例如,在Android系统标准格式中,公共陆地移动网络号码(Public Land Mobile Network,PLMN)是由移动国家码(Mobile Country Code,MCC)和移动网络号码(Mobile Network Code,MNC)组成的。具体地,将MCC中的前三位和MNC中的后两位拼接形成Android系统标准格式中的PLMN。For example, in the Android system standard format, the Public Land Mobile Network (PLMN) is composed of a Mobile Country Code (MCC) and a Mobile Network Code (MNC). Specifically, the first three bits in the MCC and the last two bits in the MNC are spliced to form a PLMN in the standard format of the Android system.
遍历所有数据后形成具有Android系统标准格式的APN数据文件,具体可以是apns-conf.xml文件。After traversing all the data, an APN data file with a standard format of the Android system is formed, which may be an apns-conf.xml file.
通过上述方法可自动生成所需文件,无需人工修改,提高效率。Through the above method, the required files can be automatically generated without manual modification, thereby improving efficiency.
请参阅图2,图2是本申请智能设备一实施方式的结构示意图。本申请提供一种智能设备,该智能设备包括处理器201和存储器202,处理器201耦接存储器202,处理器201在工作时能够实现上述方法中的步骤,具体方法步骤请参照上述方法实施方式中的描述,在此不再赘述。Please refer to FIG. 2. FIG. 2 is a schematic structural diagram of an embodiment of a smart device according to the present application. The present application provides a smart device, which includes a processor 201 and a memory 202. The processor 201 is coupled to the memory 202. The processor 201 can implement the steps in the foregoing method when working. For the specific method steps, refer to the foregoing method implementation manner. The description in the description will not be repeated here.
其中,该智能设备为智能手机、平板电脑、手提电脑、智能电视、智能手环、智能手表等。Among them, the smart device is a smart phone, a tablet computer, a laptop computer, a smart TV, a smart bracelet, a smart watch, and the like.
请参阅图3,图3是本申请具有存储功能的装置一实施方式的结构示意图。本申请提供一种具有存储功能的装置30,其上存储有程序数据301,其中,程序数据301被处理器执行时实现上述方法中的步骤,具体方法步骤请参照上述方法实施方式中的描述,在此不再赘述。Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an apparatus having a storage function according to the present application. The present application provides a device 30 having a storage function, on which program data 301 is stored, wherein the program data 301 is executed by the processor to implement the steps in the foregoing method. For the specific method steps, refer to the description in the foregoing method embodiment. I will not repeat them here.
本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions. All or part of the steps of the method of the various embodiments of the present application are performed by a computer device (which may be a personal computer, server, or network device, etc.) or a processor. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above description is only the embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of this application.

Claims (17)

  1. 一种APN数据格式的转换方法,其中,所述方法包括:A method for converting an APN data format, wherein the method includes:
    获取APN数据;Obtain APN data;
    判断所述APN数据的格式与预设格式是否匹配;Determining whether the format of the APN data matches a preset format;
    若不匹配,则将所述APN数据按照其数据类型所对应的预设策略进行处理,进而将所述APN数据的格式转换为所述预设格式;If the data is not matched, the APN data is processed according to a preset policy corresponding to the data type, and the format of the APN data is converted into the preset format.
    其中,所述APN数据类型与所述预设策略之间存在对应关系,且每种数据类型对应至少一种所述预设策略;There is a corresponding relationship between the APN data type and the preset policy, and each data type corresponds to at least one of the preset policies;
    所述预设策略为利用拼接函数在字串中插入新的字串或特殊符号。The preset strategy is to insert a new string or special symbol into the string by using a splicing function.
  2. 根据权利要求1所述的方法,其中,按照预设策略对所述APN数据进行处理,进而将所述APN数据的格式转换为所述预设格式之前包括:The method according to claim 1, wherein the processing of the APN data according to a preset policy, and further converting the format of the APN data into the preset format, comprises:
    判断所述APN数据的数据类型。Determining the data type of the APN data.
  3. 根据权利要求1所述的方法,其中,所述预设格式为Android系统标准格式。The method of claim 1, wherein the preset format is an Android system standard format.
  4. 根据权利要求3所述的方法,其中,所述APN数据包括移动国家码和移动网络号码,所述预设策略包括:The method of claim 3, wherein the APN data comprises a mobile country code and a mobile network number, the preset policy comprising:
    将所述移动国家码的前三位和所述移动网络号码中的后两位拼接形成所述Android系统标准格式中的公共陆地移动网络号码。The first three digits of the mobile country code and the last two digits of the mobile network number are spliced to form a public land mobile network number in the standard format of the Android system.
  5. 根据权利要求1所述的方法,其中,将所述APN数据的格式转换为所述预设格式之后包括:The method of claim 1, wherein converting the format of the APN data to the preset format comprises:
    形成具有所述预设格式的APN数据文件。An APN data file having the preset format is formed.
  6. 一种APN数据格式的转换方法,其中,所述方法包括:A method for converting an APN data format, wherein the method includes:
    获取APN数据;Obtain APN data;
    判断所述APN数据的格式与预设格式是否匹配;Determining whether the format of the APN data matches a preset format;
    若不匹配,则将所述APN数据的格式转换为所述预设格式。If not, the format of the APN data is converted to the preset format.
  7. 根据权利要求6所述的方法,其中,将所述APN数据的格式转换为所述预设格式包括:The method of claim 6, wherein converting the format of the APN data to the preset format comprises:
    按照预设策略对所述APN数据进行处理,进而将所述APN数据的格式转换为所述预设格式。The APN data is processed according to a preset policy, and then the format of the APN data is converted into the preset format.
  8. 根据权利要求7所述的方法,其中,所述APN数据类型与所述预设策略之间存在对应关系,其中每种数据类型对应至少一种所述预设策略,所述方法包括:The method of claim 7, wherein the APN data type and the preset policy have a corresponding relationship, wherein each data type corresponds to at least one of the preset policies, and the method includes:
    将所述APN数据按照其数据类型所对应的预设策略进行处理,进而将所述APN数据的格式转换为所述预设格式。The APN data is processed according to a preset policy corresponding to the data type, and then the format of the APN data is converted into the preset format.
  9. 根据权利要求8所述的方法,其中,按照预设策略对所述APN数据进行处理,进而将所述APN数据的格式转换为所述预设格式之前包括:The method according to claim 8, wherein the processing of the APN data according to a preset policy, and further converting the format of the APN data into the preset format, comprises:
    判断所述APN数据的数据类型。Determining the data type of the APN data.
  10. 根据权利要求6所述的方法,其中,所述预设策略为利用拼接函数在字串中插入新的字串或特殊符号。The method of claim 6 wherein said predetermined strategy is to insert a new string or special symbol in the string using a stitching function.
  11. 根据权利要求6所述的方法,其中,所述预设格式为Android系统标准格式。The method of claim 6, wherein the preset format is an Android system standard format.
  12. 根据权利要求11所述的方法,其中,所述APN数据包括移动国家码和移动网络号码,所述预设策略包括:The method of claim 11, wherein the APN data comprises a mobile country code and a mobile network number, the preset policy comprising:
    将所述移动国家码的前三位和所述移动网络号码中的后两位拼接形成所述Android系统标准格式中的公共陆地移动网络号码。The first three digits of the mobile country code and the last two digits of the mobile network number are spliced to form a public land mobile network number in the standard format of the Android system.
  13. 根据权利要求6所述的方法,其中,将所述APN数据的格式转换为所述预设格式之后包括:The method of claim 6, wherein converting the format of the APN data to the preset format comprises:
    形成具有所述预设格式的APN数据文件。An APN data file having the preset format is formed.
  14. 一种智能设备,其中,所述智能设备包括处理器和存储器,所述处理器耦接所述存储器,所述处理器在工作时执行指令,能够对APN数据格式进行转换,其中,所述处理器用于:A smart device, wherein the smart device includes a processor and a memory, the processor is coupled to the memory, and the processor executes instructions during operation to convert an APN data format, wherein the processing Used for:
    获取APN数据;Obtain APN data;
    判断所述APN数据的格式与预设格式是否匹配;Determining whether the format of the APN data matches a preset format;
    若不匹配,则将所述APN数据的格式转换为所述预设格式。If not, the format of the APN data is converted to the preset format.
  15. 根据权利要求14所述的智能设备,其中,所述处理器还用于:The smart device of claim 14, wherein the processor is further configured to:
    将所述APN数据按照其数据类型所对应的预设策略进行处理,进而将所述APN数据的格式转换为所述预设格式;其中,所述APN数据类型与所述预设策略之间存在对应关系,其中每种数据类型对应至少一种所述预设策略。The APN data is processed according to a preset policy corresponding to the data type, and the format of the APN data is converted into the preset format; wherein the APN data type exists between the preset policy and the preset policy. Corresponding relationship, wherein each data type corresponds to at least one of the preset policies.
  16. 根据权利要求14所述的智能设备,其中,所述智能设备为Android系统的智能设备。The smart device of claim 14, wherein the smart device is a smart device of an Android system.
  17. 根据权利要求16所述的智能设备,其中,所述预设格式为Android系统标准格式;所述APN数据包括移动国家码和移动网络号码,所述预设策略包括:The smart device according to claim 16, wherein the preset format is an Android system standard format; the APN data includes a mobile country code and a mobile network number, and the preset policy includes:
    将所述移动国家码的前三位和所述移动网络号码中的后两位拼接形成所述Android系统标准格式中的公共陆地移动网络号码。The first three digits of the mobile country code and the last two digits of the mobile network number are spliced to form a public land mobile network number in the standard format of the Android system.
PCT/CN2018/114015 2017-11-09 2018-11-05 Apn data format conversion method, smart device, and storage apparatus WO2019091355A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711100964.3 2017-11-09
CN201711100964.3A CN108038092A (en) 2017-11-09 2017-11-09 A kind of conversion method, intelligent terminal and the storage device of APN data formats

Publications (1)

Publication Number Publication Date
WO2019091355A1 true WO2019091355A1 (en) 2019-05-16

Family

ID=62093270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/114015 WO2019091355A1 (en) 2017-11-09 2018-11-05 Apn data format conversion method, smart device, and storage apparatus

Country Status (2)

Country Link
CN (1) CN108038092A (en)
WO (1) WO2019091355A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038092A (en) * 2017-11-09 2018-05-15 捷开通讯(深圳)有限公司 A kind of conversion method, intelligent terminal and the storage device of APN data formats

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895832A (en) * 2010-04-30 2010-11-24 中兴通讯股份有限公司 Method and device for configuring access point name and application message and mobile terminals
CN103813295A (en) * 2012-11-13 2014-05-21 中兴通讯股份有限公司 Method and device for automatically configuring and updating access point name parameters
CN105138500A (en) * 2015-08-10 2015-12-09 闻泰通讯股份有限公司 Method for importing access point name (APN) by EXCEL splicing grammar
CN108038092A (en) * 2017-11-09 2018-05-15 捷开通讯(深圳)有限公司 A kind of conversion method, intelligent terminal and the storage device of APN data formats

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610277B (en) * 2008-06-18 2012-07-04 中兴通讯股份有限公司 Method for processing information transmission
CN102148876A (en) * 2011-05-10 2011-08-10 中国联合网络通信集团有限公司 Access point switching method and device on iOS
CN103491135B (en) * 2013-09-02 2017-04-19 用友网络科技股份有限公司 Device and method for conducting self-matching on data formats
CN103559171A (en) * 2013-11-04 2014-02-05 北京锐安科技有限公司 Data format conversion method and device for use in network application
US9374772B2 (en) * 2014-06-27 2016-06-21 General Motors Llc Telematics support for mobile wireless network service swapping

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895832A (en) * 2010-04-30 2010-11-24 中兴通讯股份有限公司 Method and device for configuring access point name and application message and mobile terminals
CN103813295A (en) * 2012-11-13 2014-05-21 中兴通讯股份有限公司 Method and device for automatically configuring and updating access point name parameters
CN105138500A (en) * 2015-08-10 2015-12-09 闻泰通讯股份有限公司 Method for importing access point name (APN) by EXCEL splicing grammar
CN108038092A (en) * 2017-11-09 2018-05-15 捷开通讯(深圳)有限公司 A kind of conversion method, intelligent terminal and the storage device of APN data formats

Also Published As

Publication number Publication date
CN108038092A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
TWI550417B (en) Data migration method and device
TW201738825A (en) Method and device for outputting risk information and constructing risk information
US11003442B2 (en) Application programming interface documentation annotation
US9811605B2 (en) Methods, apparatuses and computer program products for automated learning of data models
US10496999B2 (en) Method and apparatus of controlling network payment
US20110106853A1 (en) Declarative model security pattern
WO2018149138A1 (en) Wireless fidelity (wi-fi) connection method and related product
CN108416580A (en) Account checking method, account checking apparatus and electronic equipment
WO2014180145A1 (en) Methods and systems for connecting a mobile device to a network
CN105528399B (en) Multi-source terminal parameter data fusion method and device
US20240264931A1 (en) Storage optimization method and apparatus for distributed storage system
CN110659165A (en) Multi-node server automatic testing method and device
CN105488210A (en) Batch data matching method and device
WO2019091355A1 (en) Apn data format conversion method, smart device, and storage apparatus
CN110222046B (en) List data processing method, device, server and storage medium
CN113626438B (en) Data table management method, device, computer equipment and storage medium
CN110955712A (en) Development API processing method and device based on multiple data sources
CN110780855A (en) Method, device and system for uniformly managing and controlling interface
CN106528066B (en) Business process operation method and device
CN104778252A (en) Index storage method and index storage device
WO2021107760A1 (en) System and method for dynamically processing data into a knowledge base repository
CN105656683A (en) Method and device for terminal type identification
CN107562790B (en) Method and system for realizing batch warehousing of data processing
CN113609822B (en) Cross-service tree data conversion method and related equipment
JP2018535495A (en) Application user interface automatic test method, electronic device, system, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18875968

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18875968

Country of ref document: EP

Kind code of ref document: A1