Configuration method of 5G Internet of Things communication card in open-source Gao Mongolia system and related equipment

By performing image burning, identity identification, and access control on the Kaihong controller for 5G IoT communication cards, combined with network configuration, the configuration and verification challenges of 5G IoT communication cards in the HarmonyOS system were solved, achieving seamless connection between the Kaihong controller and the cloud platform.

CN121864591APending Publication Date: 2026-04-14深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
深圳开鸿数字产业发展有限公司
Filing Date
2025-12-05
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The existing HarmonyOS system does not support the configuration and verification of 5G IoT communication cards, which prevents open-source HarmonyOS devices from seamlessly connecting with 5G IoT communication cards.

Method used

By burning a 5G IoT communication card version image onto the Kaihong controller, identity identification, function authorization, and access control are constructed, and network configuration, including static IP configuration, is performed to achieve the connection between the Kaihong controller and the 5G IoT communication card.

Benefits of technology

It realizes the communication connection between the Kaihong controller and the cloud platform, solves the configuration and verification problem of 5G IoT communication cards in the HarmonyOS system, and simplifies the time investment of developers in the application and verification of 5G IoT communication cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121864591A_ABST
    Figure CN121864591A_ABST
Patent Text Reader

Abstract

The invention provides a configuration method of a 5G Internet of Things communication card in an open-source and open-monk system and related equipment. The method comprises the following steps of: burning a 5G Internet of Things communication card version mirror image on an open-shu controller, and constructing an identity label, function authorization and authority control; establishing a connection between the Hongyu controller and a 5G Internet of Things communication card, and performing network configuration of the Hongyu controller; and entering a model management module of the equipment management platform of the Hongyu controller, and performing static IP configuration on the Hongyu controller in a physical model to complete network connection configuration. According to the method and the system provided by the invention, the communication connection between the Hongshu controller and the cloud platform is realized based on the constructed physical model through the basic communication capability deployment of the equipment, the construction of the equipment identity label and the construction of the function authorization and authority control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile communication technology, and in particular to a configuration method, system, device and storage medium for a 5G IoT communication card within the open-source HarmonyOS system. Background Technology

[0002] HarmonyOS provides a complete IoT connectivity solution that supports multiple communication protocols and can seamlessly connect with various IoT devices. However, open-source HarmonyOS devices cannot currently use 5G IoT communication cards. This is because, on the one hand, the hardware requirements, driver support, and system adaptation of 5G IoT communication cards are relatively complex, and on the other hand, open-source HarmonyOS devices do not yet support the configuration and verification of 5G IoT communication cards.

[0003] Therefore, the existing technology needs further improvement. Summary of the Invention

[0004] In view of the shortcomings of the prior art, the purpose of this invention is to provide a configuration method, system, device and storage medium for 5G IoT communication cards in the open source HarmonyOS system, so as to solve the defect that the open source HarmonyOS system does not support the configuration and verification of 5G IoT communication cards in the prior art.

[0005] Firstly, this application provides a configuration method for a 5G IoT communication card within the open-source HarmonyOS system, comprising: The 5G IoT communication card version image is burned into the Kaihong controller, and identity identification, function authorization and access control are constructed; Establish a connection between the Kaihong controller and the 5G IoT communication card, and configure the network of the Kaihong controller. Access the model management module of the device management platform of the Kaihong controller, and perform static IP configuration on the Kaihong controller in the object model to complete the network connection.

[0006] Optionally, the steps of constructing identity identifiers, function authorization, and access control include: Write the device serial number and activation license to the Kaihong controller to establish identity, function authorization and access control.

[0007] Optionally, the steps of establishing a connection between the Kaihong controller and the 5G IoT communication card, and configuring the network of the Kaihong controller, include: Connect the Kaihong controller to the device management platform; Kaihong controller connects to 5G IoT communication card and obtains network configuration information through HDC tool.

[0008] Optionally, the step of configuring the network of the Kaihong controller using the HDC tool includes: Obtain the HDC tool, and verify and install it; Enter the Shell environment and install the network configuration package corresponding to the Kaihong controller.

[0009] Optionally, the step of entering the Shell environment and installing the network configuration package corresponding to the Kaihong controller includes: In the Shell environment, issue a network configuration query command and obtain the device's network connection status based on the returned query information.

[0010] Optionally, static IP configuration is performed on the Kaihong controller in the object model to complete the network configuration steps, including: Access the object model interface of the device management platform and configure the static IP of the Kaihong controller; Locate the Kaihong controller in the device management platform and associate the Kaihong controller with the object model that has been configured with a static IP. Push the static IP from the object model to the Kaihong controller; The Kaihong controller receives and applies the static IP address to complete the network connection.

