Home information sharing methods, devices, equipment and storage media

By binding the internal and public IP addresses of the HTTP service to the home gateway and utilizing the built-in soft probe and token mechanism, the problem of poor access convenience of the home gateway is solved, achieving a balance between convenient access to the internal network and secure access to the public network, and providing convenience and security for family information sharing.

CN123122978APending Publication Date: 2026-11-17CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611482450.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Home gateways have poor accessibility to both the intranet and the public network, and existing technologies require complex authentication processes, making access inconvenient.

Method used

By binding the HTTP service to the home gateway's internal and public IP addresses, internal network devices can access it directly, while public network devices can be verified through authentication information. Combined with the built-in soft probe to collect device information and generate a token for permission management.

Benefits of technology

It achieves a balance between the convenience of intranet access and the security of public network access, automatically identifies family members' devices, generates tokens to protect access rights, and provides an information sharing interface and device query function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122978A_ABST
    Figure CN123122978A_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and storage medium for home information sharing, relating to the field of home broadband communication technology. It includes: enabling a Hypertext Transfer Protocol (HTTP) service and binding the HTTP service to the internal network IP address and public network IP address of the home gateway; sending service information containing the internal network IP address, internal network port, public network IP address, and public network port to all devices within the home local area network (LAN); directly providing an access response when a first device within the LAN accesses the HTTP service via its internal network IP address; and verifying the access permissions of a second device within the LAN accessing the HTTP service via its public network IP address, based on the authentication information carried by the second device, and determining whether access is allowed based on the verification result. This achieves a balance between security and convenience for both internal and public network access.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of home broadband communication technology, and in particular to a method, apparatus, device and storage medium for home information sharing. Background Technology

[0002] With the widespread adoption of home broadband networks and the proliferation of smart home devices, the home gateway, as the core entry point to the home network, has evolved from simple routing and forwarding to a more intelligent function. Currently, home gateways typically possess network address translation (NAT) and port mapping capabilities, enabling communication and interconnection between internal network devices and the public network. To meet the needs of family members accessing internal home information via the home network and remotely accessing it via external networks, existing solutions typically use the home gateway as the access point, providing external services for both internal and public network access.

[0003] However, home gateways typically require complex authentication processes for both intranet and public network access, resulting in poor convenience for accessing intranet and public networks through home gateways. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for sharing family information, which addresses the shortcomings of existing technologies in terms of the inconvenience of accessing intranets and public networks through home gateways, and achieves a balance between security and convenience for both intranet and public network access.

[0005] This application provides a method for sharing family information, including the following steps: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway; The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, will be sent to all devices within the home LAN. When the first device within the home LAN accesses the HTTP service via the internal network IP address, it directly provides an access response; When a second device within the home LAN accesses the HTTP service via the public IP address, the access permissions of the second device are verified based on the authentication information carried by the second device, and a decision is made on whether to allow access based on the verification result.

[0006] In some embodiments, it also includes: The built-in soft probe periodically collects network information of the devices connected to the home gateway, including device type, device IP address, device MAC address, and device uplink and downlink traffic. The network information is stored locally on the home gateway in key-value pairs, where the device MAC address is used as the key and other information in the network information other than the device MAC address is used as the value.

[0007] In some embodiments, it also includes: The number of consecutive online days of the connected device is obtained, and the number of consecutive online days is determined based on the time difference between the current collection time and the previous collection time in the network information corresponding to the device's MAC address. If the number of consecutive online days exceeds a preset threshold, the connected device will be identified as a family member's device. If the number of consecutive online days is less than or equal to the preset threshold, the connected device will be identified as a guest device.

[0008] In some embodiments, it also includes: Generate a token, which is generated by the home gateway based on the device MAC address of the connected device; The token is sent to the connected device that is identified as a family member's device.

[0009] In some embodiments, generating a token includes: The device's MAC address and current timestamp are symmetrically encrypted, and the resulting ciphertext is used as the Token.

[0010] In some embodiments, the token has an expiration date, and the method further includes: After the connected device is identified as a family member device, the home gateway renews the token periodically based on the number of consecutive online days of the connected device. The token becomes invalid if the number of consecutive online days of the connected device is less than or equal to the preset threshold.

[0011] In some embodiments, it also includes: The network information of the connected device and the Token are stored locally on the home gateway for a preset number of days. Data exceeding the preset number of days is automatically deleted.

[0012] In some embodiments, sending service information including the internal network IP address, internal network port, public network IP address, and public network port to all devices within the home LAN includes: The service information is sent to all devices in the home LAN via multicast using the Simple Service Discovery Protocol (SSDP).

[0013] In some embodiments, the network information further includes device traffic data, which is used to indicate the uplink and downlink data volume of the downstream device per unit time; the method further includes: The device traffic data is stored locally on the home gateway in the form of a traffic dot matrix. The traffic dot matrix is ​​a two-dimensional array. The number of rows N in the two-dimensional array represents the number of days stored, and the number of columns M in the two-dimensional array represents the number of equally divided time periods within each day. Each element of the two-dimensional array is a tuple containing both upstream and downstream traffic values.

[0014] In some embodiments, it also includes: Based on the traffic matrix, the device traffic data is aggregated by time period to obtain the traffic distribution of the downstream device in each time period; Based on the traffic distribution, user behavior tags for the downstream devices are generated, and the user behavior tags are used to characterize the user type to which the users of the downstream devices belong.

[0015] In some embodiments, the home gateway includes an uplink gateway and at least one downstream networking device, wherein the downstream networking device collects network information of its own downstream devices and synchronizes the collected network information to the uplink gateway, and the uplink gateway aggregates and stores the network information collected by the home gateway itself and the network information synchronized by the downstream networking device.

[0016] In some embodiments, it also includes: An information sharing interface is provided via an HTTP service, and the information sharing interface includes at least one of the following functions: Family member message board, home device information query, AI intelligent agent.

