Configuration file processing method, electronic device, and computer program product
Patent Information
- Application Number
- CN202610727429.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-25
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]本申请实施例提供了一种配置文件处理方法、电子设备及计算机程序产品,以至少解决相关设备依赖预置的引导配置文件联网、部署灵活性不足的问题
[0008] In this embodiment, in response to the connection between the interface of the first device and the second device, the first device is set to a first mode, which is the mode for the first device to obtain external network connections. In the first mode, the first device is controlled to obtain network parameters through the second device, and establish a communication connection with the service platform based on the network parameters; the first device is also controlled to obtain or update configuration files from the service platform. This embodiment can obtain or update configuration files in various scenarios with poor network conditions, improving the flexibility of device deployment.
Smart Images

Figure CN122602188A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a configuration file processing method, electronic device, and computer program product. Background Technology
[0002] In the activation process of communication identity / payment cards, such as those using a Subscriber Identity Module (SIM) or embedded SIM (eSIM), the device typically needs to temporarily access the cellular network using a pre-set bootstrap profile (also known as a "seed number") to connect to a remote server and complete the download and activation of user identity information. However, this limitation restricts the device's applicability in scenarios where it cannot activate autonomously, such as when it is in an area with no signal or when the pre-set profile is invalid. Summary of the Invention
[0003] This application provides a configuration file processing method, an electronic device, and a computer program product to at least solve the problems of related devices relying on pre-installed boot configuration files for networking and insufficient deployment flexibility.
[0004] To at least solve the aforementioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide a configuration file processing method, including: responding to the connection between the interface of a first device and a second device, setting the first device to a first mode, wherein the first mode is a mode in which the first device obtains an external network connection; in the first mode, controlling the first device to obtain network parameters through the second device, and establishing a communication connection with a service platform based on the network parameters; and controlling the first device to obtain or update a configuration file from the service platform.
[0005] In a second aspect, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the method described in the first aspect above.
[0006] Thirdly, embodiments of this application provide a computer-readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect above.
[0007] Fourthly, embodiments of this application provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the steps of the method described in the first aspect above.
[0008] In this embodiment, in response to the connection between the interface of the first device and the second device, the first device is set to a first mode, which is the mode for the first device to obtain external network connections. In the first mode, the first device is controlled to obtain network parameters through the second device, and establish a communication connection with the service platform based on the network parameters; the first device is also controlled to obtain or update configuration files from the service platform. This embodiment can obtain or update configuration files in various scenarios with poor network conditions, improving the flexibility of device deployment.
[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0011] Figure 1 A flowchart illustrating a configuration file processing method provided in some embodiments of this application is shown; Figure 2 This application shows a schematic diagram illustrating the connection between a first device and a second device according to some embodiments; Figure 3 The present application provides a schematic diagram of the structure of an eSIM number allocation system according to some embodiments. Figure 4 A flowchart illustrating a configuration file processing method provided in other embodiments of this application is shown; Figure 5 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0012] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0013] During the activation process of the user identification module, most devices access the network through a pre-installed bootstrap profile, download the profile, and activate the user's identity information. This method relies on the user identification module's own cellular network for connectivity and requires seeding for network access, which cannot solve the limitations caused by excessive data consumption and signal blind spots.
[0014] To address at least the aforementioned problems in the activation process of the user identification module, this application provides a configuration file processing method. When the interface of a first device is connected to a second device, the method sets the first device to a first mode. In this first mode, the first device obtains network parameters through the second device, establishes a communication connection with a service platform based on the network parameters, and obtains or updates the configuration file from the service platform. This allows for configuration file acquisition or updating via an external network when cellular signal is poor or the preset configuration file is invalid. It also allows for configuration file acquisition or updating via an external network when Bluetooth or Wi-Fi modules are not configured or are malfunctioning. This saves resources on preset boot configuration files, reduces operating costs, and is applicable to various scenarios with poor network conditions, improving deployment flexibility.
[0015] Please see Figure 1 , Figure 1 The diagram illustrates a flowchart of a configuration file processing method provided in some embodiments of this application. This method can be executed by a first device or by other devices capable of controlling the first device. The first device can be a terminal device with a built-in SIM or eSIM, such as an IoT terminal, embedded communication device, monitoring terminal, vehicle-mounted device, wearable device, etc. Figure 1 As shown, the method 100 may include the following steps: Step 110: In response to the connection between the interface of the first device and the second device, the first device is set to a first mode, which is the mode in which the first device obtains network access from the connected device.
[0016] The aforementioned interfaces may include one or more, and their types may be at least one of those interfaces capable of connection, such as USB Type-C or USB-A. This approach supports multiple connection methods, is compatible with the physical connection requirements of different second devices, and enhances the access adaptability of the first device in complex application scenarios. Simultaneously, this hardware architecture provides the physical foundation for "network-borrowed activation," a prerequisite for achieving multi-path network acquisition.
[0017] In one exemplary embodiment, such as Figure 2As shown, the connection status between the interface 211 of the first device 210 and the second device 220 can be monitored in real time or periodically. When the connection between the interface 211 of the first device 210 and the second device 220 is detected, the first device 210 is set to a first mode, which is the mode in which the first device obtains network access from the connected device. It can be understood that in this first mode, the first device, as a network terminal or controlled device, can actively establish a network connection with the second device and achieve network access by obtaining network resources allocated by the second device. For example, the second device 220 can be a smart terminal, a personal computer (PC), a router, a customer premises equipment (CPE), or other network devices.
[0018] Step 120: In the first mode, the first device is controlled to obtain network parameters through the second device and establish a communication connection with the service platform based on the network parameters.
[0019] Continuing with the above embodiments, in the first mode described above, the first device 2100 can obtain network parameters such as Internet Protocol (IP) address, subnet mask, and Domain Name System (DNS) service address through the second device 220, and establish a communication connection with the service platform based on these network parameters. For example, the service platform can be a Subscription Manager Data Preparation (SM-DP) + server or platform, which is the core platform for the eSIM remote configuration service.
[0020] Step 130: Control the first device to obtain or update the configuration file from the aforementioned service platform.
[0021] Continuing with the above embodiments, the first device 210 accesses the SM-DP+ server via the public network to obtain or update the configuration file. This configuration file includes the Access Point Name (APN) provided by the operator, security certificate, configuration information, etc. By obtaining and activating the configuration file, the first device 210 can use the operator's network services; it can also manage, delete, add, reset, and update the existing configuration file.
[0022] Through the above steps, configuration files can be obtained or updated via external networks even in situations such as poor cellular signal, invalid pre-configured configuration files, or no Bluetooth or WIFI modules configured. This saves pre-configured configuration file resources, reduces operating costs, and is applicable to various scenarios with poor network conditions, such as laboratories, on-site rescue, batch deployment, basements, tunnels, and factories, thereby improving the flexibility of device deployment.
[0023] Furthermore, compared to other methods of establishing a communication connection with a second device via Bluetooth, WIFI modules, etc., the method provided in this application embodiment has higher stability, security and data transmission rate, and can achieve fully automated operation without manual pairing.
[0024] In some embodiments, before setting the first device to a first mode in step 110 above, in response to the connection between the interface of the first device and the second device, the method may further include: Step 140: Confirm the status of the user identification module configured in the first device.
[0025] For example, the user identification module described above can be a physical SIM card or an eSIM card.
[0026] In an exemplary embodiment, after the first device 210 is powered on, it first performs hardware self-test, firmware loading, system initialization, and other operations to ensure that the core functions operate normally and prepare for subsequent processes. It then confirms the status of the user identification module configured in the first device, for example, whether the user identification module is activated for number distribution. Based on the status of the user identification module, it sets the operating mode of the first device. In step S140, operation S150-1 or operation S150-2 can be performed independently.
[0027] Step 150-1: In response to the user identification module being inactive, the first device is set to the first mode.
[0028] Continuing with the above embodiments, when the user identification module is in an inactive state, the first device 210 is set to the first mode (also known as the main mode). In the main mode, the first device 210 acts as a network client and receives external network data for its own activation, i.e., "activation by borrowing the network".
[0029] Step 150-2: In response to the user identification module being in an active state, the first device is set to the second mode, which is the mode in which the first device provides functional services.
[0030] Continuing with the above embodiments, when the user identification module is in an active state, the first device 210 is set to a second mode (also known as slave mode). In slave mode, the first device 210 acts as a network server and can provide external services such as Wi-Fi, USB tethering, data transmission, charging, network connection management, resource sharing, or communication functions.
[0031] By following the steps above, the working mode of the first device can be set according to the status of the user identification module, which can enable flexible switching between the two modes. When the user identification module is not activated, it is beneficial to improve the processing efficiency of the configuration file.
[0032] In some embodiments, step 120 above, controlling the first device to obtain network parameters through the second device, includes: Step 120-1: The first device enumerates network interfaces to the second device through the interface protocol.
[0033] The interface protocols include the Remote Network Driver Interface Specification (RNDIS) and the Ethernet Control Model (ECM).
[0034] In some embodiments, the first device 210 enumerates RNDIS or ECM network interfaces to the second device 220 via an interface protocol to enable Ethernet communication between the first device 210 and the second device 220.
[0035] Step 120-2: Obtain network parameters through the network interface.
[0036] Continuing with the above embodiments, network parameters such as IP address, subnet mask, and DNS service address are obtained from the connected second device 220 through the network interface described above.
[0037] Through the above steps, the second device can identify the first device as a network client, establish a communication connection, and assign network parameters to the first device, enabling the first device to have network communication capabilities.
[0038] In some embodiments, network parameters include an Internet Protocol (IP) address; the method of obtaining the IP address includes: (1) Obtain the IP address assigned to the first device by the second device through the Dynamic Host Configuration Protocol. In this embodiment of the application, the first device 210 obtains the IP address from the connected second device 220 through the network interface. For example, the IP address can be automatically obtained through the Dynamic Host Configuration Protocol (DHCP).
[0039] (2) In response to the configuration operation of the static IP address, the IP address is obtained. In this embodiment of the application, the static IP address of the first device 210 can also be manually configured.
[0040] The above configuration method can be used to obtain IP addresses and establish a reliable communication connection between the first device and the second device.
[0041] In some embodiments, step 120 above, establishing a communication connection with the service platform based on network parameters, includes: Based on network parameters, attempt to access the Internet; upon successful Internet access, establish a communication connection between the first device and the service platform via the Internet.
[0042] In one exemplary embodiment, after acquiring network parameters, the first device 210 has local network communication capabilities but has not yet connected to the public network. The first device 210 attempts to access the Internet based on the network parameters. For example, it can determine the network connectivity status by pinging a public IP address or DNS server, and perform the following operations based on the network connectivity status: (1) If the network is poor, retry repeatedly until the connection is successful or a timeout is determined (or determine whether the connection has failed based on the number of connection attempts, etc.). If the Internet access times out, a prompt message such as "Network connection timed out" or "Network unavailable" can be sent to prompt the user to obtain or update the configuration file through other alternative methods. Alternatively, the configuration file can be obtained or updated automatically through other alternative methods, such as requesting the service platform to obtain or update the configuration file through a pre-set boot configuration file.
[0043] (2) If the network is working properly, a communication connection between the first device 210 and the service platform is established based on the Internet.
[0044] By following the steps above, invalid connections between the first device and the service platform can be avoided, ensuring the reliability of subsequent configuration file acquisition or updates.
[0045] In some embodiments, after obtaining network parameters through the second device in step 120, the method further includes: Unable to establish a communication connection with the service platform based on network parameters, the device requests the service platform to obtain or update the configuration file based on the pre-set boot configuration file in the first device.
[0046] In an exemplary embodiment, after obtaining network parameters, the first device 210 can automatically detect the availability of the external network through built-in control logic. If a communication connection with the service platform cannot be established based on the network parameters, the device 210 requests the service platform to obtain or update the configuration file based on the pre-set bootstrap profile in the first device 210.
[0047] By following the steps described above, when a communication connection with the service platform cannot be established based on network parameters, timely networking via a pre-configured boot configuration file ensures the reliability of configuration file acquisition or updates. Simultaneously, external networks accessed via interfaces are prioritized for configuration file acquisition or updates; the pre-configured boot configuration file is only used as a backup path when no external network is available. This method enables adaptive selection of the configuration file acquisition or update path, improving the activation success rate and environmental adaptability of the user identification module, and avoiding activation failures due to signal blind spots.
[0048] In addition, it reduces the frequency of calling the pre-configured boot configuration file, effectively extending its life cycle, reducing operator quota consumption, significantly reducing the long-term operating cost of the device, and generating significant economic benefits and green operation and maintenance value.
[0049] In some embodiments, after controlling the first device to obtain or update the configuration file from the service platform in step 130 above, the method further includes: The user identification module is activated based on the configuration file.
[0050] In an exemplary embodiment, after obtaining or updating the configuration file, the first device 210 activates the configuration file to enable the first device 210 to use the network services of the operator, thereby completing the activation of the user identification module.
[0051] In some embodiments, if the user identification module is successfully activated, the first device may be switched from a first mode to a second mode. In the second mode, the first device enters a service provisioning state and can provide network connectivity. The service method includes at least one of the following: (1) Wi-Fi hotspot: The device enables the Wi-Fi AP function, allowing other devices (such as mobile phones and tablets) to connect to the Internet.
[0052] (2) USB network sharing: Provides network access for connected devices via USB interface.
[0053] At this point, the first device 210 has become a "mobile router" or "network sharing center".
[0054] This method allows the same device to have dual capabilities: "network borrowing activation" and "network provisioning." In the first mode, the device acts as a network client, receiving external network signals for activation; in the second mode, it acts as a network server, providing Wi-Fi or USB network sharing. The same hardware can switch between these roles, significantly improving device reuse and deployment efficiency, and solving the problem of fixed functions and inability to perform multiple functions on a single device.
[0055] In some embodiments, in response to the first device's interface not being connected to an external second device, the first device may enter a standby or hibernation state.
[0056] In some embodiments, the method further includes: displaying a target interface on the first device, the target interface comprising at least one of the following: (1) Mode indication information for indicating the current working mode of the first device, the working mode including a first mode and a second mode.
[0057] (2) Network status indication information used to indicate the network connection status of the first device.
[0058] (3) Interface status indication information used to indicate the connection status of the interface.
[0059] (4) Equipment indication information used to indicate information about a connected second device.
[0060] (5) Activation history of the user identification module configured in the first device.
[0061] (6) Activation control used to trigger the reactivation of the user identification module.
[0062] In one exemplary embodiment, a target interface, such as a network management interface, is displayed on the first device 210. This interface can display the current operating mode of the first device, such as the first mode or the second mode described above; network connection status, such as pending activation, connected to the network, downloading, etc.; interface connection status, such as whether the interface is connected; information about connected second devices; activation history of the SIM or eSIM; and an activation control for triggering the reactivation of the SIM or eSIM to manually trigger its reactivation. In practical applications, different device status icons can be used to indicate the aforementioned operating mode, network status, interface status, and other indication information.
[0063] In other exemplary embodiments, the content of the target interface described above can also be displayed through other connected devices, or can be played through audio so that users can understand or operate related functions through audio.
[0064] This method facilitates operation by users or relevant technicians, improving the ease of use of the device.
[0065] In some embodiments, the above method further includes: (1) Based on the working mode of the first device, control the indication state of the first indicator device on the first device.
[0066] (2) Based on the network connection status of the first device, control the indication status of the second indicator device on the first device.
[0067] (3) Based on the connection status of the interface, control the indication status of the third indicator on the first device.
[0068] In an exemplary embodiment, the first, second, and third indicating devices described above can be physical indicator lights, or devices for indication such as speakers or displays. For example, different physical indicator lights can be used to distinguish the device's operating status. A red-green dual-color LED1 is used to indicate the power status and operating mode; a red light indicates the device is in master mode, and a green light indicates the device is in slave mode. A blue LED2 is used to indicate the network connection status; a flashing light indicates that the SIM or eSIM is activating its network connection, while a solid light indicates that the SIM or eSIM has been successfully activated. A yellow LED3 is used to indicate the interface connectivity status; an illuminated indicator light indicates that the interface is connected, while an off indicator light indicates that the interface is not connected.
[0069] This method allows for an intuitive and visual presentation of the first device's operating mode, network connection status, and interface connection status, facilitating staff to quickly confirm the device's operating status and efficiently complete on-site debugging, troubleshooting, and daily operation and maintenance management.
[0070] In some embodiments, the method further includes: establishing a communication connection with a first device via an application running on a target device; the target device includes a first device 210 and a second device 220, and the application is used to perform at least one of the following: (1) In response to receiving a mode switching command, the first device is controlled to switch between a first mode and a second mode, wherein the second mode is a mode that provides network connection services to the first device.
[0071] In one exemplary embodiment, when it is detected that the first device 210 needs to switch modes, a prompt may be displayed on the target interface of the first device 210: "Please allow the device to switch to the primary mode, i.e., ESIM numbering mode, to continue configuration". When a mode switching command sent by the user in response to the above prompt is received, the first device 210 is controlled to switch between the first mode and the second mode.
[0072] (2) Display the identification scanning interface and establish the binding relationship between the application and the first device by scanning the identification information of the first device.
[0073] In an exemplary embodiment, the aforementioned identification information may be a QR code, barcode, device serial number, etc., and the first device 210 can display an identification scanning interface. By scanning and binding the first device through this identification scanning interface, a binding relationship between the application and the first device 210 is established, enabling remote management of SIM or eSIM in multiple devices.
[0074] (3) Display the activation path of the user identification module configured in the first device.
[0075] In one exemplary embodiment, the activation path of the user identification module configured in the first device 210 can be displayed on the application bound to the first device 210, for example, by activating it through the network via the second device 220, or by activating it using a pre-set boot configuration file in the first device 210.
[0076] (4) Send a status query command to the first device and receive the status information of the configuration file returned by the first device.
[0077] In one exemplary embodiment, an application can send a status query command to the first device 210 and receive status information of the configuration file returned by the first device 210, such as downloading or downloading completed.
[0078] (5) In response to the first device being in the first mode, send a log export command to the first device and receive the operation log of the first device.
[0079] In one exemplary embodiment, when the first device 210 is in the first mode, a log export command is sent to the first device 210, and the operation log of the first device is received. The operation log includes AT command execution records, IP acquisition status, SM-DP+ connection results, etc., to facilitate troubleshooting.
[0080] In some possible implementations, if the SIM or eSIM is already activated, the download process can be prevented from being triggered again. The application can also prompt: "The current eSIM is activated. If you need to change it, please perform the 'wipe configuration' operation first." If the first device fails to obtain an IP address within 60 seconds after connecting the interface to the second device, the application can also prompt: "No valid network detected. Please confirm that the upstream device has enabled the Internet sharing function."
[0081] In an exemplary embodiment, the above-described configuration file processing method can be executed in a data card eSIM number issuance system. The following description uses the execution of the above-described configuration file processing method in a data card eSIM number issuance system as an example.
[0082] Figure 3 The figure shows a schematic diagram of the structure of an eSIM number release system provided in some embodiments of this application. As shown in the figure, the eSIM number release system 300 may include an eSIM chip 310, a data card main processing chip 320, a network protocol stack module 330, a mode switching control module 340, and a dual USB interface module 350.
[0083] The eSIM chip 310 incorporates an international standard embedded universal integrated circuit card (eUICC) and supports remote configuration.
[0084] The main processing chip 320 of the data card runs embedded operating systems such as Linux and OpenWrt, coordinating the work of various modules. This main processing chip 320 of the data card is used to execute... Figure 1 The methods provided in the illustrated embodiments achieve the functions and beneficial effects of the methods described in the preceding method embodiments, and will not be repeated here.
[0085] The network protocol stack module 330 supports two types of USB network protocols: RNDIS for Windows platforms and ECM for Android and Linux platforms.
[0086] The mode switching control module 340 is used to acquire the input mode switching command and switch the working mode of the first device according to the mode switching command.
[0087] The dual USB interface module 350 supports simultaneous connection of two second devices, or selection of either interface for activation, power supply, or communication. Understandably, when two second devices are connected simultaneously, one interface can be selected for eSIM activation.
[0088] In addition, the system also includes a storage unit for storing activation logs, default IP addresses, configuration files, etc.
[0089] In another exemplary embodiment, taking the first device described above as a data card as an example, such as... Figure 4 As shown, the above configuration file processing method may include the following steps: Step 401: Power on and initialize the data card.
[0090] After powering on, the data card first performs basic hardware self-tests, firmware loading, and system initialization. This stage ensures that core functions are working properly and prepares for subsequent processes.
[0091] Step 402: Determine whether the eSIM (i.e., the aforementioned user identification module) has not been activated and issued a number.
[0092] Step 403: If the eSIM has been activated and numbered, then set it to slave mode (i.e., the second mode mentioned above).
[0093] Step 404: If the eSIM is not activated and assigned a number (i.e., it has not yet completed operator authentication, has not been assigned a number, or has not been activated for service), the device will not be able to directly access the public network. Determine whether the data card device's interface is connected to an external device.
[0094] Step 405: If the data card interface is connected to an external device (i.e., the second device mentioned above), then it is set to the main mode (i.e., the first mode mentioned above). The external device is a mobile phone, PC, CPE, etc.
[0095] Optionally, if the data card interface is not connected to an external device, it enters standby or hibernation mode.
[0096] Step 406: The data card enumerates network interfaces to external devices through the interface protocol.
[0097] Step 407: Obtain network parameters from external devices via the network interface.
[0098] Step 408: Based on network parameters, determine whether internet access is possible.
[0099] Step 409: If the Internet is accessible, establish a communication connection between the data card and the SM-DP+ service platform server via the Internet to access the SM-DP+ server.
[0100] Step 410: Obtain or update the configuration file from the SM-DP+ server.
[0101] Step 411: Switch the mode to slave mode (i.e., the second mode mentioned above).
[0102] Step 412 provides various functional services to external users, including Wi-Fi or USB tethering, data transfer, charging, network connection management, resource sharing, and communication.
[0103] In this embodiment, the data card is proposed to connect to an external device as a slave device via an interface in "master mode," and to obtain and update the configuration file by connecting to an SM-DP+ server via an external network, without needing to enable the eSIM's built-in boot configuration file. This mechanism breaks through the technical path of related solutions that require a cellular connection to initiate remote configuration, and achieves "zero-data activation" of the eSIM.
[0104] Furthermore, by constructing a new eSIM number allocation architecture that supports priority activation via external networks, dynamic mode switching, and intelligent path selection, it not only solves the problems of resource waste, high activation failure rate, and inflexible deployment in related technologies, but also achieves multiple technical effects such as product function upgrades, reduced operating costs, and improved user experience, demonstrating significant technological progress and promising prospects for industrial application.
[0105] Figure 5 This diagram illustrates the hardware structure of an electronic device implementing the embodiments of this application. Referring to the diagram, at the hardware level, the electronic device 500 includes a processor 510, and optionally includes an internal bus 520, a network interface 530, and a memory. The memory may include main memory 541, such as high-speed random-access memory (RAM), and may also include non-volatile memory 542, such as at least one disk storage device. Of course, the electronic device 500 may also include other hardware required for other services.
[0106] The processor 510, network interface 530, and memory can be interconnected via an internal bus 520, which can be an Advanced Microcontroller Bus Architecture (AMIC) bus, Wishbone bus, Open Core Protocol (OCP) bus, Avalon bus, etc. The bus can be categorized as an address bus, data bus, control bus, etc. For ease of illustration, only a single bidirectional arrow is used in this diagram, but this does not imply that there is only one bus or one type of bus.
[0107] The memory stores programs. Specifically, the program may include program code, which includes computer operation instructions. The memory may include main memory 541 and non-volatile memory 542, and provides instructions and data to the processor 510.
[0108] Processor 510 reads the corresponding computer program from non-volatile memory 542 into memory and then runs it, forming a device for locating the target user at the logical level. Processor 510 executes the program stored in memory and specifically performs the following: Figure 1 or Figure 4 The methods disclosed in the embodiments shown achieve the functions and beneficial effects of the methods described in the preceding method embodiments, and will not be repeated here.
[0109] The above is as stated in this application. Figure 1 or Figure 4The methods disclosed in the illustrated embodiments can be applied to or implemented by processor 510. Processor 510 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the hardware of processor 510 or by instructions in software form. The processor 510 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0110] The electronic device 500 can also execute the methods described in the preceding method embodiments and achieve the functions and beneficial effects of the methods described in the preceding method embodiments, which will not be repeated here.
[0111] Of course, in addition to software implementation, the electronic device 500 of this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0112] This application also proposes a computer-readable storage medium that stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform... Figure 1 or Figure 4 The methods disclosed in the embodiments shown achieve the functions and beneficial effects of the methods described in the preceding method embodiments, and will not be repeated here.
[0113] The computer-readable storage medium mentioned above includes read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc.
[0114] Furthermore, embodiments of this application also provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, implement the following process: Figure 1 or Figure 4 The methods disclosed in the embodiments shown achieve the functions and beneficial effects of the methods described in the preceding method embodiments, and will not be repeated here.
[0115] The embodiments of this application can be applied to various scenarios of electronic device collaboration or interconnection, including: collaboration and interconnection between mobile phones and laptops / tablets; collaboration and interconnection between mobile terminals and smart TVs / monitors; collaboration and interconnection between mobile phones or tablets and in-vehicle entertainment systems; collaboration and interconnection between mobile terminals and smart conferencing systems, etc. This satisfies users' diverse needs in smart home, smart office, and smart travel scenarios.
[0116] In summary, the above description is merely a preferred embodiment of this application and does not limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
[0117] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0118] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0119] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0120] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
Claims
1. A configuration file processing method, characterized in that, include: In response to the first device's interface being connected to the second device, the first device is set to a first mode, which is the mode in which the first device obtains network access from the connected device; In the first mode, the first device is controlled to obtain network parameters through the second device, and a communication connection with the service platform is established based on the network parameters; Control the first device to obtain or update the configuration file from the service platform.
2. The method according to claim 1, characterized in that, Before the interface of the first device is connected to the second device and the first device is set to a first mode, the method further includes: Confirm the status of the user identification module configured in the first device; In response to the user identification module being inactive, the first device is set to the first mode; or In response to the user identification module being activated, the first device is set to a second mode, which is the mode in which the first device provides functional services.
3. The method according to claim 1, characterized in that, The control of the first device to obtain network parameters through the second device includes: The first device is controlled to enumerate network interfaces to the second device via an interface protocol; The network parameters are obtained through the network interface.
4. The method according to claim 3, characterized in that, The network parameters include an Internet Protocol (IP) address; the method of obtaining the IP address includes at least one of the following: The IP address assigned to the first device by the second device is obtained through the Dynamic Host Configuration Protocol; In response to a configuration operation for a static IP address, the IP address is obtained.
5. The method according to any one of claims 1 to 4, characterized in that, After controlling the first device to obtain or update the configuration file from the service platform, the method further includes: The user identification module is activated based on the configuration file. In response to determining that the user identification module has been successfully activated, the first device is set to switch from the first mode to the second mode.
6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Displaying a target interface on the first device, the target interface comprising at least one of the following: Mode indication information for indicating the current operating mode of the first device, wherein the operating mode includes a first mode and a second mode; Network status indication information used to indicate the network connection status of the first device; Interface status indication information used to indicate the connection status of the interface; Device indication information used to indicate information about a connected second device; The activation history of the user identification module configured in the first device; An activation control used to trigger the reactivation of the user identification module.
7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the working mode of the first device, control the indication state of the first indicator device on the first device; Based on the network connection status of the first device, control the indication status of the second indicator device on the first device; Based on the connection status of the interface, control the indication status of the third indicator on the first device.
8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: A communication connection is established with the first device via an application running on the target device; the target device includes the first device and the second device, and the application is used to perform at least one of the following: In response to receiving a mode switching command, the first device is controlled to switch between the first mode and the second mode, wherein the second mode is the mode in which the first device provides network connection services; The application displays an identification scanning interface and establishes a binding relationship with the first device by scanning the identification information of the first device. Displays the activation path of the user identification module configured in the first device; Send a status query command to the first device and receive the status information of the configuration file returned by the first device; In response to the first device being in the first mode, a log export command is sent to the first device, and the operation log of the first device is received.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the method as described in any one of claims 1 to 8.
10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the steps of the method as described in any one of claims 1 to 8.