[0011] Optionally, after the network configuration information is used for network configuration, the method further includes: Enter the Kaihong controller Hdc Shell, query the device's mobile data network IP and perform a Ping operation on the external network to confirm the Kaihong controller's network connection status.

[0012] Secondly, this application provides a configuration system for a 5G IoT communication card within the open-source HarmonyOS system, which includes: The environment building module is used to burn the 5G IoT communication card version image into the Kaihong controller, and to build identity identification, function authorization and access control; The network configuration module is used to establish a connection between the Kaihong controller and the 5G IoT communication card, and to perform network configuration of the Kaihong controller. Access the model management module of the device management platform of the Kaihong controller, and perform static IP configuration on the Kaihong controller in the object model to complete the network connection configuration.

[0013] Thirdly, this application discloses a terminal device, which includes: a processor and a memory, the memory being used to store computer programs, and the processor being used to call and run the computer programs stored in the memory to perform the configuration steps of the 5G IoT communication card in the open-source HarmonyOS system.

[0014] Fourthly, this application also provides a computer-readable storage medium for storing a computer program that causes a computer to execute the steps of the configuration method for the 5G IoT communication card within the open-source HarmonyOS system described above.

[0015] Beneficial effects: This invention provides a configuration method, system, device, and storage medium for a 5G IoT communication card within the open-source HarmonyOS system. The method involves burning a 5G IoT communication card version image onto the HarmonyOS controller, and constructing an identity identifier, function authorization, and access control system. A connection is established between the HarmonyOS controller and the 5G IoT communication card, and network configuration is performed on the HarmonyOS controller. The method then accesses the model management module of the HarmonyOS controller's device management platform and performs static IP configuration on the device model to complete the network connection configuration. The method and system provided by this invention deploy basic device communication capabilities, construct device identity identifiers, build a function authorization and access control system, and realize communication connections between the HarmonyOS controller and the cloud platform based on the constructed device model. Attached Figure Description

[0016] Figure 1 This is a flowchart of the configuration method for a 5G IoT communication card within the open-source HarmonyOS system provided by this invention. Figure 2 This is an example diagram of the Kaihong controller burning the communication card version image in the configuration method provided by this invention; Figure 3 This is a schematic diagram of the display interface of the Kaihong controller inserting a 5G IoT communication card in the configuration method provided by the present invention; Figure 4 This is a command diagram for installing the network configuration package corresponding to the Kaihong controller in the configuration method provided by this invention; Figure 5 This is a command diagram for viewing the Kaihong controller ID in the configuration method provided by this invention; Figure 6 This is a command diagram for viewing the network connection status of the Kaihong controller in the configuration method provided by this invention; Figure 7 This is a command diagram for viewing device status in the configuration method provided by the present invention; Figure 8 This is a diagram of the distributed object model interface in the configuration method provided by this invention; Figure 9 This is a schematic diagram of the parameters of the distributed object model in the configuration method provided by the present invention; Figure 10 This is a schematic diagram of the network connection of the Kaihong controller in the configuration method provided by the present invention; Figure 11This is a schematic diagram of the configuration system for the 5G IoT communication card within the open-source HarmonyOS system provided by this invention. Figure 12 This is a schematic diagram of the terminal device provided by the present invention. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the 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 intended to limit the invention.

[0018] HarmonyOS provides a complete Internet of Things (IoT) connectivity solution, supporting multiple communication protocols such as Wi-Fi, Bluetooth, and Zigbee, enabling seamless connectivity with various IoT devices. However, HarmonyOS terminal devices do not currently widely support 5G IoT communication cards. This is likely due to the complexity of 5G IoT communication cards' hardware requirements, driver support, and system adaptation, causing some HarmonyOS terminal devices to be unable to recognize them. Furthermore, the support for 5G IoT communication cards in open-source HarmonyOS devices is still in its early stages. Although some modules have demonstrated 5G application potential through compatibility testing, a unified and effective verification scheme is still lacking overall.