[0017] In some embodiments, the step of verifying the access rights of the second device based on the authentication information carried by the second device, and determining whether to allow access based on the verification result, includes: Verify whether the authentication information is valid, and verify whether the device MAC address of the second device carrying the authentication information is in the list of connected devices stored locally on the home gateway; Access is permitted if the authentication information is valid and the device MAC address is in the list of downstream devices; Otherwise, access will be denied.

[0018] This application also provides a home information sharing device, including the following modules: The service binding module is used to enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway. The information sending module is used to send service information, including the intranet IP address, intranet port, public IP address, and public port, to all devices within the home LAN; The first judgment module is used to directly provide an access response when the first device in the home area network accesses the HTTP service through the internal network IP address; The second judgment module is used to verify the access permissions of the second device based on the authentication information carried by the second device when the second device in the home local area network accesses the HTTP service through the public IP address, and decide whether to allow access based on the verification result.

[0019] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described home information sharing methods.

[0020] This application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the family information sharing method as described above.

[0021] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the family information sharing method as described above.

[0022] This application provides a method, apparatus, device, and storage medium for sharing family information. By binding an HTTP service to the internal network IP address and public network IP address of a family gateway, requests to access the HTTP service via the internal network receive a direct response, while requests to access the HTTP service via the public network are controlled based on token verification results, thus achieving a balance between security and convenience for both internal and public network access. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart illustrating the family information sharing method provided in this application.

[0025] Figure 2 This is a topology map of probe-collected data and edge computing provided in this application.

[0026] Figure 3 This is one of the edge computing flowcharts for home gateways or networking devices provided in this application.

[0027] Figure 4 This is a schematic diagram of the family information service sharing process provided in this application.

[0028] Figure 5 This is the second flowchart of edge computing for home gateways or networking devices provided in this application.

[0029] Figure 6 This is a flowchart of the dot matrix image aggregation process provided in this application.

[0030] Figure 7 This is a schematic diagram of the home information sharing device provided in this application.

[0031] Figure 8 This is a schematic diagram of the physical structure of the electronic device provided in this application. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0033] The following description, in conjunction with the accompanying drawings, describes the family information sharing method, apparatus, device, and storage medium of this application.

[0034] Figure 1 This is a flowchart illustrating the family information sharing method provided in this application. Figure 1 As shown, the method includes the following: Step 101: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway.

[0035] HTTP is an application layer protocol used for distributed, collaborative, and hypermedia information systems, and in this application, it serves as the communication protocol for providing information sharing services to a home gateway.

[0036] It should be noted that the home gateway should have an HTTP service port enabled, and the port number can be set to the default value (e.g., 80). This HTTP service is bound to both the home gateway's internal IP address and public IP address, allowing access to the HTTP service from both within the home network and via an external network.

[0037] Step 102: Send the service information, including the internal network IP address, internal network port, and the public network IP address and public network port, to all devices within the home LAN.

[0038] It should be noted that the home gateway sends service information, including the internal IP address, internal port, public IP address, and public port, to all devices within the home LAN so that the devices within the home LAN can obtain the home gateway's HTTP service address.

[0039] Step 103: If the first device in the home LAN accesses the HTTP service through the internal network IP address, provide an access response directly.

[0040] It should be noted that when the first device on the home LAN accesses the home gateway's HTTP service via its internal IP address, the home gateway directly provides the access response. After family members connect to Wireless Fidelity (WiFi), they can access the HTTP service directly through a browser by accessing the internal IP address and port.

[0041] Step 104: If the second device in the home LAN accesses the HTTP service through the public IP address, verify the access rights of the second device based on the authentication information carried by the second device, and decide whether to allow access based on the verification result.

[0042] It should be noted that when a second device accesses the home gateway's HTTP service via a public IP address, the device must include authentication information. The home gateway verifies the validity of this authentication information and decides whether to allow access based on the verification result.

[0043] The family information sharing method provided in this application binds the HTTP service to the internal IP address and public IP address of the family gateway, allowing internal network devices to access it directly, while public network devices need to be authenticated before they can access it, thus balancing the security and convenience of family information sharing.

[0044] In some embodiments, it also includes: The built-in soft probe periodically collects network information of the devices connected to the home gateway, including device type, device IP address, device MAC address, and device uplink and downlink traffic. The network information is stored locally on the home gateway in key-value pairs, wherein the device's Media Access Control (MAC) address is used as the key, and other information in the network information other than the device's MAC address is used as the value.

[0045] Among them, a soft probe is a specialized tool program used to monitor, collect, and analyze system or network status information. It is usually deployed on the target system as a lightweight agent to continuously collect various operational data. Key-value pairs are a data structure organization method that uses a unique key to index and access the corresponding value, characterized by fast read / write speeds and high query efficiency.

[0046] It's worth noting that the home gateway has a built-in software probe module that periodically collects network information from connected devices after the device starts up. The data collected by the probe is stored locally on the home gateway using a key-value structure, without needing to be transmitted to the cloud over the network. The key is the device's MAC address, serving as a unique identifier; the value is in JSON format, storing other network information such as device type, device IP address, and uplink / downlink traffic.

[0047] The above embodiments use built-in soft probes to periodically collect network information from connected devices and store it locally on the home gateway in a key-value structure, thereby achieving automated collection and local storage of device network information without having to upload the collected data to the cloud.

[0048] In some embodiments, it also includes: The number of consecutive online days of the connected device is obtained, and the number of consecutive online days is determined based on the time difference between the current collection time and the previous collection time in the network information corresponding to the device's MAC address. If the number of consecutive online days exceeds a preset threshold, the connected device will be identified as a family member's device. If the number of consecutive online days is less than or equal to the preset threshold, the connected device will be identified as a guest device.

[0049] It should be noted that a scheduled task can be started within the home gateway, running once a day to calculate the previous day's data. It iterates through the locally stored list of connected devices, checking the last data collection time (last_time) field of each device. If the time difference between the current time and the last data collection time is less than 24 hours, the device's continuous online days (days) field is incremented by 1; otherwise, it is set to 0. It then checks if the continuous online days exceed a preset threshold. This threshold can be configured by the user via HTTP service or issued by the operator's cloud system via remote control. If the continuous online days exceed the threshold, the device is considered a long-term online family member device; if it is less than or equal to the threshold, it is considered a temporarily accessed guest device.

[0050] The above embodiments automatically identify long-term online devices among the devices connected to the home gateway as family member devices by comparing the number of consecutive online days with a preset threshold, without requiring manual binding by the user, thus realizing the automatic return of home devices.

[0051] In some embodiments, it also includes: Generate a token, which is generated by the home gateway based on the device MAC address of the connected device; The token is sent to the connected device that is identified as a family member's device.

[0052] A token is a credential used for identity verification. It is generated by the server and issued to authorized users. Users carry the token in subsequent visits to prove their access rights.

[0053] It should be noted that the home gateway generates a token for devices identified as family member devices. The token generation rule is as follows: using the device's MAC address as the data source, the MAC address and the current timestamp are symmetrically encrypted, and the resulting ciphertext is used as the token. After generation, the token is stored in the device's value in the home gateway's local storage, and simultaneously sent to the downstream devices identified as family member devices, which then save it to their local cache.

[0054] The above embodiments generate and issue tokens for family member devices, providing authentication credentials for family member devices to access the home gateway's HTTP service via the Internet, thus ensuring the security of public network access.

[0055] For example, the home device identification process may include: using edge computing to collect data from probes on the home gateway or networking device (router), the process is performed locally on the home gateway or networking device (router). The locally stored list of connected devices is traversed to determine the number of consecutive online days a device has. If the number of online days exceeds a specified threshold, it is considered a long-term online home device; otherwise, it is considered a visitor. The gateway generates a token for each device identified as a home device and stores it in the corresponding device's local storage.

[0056] In some embodiments, generating a token includes: The device's MAC address and current timestamp are symmetrically encrypted, and the resulting ciphertext is used as the Token.

[0057] It should be noted that the token is generated using a symmetric encryption algorithm. Specifically, the device's MAC address and current timestamp are used as data sources. These two are combined and then symmetrically encrypted using a preset key. The resulting ciphertext is the device's token. Due to the involvement of the timestamp, tokens generated at different times are different, preventing replay attacks.

[0058] The above embodiments generate tokens using symmetric encryption, binding the tokens to the device's MAC address and timestamp, ensuring the uniqueness of the tokens. Furthermore, tokens generated at different times are different, preventing replay attacks.

[0059] In some embodiments, the token has an expiration date, and the method further includes: After the connected device is identified as a family member device, the home gateway renews the token periodically based on the number of consecutive online days of the connected device. The token becomes invalid if the number of consecutive online days of the connected device is less than or equal to the preset threshold.

[0060] It's important to note that the token has an expiration date of N days (N is configurable, e.g., the default is 7 days), after which it becomes invalid. The home gateway renews the token daily based on the number of consecutive online days of the connected devices: when a device is consistently identified as a family member (i.e., the number of consecutive online days exceeds a preset threshold), the token's validity is automatically extended without manual intervention from the user. When the device's consecutive online days are less than or equal to the preset threshold, i.e., the device is identified as a guest device, the token becomes invalid. After the token expires, the device will be denied access to the home gateway's HTTP service via a public IP address due to failure to pass authentication verification.

[0061] The above embodiments achieve dynamic management of token validity by renewing or invalidating the token based on the online status of family members' devices, thus ensuring the security of public network access.

[0062] In some embodiments, it also includes: The network information of the connected device and the Token are stored locally on the home gateway for a preset number of days. Data exceeding the preset number of days is automatically deleted.

[0063] It should be noted that the home gateway stores the network information and tokens of connected devices locally, and saves them for a preset number of days (e.g., 7 days by default, which users can modify via HTTP service). The home gateway periodically checks the locally stored data and automatically deletes data that exceeds the preset retention period to free up storage space.

[0064] The above embodiments effectively manage the local storage resources of the home gateway by storing data according to a preset number of days and automatically deleting expired data, thus avoiding unlimited occupation of storage space.

[0065] An example of a home gateway HTTP service configuration process: All family members can access the home HTTP service and modify relevant configurations. This can be done via the intranet or public network. All data is stored in the home gateway or networking device (router). Configuration data is permanently stored, while user data and probe data can be saved for a specified number of days depending on the specific hardware configuration. Expired data is automatically deleted.

[0066] In some embodiments, sending service information including the internal network IP address, internal network port, public network IP address, and public network port to all devices within the home LAN includes: The service information is sent to all devices in the home LAN via multicast using the Simple Service Discovery Protocol (SSDP).

[0067] SSDP is an application layer protocol used to discover network services within a local area network.

[0068] It should be noted that after the home gateway enables the HTTP service, it uses the SSDP protocol to announce the service information, including the internal IP address, internal port, public IP address, and public port, via multicast within the home LAN. Devices within the home LAN can automatically obtain the home gateway's HTTP service address by listening for multicast messages.

[0069] The above embodiments use the SSDP protocol to announce HTTP service information via multicast, enabling devices in the home LAN to automatically discover the HTTP service of the home gateway without requiring users to manually enter the address or perform other configuration operations.

[0070] An example home gateway service discovery process: Using the SSDP (Simple Service Discovery Protocol), the home gateway notifies all devices on the home LAN of its internal and public HTTP service addresses and ports via multicast. All devices on the home LAN can then access this HTTP service. When a device accesses the HTTP service via the LAN, if the device has been online for a specified time and possesses a token, the token is saved to the device. When a device accesses the home's public HTTP service via the internet or mobile cellular network, it includes the token as a header. The home gateway verifies whether the header is in its local device list; if it is, the verification passes; otherwise, access is denied.

[0071] Understandably, using the SSDP (Simple Service Discovery Protocol) allows the home gateway's HTTP service address to be automatically multicast to devices within the local area network (LAN). These devices then automatically obtain the gateway's HTTP service information, eliminating the need for manual intervention and automating service discovery.