[0019] To overcome the aforementioned shortcomings, this invention provides a configuration method, system, device, and storage medium for a 5G IoT communication card within the open-source HarmonyOS system. The method involves burning a 5G IoT communication card version image onto the HarmonyOS controller, and constructing an identity identifier, function authorization, and access control system. A connection is established between the HarmonyOS controller and the 5G IoT communication card, and network configuration is performed on the HarmonyOS controller. The method then accesses the model management module of the HarmonyOS controller's device management platform and performs static IP configuration on the device model to complete the network connection configuration. The method and system provided by this invention deploy basic device communication capabilities, construct device identity identifiers, build a function authorization and access control system, and realize communication connections between the HarmonyOS controller and the cloud platform based on the constructed device model.

[0020] The following description, in conjunction with the accompanying drawings, provides a more detailed explanation of the configuration method, system, device, and storage medium for a 5G IoT communication card within the open-source HarmonyOS system provided in this embodiment.

[0021] Firstly, this application provides a configuration method for a 5G IoT communication card within the open-source HarmonyOS system, such as... Figure 1 As shown, it includes: Step S1: Burn the 5G IoT communication card version image to the Kaihong controller, and build identity identification, function authorization and access control.

[0022] First, obtain the 5G IoT communication card version image suitable for Kaihong controller, and ensure that the downloaded 5G IoT communication card version image matches the device model and hardware configuration of Kaihong controller.

[0023] In practice, the 5G IoT communication card version image can be obtained from open-source mirror sites or open-source software repositories, or from some official or authorized official channels.

[0024] Alternatively, firmware updates can be obtained through the device upgrade process. For example, by connecting the device to the internet through its management interface or configuration tool, and checking for available firmware updates, the device will download the latest firmware image from a designated server and install it automatically. If the device supports local upgrades, the firmware image file can also be downloaded to local storage, and the upgrade can be performed by selecting the local file through the device's management interface or configuration tool.

[0025] It is conceivable that obtaining the 5G IoT communication card version image can be achieved using professional tools, such as packet capture tools. By capturing the communication data between the device and the server during the upgrade process, and analyzing this data, the firmware image file can be extracted.

[0026] Once the 5G IoT communication card version image suitable for the Kaihong controller is obtained, the 5G IoT communication card version image is burned into the Kaihong controller to enable real-time data transmission supporting the 5G module.

[0027] Specifically, such as Figure 2 As shown, save the obtained 5G IoT communication card version image to the Kaihong system host. Connect the controller to the Kaihong system host using a USB programming cable, ensuring the controller's power supply is stable. Operate the Kaihong controller to enter programming mode and execute the programming. During the programming operation, select the image file to be programmed and click "Execute." Wait for the programming tool to display "Download Complete" and program the specified firmware. After programming is complete, verify whether the programming is successful. Specifically, observe whether the programming tool interface displays "Download Complete" or has no error message, or obtain the display information of the programming tool interface to determine if there is relevant text information such as "Download Complete" or no error message. Also, connect to the controller via a serial terminal (such as PuTTY) and check whether the startup log contains 5G module initialization information. Alternatively, verify by testing the 5G network connection: check whether the controller management interface displays the 5G signal strength and IP address.

[0028] After the flashing process is complete, to ensure the secure and compliant operation of the device, it is also necessary to build an identity identifier, function authorization, and access control. The identity identifier is a unique digital credential for the device, used to distinguish different devices and establish a trust chain. Examples include hardware-level identifiers, software-level identifiers, or identifier registration and verification. Function authorization controls the functional modules that the device can use, preventing the abuse of unauthorized functions. Access control defines access rules for internal device resources, such as data, interfaces, and configurations, ensuring operational compliance.

[0029] Specifically, the steps for constructing identity identifiers, function authorization, and access control include: Write the device serial number and activation license to the Kaihong controller to establish identity, function authorization and access control.

[0030] SN (Serial Number) is a unique identifier for a device, used to distinguish different devices. The steps for writing the SN number to the Kaihong controller are as follows: 1. Prepare tools and drivers: Ensure that the PC has the necessary drivers installed, such as the USB driver for the RK3568A.

[0031] Download and install the RKDevInfoWriteTool tool to write the serial number.

[0032] 2. Connect the device: Connect the development board's USB 3.0 interface to the PC using a USB male-to-male data cable.

[0033] Insert the power adapter into the power interface of the development board and turn on the power.

[0034] 3. Enter Loader mode: Use the HDC tool (hdc_std.exe) to execute the command to put the development board into Loader mode. The specific command is: hdc_std shell reboot loader.

[0035] Double-click RKDevInfoWriteTool.exe in the RKDevInfoWriteTool directory to open the tool. At this point, the bottom of the tool should display "A Loader device has been found". If it does not display, execute the HDC command from the previous step again.

[0036] 4. Write the SN number: In the RKDevInfoWriteTool interface, click the "Settings" button to open the "Settings" window. Enter the 18-digit serial number in the SN tab, and then click "Save". Return to the main interface of the tool and click the "Write" button to write the serial number to the device.

[0037] License activation is a prerequisite for a device to obtain functional authorization and access control. Kaihong controllers support multiple activation methods, including online and offline activation. The following are the detailed steps for both activation methods: 1. Online activation Once the Kaihong controller has completed firmware flashing, the device is connected to an internet-connected environment, and the PC has obtained the license activation tool and activation code.

[0038] Activation steps: Unzip the License activation tool on your PC, then double-click kaihong_activator.exe to launch the tool.

[0039] Click the "Activate Online" button to enter the online activation interface.

[0040] Click the "Connect to Server" button, and the tool will automatically connect to the cloud server. Once the connection is successful, the interface will display "Server Status" as "Connected".

[0041] Enter the activation code in the activation code input box and click the "Activate All Devices" button to activate all connected devices. Alternatively, you can first select the "Automatic" option and then click the "Activate All Devices" button; the tool will then automatically detect any newly connected devices and activate them accordingly.

[0042] After successful activation, the "Start-End" column of the "Connected Devices List" displays the start and end times of the license's validity.

[0043] 2. Offline activation Once the Kaihong controller has completed the firmware flashing process, and the Kaihong device has obtained the License activation tool, USB dongle, Bulk License file (.json), and signature file (.sig), then License activation can begin.

[0044] Activation steps: Unzip the license activation tool on your PC. The license activation tool can be obtained online or offline.

[0045] Store the obtained Bulk License file and signature file in the directory of the decompressed License Activation Tool.

[0046] Insert the USB dongle into your PC, then double-click kaihong_activator.exe to launch the license activation tool.

[0047] Click the "Offline Activation" button to enter the offline activation interface. Ensure that the "Dongle Status" is "Connected" and the "BulkLicense File" is "Normal" before proceeding to the next step. Otherwise, ensure that the USB dongle is inserted into the PC and that the BulkLicense file and signature file are stored in the License activation tool directory before clicking the "Refresh Dongle & BulkLicense File" button.

[0048] Click the "Activate All Devices" button to activate all connected devices. Alternatively, you can first select the "Automatic" option and then click the "Activate All Devices" button; the tool will then automatically detect any newly connected devices and activate them accordingly.

[0049] After successful activation, the "Start-End" column of the "Connected Devices List" displays the start and end times of the license's validity.

[0050] Step S2: Establish a connection between the Kaihong controller and the 5G IoT communication card, and configure the network of the Kaihong controller.

[0051] Once the Kaihong controller has a 5G IoT communication card inserted through its built-in or expansion interface, a physical connection has been established between the 5G IoT communication card and the Kaihong controller. After powering on the Kaihong controller, the configuration interface will appear, which requires a network connection. The network connection can be a passwordless access point (AP) hotspot or a wired network, allowing access to the configuration interface via a local area network (LAN).

[0052] Configure the 5G network parameters in the configuration interface, which can be found by locating the "Network Settings" or "Cellular Network" option. Select "5G" as the network type and enter the APN of the 5G IoT communication card. After saving the configuration, restart the Kaihong controller for the settings to take effect. Figure 3 As shown, if the 5G IoT communication card uses the China Unicom network, after restarting the Kaihong controller, connect the Kaihong controller device to the HDMI screen, and you can see that China Unicom is recognized in the status bar. Go to Settings—Mobile Data and turn on the Mobile Data switch.

[0053] Specifically, the steps for establishing a connection between the Kaihong controller and the 5G IoT communication card, and for configuring the network of the Kaihong controller, include: Step S21: Connect the Kaihong controller to the device management platform.

[0054] Once the Kaihong controller has a 5G IoT communication card inserted through its built-in or expansion interface, after powering on the Kaihong controller, it can be connected to a device management platform, which can be the Kaihong Super Device Management Platform or a third-party device management platform.

[0055] Step S22: The Kaihong controller connects to the 5G IoT communication card and obtains network configuration information through the HDC tool.

[0056] Configure the network in the configuration interface of the Kaihong Super Device Management Platform or a third-party device management platform, save the configuration information, and then restart.

[0057] Specifically, the step of obtaining network configuration information through the HDC tool includes: Obtain the HDC tool, and verify and install it; enter the Shell environment and install the network configuration package corresponding to the Kaihong controller.