[0072] In some embodiments, the network information further includes device traffic data, which is used to indicate the uplink and downlink data volume of the downstream device per unit time; the method further includes: The device traffic data is stored locally on the home gateway in the form of a traffic dot matrix. The traffic dot matrix is ​​a two-dimensional array. The number of rows N in the two-dimensional array represents the number of days stored, and the number of columns M in the two-dimensional array represents the number of equally divided time periods within each day. Each element of the two-dimensional array is a tuple containing both upstream and downstream traffic values.

[0073] It should be noted that the device traffic dot matrix is ​​stored using a two-dimensional array. The first dimension of the array represents the number of days (N days in total, N defaults to 7 days, and users can modify the default configuration through the home HTTP service). The second dimension represents the equally divided time periods within each day (M columns in total, M defaults to 144, that is, one point is recorded every 10 minutes per day, and the default value is (0,0)). Each element is a tuple containing the upstream and downstream traffic values, both stored as integer values.

[0074] After each data collection from the connected device, the probe queries the local storage using the MAC address as the key. If the data exists, the corresponding device's traffic matrix is ​​updated, and the collected uplink and downlink traffic is added to the matrix position corresponding to the current time point. If the data does not exist, a new record is added.

[0075] The above embodiments store device traffic data in the form of a traffic dot matrix, realizing structured storage of household device traffic data in the time dimension.

[0076] For example, the probe data collection process may include: 1. A probe module built into the home gateway or networking device (router). The probe periodically collects data from connected devices and stores it locally. The collected data includes device type, device IP address, device MAC address, and device uplink and downlink traffic. 2. Probe data edge computing process: The home gateway or networking device (router) uses local computing and storage resources to save the connected device information collected by the probe. The storage data structure is key-value. The key is the device MAC address, serving as a unique identifier for the device. The value is in JSON format, storing device type, device IP address, device traffic matrix (online), and number of consecutive online days (days).

[0077] In some embodiments, it also includes: Based on the traffic matrix, the device traffic data is aggregated by time period to obtain the traffic distribution of the downstream device in each time period; Based on the traffic distribution, user behavior tags for the downstream devices are generated, and the user behavior tags are used to characterize the user type to which the users of the downstream devices belong.

[0078] It should be noted that a scheduled task is started within the home gateway and executed once a day to calculate the data from the previous day. It iterates through the traffic matrix of each device from the previous day (i.e., the second row of the two-dimensional array), first aggregating the data by hour to obtain 24 data points, each data point being the cumulative value of uplink and downlink traffic within that hour; then, based on the hourly aggregation, it is aggregated by day to obtain the total uplink and downlink traffic for that day.

[0079] Based on hourly aggregated traffic distribution, user behavior tags are generated using configurable time rules. For example, if there is no traffic during weekday working hours (configurable, distributed via the cloud) and only traffic at night, the user can be tagged "office worker"; if there is traffic during working hours, the user can be tagged "home user"; if the user is offline during the day but online at night, the user can be tagged "student". The tag generation rules are distributed from the cloud to the home gateway via a remote control system, eliminating the need for the home gateway to train the rules itself.

[0080] The above embodiments generate user behavior tags corresponding to devices by aggregating traffic matrix diagrams over time, thereby achieving automated identification of family members' behavioral characteristics.

[0081] In some embodiments, the home gateway includes an uplink gateway and at least one downstream networking device, wherein the downstream networking device collects network information of its own downstream devices and synchronizes the collected network information to the uplink gateway, and the uplink gateway aggregates and stores the network information collected by the home gateway itself and the network information synchronized by the downstream networking device.

[0082] It's important to note that in real-world home network scenarios, networking devices (routers) are typically connected to the home gateway. Following the method described in weight 2, the networking device collects network information from its connected devices via built-in probes, performs edge computing, and stores the information. It then first determines if it has an uplink gateway. If an uplink gateway exists, it synchronizes the network information from its connected devices to that gateway. The uplink gateway then aggregates the network information it collected and the synchronized network information from all connected networking devices, storing and managing it uniformly.

[0083] The above embodiments synchronize the network information of their subordinate networking devices to the upstream gateway for aggregation and storage, thereby realizing the unified aggregation of home device information in multi-level networking scenarios and expanding the applicability of home information sharing methods.

[0084] In some embodiments, it also includes: An information sharing interface is provided via an HTTP service, and the information sharing interface includes at least one of the following functions: Family member message board, home device information query, AI intelligent agent.

[0085] Artificial Intelligence (AI) Agent is an intelligent entity that can perceive its environment and take autonomous actions to achieve specific goals. In this application, it acts as an agent between family members and remote AI services, receiving requests from family members and returning AI service response results.

[0086] It should be noted that the home gateway provides an information sharing interface via HTTP service, and this interface must have at least one of the following functions: (1) Family member message board: All family members can post text messages through this interface to realize asynchronous communication between family members. All message data is stored locally on the family gateway. (2) Home device information query: Family members can use this interface to query the network information of all connected devices in the home, including device type, device IP address, device MAC address, device online status, uplink and downlink traffic, etc. (3) AI Agent Agent: Family members can interact with the AI ​​agent through this interface. The HTTP service acts as the AI ​​agent agent, receiving natural language questions input by family members, forwarding the questions as prompts to the cloud big model service, obtaining the response results returned by the big model, and then returning the response results to the user interface for display.

[0087] This HTTP service only handles message forwarding and does not involve model training or complex calculations.

[0088] The above embodiments provide an information sharing interface including a message board, device query and AI agent through HTTP service, providing family members with a unified information interaction portal from the family dimension.

[0089] For example, the home gateway HTTP service process may include: the home gateway opening an HTTP service port, which can be set to a default value, such as 80. The port is bound to both an internal IP address and a public IP address. Family members can directly access the internal IP address + port via WiFi to obtain the shared home HTTP service. This HTTP service can query information about all devices in the home. Simultaneously, this HTTP service can act as an AI agent proxy, receiving requests from family members, invoking remote AI services, and returning information to the home gateway, which can be viewed by all family members. Specifically, if the network device (router) is on the home intranet, it is generally connected to the gateway. After collecting and storing the connected information, the network device determines whether it has an uplink gateway. If it does, it synchronizes its connected data to the uplink gateway.