[0058] HDC is a command-line debugging tool that interacts with the Kaihong controller. It can be obtained through the DevEco Studio integrated development environment or downloaded as a standalone installation package from the official repository. After downloading HDC, add its path to the environment variable under "System Properties" to verify successful installation.

[0059] The steps for entering the Shell environment and installing the network configuration package corresponding to the Kaihong controller include: In the Shell environment, issue a network configuration query command and obtain the device's network connection status based on the returned query information.

[0060] First, connect the Kaihong controller and the Kaihong system device via USB cable, enable the USB debugging function of the Kaihong system device, and confirm whether the device has been successfully connected. If the connection is not successful, check whether the USB driver is working properly or try restarting the HDC service.

[0061] Next, enter the device's shell environment by typing the command "hdc shell" to access the command-line interface of the Kaihong controller. Once successfully entered the shell environment, the device prompt will change to the device's internal shell environment.

[0062] Next, install the network configuration package. In practice, the network configuration package can be installed using HDC (HDC for local installation). If the network configuration package has already been downloaded to the device, it can be transferred and installed via HDC. If the device is connected to a network, the network configuration package can be installed using the OpenHarmony package manager within the shell.

[0063] like Figure 4 As shown, enter the Kaihong controller Hdc Shell and install the corresponding network configuration package for the Kaihong controller. The specific commands are as follows: 1. Remount the system partition in read / write mode.

[0064] hdc shell mount -o remount,rw / system; 2. Delete the old service directory.

[0065] hdc shell rm -rf / system / app / com.ohos.subserviceservice; 3. Create a new service directory.

[0066] hdc shell mkdir / system / app / com.ohos.subserviceservice; 4. Push application package to device: hdc file send. / subserviceservice.hap / system / app / com.ohos.subserviceservice / .

[0067] 5. Modify file permissions.

[0068] hdc shell chmod 777 / system / app / com.ohos.subserviceservice / subserviceservice.hap.

[0069] 6. Install the application package: hdc shell bm install-r / system / app / com.ohos.subserviceservice / subserviceservice.hap -u0.

[0070] The above command is used to deploy services on HarmonyOS / OpenHarmony devices. Its main steps include: mounting the system partition, cleaning up old files, transferring new packages, setting permissions, and installing applications. In the above command, bm install is the package management command of HarmonyOS, and -u0 specifies the user, which is usually the system user.

[0071] like Figure 5 and Figure 6 As shown, enter the Hdc Shell of the Kaihong controller, and type hilog |grep subwayService (this is the service name corresponding to the network configuration) to query the device ID and view the device's network connection status.

[0072] Step S3: Enter the model management module of the device management platform of the Kaihong controller, and perform static IP configuration on the Kaihong controller in the object model to complete the network connection.

[0073] like Figure 7 As shown, enter the Kaihong Super Device Management Platform, input the corresponding Kaihong controller device ID, and check that the device status shows as online. When the Kaihong controller is online, find the "Model Management" or similar option in the Kaihong controller's device management platform interface to enter the object model management interface.

[0074] If a suitable object model for the Kaihong controller exists in the object model management interface, you can directly select that object model. Otherwise, you need to create a new object model, define device attributes, services, and events, and ensure that the network configuration-related attributes are IP address, subnet mask, or gateway, etc.

[0075] An object model is an abstract model used in Internet of Things (IoT) platforms to standardize the description of device functions, attributes, and behaviors. It serves as the "language" for interaction between devices and the cloud platform, defining data structures and communication rules to enable the platform to uniformly manage devices of different types and manufacturers. The core components of an object model include: attributes, services, events, and tags. Attributes define the static or dynamic state parameters of the device, such as temperature, humidity, on / off status, and IP address. Services define the executable commands or functions of the device, such as "restart device," "switch model," and "configure network." These require defining input parameters and output results and support synchronous or asynchronous calls. Events define anomalies or status changes actively reported by the device, such as "device offline" or "temperature over-limit alarm." Tags define the device's metadata, used to classify or describe device characteristics, such as "industrial-grade sensor" and "supports Wi-Fi," and their role is to assist in device management, search, or access control.

[0076] The object model not only enables standardization of devices from different manufacturers, but also allows for rapid application building without requiring a deep understanding of the underlying device protocols. Furthermore, the object model supports dynamic configuration, allowing for remote expansion of device functionality through updates without the need for firmware upgrades.