[0090] Understandably, the information sharing process for the home gateway's HTTP service is as follows: all family members can use this HTTP service as a family member message board or chat room, and all data is stored locally at the edge. All family members can also use this HTTP service as an AI agent to utilize the operator's large-scale model service; except for prompts, no other information is transmitted to the network.

[0091] In some embodiments, the step of verifying the validity of the token based on the token carried by the device, and determining whether to allow access based on the validity verification result, includes: Verify whether the authentication information is valid, and verify whether the device MAC address of the second device carrying the authentication information is in the list of connected devices stored locally on the home gateway; Access is permitted if the authentication information is valid and the device MAC address is in the list of downstream devices; Otherwise, access will be denied.

[0092] It should be noted that when a second device accesses the home gateway's HTTP service via a public IP address, the device must include authentication information (such as a token) in its request. Upon receiving the access request, the home gateway first verifies the validity of the authentication information (e.g., whether the token has expired or been tampered with). Simultaneously, the home gateway extracts the MAC address of the second device carrying the authentication information and checks if that MAC address exists in the home gateway's locally stored list of connected devices. Access to the HTTP service is only permitted if the authentication information is valid and the device's MAC address exists in the list of connected devices; otherwise, access is denied.

[0093] The above embodiments ensure the security of public network access to the home gateway's HTTP service by dual verification of authentication information and device MAC address, preventing unauthorized devices from accessing internal home information via the public network.

[0094] Figure 2 This is a topology map generated from probe-collected data and edge computing provided in this application. For example... Figure 2 The diagram illustrates two home terminal networking and edge computing architectures: In the left-hand scenario, terminals such as mobile phones, cameras, set-top boxes, and computers first connect to the networking device (router). The router has built-in probes and supports edge computing, then connects to the home gateway (which also has probes and edge computing capabilities). The right-hand scenario omits the independent router / networking device; the terminals directly connect to the home gateway, which has built-in probes and edge computing capabilities. Overall, this represents a home network topology where multiple devices converge through a gateway / router, combining probe data collection with edge computing processing.

[0095] Figure 3 This is one of the edge computing flowcharts for home gateways or networking devices provided in this application. For example... Figure 3 The edge computing process for a home gateway or networking device (router) shown starts from the gateway or networking device (router). First, it obtains the connection and identification information of lower-level devices through probe data. Then, it determines whether the device already exists based on the MAC address. If it exists, it queries and updates its basic information such as IP address, device type, and data collection time. If it does not exist, it inserts a new lower-level device record. After completing the device information maintenance, the system enters the edge computing stage, synchronously calculates the traffic heat map, extracts data according to the current time window, and locates the points. Finally, the processing results are used to add or update traffic information, realizing full-process automation from device discovery and information maintenance to dynamic refresh of traffic points.

[0096] It's understandable that data from downstream devices is collected via probes built into home gateways or networking devices (routers), and edge computing is used to determine device home connectivity. Currently, the industry standard for establishing device-home relationships is through offline cloud-based big data analytics. Edge computing, however, uses a key-value data structure, performs numerical calculations without complex logic, and typically involves a small number of downstream devices, resulting in lower computational and storage resource consumption. Furthermore, since devices within a home don't typically cross household or regional boundaries, edge computing is more suitable than cloud computing due to its higher efficiency and data security. Since both data collection and computation occur within the home, it doesn't involve collecting personal or private user data, making the business process more secure and reliable.

[0097] The home gateway's built-in HTTP service provides both intranet and public network access, allowing users to easily access Wi-Fi or mobile data, or remotely monitor home devices and communicate with family members in real time. This service is independent of any mobile application (app), requiring no additional installation by the user. It can be integrated into any existing app or mini-program, or accessed directly through a browser, saving on development and operational costs. It is particularly suitable for the elderly, young children, and those less familiar with internet operations, simplifying procedures and providing convenient information access.

[0098] Understandably, while AI is developing rapidly, the entry point and user touchpoint are still primarily personal apps or websites. There isn't yet a unified entry point serving the entire family. This application addresses this niche by innovatively utilizing the home gateway—an edge device connecting the home to the internet. By leveraging the home gateway's HTTP service as a proxy, the entire family can share this proxy to interact with AI and obtain information. The proxy consumes minimal resources, only forwarding messages and not affecting the home gateway's core business.

[0099] Figure 4 This is a schematic diagram of the family information service sharing process provided in this application. For example... Figure 4 The diagram illustrates the functional architecture of a home network and home gateway: Home devices such as mobile phones, cameras, set-top boxes, and computers access the home gateway via the intranet. Mobile phones can also access the gateway using mobile data or public Wi-Fi with a token. The home gateway acts as a central node, providing upward / outward access to capabilities such as home device information querying, home edge computing power / configuration management (and supporting remote parameter configuration for cloud services), home chat rooms / family message boards, AI agents (connecting to cloud-based large model services), and other HTTP proxies (connecting to cloud services). The home information service sharing process includes: Step 1: Use the probe to collect information about the attached device.

[0100] Home gateways or networking devices (routers) have built-in probes that periodically collect information about connected devices after the device starts up. This information includes device type, MAC address, internal IP address, and uplink and downlink traffic. See Table 1 for details of the probe's collected fields.

[0101] Table 1 Probe Acquisition Fields

[0102] Step 2: Edge calculation of probe data.

[0103] After obtaining the data through step 1, edge computing is performed on the data, and it is stored on the home gateway or networking device (router) without needing to be transmitted to the cloud via the network.

[0104] 1. Use a key-value structure to store data, where the key is the device's MAC address and the value is a JSON structure that stores other device information.

[0105] The data structure diagram is shown in Table 2.

[0106] Table 2 Data Structure

[0107] 2. The device traffic dot matrix map's online field uses a two-dimensional array for storage. A sample format is: [[(123,123), (111,222),...],[(123, 123), (111,222),],...[]]. The first row shows the traffic distribution for the current day, the second row for the previous day, and the Nth row for the previous N-1 days, for a total of N rows. N defaults to 7, and users can modify the default configuration through the home HTTP service. A specific row of the array [] stores M columns of numeric tuples. M defaults to 144, meaning one point is recorded every 10 minutes per day, with a default value of (0,0) tuples. The first number in each tuple represents upstream traffic, and the second number represents downstream traffic; integer values ​​are stored.