[0077] Creating an object model requires first defining the device type, such as which statuses the device needs to report, which control operations it needs to support, and which anomalies or notifications it needs to report. Secondly, a creation method needs to be selected. One method is to use an IoT platform, selecting the device type and the object model's attributes, services, and events through the IoT platform's console, and then saving and generating the object model. Another method is to manually write the corresponding file for the object model. In this embodiment, the object model is created through the IoT platform's console.

[0078] After creating the object model, it needs to be validated and its syntax checked. Ensure the JSON format is correct, with no missing commas or parentheses. Next, perform logical validation to determine if attributes cover all reported states, service parameters are complete, and events contain critical information such as fault codes and timestamps. Finally, perform a platform import test by importing the JSON file into the IoT platform and checking for successful parsing. Advanced configurations for the object model are also possible: first, data type expansion; second, access control; third, data unit and range configuration; and fourth, event hierarchy, distinguishing event types such as "type": "info", "type": "alert", and "type": "error".

[0079] like Figure 8 As shown, access the object model interface of the Kaihong Super Device Management Platform to configure the static IP of the Kaihong controller. The configuration interface and configuration parameters are as follows. Figure 8 As shown. In the object model interface, locate or add attribute fields related to network configuration, set the attribute type to string or a specific format, and define the attribute name. Fill in the static IP address, subnet mask, and gateway information of the Kaihong controller in the object model attributes. Ensure that this information matches the actual network environment and that the IP address is not occupied by other devices. After completing the static IP parameter configuration, save the object model changes. To apply the configuration to all devices associated with this object model, select the appropriate option for batch application.

[0080] In detail, the steps of statically configuring the Kaihong controller in the object model to complete the network configuration include: Step S31: Locate the Kaihong controller in the device management platform and associate the Kaihong controller with the object model that has been configured with a static IP.

[0081] In the device management platform, filter for "Kaihong Controller" in the device list by MAC address or serial number, or automatically identify Kaihong Controllers already connected to the network using a scanning discovery function (such as HarmonyOS Distributed Soft Bus). Enable static IP mode in the Kaihong Controller system settings, enter an IP address that conforms to the network plan, or assign a fixed IP address to the Kaihong Controller's MAC address in the router's DHCP settings to avoid IP conflicts.

[0082] There are two ways to associate the Kaihong controller with a device model that has been configured with a static IP: First, on the device details page of the device management platform, select "Associate Device Model" and upload a JSON-formatted TSL device model file, or manually configure it through the UI interface. Second, dynamic configuration, which updates device behavior dynamically through a JSON configuration file, allowing adjustment of device model attributes and logic without physical contact. After the association is established, check the device-reported data on the platform's device model data tab to see if it conforms to the model definition, or simulate device reporting using the SDK to test the model's parsing correctness, thereby verifying successful association.

[0083] Step S32: Push the static IP in the object model to the Kaihong controller.

[0084] In this step, a connection is established via the HDC (Harmony Device Connection) protocol. A command-line tool is used to push the configuration file. If the platform supports standard IoT protocols (such as MQTT), the device needs to subscribe to a specific Topic (e.g., / device / {deviceId} / config), and the platform uses this Topic to distribute static IP configurations.

[0085] Furthermore, when modifying the ipAddress attribute value of the object model instance in the device management platform, the platform automatically generates a configuration change instruction, which is pushed to the device via a long connection (WebSocket) or message queue (such as Kafka). After receiving the configuration, the Kaihong controller calls the network management API (such as the HarmonyOS networkManager module) to update the IP parameters.

[0086] Step S33: The Kaihong controller receives and applies the static IP to complete the network connection.

[0087] The device management platform pushes static IP parameters to the controller via object model attributes (such as ipAddress, subnetMask, gateway), typically in JSON format. The controller receives the configuration via protocols such as MQTT / CoAP, and the network management service parses the data and calls the OpenHarmony network configuration API.

[0088] In practice, static IP configuration methods include: first, dynamic configuration via command line; and second, configuration via configuration file. The first method involves setting the static IP address via command line and then setting the default gateway. The second method requires modifying the network configuration file and then restarting the network service.

[0089] Furthermore, after the network configuration information step, the method further includes: Enter the Kaihong controller Hdc Shell, query the device's mobile data network IP and perform a Ping operation on the external network to confirm the Kaihong controller's network connection status.

[0090] In one implementation, verifying network connectivity typically involves three steps: checking IP configuration, testing network connectivity, and verifying DNS resolution. These steps can be implemented via command line. The Kaihong controller can send the latest IP address and connection status back to the device management platform via heartbeat packets or a status reporting mechanism. The device management platform can check whether the device's last online IP matches the configured static IP, or call the platform API to confirm the device's online status. Through the aforementioned IP configuration, network connectivity testing, and DNS resolution verification, the Kaihong controller can complete the reception, application, and network connection verification of static IPs, ensuring stable device access to the specified network environment.