[0108] 3. After each data collection by the probe, assuming the probe iterates through the JSON array, obtains the MAC address as the key, and performs a local query. If the key exists, the value is updated; otherwise, a new key-value record is created. The device type is obtained and saved to the `type` field, the IP address is obtained and saved to the `ip` field, the current system time is saved to the `last_time` field, and the uplink and downlink traffic are obtained and saved to the current location. If the probe collects data frequently, the value is accumulated if the current location already has a value.

[0109] Figure 5This is the second flowchart of edge computing for home gateways or networking devices provided in this application. Figure 5 As shown in the diagram, this is a process for processing device online status and traffic characteristics: First, a scheduled task (executed once a day, calculating t-1 data) is triggered. After authentication, the probe data is traversed to determine the difference between the current time and the most recent online time of the connected device. If it is less than 24 hours, the online days of the connected device are incremented by 1, and it is determined whether it is greater than or equal to a threshold to generate a token invalid / valid status. If it exceeds 24 hours, the online days are set to 0. At the same time, traffic packet characteristics are calculated and traffic is aggregated by small packet and by day, outputting features such as [x2y0,x1y1,x0y2,...,x23y23] or hx1. Then, combined with "time-based opening habits", multiple rules are used to generate tags, or the device is marked by days to determine whether it is online and a timestamp list is recorded, which ultimately helps to determine the device's online status.

[0110] Step 3: Home device identification.

[0111] 1. A scheduled task is started within the home gateway, running once daily to calculate the data for the previous day (t-1). It iterates through the locally stored list of connected devices, checking the `last_time` field of each device. If the difference between the current time and `last_time` is less than 24 hours, the device's continuous online days (`days`) field is incremented by 1; otherwise, `days` is set to 0. The gateway then checks if the device's continuous online days (`days`) field exceeds a specified threshold (configurable). If it does, the device is considered a long-term online home device; otherwise, it is considered a visitor. The gateway generates a token for each identified home device, storing it in the device's local storage. This token is used for authentication when the device accesses the home's HTTP service via the internet. The token is valid for N days and expires after that. The home gateway renews the token daily based on the continuous online days of the connected devices. If a device is offline for more than the specified threshold, the token becomes invalid.

[0112] 2. Start a scheduled task within the home gateway, execute it once a day, and calculate the t-1 (previous day) data. Iterate through the previous day's traffic matrix for each device (i.e., the second row of the two-dimensional array).

[0113] Figure 6 This is a flowchart of the dot matrix image aggregation process provided in this application. For example... Figure 6As shown, the data is first aggregated by hour, and then aggregated by day based on the hourly aggregation to obtain one array and one tuple. The array format is [(x0,y0),(x1,y1),...(x23,y23)], a one-dimensional array with 24 columns, representing the cumulative point traffic within each hour. A second aggregation is performed on this array to obtain the daily total tuple (x,y), where x represents the total uplink traffic for the day and y represents the total downlink traffic for the day. The hourly aggregated traffic one-dimensional array `hours` is calculated. If there is no traffic during weekday working hours (configurable, distributed via the cloud), and only traffic at night, it can be labeled "office worker"; if there is traffic during working hours, it can be labeled "home user"; if someone is offline from 7 am to 5 pm but online at night, it can be labeled "student".

[0114] Step 4: Home gateway HTTP service.

[0115] The home gateway opens an HTTP service port, which can be set to a default value, such as 80. This port is bound to both the internal IP address and the public IP address. Family members can directly access the shared HTTP service via Wi-Fi using the internal IP address and port. This HTTP service can query information about all devices in the home. It can also act as an AI agent proxy, receiving requests from family members, invoking remote AI services, and returning information to the home gateway, which can be viewed by all family members. Specifically, if the network device (router) is on the home network, it is typically connected to the gateway. After collecting and storing the connected data (steps 1 and 2), the network device determines whether it has an uplink gateway. If it does, it synchronizes its connected data to the uplink gateway.

[0116] 1. The token generation rule is as follows: Use the device identifier MAC address as the data source, perform symmetric encryption on the MAC address and the current timestamp, and use the encrypted ciphertext as the token. The token is stored in the value of the corresponding device.

[0117] 2. When the device accesses the HTTP service through the intranet, it automatically queries the token and saves it to the local device cache.

[0118] Step 5: Home device service discovery.

[0119] Using the SSDP (Simple Service Discovery Protocol), the home gateway multicasts its internal and public HTTP service URLs (IP and port) to all devices on the home LAN. Each device stores the home gateway's HTTP service URL (IP address + port), allowing direct access to the service via the internal network. When a device accesses the HTTP service over the LAN, if its online time reaches a specified threshold and a token has been generated, the token is saved to its cache. When accessing the public HTTP service via the internet or cellular network, the device includes the token in its header. The home gateway verifies if the header matches the local device list and if the token is correct; if both verifications are successful, access is granted; otherwise, access is denied.

[0120] Step 6: Home gateway configuration process.

[0121] Home gateway configuration process: All family members can access the home HTTP service and modify relevant configurations. This can be done via the intranet or public network. All data is stored in the home gateway or networking device (router). Configuration data is permanently stored, while user data and probe data can be saved for a specified number of days depending on the specific hardware configuration. Expired data is automatically deleted. Simultaneously, the operator's cloud platform can also remotely control and query the configuration.

[0122] Step 7: Sharing HTTP service information with the home gateway.

[0123] Home gateway HTTP service information sharing process: All family members can use this HTTP service as a family member message board or chat room, and all data is stored locally at the edge. All family members can also use this HTTP service as an AI agent to use the operator's large-scale model service; except for necessary prompts, other information is not transmitted to the network.