[0091] In practice, you can access the Kaihong controller's Hdc Shell to query the device's mobile data network IP and perform a ping operation to confirm the Kaihong controller's network connectivity. The Kaihong controller's Hdc Shell is a command-line tool used for device debugging in HarmonyOS development. Through this tool, developers can establish interaction between their computer and HarmonyOS devices, execute shell commands, manage applications, transfer files, etc. Its core functions are querying the device list and connecting to a specified device; therefore, this command-line tool can be used to query the device's mobile data network IP and perform a ping operation to confirm the Kaihong controller's network connectivity.

[0092] like Figure 9 As shown, when the device control platform receives the attribute reporting information sent by the Kaihong controller, if the message status is successful, it indicates that the network connection of the Kaihong controller is in a normal state and can realize information interaction with the device control platform.

[0093] While HarmonyOS has integrated a comprehensive Internet of Things (IoT) connectivity solution, it still requires network configuration and verification for 5G IoT communication cards. This invention discloses a method and system for configuring and verifying 5G IoT communication cards on open-source HarmonyOS devices, enabling the use of 5G IoT communication cards on the HarmonyOS controller. It can also provide a technical reference for the deployment of other IoT cards, effectively reducing the time developers spend on the application and verification of 5G IoT communication cards.

[0094] Secondly, this application provides a configuration system for a 5G IoT communication card within the open-source HarmonyOS system, such as... Figure 10 ,include: The environment building module 100 is used to burn the 5G IoT communication card version image onto the Kaihong controller, and to build identity identification, function authorization and access control; its functions are as described in step S1.

[0095] The network configuration module 200 is used to establish a connection between the Kaihong controller and the 5G IoT communication card, and to perform network configuration of the Kaihong controller; its function is as described in step S2.

[0096] Connect to configuration module 300, enter the model management module of the device management platform of Kaihong controller, and perform static IP configuration on Kaihong controller in the object model to complete network connection configuration. Its function is as described in step S3.

[0097] The main functions of the environment building module 100 include: writing the device SN number and activating the license to the Kaihong controller to build identity, function authorization and access control.

[0098] The network configuration module 200 includes a device connection unit and a configuration unit.

[0099] The device connection unit is used to connect the Kaihong controller to the device management platform.

[0100] The configuration unit is used for the Kaihong controller to access the 5G IoT communication card and to perform network configuration of the Kaihong controller through the HDC tool.

[0101] The configuration unit includes: the HDC tool acquisition subunit and the installation configuration package subunit.

[0102] The HDC tool acquisition sub-unit is used to acquire, verify, and install the HDC tool. The installation and configuration package subunit is used to enter the Shell environment and install the network configuration package corresponding to the Kaihong controller.

[0103] The main functions of the installation and configuration sub-unit include: issuing network configuration query commands in the Shell environment, and obtaining the device network connection status based on the returned query information.

[0104] The connection configuration module 300 includes: a static IP configuration unit, a static IP association unit, a static IP push unit, and a network connection subunit.

[0105] The static IP configuration unit is used to access the object model interface of the device management platform and configure the static IP of the Kaihong controller. The static IP association unit is used to locate the Kaihong controller in the device management platform and associate the Kaihong controller with the object model that has been configured with a static IP. The static IP push unit is used to push the static IP in the object model to the Kaihong controller; The network connection subunit is used by the Kaihong controller to receive and apply the static IP to complete the network connection.

[0106] The system also includes: The verification module is used to enter the Kaihong controller's Hdc Shell, query the device's mobile data network IP, and perform a Ping operation on the external network to confirm the Kaihong controller's network connection status.

[0107] Thirdly, the present invention discloses a terminal device, such as... Figure 11 As shown, it includes: a memory 1001, a processor 1002, and a computer program stored on the memory 1001 and executable on the processor 1002. When the processor 1002 executes the program, it implements the configuration steps of the 5G IoT communication card within the open-source HarmonyOS system provided in the above embodiments.

[0108] Furthermore, the terminal equipment also includes: Communication interface 1003 is used for communication between memory 1001 and processor 1002.

[0109] The memory 1001 is used to store computer programs that can run on the processor 1002.

[0110] The memory 1001 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0111] If the memory 1001, processor 1002, and communication interface 1003 are implemented independently, then the communication interface 1003, memory 1001, and processor 1002 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0112] Optionally, in a specific implementation, if the memory 1001, processor 1002, and communication interface 1003 are integrated on a single chip, then the memory 1001, processor 1002, and communication interface 1003 can communicate with each other through an internal interface.

[0113] The processor 1002 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0114] Fourthly, this application also provides a computer-readable storage medium for storing a computer program that causes a computer to execute the steps of the configuration method for the 5G IoT communication card within the open-source HarmonyOS system described above.

[0115] This invention provides a configuration method, system, device, and storage medium for a 5G IoT communication card within the open-source HarmonyOS system. The method involves burning a 5G IoT communication card version image onto the HarmonyOS controller, and constructing an identity identifier, function authorization, and access control system. A connection is established between the HarmonyOS controller and the 5G IoT communication card, and network configuration is performed on the HarmonyOS controller. The method then accesses the model management module of the HarmonyOS controller's device management platform and performs static IP configuration on the device model to complete the network connection configuration. The method and system provided by this invention deploy basic device communication capabilities, construct device identity identifiers, build a function authorization and access control system, and realize communication connections between the HarmonyOS controller and the cloud platform based on the constructed device model.

[0116] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0117] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0118] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0119] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can read and execute instructions from or in conjunction with such an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). In addition, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically by optically scanning paper or other media, then editing, interpreting or otherwise processing them as necessary, and then storing them in computer memory.

[0120] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0121] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.

[0122] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0123] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A configuration method for a 5G IoT communication card within the open-source HarmonyOS system, characterized in that, include: The 5G IoT communication card version image is burned into the Kaihong controller, and identity identification, function authorization and access control are constructed; Establish a connection between the Kaihong controller and the 5G IoT communication card, and configure the network of the Kaihong controller. Access the model management module of the device management platform of the Kaihong controller, and perform static IP configuration on the Kaihong controller in the object model to complete the network connection.

2. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 1, characterized in that, The steps for constructing identity verification, function authorization, and access control include: Write the device serial number and activation license to the Kaihong controller to establish identity, function authorization and access control.

3. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 1, characterized in that, The steps for establishing a connection between the Kaihong controller and the 5G IoT communication card, and for configuring the network of the Kaihong controller, include: Connect the Kaihong controller to the device management platform; The Kaihong controller is connected to a 5G IoT communication card, and the network configuration of the Kaihong controller is performed through the HDC tool.

4. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 3, characterized in that, The steps for configuring the network of the Kaihong controller using the HDC tool include: Obtain the HDC tool, and verify and install it; Enter the Shell environment and install the network configuration package corresponding to the Kaihong controller.

5. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 4, characterized in that, The steps for entering the Shell environment and installing the network configuration package corresponding to the Kaihong controller include: In the Shell environment, issue a network configuration query command and obtain the device's network connection status based on the returned query information.

6. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 1, characterized in that, In the physical model, static IP configuration is performed on the Kaihong controller to complete the network configuration steps, including: Access the object model interface of the device management platform and configure the static IP of the Kaihong controller; Locate the Kaihong controller in the device management platform and associate the Kaihong controller with the object model that has been configured with a static IP. Push the static IP from the object model to the Kaihong controller; The Kaihong controller receives and applies the static IP address to complete the network connection.

7. The configuration method for a 5G IoT communication card within the open-source HarmonyOS system according to claim 1, characterized in that, After performing the network configuration step of the Kaihong controller, the method further includes: Enter the Kaihong controller Hdc Shell, query the device's mobile data network IP and perform a Ping operation on the external network to confirm the Kaihong controller's network connection status.

8. A configuration system for a 5G IoT communication card within the open-source HarmonyOS system, characterized in that, include: The environment building module is used to burn the 5G IoT communication card version image into the Kaihong controller, and to build identity identification, function authorization and access control; The network configuration module is used to establish a connection between the Kaihong controller and the 5G IoT communication card, and to perform network configuration of the Kaihong controller. Access the model management module of the device management platform of the Kaihong controller, and perform static IP configuration on the Kaihong controller in the object model to complete the network connection.

9. A terminal device, characterized in that, include: A processor and a memory, the memory being used to store computer programs, the processor being used to call and run the computer programs stored in the memory, and to perform the steps of the configuration method for a 5G IoT communication card within the open-source HarmonyOS system as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the steps of the configuration method for a 5G IoT communication card within the open-source HarmonyOS system as described in any one of claims 1 to 7.