[0124] It is understandable that the home gateway is a crucial, and currently the only, interface for family members to connect to the internet. The home gateway can be considered as representing a home, both physically (the gateway's installation address) and logically (the gateway's public IP address). Enabling an HTTP service within the gateway, acting as a proxy for information sharing within the family and for external communication, ensures user data security and allows for shared internet resources across the family. The home gateway is like a city gate, connecting the outside world and protecting the inside. This application addresses the scenario of information sharing among home network devices. Compared to the closest related technology, its advantages are as follows: 1. No data transmission is required. The binding relationship of home devices, or the identification of device home access, is completed using edge computing, without relying on the home broadband account or other subscription-related data, and there is no need to transmit data to the cloud. 2. Edge computing implementation. Considering the computing power limitations of home gateways or networking devices (routers), the calculations involved in this application are all simple numerical calculations, without complex logic, and are all local edge computing. 3. Cloud-edge collaboration. For the logic of tagging users based on user traffic patterns, the generation of these rules is suitable for cloud-based machine learning or other AI methods. 4. The home gateway only needs to receive existing rules and does not need to train its own. It does not involve collecting user information; the data obtained from the cloud only includes tagging rules and prompts needed by the AI ​​model. All other relevant core data is stored at the edge, i.e., within the user's home gateway, thus avoiding the collection of user information. 5. It is fully automated. This application automatically realizes device home access, device tagging, home device service discovery, and home information sharing, without requiring user intervention to complete the authentication process. The advantage of this application is that it leverages the premise that the user has already connected to the home WiFi; the device has already entered the password when connecting to the home WiFi. Since it is a device connected to a home gateway or networking device (router), it must be a network device within the home. 6. It is a home-level client with built-in HTTP service, accessible via both the intranet and the public network. It can function as a home chat room, an AI proxy, or a proxy for other cloud-based HTTP services, aggregating data at the home and communicating with the internet from the home's perspective.

[0125] The family information sharing device provided in this application is described below. The family information sharing device described below can be referred to in correspondence with the family information sharing method described above.

[0126] Figure 7 This is a structural diagram of the home information sharing device provided in this application. (For example...) Figure 7 As shown, the home information sharing device includes: The service binding module 210 is used to enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway. The information sending module 220 is used to send service information, including the intranet IP address, intranet port, public IP address and public port, to all devices in the home LAN; The first judgment module 230 is used to directly provide an access response when the first device in the home area network accesses the HTTP service through the internal network IP address; The second judgment module 240 is used to verify the access permissions of the second device based on the authentication information carried by the second device when the second device in the home local area network accesses the HTTP service through the public IP address, and decide whether to allow access based on the verification result.

[0127] In some embodiments, it also includes: The information collection module is used to periodically collect network information of the devices connected to the home gateway through a built-in soft probe. The network information includes device type, device IP address, device MAC address and device uplink and downlink traffic. The network information is stored locally on the home gateway in key-value pairs, where the device MAC address is used as the key and other information in the network information other than the device MAC address is used as the value.

[0128] In some embodiments, it also includes: The member determination module is used to obtain the number of consecutive online days of the connected device. The number of consecutive online days is determined based on the time difference between the current collection time and the previous collection time in the network information corresponding to the device's MAC address. If the number of consecutive online days exceeds a preset threshold, the connected device will be identified as a family member's device. If the number of consecutive online days is less than or equal to the preset threshold, the connected device will be identified as a guest device.

[0129] In some embodiments, it also includes: The authentication generation module is used to generate a token, which is generated by the home gateway based on the device MAC address of the connected device. The authentication sending module is used to send the Token to the connected device that is identified as a family member's device.

[0130] In some embodiments, the authentication generation module is specifically used for: The device's MAC address and current timestamp are symmetrically encrypted, and the resulting ciphertext is used as the Token.

[0131] In some embodiments, the token has an expiration date, and the device further includes: The authentication renewal module is used so that after the connected device is identified as a family member device, the home gateway renews the token periodically based on the number of consecutive online days of the connected device. The authentication invalidation module is used to invalidate the token if the number of consecutive online days of the downstream device is less than or equal to the preset threshold.

[0132] In some embodiments, it also includes: The authentication and deletion module is used to store the network information of the connected device and the token locally on the home gateway for a preset number of days, and automatically delete the data that exceeds the preset number of days.

[0133] In some embodiments, the information sending module 220 is specifically used for: The service information is sent to all devices in the home LAN via multicast using the Simple Service Discovery Protocol (SSDP).

[0134] In some embodiments, the network information further includes device traffic data, which is used to indicate the uplink and downlink data volume of the downstream device per unit time; the apparatus further includes: The data storage module is used to store the device traffic data in the form of a traffic dot matrix on the local home gateway; The traffic dot matrix is ​​a two-dimensional array. The number of rows N in the two-dimensional array represents the number of days stored, and the number of columns M in the two-dimensional array represents the number of equally divided time periods within each day. Each element of the two-dimensional array is a tuple containing both upstream and downstream traffic values.

[0135] In some embodiments, it also includes: The traffic aggregation module is used to aggregate the device traffic data according to the traffic matrix and time periods to obtain the traffic distribution of the downstream device in each time period. The user identification module is used to generate user behavior tags for the downstream devices based on the traffic distribution. The user behavior tags are used to characterize the user type to which the users of the downstream devices belong.

[0136] In some embodiments, the home gateway includes an uplink gateway and at least one downstream networking device, wherein the downstream networking device collects network information of its own downstream devices and synchronizes the collected network information to the uplink gateway, and the uplink gateway aggregates and stores the network information collected by the home gateway itself and the network information synchronized by the downstream networking device.

[0137] In some embodiments, it also includes: The interface providing module is used to provide an information sharing interface via an HTTP service, wherein the information sharing interface includes at least one of the following functions: Family member message board, home device information query, AI intelligent agent.

[0138] In some embodiments, the second determining module 240 is specifically used for: Verify whether the authentication information is valid, and verify whether the device MAC address of the second device carrying the authentication information is in the list of connected devices stored locally on the home gateway; Access is permitted if the authentication information is valid and the device MAC address is in the list of downstream devices; Otherwise, access will be denied.

[0139] Figure 8 This is a schematic diagram of the physical structure of the electronic device provided in this application. For example... Figure 8 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a home information sharing method, which includes: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway; The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, will be sent to all devices within the home LAN. When the first device within the home LAN accesses the HTTP service via the internal network IP address, it directly provides an access response; When a second device within the home LAN accesses the HTTP service via the public IP address, the access permissions of the second device are verified based on the authentication information carried by the second device, and a decision is made on whether to allow access based on the verification result.

[0140] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0141] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the home information sharing method provided by the above methods, the method including: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway; The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, will be sent to all devices within the home LAN. When the first device within the home LAN accesses the HTTP service via the internal network IP address, it directly provides an access response; When a second device within the home LAN accesses the HTTP service via the public IP address, the access permissions of the second device are verified based on the authentication information carried by the second device, and a decision is made on whether to allow access based on the verification result.

[0142] Furthermore, this application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the home information sharing method provided by the methods described above, the method comprising: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway; The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, will be sent to all devices within the home LAN. When the first device within the home LAN accesses the HTTP service via the internal network IP address, it directly provides an access response; When a second device within the home LAN accesses the HTTP service via the public IP address, the access permissions of the second device are verified based on the authentication information carried by the second device, and a decision is made on whether to allow access based on the verification result.

[0143] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for sharing family information, characterized in that, include: Enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway; The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, will be sent to all devices within the home LAN. When the first device within the home LAN accesses the HTTP service via the internal network IP address, it directly provides an access response; When a second device within the home LAN accesses the HTTP service via the public IP address, the access permissions of the second device are verified based on the authentication information carried by the second device, and a decision is made on whether to allow access based on the verification result.

2. The method according to claim 1, characterized in that, Also includes: The built-in soft probe periodically collects network information of the devices connected to the home gateway, including device type, device IP address, device media access control MAC address, and device uplink and downlink traffic. The network information is stored locally on the home gateway in key-value pairs, where the device MAC address is used as the key and other information in the network information other than the device MAC address is used as the value.

3. The method according to claim 2, characterized in that, Also includes: The number of consecutive online days of the connected device is obtained, and the number of consecutive online days is determined based on the time difference between the current collection time and the previous collection time in the network information corresponding to the device's MAC address. If the number of consecutive online days exceeds a preset threshold, the connected device will be identified as a family member's device. If the number of consecutive online days is less than or equal to the preset threshold, the connected device will be identified as a guest device.

4. The method according to claim 3, characterized in that, Also includes: Generate a token, which is generated by the home gateway based on the device MAC address of the connected device; The token is sent to the connected device that is identified as a family member's device.

5. The method according to claim 4, characterized in that, The generation of the token includes: The device's MAC address and current timestamp are symmetrically encrypted, and the resulting ciphertext is used as the Token.

6. The method according to claim 4, characterized in that, The token has an expiration date, and the method further includes: After the connected device is identified as a family member device, the home gateway renews the token periodically based on the number of consecutive online days of the connected device. The token becomes invalid if the number of consecutive online days of the connected device is less than or equal to the preset threshold.

7. The method according to claim 4, characterized in that, Also includes: The network information of the connected device and the Token are stored locally on the home gateway for a preset number of days. Data exceeding the preset number of days is automatically deleted.

8. The method according to claim 1, characterized in that, The service information, including the internal network IP address, internal network port, and the public network IP address and public network port, is sent to all devices within the home LAN, including: The service information is sent to all devices in the home LAN via multicast using the Simple Service Discovery Protocol (SSDP).

9. The method according to claim 2, characterized in that, The network information also includes device traffic data, which indicates the uplink and downlink data volume of the downstream device per unit time; the method further includes: The device traffic data is stored locally on the home gateway in the form of a traffic dot matrix. The traffic dot matrix is ​​a two-dimensional array. The number of rows N in the two-dimensional array represents the number of days stored, and the number of columns M in the two-dimensional array represents the number of equally divided time periods within each day. Each element of the two-dimensional array is a tuple containing both upstream and downstream traffic values.

10. The method according to claim 9, characterized in that, Also includes: Based on the traffic matrix, the device traffic data is aggregated by time period to obtain the traffic distribution of the downstream device in each time period; Based on the traffic distribution, user behavior tags for the downstream devices are generated, and the user behavior tags are used to characterize the user type to which the users of the downstream devices belong.

11. The method according to claim 2, characterized in that, The home gateway includes an uplink gateway and at least one downstream networking device. The downstream networking device collects network information from its own downstream devices and synchronizes the collected network information to the uplink gateway. The uplink gateway aggregates and stores the network information collected by the home gateway and the network information synchronized by the downstream networking device.

12. The method according to claim 1, characterized in that, Also includes: An information sharing interface is provided via an HTTP service, and the information sharing interface includes at least one of the following functions: Family member message board, home device information query, and AI intelligent agent.

13. The method according to claim 1, characterized in that, The step of verifying the access permissions of the second device based on the authentication information carried by the second device, and determining whether to allow access based on the verification result, includes: Verify whether the authentication information is valid, and verify whether the device MAC address of the second device carrying the authentication information is in the list of connected devices stored locally on the home gateway; Access is permitted if the authentication information is valid and the device MAC address is in the list of downstream devices; Otherwise, access will be denied.

14. A home information sharing device, characterized in that, include: The service binding module is used to enable the Hypertext Transfer Protocol (HTTP) service and bind the HTTP service to the internal Internet Protocol (IP) address and public IP address of the home gateway. The information sending module is used to send service information, including the intranet IP address, intranet port, public IP address, and public port, to all devices within the home LAN; The first judgment module is used to directly provide an access response when the first device in the home area network accesses the HTTP service through the internal network IP address; The second judgment module is used to verify the access permissions of the second device based on the authentication information carried by the second device when the second device in the home local area network accesses the HTTP service through the public IP address, and decide whether to allow access based on the verification result.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the family information sharing method as described in any one of claims 1 to 13.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the family information sharing method as described in any one of claims 1 to 13.

17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the family information sharing method as described in any one of claims 1 to 13.