WO2023083026A1 - Data acquisition method and system, and related device - Google Patents

Data acquisition method and system, and related device Download PDF

Info

Publication number
WO2023083026A1
WO2023083026A1 PCT/CN2022/128453 CN2022128453W WO2023083026A1 WO 2023083026 A1 WO2023083026 A1 WO 2023083026A1 CN 2022128453 W CN2022128453 W CN 2022128453W WO 2023083026 A1 WO2023083026 A1 WO 2023083026A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
management center
federation
data collection
sensor
Prior art date
Application number
PCT/CN2022/128453
Other languages
French (fr)
Chinese (zh)
Inventor
王成录
高翔宇
宋超领
吴金娴
周昕宇
王翃宇
黄维
王松涛
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023083026A1 publication Critical patent/WO2023083026A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Definitions

  • the present application relates to the fields of electronic equipment and data processing, and in particular to a data collection method, system and related devices.
  • Artificial intelligence technology artificial intelligence, AI
  • artificial intelligence Internet of Things technology artificial intelligence & Internet of things, AIOT
  • electronic devices are becoming more and more intelligent.
  • the electronic device can adjust the working state of the electronic device according to various data (such as current user status (exercise, stillness), user age, etc.), so as to bring better experience to the user.
  • a smart light equipped with an ambient light collection sensor can adjust the brightness of the smart light according to ambient light data.
  • This application provides a data collection method, system and related devices.
  • the data demand device can only send a data collection request, and the central management device can use the semantic information in the data collection request Find data acquisition devices capable of this semantic information.
  • the present application provides a data collection method, which is applied to a data collection system.
  • the data collection system may include multiple devices and a federal management center, and the multiple devices include the first device.
  • the data collection method may include: the federation management center receives the data collection task sent by the first device; the federation management center determines one of the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices or multiple devices; the federation management center instructs one or more devices to provide the required sensory data.
  • the federation management center can be deployed in one device, or distributed in one or more devices in the data collection system, and the devices can include electronic devices and servers.
  • the data demand device only needs to send the data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task
  • the data required in Identify the data acquisition devices that can provide that data.
  • the data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
  • the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
  • the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
  • the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
  • the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensor data of multiple devices; including: The federation management center analyzes the data collection task, and determines that the sensing data required for the data collection task includes the first sensing data and the second sensing data; the federation management center uses the first sensing data and the second sensing data; Determine the second device that provides the first sensing data and the third device that provides the second sensing data from multiple devices; the federal management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device Subtasks; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the third device to provide the second sensing data.
  • the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
  • the data collection method may further include: second The device accepts or rejects the first collection subtask; the third device accepts or rejects the second collection subtask.
  • one or more devices in the data collection system can decide whether to accept the data collection task.
  • the second device accepting or rejecting the first collection subtask includes: the second device determines to accept or reject the first collection subtask based on remaining resources in the second device. Task.
  • the second device determines to accept or reject the first collection subtask based on remaining resources in the second device, including: determining at the second device that the second device When the remaining resources in the resource are greater than the resources to be used required by the first acquisition subtask, the second device sends a first message to the federation management center, and the first message is used to instruct the second device to accept the first acquisition subtask; the second The remaining resources in the device include remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device Sending a second message to the federation management center, where the second message is used to instruct the second device to refuse to accept the first acquisition subtask.
  • one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
  • the federation management center instructs one or more devices to provide required sensing data, including: one or more devices establish a data transmission channel with the first device; a One or more devices send the required sensing data to the first device through the data transmission channel.
  • the data collection device that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
  • the federation management center instructs one or more devices to provide the required sensing data, including: the federation management center sends the required sensing data to one or more devices , sent to the first device.
  • the data collection device that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
  • the sensory data required for the data collection task includes the first semantic information; the federal management center sends the required sensory data sent by one or more devices to the first A device, including: the federation management center converts raw signals collected by sensors or second semantic information sent by one or more devices into first semantic information, and sends the first semantic information to the first device.
  • the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
  • the second device when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center determines the provider of the first sensing data according to the first collection subtask and the sensing capability information of multiple devices Fourth device.
  • the federation management center can find another device to perform the data collection task.
  • the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first acquisition subtask
  • the second device sends the After the federation management center sends the first message
  • the first message is used to instruct the second device to accept the first collection subtask, including: the second device collects the first sensing data based on the first collection subtask; the federation management center It is determined that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, the connection between the second device and the federal management center is disconnected, and the fourth device is connected to the federal management center. One or more of the second device not being worn, and the second device disconnected from the power supply.
  • the federation management center can also find another device to continue to complete the data collection task.
  • the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
  • the data collection device can be prevented from maliciously refusing to accept the data collection task.
  • the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a third message to the fifth device , the required third message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center, and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center receives the fifth device The remaining resources in the fifth device sent, and the estimated resources to be used by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide Data required for data collection tasks.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a fourth message to the fifth device , the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center receives the remaining resources in the fifth device sent by the fifth device; based on the data collection task, the federation management center, Evaluate the to-be-used resources required by the fifth device to perform the data collection task; if the remaining resources are greater than the required to-be-used resources, the federation management center instructs the fifth device to provide the data required by the data collection task.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the method may also include: the federation management center receives the sensing capability information of multiple devices; the federation management The center derives new sensing capability information based on the sensing capability information of multiple devices and the downloaded first knowledge map.
  • the federal management center can obtain all the sensing capability information in the data acquisition system.
  • the federation management center receives the sensing capability information of multiple devices; it may include: the federation management center receives a message that the sixth device among the multiple devices joins the data collection system and The device model of the sixth device; based on the device model of the sixth device, the federation management center obtains the sensing capability information of the sixth device from the first server; the first server stores different device models and the sensor information corresponding to the device model sensory information.
  • the federal management center can update the sensing capability information in the data collection system.
  • the method may further include: Sixth, the sensing capability information of the device, and the second knowledge graph, deduce new sensing capability information; the second knowledge graph includes the first knowledge graph, and the sensing capability information contained in the second knowledge graph is more than that contained in the first knowledge graph It contains a lot of sensing capability information; based on the new sensing capability information, the sensing capability information stored in the federal management center is updated.
  • the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
  • the method may further include: The federation management center determines that the sixth device exits the data collection system; the federation management center deletes the stored sensing capability information of the sixth device, and deletes new sensing capability information derived based on the sixth device's sensing capability information.
  • the federation management center determines that the sixth device exits the data collection system, including: the federation management center does not receive the fifth message sent by the sixth device within a preset period of time Next, the federal management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
  • the federation management center determines that the sixth device exits the data collection system, including: the federation management center receives a sixth message sent by the sixth device, and the sixth message is used to indicate that the sixth device The device exits the data acquisition system.
  • one or more devices further include a seventh device, and the method further includes: the federal management center sends first indication information to the seventh device, and the first indication information is used to indicate In the case of determining that the third sensor data collected by the seventh device is in the first state, the seventh device sends the third sensor data to the federation management center; the federation management center receives the third sensory data sent by the seventh device; The federal management center sends the third sensing data to one or more devices subscribed to the third sensing data.
  • the method further includes: ; The federation management center determines that the federation management center stores the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
  • the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first knowledge map is created by the federation management center based on the Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices.
  • the fourth sensing data and the fifth sensing data can be calculated or derived to obtain the sixth sensing data, it can be said that the fourth sensing data has an associated relationship with the fifth sensing data and the sixth sensing data.
  • a data collection method is provided, and the data collection method is applied to a data collection system.
  • the data collection system may include multiple devices and a federal management center, and the multiple devices include the first device.
  • the data collection method may include: the first device sends a first data collection task to the federal management center, and the first data collection task indicates that when the sensor data required by the first data collection task meets the first condition, obtain the first Sensing data required for the data collection task; based on the data collection task and the sensing capability information of multiple devices, the federal management center determines one or more devices that provide the sensing data required for the first data collection task;
  • the federal management center sends first indication information to one or more devices, and the first indication information is used to indicate that when it is determined that the required sensor data collected by one or more devices meets the first condition, one or more devices Send the required sensor data to the state management center.
  • the federation management center is deployed in one device, or distributed in multiple devices in the data collection system, and the devices include electronic devices and servers.
  • the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first condition includes that the required sensor data exceeds the first threshold, and the sensing data required for collection at the second time is different from the first threshold.
  • the difference of the sensor data required for collection at a time is greater than a second threshold; the second time is later than the first time.
  • the data demand device can subscribe data to the data collection device, that is, only when the sensing data meets the first condition, the data collection system device will send the sensing data to the data demand device.
  • the data collection method may further include: the second device sends a second data collection task to the federation management center, the second collection task includes a collection cycle parameter, and the collection cycle parameter indicates The second device needs the cycle of the fourth sensing data; the federal management center determines one or more devices to provide the fourth sensing data based on the second data collection task and the sensing capability information of multiple devices; the federal management center instructs one The or multiple devices collect fourth sensory data based on the collection period parameter.
  • the data demand device can periodically obtain the sensing data collected by the data collection device.
  • the data collection method may further include: the federation management center receives the data collection task sent by the first device; the federation management center information to determine one or more devices that provide the sensory data required for the data collection task; the federal management center instructs one or more devices to provide the required sensory data.
  • the data demand device only needs to send the data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task
  • the data required in Identify the data acquisition devices that can provide that data.
  • the data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
  • the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
  • the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
  • the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
  • the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensor data of multiple devices; including: The federation management center analyzes the data collection task, and determines that the sensing data required for the data collection task includes the first sensing data and the second sensing data; the federation management center uses the first sensing data and the second sensing data; Determine the second device that provides the first sensing data and the third device that provides the second sensing data from multiple devices; the federal management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device Subtasks; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the third device to provide the second sensing data.
  • the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
  • the data collection method may further include: second The device accepts or rejects the first collection subtask; the third device accepts or rejects the second collection subtask.
  • one or more devices in the data collection system can decide whether to accept the data collection task.
  • the second device accepting or rejecting the first collection subtask includes: the second device determines to accept or reject the first collection subtask based on remaining resources in the second device. Task.
  • the second device determines to accept or reject the first acquisition subtask based on remaining resources in the second device, including: determining at the second device that the second device When the remaining resources in the resource are greater than the resources to be used required by the first acquisition subtask, the second device sends a first message to the federation management center, and the first message is used to instruct the second device to accept the first acquisition subtask; the second The remaining resources in the device include remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device Sending a second message to the federation management center, where the second message is used to instruct the second device to refuse to accept the first collection subtask.
  • one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
  • the federation management center instructs one or more devices to provide required sensing data, including: one or more devices establish a data transmission channel with the first device; a One or more devices send the required sensing data to the first device through the data transmission channel.
  • the data collection device that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
  • the federation management center instructs one or more devices to provide the required sensing data, including: the federation management center sends the required sensing data to one or more devices , sent to the first device.
  • the data collection device that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
  • the sensory data required for the data collection task includes the first semantic information; the federal management center sends the required sensory data sent by one or more devices to the first A device, including: the federation management center converts raw signals collected by sensors or second semantic information sent by one or more devices into first semantic information, and sends the first semantic information to the first device.
  • the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
  • the second device when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first collection subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center determines the provider of the first sensing data according to the first collection subtask and the sensing capability information of multiple devices Fourth device.
  • the federation management center can find another device to perform the data collection task.
  • the second device when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the second device sends the After the federation management center sends the first message, the first message is used to instruct the second device to accept the first collection subtask, including: the second device collects the first sensing data based on the first collection subtask; the federation management center It is determined that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, the connection between the second device and the federal management center is disconnected, and the fourth device is connected to the federal management center. One or more of the second device not being worn, and the second device disconnected from the power supply.
  • the federation management center can also find another device to continue to complete the data collection task.
  • the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
  • the data collection device can be prevented from maliciously refusing to accept the data collection task.
  • the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a third message to the fifth device , the required third message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center, and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center receives the fifth device The remaining resources in the fifth device sent, and the estimated resources to be used by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide Data required for data collection tasks.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a fourth message to the fifth device , the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center receives the remaining resources in the fifth device sent by the fifth device; based on the data collection task, the federation management center, Evaluate the to-be-used resources required by the fifth device to perform the data collection task; if the remaining resources are greater than the required to-be-used resources, the federation management center instructs the fifth device to provide the data required by the data collection task.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the method may also include: the federation management center receives the sensing capability information of multiple devices; the federation management The center derives new sensing capability information based on the sensing capability information of multiple devices and the downloaded first knowledge map.
  • the federal management center can obtain all the sensing capability information in the data acquisition system.
  • the federation management center receives the sensing capability information of multiple devices; it may include: the federation management center receives a message that the sixth device among the multiple devices joins the data collection system and The device model of the sixth device; based on the device model of the sixth device, the federation management center obtains the sensing capability information of the sixth device from the first server; the first server stores different device models and the sensor information corresponding to the device model sensory information.
  • the federal management center can update the sensing capability information in the data collection system.
  • the method may further include: Sixth, the sensing capability information of the device, and the second knowledge graph, deduce new sensing capability information; the second knowledge graph includes the first knowledge graph, and the sensing capability information contained in the second knowledge graph is more than that contained in the first knowledge graph It contains a lot of sensing capability information; based on the new sensing capability information, the sensing capability information stored in the federal management center is updated.
  • the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
  • the method may further include: The federation management center determines that the sixth device exits the data collection system; the federation management center deletes the stored sensing capability information of the sixth device, and deletes new sensing capability information derived based on the sixth device's sensing capability information.
  • the federation management center determines that the sixth device exits the data collection system, including: the federation management center does not receive the fifth message sent by the sixth device within a preset period of time Next, the federal management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
  • the federation management center determines that the sixth device exits the data collection system, including: the federation management center receives a sixth message sent by the sixth device, and the sixth message is used to indicate that the sixth device The device exits the data acquisition system.
  • the one or more devices further include a seventh device, and the method further includes: the federation management center sends first indication information to the seventh device, and the first indication information is used to indicate In the case of determining that the third sensor data collected by the seventh device is in the first state, the seventh device sends the third sensor data to the federation management center; the federation management center receives the third sensory data sent by the seventh device; The federal management center sends the third sensing data to one or more devices subscribed to the third sensing data.
  • the method further includes: ; The federation management center determines that the federation management center stores the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
  • the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first knowledge graph is created by the federation management center based on the Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices.
  • a data collection method is provided, the data collection method is applied to a data collection system, and the data collection system may include a first electronic device, a second electronic device, and a third electronic device.
  • the first electronic device establishes a communication connection with the second electronic device
  • the second electronic device establishes a communication connection with the third electronic device
  • the data collection method may include: sending the first electronic device to the second electronic device Send the data acquisition task; the second electronic device analyzes the data acquisition task, determines the first sensor data required in the data acquisition task, and provides the third electronic device for the first sensor data;
  • the first sensor data includes the hardware in the third electronic device The data collected by the sensor and the data provided by the software in the third electronic device; the second electronic device sends the data collection task to the third electronic device;
  • the third electronic device collects the first sensor data based on the data collection task; the third electronic device The first sensor data is sent to the first electronic device.
  • the first electronic device may be a data demand device
  • the second electronic device may be a federal management center
  • the third electronic device may be a data collection device.
  • the data requesting device only needs to send a data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request.
  • the central management device can The data required in the collection task determines the data collection equipment that can provide the data.
  • the data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
  • the second electronic device parses the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to a third electronic device;
  • the first sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device analyzes the data collection task, and determines the first data collection task required in the data collection task.
  • the second electronic device queries the third electronic device that provides the first sensor data from the sensing capability information list;
  • the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system , and the identification of the electronic device that provides the sensor data;
  • the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
  • the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the third electronic device with the first sensor data;
  • the first Sensor data includes data collected by hardware sensors in the third electronic device and data generated by software in the third electronic device; including:
  • the second electronic device parses the data collection task, and determines the first semantic information required by the data collection task, and the second electronic device determines that the first semantic information is obtained based on the first sensor data; the second electronic device determines from the sensor
  • the third electronic device that provides sensor data is found in the capability information list; the sensor capability information list is used to store the identification of one or more sensor data included in the data acquisition system and the identification of the electronic device that provides sensor data;
  • the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
  • the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
  • the second electronic device sends the data collection task to the third electronic device; including: the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask It is used to instruct the third electronic device to collect the first sensor data; the second electronic device sends the data collection subtask to the third electronic device.
  • the data collection method may further include: before the third electronic device determines remaining resources in the third electronic device If it is greater than the resource to be used required by the data collection task, the third electronic device sends a first message to the second electronic device, and the first message is used to instruct the third electronic device to accept the data collection task; When the remaining resources in the third electronic device are less than the resources to be used required by the data collection task, the third electronic device sends a second message to the second electronic device, and the second message is used to instruct the third electronic device to refuse to accept the data collection task .
  • the third electronic device sends the sensor data to the first electronic device, including: the third electronic device sends the sensor data to the second electronic device; the second electronic device sends the sensor data to the second electronic device; The data is sent to the first electronic device; or, the third electronic device sends the sensor data to the first electronic device.
  • the third electronic device sends the sensor data to the first electronic device, including: the third electronic device establishes a data transmission channel with the first electronic device; the third electronic device passes the data The transmission channel sends the sensor data to the first electronic device.
  • the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data, including: the second The electronic device determines the first semantic information required for determining the data collection task, and the first semantic information is obtained based on the first sensor data; the second electronic device decomposes the data collection task into a data collection subtask and a semantic conversion subtask, and the data The collection subtask is used to instruct the third electronic device to collect the first sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected first sensor data into first semantic information.
  • the third electronic device sends the first sensor data to the first electronic device, including: the third electronic device converts the first sensor data into first semantic information; the third electronic device converts the first sensor data into first semantic information; The electronic device sends the first semantic information to the first electronic device.
  • sending the first sensor to the first electronic device by the third electronic device includes: sending the first sensor data to the second electronic device by the third electronic device; The device converts the first sensor data into first semantic information; the second electronic device sends the first semantic information to the first electronic device.
  • the data collection system further includes a fourth electronic device, the fourth electronic device, and the second electronic device analyzes the data collection task to determine the first sensor data required in the data collection task , and a third electronic device that provides first sensor data;
  • the first sensor data includes data collected by hardware sensors in the third electronic device and data provided by software in the third electronic device; including: the second electronic device parses data collection tasks , to determine the first sensor data and second sensor data required in the data acquisition task, and the third electronic device providing the first sensor data and the fourth electronic device providing the second sensor data;
  • the first sensor data includes the third electronic device The data collected by the hardware sensor in the device and the data provided by the software in the third electronic device;
  • the second sensor data includes the data collected by the hardware sensor in the fourth electronic device and the data provided by the software in the third electronic device;
  • the first sensor data The type of is different from the type of the second sensor data.
  • the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection period, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
  • the data collection system further includes a fifth electronic device, and the third electronic device determines that the remaining resources in the third electronic device are less than the resources to be used required by the data collection task.
  • the data collection method may further include: the second electronic device provides the first sensor The fifth electronic device for data; the second electronic device sends the data collection task to the fifth electronic device.
  • the data collection system further includes a fifth electronic device, and the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the fifth electronic device.
  • the data provided; the first sensory data includes the data collected by the hardware sensor in the fifth electronic device and the data provided by the software in the fifth electronic device; when the data collection task indicates that multiple electronic devices perform the data collection task,
  • the second electronic device determines that the third electronic device and the fifth electronic device perform the data collection task; when the data collection task indicates that one electronic device performs the data collection task, the second electronic device selects the third electronic device to perform the data collection task; Or the second electronic device selects the fifth
  • the second electronic device selects the third electronic device to perform the data collection task, including: the accuracy of the first sensor data provided by the third electronic device is higher than that of the fifth electronic device. In the case of the accuracy of the first sensor data provided by the device, the second electronic device selects the third electronic device to perform the data collection task;
  • the second electronic device selects the third electronic device to perform the data collection task
  • the second electronic device selects the third electronic device to perform the data collection task
  • the second electronic device selects the third electronic device to perform the data collection task
  • the second electronic device selects the fifth electronic device to perform data collection tasks, including:
  • the second electronic device selects the fifth electronic device to perform the data acquisition task
  • the second electronic device selects the fifth electronic device to perform the data collection task
  • the second electronic device selects the fifth electronic device to perform the data collection task
  • the second electronic device selects the fifth electronic device to perform the data collection task.
  • the data collection task carries an arbitration flag, and the arbitration flag indicates that the number of times the third electronic device refuses to accept the data collection task exceeds a preset threshold; the third electronic device, based on the data collection task, Before collecting sensor data, the data collection method further includes: the third electronic device sends a third message to the second electronic device, and the third message is used to notify the second electronic device, remaining resources in the third electronic device, and the data collection task Required resources to be used; when the second electronic device determines that the remaining resources in the third electronic device are greater than the resources to be used required by the data collection task, the second electronic device sends a fourth message to the third electronic device, and the second electronic device sends a fourth message to the third electronic device.
  • Four messages are used to instruct the third electronic device to accept the data collection task.
  • the data collection method may further include: when the type of sensor data provided by the data collection system increases, the second electronic device updates the sensor capability information list.
  • the data collection method may further include: the second electronic device establishes a semantic reasoning model based on multiple sensor data in the data collection system; the semantic reasoning model is used to sensor data to obtain semantic information corresponding to one or more sensor data.
  • a data collection method may include: the second electronic device receives the data collection task sent by the first electronic device; the second electronic device establishes a communication connection with the first electronic device; the second electronic device The device analyzes the data collection task, determines the first sensor data required in the data collection task, and the third electronic device that provides the first sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device, and is provided by the third electronic device The data provided by the software in the electronic device; the second electronic device sends the data collection task to the third electronic device; the second electronic device receives the first sensor data collected by the third electronic device; the second electronic device sends the first sensor data to the first electronic device.
  • the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device;
  • the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device analyzes the data collection task and determines the first sensor data required in the data collection task;
  • the second electronic device queries the third electronic device that provides the first sensor data from the sensing capability information list; the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system, and provide sensor The identification of the electronic device of the data;
  • the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
  • the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device;
  • the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device parses the data collection task and determines the first semantic information required by the data collection task , the second electronic device determines that the first semantic information is obtained based on the first sensor data; the second electronic device determines that a third electronic device that provides sensor data is found from the sensor capability information list; the sensor capability information list is used to store the The identification of one or more sensor data included in the data acquisition system, and the identification of the electronic device that provides the sensor data; the identification of one or more sensor data includes the identification of the first sensor data, and the identification of the electronic device includes An identification of the third electronic device.
  • the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
  • the second electronic device sends the data collection task to the third electronic device; including: the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask It is used to instruct the third electronic device to collect the first sensor data; the second electronic device sends the data collection subtask to the third electronic device.
  • the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data; including: the second The electronic device determines the first semantic information required for the data collection task, and the first semantic information is obtained based on the sensor data; the second electronic device decomposes the data collection task into a data collection subtask and a semantic conversion subtask, and the data collection subtask It is used to instruct the third electronic device to collect sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected sensor data into first semantic information.
  • the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device;
  • the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data provided by the software in the third electronic device; including:
  • the second electronic device analyzes the data collection task, determines the first sensor data and the second sensor data required in the data collection task, and the third electronic device that provides the first sensor data and the fourth electronic device that provides the second sensor data;
  • the first sensor data includes the data collected by the hardware sensor in the third electronic device and the data provided by the software in the third electronic device;
  • the second sensor data includes the data collected by the hardware sensor in the fourth electronic device and is provided by the software in the third electronic device Data provided;
  • the first sensor data is of a different type than the second sensor data.
  • the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection cycle, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
  • a data collection system in a fifth aspect, includes a federation management center and multiple devices.
  • the federation management center is used to receive the data collection task sent by the first device; the federation management center is used to determine one or more of the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices. Multiple devices; used by the federation management center to instruct one or more devices to provide the required sensory data.
  • the federation management center can be deployed in one device, or distributed in one or more devices in the data collection system, and the devices can include electronic devices and servers.
  • the data requesting device only needs to send a data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task
  • the data required in Identify the data acquisition devices that can provide that data.
  • the data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
  • the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
  • the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
  • the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
  • the federation management center is used to analyze the data collection task, and determine that the sensory data required for the data collection task includes the first sensory data and the second sensory data; the federated management center The center is used to determine the second device providing the first sensing data and the third device providing the second sensing data from multiple devices according to the first sensing data and the second sensing data; the federal management center uses The first collection subtask is sent to the second device, and the second collection subtask is sent to the third device; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the first collection subtask The third device provides second sensory data.
  • the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
  • the second device is configured to accept or reject the first collection subtask; the third device is configured to accept or reject the second collection subtask.
  • one or more devices in the data collection system can decide whether to accept the data collection task.
  • the second device accepting or rejecting the first collection subtask includes: the second device is configured to: determine to accept or reject the first acquisition subtask based on remaining resources in the second device. A collection subtask.
  • the second device is configured to determine to accept or reject the first collection subtask based on remaining resources in the second device, including: When the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the second device is used to send a first message to the federation management center, and the first message is used to instruct the second device to accept the first collection subtask Task; the remaining resources in the second device include the remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask , the second device is used to send a second message to the federation management center, and the second message is used to instruct the second device to refuse to accept the first acquisition subtask.
  • one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
  • the federation management center is used to instruct one or more devices to provide the required sensing data, including: one or more devices are used to establish data with the first device Transmission channel: one or more devices are used to send the required sensing data to the first device through the data transmission channel.
  • the data collection device that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
  • the federation management center is used to send the required sensing data sent by one or more devices to the first device.
  • the data collection device that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
  • the federal management center is used to convert the original signal or the second semantic information collected by the sensor sent by one or more devices into the first semantic information, and convert the second semantic information into the first semantic information.
  • a semantic message is sent to the first device.
  • the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
  • the second device when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center is used to determine to provide the first sensing subtask according to the first collection subtask and the sensing capability information of multiple devices data to the fourth device.
  • the federation management center can find another device to perform the data collection task.
  • the second device when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first acquisition subtask, the second device sends the After the federation management center sends the first message, the first message is used to instruct the second device to accept the first collection subtask, including: the second device is used to collect the first sensory data based on the first collection subtask; the federation The management center determines that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, and the connection between the second device and the federal management center is disconnected , the second device is not in the wearing state, and the second device is disconnected from the power source.
  • the federation management center can also find another device to continue to complete the data collection task.
  • the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
  • the data collection device can be prevented from maliciously refusing to accept the data collection task.
  • the federation management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center is used to send the fifth device Sending a third message, the required third message is used to instruct the fifth device to send to the federation management center the remaining resources in the fifth device and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center Receive the remaining resources in the fifth device sent by the fifth device, and the resources to be used that are estimated by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs The fifth device provides the data required for the data collection task.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the federation management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center is used to send the fifth device Sending a fourth message, the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center is used to receive the remaining resources in the fifth device sent by the fifth device; federation management The center is used to evaluate the resources to be used by the fifth device to perform the data collection task based on the data collection task; when the remaining resources are greater than the required resources to be used, the federation management center is used to instruct the fifth device to provide data collection data required for the task.
  • the federal management center can more accurately judge whether the fifth device can accept the data collection task.
  • the federation management center is used to receive the sensing capability information of multiple devices; Atlas to derive new sensory capability information.
  • the federal management center can obtain all the sensing capability information in the data acquisition system.
  • the federation management center is used to receive the message that the sixth device among the multiple devices joins the data collection system and the device model of the sixth device; For the device model of the device, the sensing capability information of the sixth device is acquired from the first server; different device models and sensing capability information corresponding to the device model are stored in the first server.
  • the federal management center can update the sensing capability information in the data collection system.
  • the federation management center is further configured to derive new sensing capability information based on the sensing capability information of the sixth device and the second knowledge graph;
  • the second knowledge graph includes The first knowledge map, the sensing capability information contained in the second knowledge map is more than the sensing capability information contained in the first knowledge map;
  • the federal management center is used to update the sensor capability information stored in the federal management center based on the new sensing capability information sensory information.
  • the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
  • the federation management center is used to determine that the sixth device exits the data collection system; the federation management center is used to delete the stored sensor capability information of the sixth device, and delete The new sensing capability information derived from the sensing capability information of the device.
  • the federation management center is used to determine that the sixth device exits the data collection system, including: the federation management center is used to send the sixth device if it has not received the sixth device within a preset period of time. In the case of five messages, the federation management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
  • the federation management center is used to determine that the sixth device exits the data collection system, including: the federation management center is used to receive the sixth message sent by the sixth device, and the sixth message uses In order to instruct the sixth device to exit the data collection system.
  • one or more devices further include a seventh device, and the federation management center is configured to send first indication information to the seventh device, and the first indication information is used to indicate When the third sensor data collected by the seventh device is in the first state, the seventh device is used to send the third sensor data to the federation management center; the federation management center is used to receive the third sensor data sent by the seventh device Data; the federation management center is used to send the third sensing data to one or more devices subscribed to the third sensing data.
  • the method further includes: the federation management center is used to store data based on the data collection task, and the federation management center The federation management center is used to determine that the federation management center has stored the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
  • the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices.
  • an electronic device including one or more processors, one or more memories, and a transceiver; wherein, the transceiver, one or more memories are coupled with one or more processors, and one or more
  • the memory is used to store computer program codes, and the computer program codes include computer instructions.
  • the electronic equipment executes: receiving the data collection task sent by the first electronic equipment; There is a communication connection; analyze the data acquisition task, determine the first sensor data required in the data acquisition task, and provide the third electronic device for the first sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device, The data provided by the software in the third electronic device; sending the data collection task to the third electronic device; receiving the first sensor data collected by the third electronic device; sending the first sensor data to the first electronic device.
  • the electronic device is further configured to perform: parsing the data collection task, determining the first sensor data required in the data collection task; querying from the sensing capability information list to provide The third electronic device for the first sensor data; the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system, and the identification of the electronic device providing the sensor data; one or more sensors
  • the identifier of the data includes the identifier of the first sensor data, and the identifier of the electronic device includes the identifier of the third electronic device.
  • the electronic device is further configured to perform: parsing the data collection task, determining first semantic information required by the data collection task, and determining the first semantic information based on the first
  • the sensor data is obtained; it is determined that the third electronic device that provides the sensor data is queried from the sensing capability information list; the sensing capability information list is used to store the identification of one or more sensor data included in the data collection system, and The identification of the electronic device that provides the sensor data; the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
  • the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
  • the electronic device is further configured to: decompose the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data; Send the data collection subtask to the third electronic device.
  • the electronic device is further configured to: determine the first semantic information required for determining the data collection task, where the first semantic information is obtained based on sensor data;
  • the task is decomposed into a data collection subtask and a semantic conversion subtask, the data collection subtask is used to instruct the third electronic device to collect sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected sensor data into first semantic information .
  • the electronic device is further configured to: analyze the data collection task, determine the first sensor data and the second sensor data required in the data collection task, and provide the first sensor data
  • the third electronic device for the data and the fourth electronic device for providing the second sensor data the first sensor data includes the data collected by the hardware sensor in the third electronic device, and the data provided by the software in the third electronic device
  • the second sensor data includes The data collected by the hardware sensor in the fourth electronic device and the data provided by the software in the third electronic device
  • the type of the first sensor data is different from the type of the second sensor data.
  • the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection period, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
  • the present application provides a data collection device, including one or more processors, one or more memories, and a transceiver.
  • the transceiver, the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the The data collection device executes the method in any possible implementation manner of the first aspect above.
  • a data collection device in an eighth aspect, includes a federation management center module.
  • the federation management center can be used to receive data collection tasks sent by the sensor federation engine module in the data demand device.
  • the federation management center can also send the data collection task to the sensor federation engine module or the data collection module of the data collection device.
  • the federal management center can also receive the data 1 collected by the sensor sent by the data collection device or the semantic information obtained from the data 1 .
  • the federation management center may include a task generation module, a task allocation and scheduling module, a resource access authorization module, a semantic reasoning module, a task parsing module, a device joining/exiting management module, a sensor Capability management module, semantic update module, and semantic fusion and association relationship management module. in:
  • the task generation module is used to generate data collection tasks.
  • the task allocation and scheduling module is used to allocate data acquisition tasks to one or more data acquisition devices.
  • the resource access authorization module can be used to record authorized resources (for example, computing resources, storage resources, etc.) and sensor capabilities in each data acquisition device.
  • the resource access authorization module can also be used to authorize the resource access of the data demand device, that is, authorize the data demand device to use which resources of the data collection device (for example, computing resources, storage resources, etc.).
  • the semantic inference module can be used to infer semantic information based on raw data collected by sensors, or infer new semantic information (also called high-order semantic information) based on multiple semantic information (also called low-order semantic information).
  • high-level semantic information and low-level semantic information are relative concepts.
  • a plurality of semantic information that can be inferred or generated as new semantic information is referred to as low-level semantic information
  • new semantic information generated from the plurality of semantic information is referred to as high-level semantic information.
  • semantic information A and semantic information B can be deduced or generated semantic information C.
  • semantic information A and semantic information B can be called low-order semantic information
  • semantic information C can be called high-order semantic information.
  • the task parsing module can be used to parse data collection tasks.
  • the equipment joining/exiting management module can be used to manage the joining and exiting of equipment in the data acquisition system.
  • the sensing capability management module can be used to manage the sensing capability information of each device in the data acquisition system.
  • the sensing capability information may include semantic information that can be provided by the device, the precision of the semantic information, raw data collected by the sensor, the precision of the raw data, and the like.
  • the semantic update module can be used to update semantic information and store the updated semantic information.
  • the semantic fusion and relationship management module can be used for the fusion of semantic information, knowledge fusion and management of the relationship between semantic information.
  • semantic information A and semantic information B can derive semantic information C, then it can be said that semantic information A and semantic information B have an association relationship.
  • the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are run on a computer, the computer is made to execute any possible implementation of any one of the first to fourth aspects above. methods in methods.
  • the present application provides a computer program product, which, when running on a computer, causes the computer to execute the method in any one possible implementation manner of the first aspect to the fourth aspect above.
  • FIG. 1 is a schematic diagram of the architecture of a data acquisition system 10 provided by an embodiment of the present application;
  • FIG. 2 is a schematic diagram of a scene of a data acquisition system 10 provided in an embodiment of the present application
  • Fig. 3 is the software architecture diagram of data demand equipment 20, federation management center 30, data acquisition equipment 40 in the data acquisition system 10 that the embodiment of the application provides;
  • Fig. 4 is a schematic diagram of the software architecture of the sensor federation engine provided by the embodiment of the present application.
  • Fig. 5 is a schematic diagram of the software architecture of the federal management center provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a knowledge graph of semantic information provided by an embodiment of the present application.
  • FIG. 7A is a schematic diagram of a user interface 70A of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 7B is a schematic diagram of a user interface 70B of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 7C is a schematic diagram of a user interface 70C of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 7D is a schematic diagram of a user interface 70D of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 7E is a schematic diagram of a user interface 70E of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8A is a schematic diagram of a user interface 80A of a mobile phone 104 provided in an embodiment of the present application;
  • FIG. 8B is a schematic diagram of a user interface 80B of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8C is a schematic diagram of a user interface 80C of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8D is a schematic diagram of a user interface 80D of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8E is a schematic diagram of a user interface 80E of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8F is a schematic diagram of a user interface 80F of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8G is a schematic diagram of a user interface 80G of a tablet 105 provided in an embodiment of the present application.
  • FIG. 8H is a schematic diagram of a user interface 80H of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 8I is a schematic diagram of a user interface 80I of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 9A is a schematic diagram of a user interface 90A of a tablet 105 provided in an embodiment of the present application.
  • FIG. 9B is a schematic diagram of a user interface 90B of a tablet 105 provided in an embodiment of the present application.
  • FIG. 9C is a schematic diagram of a user interface 90C of a tablet 105 provided in an embodiment of the present application.
  • FIG. 9D is a schematic diagram of a user interface 90D of a mobile phone 104 provided in an embodiment of the present application.
  • FIG. 9E is a schematic diagram of a user interface 90E of a tablet 105 provided in an embodiment of the present application.
  • FIG. 9F is a schematic diagram of a user interface 90F of a tablet 105 provided in an embodiment of the present application.
  • FIG. 9G is a schematic diagram of a user interface 90G of a tablet 105 provided in an embodiment of the present application.
  • FIG. 10 is a schematic flow chart of a data collection method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a data acquisition task processing flow provided by an embodiment of the present application.
  • FIG. 12 is a schematic flow diagram of determining a target data collection device provided by an embodiment of the present application.
  • Fig. 13A is a schematic flow diagram of how the data collection device provided in the embodiment of the present application determines whether to accept the data collection task
  • FIG. 13B is a schematic flowchart of how to determine whether the data collection device accepts the data collection task in the arbitration mode provided by the embodiment of the present application;
  • Fig. 13C is a schematic flow diagram of how the data collection device provided in the embodiment of the present application determines whether to accept the data collection task
  • FIG. 14A is a schematic diagram of specific steps for establishing a data transmission channel between the data acquisition device 40 and the data demand device 20 provided by the embodiment of the present application;
  • FIG. 14B is a schematic diagram of specific steps for establishing a data transmission channel between the federal management center 30 and the data demand device 20 and the data collection device 40 provided by the embodiment of the present application;
  • FIG. 15A is a schematic diagram of specific steps for the data collection device 40 to send the collected sensor data to the data demand device 20 through the federation management center 30 provided by the embodiment of the present application;
  • Fig. 15B is a schematic diagram of specific steps of how the data collection device 40 provided by the embodiment of the application and how the federation management center 30 handles an abnormal event in the data collection device 40;
  • FIG. 15C is a schematic diagram of the processing flow of the collected sensor data by the data collection device 40 provided in the embodiment of the present application.
  • FIG. 16 is a schematic diagram of a specific application scenario of a data acquisition system provided by an embodiment of the present application.
  • FIG. 17 is a schematic diagram of a specific software model implementation process of the data collection scene provided by the embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • FIG. 1 exemplarily shows a data acquisition system 10 provided by an embodiment of the present application.
  • the data collection system includes one or more data demand devices, a federation management center and one or more data collection devices.
  • the federation management center may be in the data demand device or in the data collection device.
  • the federation management center can also be located in an electronic device other than the data demand device and the data collection device, or a cloud server or server.
  • the federation management center can be deployed in multiple electronic devices in a distributed manner, that is, multiple electronic devices can serve as the federation management center in the data collection system 10 together.
  • the data demand equipment, the data acquisition equipment, and the electronic equipment or cloud server where the federation management center is located, and the server can establish communication through wireless local area networks (wireless local area networks, WLAN), or cellular networks, bluetooth, and distributed soft buses, etc. connect.
  • wireless local area networks wireless local area networks, WLAN
  • cellular networks wireless local area networks, bluetooth, and distributed soft buses, etc. connect.
  • the embodiment of the present application does not limit the data demand device, the data collection device, and the electronic device as the federation management center, or the cloud server, or the way in which the server establishes a communication connection in the data collection system 10 .
  • the distributed soft bus can be an upper-level software communication bus system that supports various wired and wireless communication protocols, and is a communication base for electronic devices such as mobile phones, tablets, smart wearables, smart screens, and cars. Interconnection between devices provides communication capabilities.
  • the data demand device can establish a communication connection with the electronic device or cloud server or server where the federation management center is located.
  • the data demand device and the electronic device or cloud server as the federal management center can establish communication through wireless local area network (wireless local area network, WLAN), cellular network, Bluetooth or distributed soft bus or universal serial bus (universal serial bus, USB) connection line, etc. connect.
  • wireless local area network wireless local area network, WLAN
  • cellular network cellular network
  • USB universal serial bus
  • the data collection device can also establish a communication connection with the electronic device or cloud server or server where the federal management center is located.
  • the data acquisition equipment and the electronic equipment or cloud server where the federal management center is located, and the server can establish a communication connection through WLAN, cellular network, Bluetooth or distributed soft bus, USB cable, etc.
  • the embodiment of the present application does not limit the specific manner in which the data collection device establishes a communication connection with the electronic device, cloud server, or server where the federation management center is located.
  • the data demand device can establish a communication connection with the data demand device through the device where the federation management center is located.
  • the data demand device may also directly establish a communication connection with the data collection device.
  • a communication connection can be established between the data demand device and the data acquisition device through WLAN, cellular network, Bluetooth or distributed soft bus, USB cable, etc. This embodiment of the present application does not limit it.
  • the data demand device may be used to send a data request task, and obtain sensor data collected by one or more data collection devices based on the data request task or semantic information obtained from the sensor data.
  • the federal management center can be used to determine whether there is a data collection device that meets the data collection request based on the data collection request sent by the data demand device.
  • the federal management center can also be used to process the data collected by the sensors in the data collection device to obtain semantic information corresponding to the data collected by the sensors.
  • the data collection device can be used to collect raw sensor data based on the data collection task, or process the collected raw sensor data into semantic information.
  • the data demand device may send a data collection request to the federation management center, and the federation management center may send the data collection request to one or more data collection devices.
  • the data collection device can collect data based on the data collection request.
  • the data collection device can send the collected data to the data demand device through the federation management center.
  • the data demand device may directly send the data collection request to the data collection device.
  • the data collection device collects data based on the data collection request, and sends the collected data to the data demand device.
  • the data-requiring device may perform certain tasks or realize certain functions, but the data-requiring device cannot provide sensor data that meets the requirements of these tasks or functions.
  • the federation management center module can be deployed in one or more electronic devices (such as smart phones, computers, tablets, etc.) or cloud servers or servers with strong data processing capabilities and computing capabilities.
  • a data collection device may be a device with sensors that can collect data.
  • a data acquisition device can also be a device consisting of only a single sensor. For example, smart cameras, temperature sensors, and more. It can be understood that the embodiment of the present application does not limit the data demand device, the device where the federation management center is located, and the data collection device.
  • the role of the electronic device in the data collection system ie: data demand device, federation management center, data acquisition equipment
  • the federation management center can be deployed in multiple electronic devices in a distributed manner. How multiple electronic devices form a data acquisition system will be described in detail below, and details will not be repeated here.
  • the data demand device, the electronic device where the federation management center is located, and the data collection device can all be called electronic devices or terminals.
  • the embodiment of the present application does not limit the names of the data demand device, the electronic device where the federation management center is located, and the data collection device.
  • the above-mentioned data collection system 10 may be referred to as a sensor federation, and the sensor federation is used to fuse, schedule, and manage sensor data distributed in multiple devices.
  • a sensor federation is composed of multiple electronic devices.
  • each electronic device can provide data of one or more sensors in the electronic device (the specific number and specific sensors can be set by the electronic device).
  • the sensor federation can fuse, schedule and manage the sensor data of multiple electronic devices in the sensor federation.
  • the sensor data may be raw data collected by a sensor in the electronic device or data obtained by processing the raw data.
  • the sensing data may be data acquired or calculated by software, or data of hardware sensors.
  • the semantic information may be information that is identifiable and processable by an electronic device obtained by processing raw data collected by a sensor or data obtained after processing the raw data.
  • the original temperature waveform signal collected by the temperature sensor can be processed into semantic information that can be understood and applied by electronic equipment (for example, 26°C (Celsius)).
  • the raw data collected by sensors can be processed into different semantic information due to different constraints such as scenarios and application requirements.
  • the measurement result provided by the temperature sensor may be treated as “indoor temperature” or “outdoor temperature” according to the deployment location of the temperature sensor.
  • the image signal provided by the camera can be processed into different semantic information such as "identity” or "age” according to different application requirements.
  • sensor data of different models, precisions, and types may also be processed into the same semantic information.
  • the voice signal collected by the microphone can be processed as the semantic information of "identity”
  • the image signal collected by the camera can also be processed as the semantic information of "identity”.
  • the semantic information not only includes information directly applicable to the electronic device, but also includes metadata used to describe the semantic information.
  • the metadata can be the type, attribute, precision, Constraints and other information.
  • the metadata can assist electronic devices to process and apply sensory data more efficiently.
  • sensory data the above-mentioned semantic information, sensor data, raw data collected by the sensor, raw signal, etc. are collectively referred to as sensory data.
  • the frequency of increase or decrease in the number of electronic devices in the data collection system in different scenarios, as well as the frequency of replacement of electronic devices serving as the federal management center in the data collection system are different.
  • the frequency of increase or decrease of the number of electronic devices in the data collection system is low (maybe no new electronic devices will be added for a long time), and the frequency of replacement of electronic devices serving as the federal management center is low .
  • the number of electronic devices in the data collection system increases or decreases frequently, and the frequency of replacement of electronic devices serving as the federal management center is also high.
  • the embodiment of the present application does not limit the usage scenarios of the data acquisition system 10 .
  • the data collection system 10 shown in FIG. 1 will be described below in a specific scenario.
  • electronic devices such as air conditioners, tablets, mobile phones, watches, cameras, air quality sensors, etc. in a user's home can be combined into a data acquisition system.
  • Fig. 2 exemplarily shows a data collection system in a home scene.
  • the data collection system in this home scene may include an air conditioner 101 , a camera 102 , a watch 103 , a mobile phone 104 , a tablet 105 , and an air quality sensor 106 .
  • the air conditioner 101 can be used as a data demand device in the data collection system.
  • the camera 102, watch 103, tablet 105, and air quality sensor 106 can all collect data. Camera 102, watch 103, tablet 105, and air quality sensor 106 can all be used as data collection devices in the data collection system.
  • the camera 102 may collect data such as user identity (the elderly, children, young and middle-aged people, etc.), user location, and the like.
  • the watch 103 can collect data such as user status (sleep, work and study, exercise, etc.), and user body temperature.
  • Tablet 105 can collect data such as user status (sleep, work, study, exercise, etc.), user identity (old people, children, young and middle-aged people, etc.), user health status.
  • the air quality sensor 106 can collect data such as air pressure, humidity, and PM2.5 (fine particulate matter in the air) of indoor and outdoor air.
  • the mobile phone 104 can be used as the federal management center in the data collection system.
  • the air conditioner 101 can obtain data collected by electronic devices such as a camera 102 , a watch 103 , a mobile phone 104 , a tablet 105 , and an air quality sensor 106 through a mobile phone 104 .
  • the air conditioner 101 can adjust the working mode of the air conditioner based on the data collected by electronic devices such as the camera 102 , the watch 103 , the tablet 105 , and the air quality sensor 106 . In this way, the air conditioner 101 does not need a presence sensor, and can also acquire user information or environmental conditions that can intelligently adjust the working mode of the air conditioner.
  • one device in the data collection system obtains user information and sensing data of another device, it needs to obtain authorization from a user of another device.
  • a frame diagram of the data demand device, the federation management center, and the data collection device may be as shown in FIG. 3 .
  • Fig. 3 exemplarily shows a schematic diagram of the software framework of the data demand device 20, the federation management center 30 and the data collection device 40 in the data collection system 10.
  • the data demand device 20 may include an application layer 201 and a sensor federation engine module 202 .
  • the application layer 201 may include one or more application programs, for example, application program APP2011, application program APP2012 and other application programs.
  • the embodiment of the present application does not limit the number of application programs included in the data demand device 20 and the specific types of application programs.
  • An application program of the application layer 201 in the data demand device 20 may initiate a data collection request.
  • the sensor federation engine module 202 may generate a data collection task from the data collection request.
  • the sensor federation engine module 202 may send the data collection task to the federation management center 30 .
  • the federation management center 30 may receive the data collection task sent by the sensor federation engine module 202 in the data demand device 20 .
  • the federation management center 30 may also send the data collection task to the sensor federation engine module 401 or the data collection module 402 of the data collection device 40 .
  • the federal management center 30 can also receive the data 1 collected by the sensor sent by the data collection device 40 or the semantic information obtained from the data 1 .
  • the federation management center 30 may receive the data 1 collected by the sensor or the semantic information obtained from the data 1 sent by the sensor federation engine module 401 or the data collection module 402 in the data collection device 40 .
  • the federation management center 30 can send the received data 1 to the sensor federation engine module 202 in the data demand device 20 .
  • the federation management center 30 may convert the received data 1 into semantic information, and then send the semantic information to the sensor federation engine module 202 .
  • the data collection device 40 may include a data collection module 402 .
  • the data collection device 40 may also include a sensor federation engine module 401 . It can be understood that, in some data collection devices 40, the sensor federation engine module 401 may not be included.
  • the data collection module 402 can directly receive the data collection task sent by the federation management center 30 , or receive the data collection task sent by the federation management center 30 through the sensing federation engine module 401 .
  • the data collection module 402 can send the collected data 1 to the federation management center 30 based on the data collection task, or send the collected data 1 to the sensor federation engine module 401, and the sensor federation engine module 401 converts the data 1 into The corresponding semantic information is then sent to the federal management center 30 .
  • the data collection device 40 may directly send the collected data 1 or the semantic information obtained from the data 1 to the data demand device 20 .
  • the sensor federation engine module 401 in the data collection device 40 can directly send the data 1 collected by the data collection module 402 or the semantic information obtained from the data 1 to the data demand device 20 .
  • the data collection module 402 may be a specific hardware sensor in the data collection device 40, or some software modules or algorithms for collecting data in the data collection device 40, which is not limited in this embodiment of the present application.
  • the federation management center 30 may receive the data 1 sent by the data collection module 402 , and then convert the data into corresponding semantic information and send it to the sensor federation engine module 202 .
  • the federation management center 30 may receive the semantic information sent by the sensing federation engine module 401 .
  • the federation management center 30 can send the semantic information to the sensing federation engine module 202 .
  • the sensor federation engine module 202 can send the semantic information to the application program in the data demand device 20 that initiates the data collection request.
  • the specific functions of the sensor federation engine module 202 and the sensor federation engine module 401 will be introduced in detail in FIG. 4 , and will not be repeated here.
  • the specific functions of the federation management center 30 will be introduced in detail in FIG. 5 and will not be repeated here.
  • data demand device 20 and the data collection device 40 may have more or less modules, which is not limited in this embodiment of the present application.
  • Fig. 4 exemplarily shows a schematic diagram of functional modules of the sensor federation engine module.
  • the sensor federation engine module may include a subscription and query module 501 , a model exploration module 502 , a data analysis module 503 , a management module 504 , a data storage module 505 , and a data access module 506 . in:
  • the subscription and query module 501 is configured to receive query requests, and send query information based on the query requests.
  • the subscription and query module 501 can also be used for subscribing events, and sending notifications for subscribing events based on subscribing events.
  • the model exploration module 502 may include a task generation module 5021 , a task analysis module 5022 , a task management module 5023 and a task execution module 5024 .
  • the task generation module 5021 can be used to generate data collection tasks.
  • the data collection task may include information such as the type of data to be collected, accuracy, real-time data or historical data, and collection operators.
  • the task parsing module 5022 can be used for parsing the received data collection tasks, and determining the resources needed for the data collection tasks (such as computing resources, storage resources, etc.) and the like.
  • the task management module 5023 can be used to start a data collection task, suspend a data collection task, and cancel a data collection task.
  • the task execution module 5024 can be used to execute data collection tasks.
  • the data analysis module 503 may include a portrait analysis module 5031 , a short-term memory module 5032 , and a perception analysis module 5033 .
  • the portrait analysis module 5031 can form user portrait information (such as , user's age, user's preference, user's sleep condition, etc.).
  • the portrait analysis module 5031 can also store user portrait information.
  • the short-term memory module 5032 can be used to obtain semantic information based on historical data, and store the semantic information; and store the semantic information obtained by the perceptual analysis module.
  • the perception analysis module 5033 can obtain semantic information based on the real-time data collected by the data access module 506 .
  • the management module 504 may include a device discovery module 5041 and a task negotiation and decision module 5042 .
  • the device discovery module 5041 can be used to discover devices, join or exit the data collection system.
  • the task negotiation and decision-making module 5042 is used to interact with other devices to collect task information, and determine whether to accept the data collection task sent by another device according to the working status of the device.
  • the data storage module 505 can be used to store data, and can also be used to receive and store data sent by other devices and data sent by the data access module 506 .
  • the data access module 506 can be used to receive data sent by other devices.
  • the sensor federation engine module shown in FIG. 4 is only an example, and the sensor federation engine module may include more or less modules, which is not limited in this embodiment of the present application.
  • the modules shown in FIG. 4 may also have other names in other scenarios, and this embodiment of the present application does not limit the names of the modules in the sensor federation engine module.
  • the sensor federation engine module can be elastically and tailorably installed in an electronic device.
  • the electronic device can download one or more modules in the sensor federation engine module based on the computing capability and storage capability of the electronic device. For example, all the modules in the sensing federation engine module shown in FIG. 4 above can be installed in the mobile phone.
  • the device discovery module 5041 and the data access module 506 in the sensor federation engine module shown in FIG. 4 above can be installed in the air conditioner.
  • FIG. 5 exemplarily shows a schematic diagram of functional modules of the federation management center 30 .
  • the federation management center 30 may include a task generation module 601, a task allocation and scheduling module 602, a resource access authorization module 603, a semantic reasoning module 604, a task analysis module 605, a device joining/exiting management module 606, a sensing capability A management module 607 , a semantic update module 608 , and a semantic fusion and association relationship management module 609 . in:
  • the task generation module 601 is used to generate data collection tasks.
  • the specific data collection task may refer to the description above, and the description below of a specific example of the data collection task in a specific scenario, which will not be repeated here.
  • the task assignment scheduling module 602 is used to assign data collection tasks to one or more data collection devices.
  • the resource access authorization module 603 may be used to record authorized resources (for example, computing resources, storage resources, etc.) and sensor capabilities in each data collection device.
  • the resource access authorization module 603 can also be used to authorize resource access to the data demand device, that is, authorize the data demand device to use which resources of the data collection device (for example, computing resources, storage resources, etc.).
  • the semantic reasoning module 604 can be used to infer semantic information based on raw data collected by sensors, or infer new semantic information (also called high-level semantic information) based on multiple semantic information (also called low-level semantic information). It can be understood that, in the embodiment of the present application, high-level semantic information and low-level semantic information are relative concepts.
  • a plurality of semantic information that can be inferred or generated as new semantic information is referred to as low-level semantic information
  • new semantic information generated from the plurality of semantic information is referred to as high-level semantic information.
  • semantic information A and semantic information B can be deduced or generated semantic information C. Then semantic information A and semantic information B can be called low-order semantic information, and semantic information C can be called high-order semantic information.
  • the task parsing module 605 can be used for parsing data collection tasks.
  • the device joining/exiting management module 606 can be used to manage joining and leaving of devices in the data collection system.
  • the sensing capability management module 607 can be used to manage the sensing capability information of each device in the data collection system.
  • the sensing capability information may include semantic information that can be provided by the device, the precision of the semantic information, raw data collected by the sensor, the precision of the raw data, and the like.
  • the semantic update module 608 may be used to update the semantic information and store the updated semantic information.
  • the semantic fusion and relationship management module 609 can be used for the fusion of semantic information, knowledge fusion and management of the relationship between semantic information.
  • semantic information A and semantic information B can derive semantic information C, then it can be said that semantic information A and semantic information B have an association relationship.
  • knowledge fusion may refer to fusing multiple semantic knowledge graphs corresponding to certain semantic information into one semantic knowledge graph.
  • FIG. 6 a semantic knowledge graph corresponding to semantic information A, in which semantic information A and semantic information B can obtain semantic information C.
  • Fig. 6 is another semantic knowledge graph corresponding to semantic information A.
  • semantic information E can be obtained from semantic information A and semantic information D.
  • FIG. 6 is a semantic knowledge graph obtained by fusing the semantic knowledge graph in (a) in FIG. 6 and the semantic knowledge graph in (b) in FIG. 6 .
  • semantic fusion may refer to fusing multiple semantic information (low-order semantic information) into new semantic information (high-order semantic information).
  • the functional modules of the federation management center 30 shown in FIG. 5 are only examples, and the federation management center may include more or fewer modules, which is not limited in this embodiment of the present application.
  • the modules shown in FIG. 5 may also have other names in other scenarios, and the embodiment of the present application does not limit the names of the modules in the federation management center 30 .
  • the federation management center 30 may be deployed in electronic devices such as mobile phones, tablets, and computers, or in cloud servers or servers.
  • the federation management center 30 may be installed in electronic devices in a distributed manner.
  • the electronic device can download one or more modules in the federation management center based on the computing capability and storage capability of the electronic device.
  • all the modules in the federation management center 30 shown in FIG. 5 above can be installed in the mobile phone.
  • the sensory ability management module 607 can be installed in the mobile phone.
  • the semantic reasoning module 604, the semantic update module 608, and the semantic fusion and association relationship management module 609 in the federation management center 30 can be installed in the tablet.
  • Embodiments of the present application provide a data collection method, system, and related equipment.
  • the data collection method can be applied to a data collection system, the data collection system includes a plurality of devices and a federation management center, the method includes: the federation management center can receive the data collection task sent by the first device among the multiple devices; the federation management According to the data collection task and the sensing capability information of multiple devices, the center determines one or more devices that provide the sensing data required by the data collection task; the federation management center instructs one or more devices to provide the required sensing data.
  • multiple (two or more) electronic devices can establish a data collection system, and one electronic device in the data collection system can obtain the raw data collected by the sensor of another electronic device, Or semantic information obtained from raw data collected by sensors.
  • the federation management center can create a data collection system (also referred to as a sensor federation in this embodiment of the application, which will be referred to as a sensor federation hereinafter).
  • a data collection system also referred to as a sensor federation in this embodiment of the application, which will be referred to as a sensor federation hereinafter.
  • other devices such as data demand devices and data collection devices can join the sensing federation.
  • the electronic device or cloud server or server where the federation management center is located can form a sensory federation from multiple electronic devices logged in with the same user account. No user operation is required, and the user's electronic device can automatically join the sensor federation created for the account by the federation management center after logging in to the account.
  • one electronic device of electronic device A and electronic device B may create a sensing federation.
  • the electronic device A and/or the electronic device B may display a prompt box, which may be used to prompt the user whether to agree to the sensor federation, and if the user clicks a control for agreeing to create the sensor federation, the sensor federation can be successfully created.
  • the federation management center may be deployed in a server or a cloud server (the cloud server is used as an example for illustration below).
  • the electronic device can send the user account information of the electronic device to the federation management center in the cloud server, and the federation management center in the cloud server can determine whether the user account has a corresponding sensor federation; If not, the federation management center in the cloud server creates a sensing federation for the user account; if there is, the federation management center in the cloud server obtains the device information (for example, the device ID, device model, etc.), and based on the device information of the electronic device, add the electronic device to the sensor federation corresponding to the user account.
  • the device information for example, the device ID, device model, etc.
  • the federation management center in the cloud server has not yet created a sensor federation corresponding to the user account.
  • the federation management center in the cloud server cannot find the sensor federation corresponding to the user account, and the cloud server can create a sensor federation for the user account. Then, the cloud server adds the electronic device to the sensing federation.
  • the multiple electronic devices in the sensing federation may come from different device manufacturers.
  • Each electronic device that can join the sensory federation can have a standard interface for transmitting data. In this way, data can also be transmitted between electronic devices of different manufacturers in the sensor federation.
  • the user account can be used by the electronic device to create a sensor federation or join a sensor federation.
  • the user account may be a login account of the electronic device, for example, a Huawei account, a Hongmeng account, and the like.
  • FIG. 7A-FIG. 7E show a cloud server or a schematic diagram of the federation management center in the server side creating a sensor federation and the user's electronic device joining the sensor federation created by the federation management center.
  • FIG. 7A exemplarily shows a user interface 70A for logging in a user account by the mobile phone 104 .
  • the user interface 70A may include control 7000 , text 7001 and text 7002 , input field 7003 , input field 7004 , text 7005 , text 7006 , control 7007 , and control 7008 .
  • Control 7000 can be used to return to the previous interface.
  • Text 7001 may be used to prompt the user that the user interface is used to log in the user account.
  • the content of the text 7001 may be "user account", and the specific content of the text 7001 is not limited here.
  • the text 7002 can be used to prompt the user to log in the user account to use the service.
  • the content of the text 7002 may be "login the account to use the sensor federation service", and the specific content of the text 7002 is not limited here.
  • the input field 7003 can be used to input user account number, for example "131****7837".
  • the input column 7004 is used to input a password, such as "".
  • Text 7005 can be used to prompt the user for other login methods.
  • the text 7005 may be "SMS verification code login", and the specific content of the text 7005 is not limited here.
  • Text 7006 can be used for user to retrieve password.
  • the text 7006 may be "forgot password", and the specific content of the text 7006 is not limited here.
  • Control 7007 may be used to log in a user account.
  • Control 7008 may be used to register a user account.
  • the user can click the control 7007, and in response to the user operation, the mobile phone 104 can successfully log in the user account "131****7837".
  • the mobile phone 104 can send a message to the federal management center, and the message can carry the user account "131****7837".
  • the federation management center can query whether a sensor federation corresponding to the user account "131****7837" has been established in the federation management center. If there is no sensor federation corresponding to the user account "131****7837" in the federation management center, the federation management center will create a sensor federation corresponding to the user account "131****7837".
  • the federation management center inquires whether the mobile phone 104 has joined the sensor federation, if not, invites the mobile phone 104 to join the federation The sensor federation corresponding to the user account "131****7837".
  • the federation management center may send a request message to the mobile phone 104, and the request message is used to request to establish a user account
  • the sensor federation corresponding to "131****7837" The mobile phone 104 may receive the request message and display the user interface 70B.
  • FIG. 7B exemplarily shows a user interface 70B of the mobile phone 104 .
  • the user interface 70B may include a prompt message 7101 and a bullet box 7102 .
  • the prompt message 7101 may be used to prompt the user to log in the user account successfully.
  • the prompt message 7101 may be "login successful", and the specific content of the prompt message 7101 is not limited here.
  • the bullet box 7102 may include a control 7103 and a control 7104 .
  • the user can click the control 7103 to agree to the federation management center to establish a sensor federation corresponding to the user account "131****7837".
  • the user can click on the control 7104, which is used to reject the establishment of the sensor federation corresponding to the user account "131****7837" by the federation management center.
  • the mobile phone 104 may send a notification message agreeing to establish a sensor federation corresponding to the user account "131****7837" to the federation management center. Moreover, the mobile phone 104 may also send the device information (eg, device ID, device model, etc.) of the mobile phone 104 to the federation management center.
  • the federation management center may establish a sensor federation corresponding to the user account "131****7837" based on the notification message, and add the mobile phone 104 to the sensor federation.
  • the federal management center establishes the sensor federation corresponding to the user account "131****7837”
  • it can send a message to the mobile phone 104. The message can be used to prompt the mobile phone 104 that the user account "131****7837" has been established.
  • sensor federation After receiving the message, mobile phone 104 may display user interface 70C.
  • FIG. 7C exemplarily shows a user interface 70C of the mobile phone 104 .
  • the user interface 70C may include a message prompt box 7301 .
  • the message prompt box 7301 is used to remind the user that the federation management center has successfully created the sensor federation corresponding to the user account "131****7837".
  • the content in the message prompt box 7301 may be "the sensor federation of account 131****7837 is successfully created, and your device can enjoy the sensor federation service", and the specific content of the message prompt box 7301 is not limited here.
  • the federation management center determines that a sensor federation corresponding to the user account "131****7837" has been established, but the mobile phone 104 It has not joined the sensor federation corresponding to the user account "131****7837".
  • the federation management center may send a request to the mobile phone 104, and the request is used to request the mobile phone 104 to join the sensor federation corresponding to the user account "131****7837".
  • the mobile phone 104 may display the user interface 70D.
  • FIG. 7D exemplarily shows a user interface 70D of the mobile phone 104 .
  • the user interface 70D may include a prompt message 7401 and a bullet box 7102.
  • the prompt message 7401 may be used to prompt the user to log in the user account successfully.
  • the prompt message 7401 may be "login successful", and the specific content of the prompt message 7401 is not limited here.
  • the bullet box 7402 may include a control 7403 and a control 7404 .
  • the user can click the control 7403 to agree to join the sensor federation corresponding to the user account "131****7837".
  • the user can click on the control 7404 to refuse to join the sensor federation corresponding to the user account "131****7837".
  • the mobile phone 104 may send a notification message agreeing to join the sensor federation corresponding to the user account "131****7837" to the federation management center.
  • the federation management center can add the mobile phone 104 to the sensor federation corresponding to the user account "131****7837".
  • the federation management center may also send a notification message to the mobile phone 104 indicating that the mobile phone 104 has been successfully added to the sensor federation corresponding to the user account "131****7837".
  • the mobile phone 104 can display the user interface 70E.
  • FIG. 7E exemplarily shows a user interface 70E of the mobile phone 104 .
  • the user interface 70E may include a message prompt box 7501 .
  • the message prompt box 7501 is used to remind the user that the federation management center has added the mobile phone 104 to the sensor federation corresponding to the user account "131****7837".
  • the content in the message prompt box 7501 can be "Your device has successfully joined the sensor federation of account 131****7837, and can enjoy the sensor federation service", here is the specific content of the message prompt box 7501 Not limited.
  • the user interface shown in the above-mentioned Figures 7A-7E is only an example, and the user interface shown in the above-mentioned Figures 7A-7B may contain more or less interface elements, or The position on the user interface may vary, which is not limited in this embodiment of the present application.
  • some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like. Users cannot log in user accounts on these electronic devices that do not have user-operable display screens, but electronic devices such as air conditioners, earphones, and temperature sensors can communicate with other types of electronic devices that have user-operable functions through wireless local area networks, Bluetooth, or distributed soft buses.
  • An electronic device for example, a mobile phone, a computer, a tablet, etc.
  • that operates a display screen establishes a communication connection.
  • the electronic device A can also send the device information of the electronic device B without an operable display screen that establishes a communication connection with the electronic device A to the federation management center.
  • the federation management center may send a request to electronic device A for adding electronic device A and electronic device B to the sensor federation.
  • the user can click on the electronic device A to agree to add electronic device A and electronic device B to the control of the sensor federation.
  • electronic device A can send the consent to join the electronic device A and electronic device B to the federation management center Notification message to sensor federation.
  • the federation management center can add electronic device A and electronic device B to the sensing federation.
  • the air conditioner 101 establishes a communication connection with the mobile phone 104.
  • the mobile phone 104 can send the equipment information of the mobile phone 104 and the equipment information of the air conditioner 101 to the federal management center.
  • the federation management center can add the mobile phone 104 and the air conditioner 101 to the sensor federation corresponding to the user account 131****7837.
  • the mobile phone 104 and the air conditioner 101 may not be produced by the same manufacturer, but both the mobile phone 104 and the air conditioner 101 have interfaces that can transmit data to each other.
  • users can choose one of their own electronic devices as the federation management center.
  • the user may install a federation management center application in the electronic device serving as the federation management center.
  • Users can create a sensor federation in the application of the federation management center, and invite other electronic devices to join the created sensor federation.
  • Other electronic devices that can be used as data demand devices or data collection devices can be installed with a sensor federation engine application, and users can search for sensor federations that can be joined in the sensor federation engine application, and apply to join the sensor federation.
  • Feel the Federation the Federation.
  • FIGS. 8A-8I exemplarily show the process in which the user establishes a sensor federation through the federation management center application program in the mobile phone 104 .
  • FIG. 8A exemplarily shows a user interface 80A of the mobile phone 104 .
  • the user interface 80A may be the main interface of the mobile phone 104 .
  • the user interface 80A may include an icon 8001 for the federation management center application.
  • the user interface 80A may also include icons of other application programs, such as icons of weather application programs, icons of mail application programs, etc., which will not be described in detail here.
  • a user may click on the federation management center application icon 8001 in the user interface 80A.
  • handset 104 may display user interface 80B.
  • FIG. 8B exemplarily shows a user interface 80B of the mobile phone 104 .
  • the user interface 80B may include a control 8101 , a control 8102 and a control 8103 .
  • This control 8101 can be used to create new sensory federations.
  • the control 8102 can be used to view the sensor federations that have been established in the mobile phone 104 .
  • the control 8103 can be used to view and manage the semantic model in the mobile phone 104 . It can be understood that there may be one or more semantic models in the mobile phone 104 . Semantic models can be used to derive semantic information from one or more sensor data.
  • a semantic model for analyzing sleep quality which can obtain semantic information such as high or low sleep quality of the user according to the user's sleep duration.
  • the user may click on the control 8101 in the user interface 80B, and in response to the user operation, the mobile phone 104 may display the user interface 80C.
  • FIG. 8C exemplarily shows a user interface 80C of the mobile phone 104 .
  • the user interface 80C may include a control 8301 , text information 8302 , an input box 8303 , an option box 8304 , a control 8316 and a control 8317 .
  • Control 8301 can be used to return to the previous interface.
  • Text information 8302 may indicate that the current interface is used to create a sensory federation.
  • the content of the text information 8302 may be "create a sensor federation", and the specific content of the text information 8302 is not limited here.
  • the input box 8303 can be used to input the name of the sensor federation created, such as "xxx".
  • the option box 8304 may include a sliding bar 8305, a control 8306, a control 8307, a control 8308, and a control 8309.
  • the sliding bar 8305 can be used to view the content not displayed in the option box 8304 .
  • Control 8306 may be used to select "acceleration" as the cell phone 104 may provide sensor data.
  • Control 8307 may be used to select "location” as sensor data that the handset 104 may provide.
  • Control 8308 may be used to select "heart rate” as sensor data that cell phone 104 may provide.
  • Control 8309 may be used to select "body temperature” as sensor data that the handset 104 may provide.
  • the control 8316 can be used to save the content entered and set by the user in the current interface.
  • Control 8317 may be used to indicate that the creation of a sensory federation is complete.
  • the above-mentioned user interface 80C is only an example, and the user interface 80C may include fewer or more interface elements.
  • the user interface 80C may also include a control for setting the semantic model that may be provided in the sensing federation .
  • the user interface 80C may also include an option box for setting data required by the mobile phone 104 .
  • the user interface for creating a sensor federation is not limited here.
  • the user can view the sensor federation created by the user in the federation management center application program.
  • FIG. 8D exemplarily shows a user interface 80D of the mobile phone 104 .
  • the user interface 80D may include a control 8101 , a control 8102 and a control 8103 .
  • control 8101, the control 8102, and the control 8103 reference may be made to the description in FIG. 8B above, and details will not be repeated here.
  • the user can click on the control 8102 to view sensor federations that have been created in the handset 104 .
  • handset 104 may display user interface 80E.
  • FIG. 8E exemplarily shows a user interface 80E of the mobile phone 104 .
  • the user interface 80E may include a control 8501 , text information 8502 , text information 8503 , control 8504 , control 8505 , and control 8506 , text information 8507 , control 8508 , control 8509 , and control 8510 .
  • Control 8501 can be used to return to the previous interface.
  • Text message 8502 may indicate that the current interface may be used to view a list of sensory federations that have been created in cell phone 104 .
  • the text information 8503 is used to indicate the name and creation time of a sensor federation created in the mobile phone 104 .
  • the content of the text information 8503 may be "sensing federation xxx (1 minute ago)", that is, the text information 8503 may indicate that the name of the sensing federation is "xxx", and the sensing federation xxx was created by the mobile phone 104 1 minute ago .
  • the control 8504 can be used to view the members of the sensory federation xxx (that is, the electronic devices joined in the sensory federation xxx).
  • Control 8505 may be used to invite other electronic devices to join the sensory federation xxx.
  • Control 8506 may be used to delete the sensory federation xxx.
  • the text message 8507 may be used to indicate the name and creation time of another sensory federation that has been created in the handset 104 .
  • the specific content of the text information 8507 may be "sensing federation 111 (3 days ago)", that is, the text information 8507 may indicate that the name of the sensing federation is "111", and the sensing federation 111 was created by the mobile phone 104 three days ago .
  • the control 8508 can be used to view the members in the sensory federation 111 (ie, the electronic devices joined in the sensory federation 111).
  • Control 8509 may be used to invite other electronic devices to join the sensory federation 111.
  • Control 8510 may be used to delete the sensory federation 111.
  • the user interface 80E shown in FIG. 8E is merely an example.
  • the user interface 80E may contain more or fewer interface elements, for example, the user interface 80E may contain more created sensor federations.
  • the user interface 80E may also include a sensor federation joined by the mobile phone 104 (not a sensor federation created in the mobile phone 104).
  • the embodiment of the present application does not limit the display of the sensor federation list created and joined by the mobile phone 104 .
  • a user may click on control 8505 in user interface 80E, and in response to the user action, handset 104 may display user interface 80F.
  • FIG. 8F exemplarily shows a user interface 80F of the mobile phone 104 .
  • the user interface 80F may include a control 8601 , text information 8602 , an option box 8603 , and a control 8610 .
  • Control 8601 can be used to return to the previous interface.
  • Text information 8602 may indicate that the current interface is used to invite other electronic devices to join the sensory federation xxx.
  • the content of the text message 8602 may be "sensing federation xxx. invitation", and the specific content of the text message 8602 is not limited here.
  • Invitable electronic devices and controls for inviting electronic devices may be displayed in option box 8603.
  • the air conditioner 101 and the control 8604 corresponding to the air conditioner 101, the camera 102 and the control 8605 corresponding to the camera 102, the watch 103 and the control 8606 corresponding to the watch 103, the tablet 105 and the control 8607 corresponding to the tablet 105, and the air quality sensor 106 and the control 8608 corresponding to the air quality sensor 106, and the sliding bar 8609.
  • the control 8604 can be used to invite the air conditioner 101 to join the sensor federation xxx.
  • Control 8605 can be used to invite camera 102 to join sensory federation xxx.
  • Control 8606 may be used to invite watch 103 to join sensory federation xxx.
  • Control 8607 can be used to invite tablet 105 to join sensory federation xxx.
  • Control 8608 may be used to invite air quality sensors 106 to join sensory federation xxx.
  • the sliding bar 8609 may be used to display electronic devices not displayed in the inviteable device list and controls corresponding to the electronic devices.
  • Control 8610 is used to determine the electronic device selected by the inviting user.
  • the user can select one or more electronic devices in the option box 8603, and then click the control 8610 to invite one or more electronic devices selected by the user.
  • the user chooses to invite the tablet 105 to join the sensor federation xxx as an example for illustration.
  • the mobile phone 104 may send a notification message to the tablet 105 inviting to join the sensor federation xxx. Tablet 105 may receive the notification message and display user interface 80G.
  • FIG. 8G exemplarily shows a user interface 80G of the tablet 105 .
  • the user interface 80G may include a message notification box 8701 .
  • the message notification box 8701 may include text information and a control 8702 and a control 8703 .
  • the text information in the message notification box 8701 is used to prompt the user's mobile phone 104 to invite the tablet 105 to join the sensor federation xxx.
  • the content of the text message may be "the mobile phone 104 invites you to join the sensor federation xxx", and the specific content of the text message is not limited here.
  • Control 8702 may be used to agree to join the sensory federation xxx.
  • Control 8703 can be used to refuse to join the sensing federation xxx.
  • some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like.
  • Electronic devices that do not have user-operable displays can also be invited by the cell phone 104 to join the sensory federation xxx.
  • the mobile phone 104 can directly send a notification message inviting to join the sensor federation xxx to this type of electronic device that does not have a user-operable display screen.
  • this type of electronic device can prompt the user ( For example, the indicator light flashes, or the electronic device vibrates, rings, etc. to prompt the user), and the user can agree to join the sensor federation xxx through voice commands or by clicking on the physical control on this type of electronic device.
  • the user can directly add such electronic devices that do not have a user-operable display screen and are connected to the mobile phone 104 to the sensor federation xxx through the mobile phone 104 .
  • such electronic devices without user-operable display screens for example, air conditioners, earphones, temperature sensors, etc.
  • a message prompt box can be displayed on the electronic device with an operable display screen that establishes a communication connection with this type of electronic device without an operable display screen, and the user can In electronic devices with operable display screens, agree or reject such electronic devices that do not have user-operable display screens to join the sensor federation xxx.
  • the user can also check the members of the sensor federation (that is, the electronic devices that join the sensor federation) in the user interface on the mobile phone 104 that can be used to view the list of sensor federations.
  • the members of the sensor federation that is, the electronic devices that join the sensor federation
  • FIG. 8H exemplarily shows a user interface 80H of the cell phone 104 .
  • the user interface 80H may include a control 8501 , text information 8502 , text information 8503 , control 8504 , control 8505 , control 8506 , text information 8507 , control 8508 , control 8509 , and control 8510 .
  • control 8501 text information 8502
  • text information 8503 text information 8503
  • control 8504 control 8505
  • control 8506 text information 8507
  • control 8508 control 8509
  • control 8510 For the specific functions of the controls in the user interface 80H, reference may be made to the description in the user interface 80E, which will not be repeated here.
  • the user can view the members in the sensing federation xxx by clicking the control 8504.
  • Cell phone 104 may display user interface 801 in response to the user's operation of clicking control 8504 .
  • FIG. 8I exemplarily shows a user interface 80I of the mobile phone 104 .
  • the user interface 80I may include a control 8801, text information 8802, and a member list column 8803.
  • Control 8801 can be used to return to the previous interface.
  • Text information 8802 may indicate that the current interface is used to view members in sensing federation xxx.
  • the member list column 8803 can be used to display the members in the sensing federation xxx.
  • the member list bar 8803 may include a member tablet 105 of the sensing federation xxx, a control 8804 and a control 8805 corresponding to the member tablet 105, and a sliding bar 8806.
  • Control 8804 can be used to set the permissions of tablet 105 (eg, the sensor data that tablet 105 can provide, and the sensor data that tablet 105 requires).
  • Control 8805 may be used to withdraw tablet 105 from sensory federation xxx.
  • the sliding bar 8806 may be used to display other members of the sensing federation xxx not displayed in the member list bar 8803.
  • FIGS. 8A-8B are only examples.
  • the user interface shown in FIG. 8A-FIG. 8I may include fewer or more interface elements, or the positions of elements of the user interface in the user interface may be changed, which is not limited in this embodiment of the present application.
  • the user can call the function module in the mobile phone 104, that is, the federation management center, through the application program of the federation management center in the mobile phone 104 .
  • the federation management center reference may be made to the description of the federation management center 30 in FIG. 3 and the description of the federation management center 30 in FIG. 5 , and details are not repeated here.
  • a sensor federation engine application may be installed in the electronic device. Users can search for and join sensor federations created by other electronic devices through the sensor federation engine application.
  • the tablet 105 is installed with a sensor federation engine application program, and the user joins the sensor federation xxx created by the mobile phone 104 through the sensor federation engine application program as an example for illustration.
  • 9A-9G exemplarily show the specific process of adding the tablet 105 to the sensor federation xxx created by the mobile phone 104 through the sensor federation engine application program in the tablet 105 .
  • FIG. 9A exemplarily shows a user interface 90A of the tablet 105 .
  • the user interface 90A may be the main interface of the tablet 105 .
  • the user interface 90A may include an icon 9101 for the sensor federation engine application.
  • the user interface 90A may also include icons of other application programs, such as icons of weather application programs, icons of mail application programs, etc., which will not be described in detail here.
  • a user may click on the sensor federation engine application icon 9101 in the user interface 90A.
  • tablet 105 may display user interface 90B.
  • FIG. 9B exemplarily shows a user interface 90B of the tablet 105 .
  • the user interface 90B may include a control 9201 , a control 9202 and a control 9203 .
  • Control 9201 may be used to search for nearby sensory federations to join.
  • the control 9202 can view the sensing federations that the tablet 105 has currently joined.
  • the control 9203 can be used to view the historical sensor federations that the tablet 105 has joined (the sensor federations that have joined before, but are not currently in the sensor federation).
  • a user may click on control 9201 in user interface 90B, and in response to the user action, tablet 105 may display user interface 90C.
  • FIG. 9C exemplarily shows a user interface 90C of the tablet 105 .
  • the user interface 90C may include a control 9301 , text information 9302 , and a sensor federation list 9303 .
  • Control 9301 can be used to return to the previous interface.
  • Text information 9302 may indicate that the current interface is used to search for nearby sensor federations that can be joined.
  • the sensor federation list 9303 can be used to display nearby sensor federations.
  • the sensor federation list 9303 may include the sensor federation xxx and the control 9304 corresponding to the sensor federation xxx, the sensor federation aaa and the control 9305 corresponding to the sensor federation aaa, the sensor federation bbb and the control 9306 corresponding to the sensor federation bbb, The sensor federation ccc and the control 9307 corresponding to the sensor federation ccc, the sensor federation ddd and the control 9308 corresponding to the sensor federation ddd, and the sliding bar 9309.
  • the control 9304 can be used to apply for joining the sensor federation xxx.
  • the control 9305 can be used to apply for joining the sensing federation aaa.
  • the control 9306 can be used to apply for joining the sensing federation bbb.
  • Control 9307 can be used to apply for joining the sensing federation ccc.
  • Control 9308 can be used to apply for joining the sensing federation ddd.
  • the sliding bar 9309 may be used to display sensor federations not displayed in the sensor federation list 9303 .
  • sensor federations may be displayed in the sensor federation list 9303 .
  • More or fewer interface elements may be displayed on the user interface 90C, and the embodiment of the present application does not limit the user interface that can be used to search and display nearby sensor federations that can be added.
  • the user may click on the control 9304 in the user interface 90C.
  • the tablet 105 may send a notification message to the mobile phone 104 to apply for joining the sensor federation xxx.
  • Cell phone 104 may receive the notification message and display user interface 90D.
  • FIG. 9D exemplarily shows a user interface 90D of the mobile phone 104 .
  • the user interface 90D may include a message notification box 9401 .
  • the message notification box 9401 may include text information and a control 9402 and a control 9403 .
  • the text information in the message notification box 9401 may be used to instruct the tablet 105 to apply for joining the sensor federation xxx.
  • the content of the text information in the message notification box 9401 may be "the tablet 105 applies to join the sensor federation xxx".
  • Control 9402 may be used to agree to the tablet 105 joining the sensory federation xxx.
  • the control 9403 can be used to refuse the tablet 105 to join the sensor federation xxx.
  • the mobile phone 104 may send a notification message to the tablet 105 agreeing that the tablet 105 joins the sensor federation xxx.
  • Tablet 105 may receive the notification message and display user interface 90E.
  • FIG. 9E exemplarily shows a user interface 90E of the tablet 105 .
  • the user interface 90E may include a message notification box 9501 , and a control 9201 , a control 9202 , and a control 9203 .
  • the message notification box 9501 can be used to prompt the user that the tablet 105 has successfully joined the sensor federation xxx.
  • the content of the message notification box 9501 may be "successfully joined the sensor federation, you can query and set permissions in the joined sensor federation".
  • the embodiment of this application does not limit the specific content in the message notification box 9501.
  • the control 9201, the control 9202, and the control 9203 reference may be made to the description in FIG. 9B , which will not be repeated here.
  • a user may click on control 9202, and in response to this user action, tablet 105 may display user interface 90F.
  • FIG. 9F exemplarily shows a user interface 90F of the tablet 105 .
  • the user interface 90F may include a control 9601 , text information 9602 , control 9603 , control 9604 , text information 9605 , control 9606 and control 9607 .
  • Control 9601 can be used to return to the previous interface.
  • the text information 9602 may be used to indicate the sensor federation xxx joined by the tablet 105 and the time (for example, 1 minute ago) when the tablet 105 joined the sensor federation xxx.
  • the control 9603 can be used to set the authority of the tablet 105 in the sensor federation xxx.
  • Control 9604 may be used to withdraw tablet 105 from sensory federation xxx.
  • the text message 9605 may be used to indicate the sensory federation 111 that the tablet 105 joined and the time (eg, 3 days ago) when the tablet 105 joined the sensory federation 111 .
  • the control 9606 can be used to set the authority of the tablet 105 in the sensor federation 111 .
  • Control 9607 may be used to withdraw tablet 105 from sensory federation 111.
  • the user can click the control 9603 in the user interface 90F, and in response to the user operation, the tablet 105 can display the user interface 90G.
  • FIG. 9G exemplarily shows a user interface 90G of the tablet 105 .
  • Control 9701 can be used to return to the previous interface.
  • Option box 9702 may include control 9703 , control 9704 , control 9705 , control 9706 , and slide bar 9707 .
  • Control 9703 can be used to select "acceleration" as the tablet 105 can provide sensor data.
  • Control 9704 may be used to select a "location" as sensor data that tablet 105 may provide.
  • Control 9705 may be used to select "heart rate” as sensor data that tablet 105 may provide.
  • Control 9706 can be used to select "body temperature" as sensor data that the tablet can provide.
  • the slide bar 9707 can be used to view content not displayed in the options box 9702.
  • the control 9714 can be used to indicate that the authorization setting of the tablet 105 in the sensor federation xxx is completed.
  • the above user interface 90G is only an example, and the user interface 90G may include fewer or more interface elements, for example, the user interface 90G may also include controls for setting the semantic model that the tablet 105 may provide. Alternatively, the user interface 90G may also include an option box for setting the data required by the tablet 105 .
  • the user interface for setting the authority of the tablet 105 in the sensor federation is not limited here.
  • the user can call the function module in the tablet 105, that is, the sensor federation engine module, through the sensor federation engine application program in the tablet 105 .
  • the federation management center reference may be made to the description of the sensing federation engine module in FIG. 3 and FIG. 4 , and details will not be repeated here.
  • some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like. Electronic devices that do not have a user-operable display can also apply to join the Sensing Federation xxx.
  • such electronic devices without user-operable display screens for example, air conditioners, earphones, temperature sensors, etc.
  • Users can apply to join this type of electronic device without an operable display screen to the sensor federation xxx on the electronic device with an operable display that establishes a communication connection with this type of electronic device without an operable display.
  • sensor federation xxx on the electronic device with an operable display that establishes a communication connection with this type of electronic device without an operable display.
  • some electronic devices may have device QR codes, and other electronic devices may invite the electronic devices to join the sensor federation by scanning the device QR codes on the electronic devices.
  • some data in the electronic device is obtained by some application programs in the electronic device.
  • some sports application programs may provide data such as the number of steps taken by the user every day and the walking distance. If the electronic device wants to provide data such as the number of steps taken by the user every day and the distance traveled to the sensor federation, the electronic device can set permissions in the sensor federation to allow such applications to obtain data.
  • the federation management center of the sensor federation may store knowledge graphs, for example, the knowledge graphs shown in (a) and (b) of FIG. 6 above.
  • the knowledge graph stored in the federation management center can be used to represent the data that can be collected in the current sensing federation, as well as the semantic information generated by these data.
  • the data data1 collected by sensor 1 for example, time: 10 am on weekdays
  • the data data2 collected by sensor 2 for example: current location: xxx Science Park
  • the data data3 collected by sensor for example, age: 30 years old
  • Semantic information X eg, user is working
  • the federation management center can determine whether the device provides data of a new type or new precision, and if so, the federation management center can store a complete knowledge graph The cloud server obtains the knowledge graph related to the data of the new type or new precision. The federation management center may then send notification messages to electronic devices in the sensing federation that require this new type of data.
  • users can add some of their private electronic devices, such as the user's mobile phone, headset, tablet computer, etc., to the sensor federation.
  • the user can create a sensory federation for the user's electronic device according to the steps shown in FIGS. 7A-7E or 8A-8I and 9A-9G, and add the user's electronic device to the sensory federation.
  • the federation management center can obtain information about the sensing capabilities of the electronic device, such as the device ID of the electronic device, the model of the electronic device, and the type of sensor that can provide data in the electronic device And the type of data that the sensor can provide, the type of software that can provide data and the type of data that the software can provide, low-level semantic information, high-level semantic information and other information obtained from data collected by the sensor or data generated by the software.
  • the federation management center can record the device information of each electronic device in the sensing federation in the electronic device or the cloud server where the federation management center is located. When the device information in the electronic device changes, for example, a new application is downloaded and a new type of data can be obtained, the electronic device can report the new type of data to the federation management center.
  • the federal management center can refresh the record.
  • the electronic device may report the model of the electronic device to the federation management center. Based on the model of the electronic device, the federal management center can obtain the device capability,
  • the federation management center can also obtain non-personal privacy data (for example, base station data, cell data) from other electronic devices in the sensor federation for training a more accurate model (for example, the input position can get the image of surrounding cells Model).
  • non-personal privacy data for example, base station data, cell data
  • the input position can get the image of surrounding cells Model
  • the electronic devices in the sensing federation can opt out of the sensing federation in the federation management center application program of the federation management center as shown in FIG. 8I above.
  • the electronic device in the sensor federation can also choose to quit the sensor federation in the sensor federation engine application program of the electronic device as shown in FIG. 9F above.
  • the electronic device exits the sensing federation.
  • electronic devices in the sensor federation actively report to the federation management center after collecting abnormal data.
  • the federal management center can make relevant recommendations or decisions based on the abnormal data, or modify the corresponding judgment results.
  • the federation management center can also send relevant notifications or recommendations to other electronic devices in the sensor federation based on the abnormal data. For example, if a watch in the sensing federation collects body temperature data "the user's body temperature is 39°", the watch judges that the body temperature data is abnormal data, and can report the abnormal body temperature data of "the user's body temperature is 39°" to the federation management center, and based on this The semantic information obtained from body temperature data is "the user is sick".
  • the federal management center receives the abnormal body temperature data sent by the watch, and the semantic information "user is sick” based on the body temperature data.
  • the federal management center can adjust the user's original body temperature data and health status data stored in the federal management center.
  • the federal management center can also send the abnormal body temperature data and the semantic information "user is sick” obtained based on the body temperature data to electronic devices that need such data.
  • the electronic device adjusts the output of the model in the electronic device based on the data of this type. For example, after the electronic device receives the semantic information of "the user is sick", the model used in the electronic device for intelligent route recommendation may plan the user's route from the current location to the hospital instead of planning the user's home from the current location.
  • the electronic device can also recommend appropriate medicines or cooling methods to the user according to "the user's body temperature is 39°".
  • the electronic device can also record other data obtained according to the user's body temperature data and semantic information.
  • the user can set an importance level for sensor data or semantic information that can be provided by electronic devices in the sensor federation. For example, important level (data or semantic information such as accidental injury, serious illness, elderly fall/children’s abnormal position), and general level (data or semantic information such as general illness and overtime).
  • important level data or semantic information such as accidental injury, serious illness, elderly fall/children’s abnormal position
  • general level data or semantic information such as general illness and overtime.
  • important data is collected by an electronic device in the sensor federation, it can be reported to the federation management center in the sensor federation in real time, and the federation manager center can send notification messages to other electronic devices in the sensor federation.
  • the user can set the type of data that one or more electronic devices in the sensor federation can provide, for example, data of physical health, data of abnormal location, and so on.
  • this setting can be shared with other federated users.
  • you can send a voice/notification/other information to the other party for feedback, such as reminding to pay attention to rest when working overtime.
  • members in the same sensor federation can set reminders, schedules and other information with each other. For example: a family dinner was originally scheduled at 7:00 p.m., and a meeting is temporarily added to the calendar of one of the family members’ father’s electronic devices, then other users’ mother’s electronic devices can receive reminder messages, and the mother’s electronic devices can receive reminders. Respond to reminders, such as eating early, taking a break, etc.
  • some communities or units that need certain specific data can establish a sensory federation kkk in the server, and the server can be the federation management center of the sensory federation, and generate an application program or a website for the sensory federation, or
  • the two-dimensional code is released, and users who are willing to provide data can install the application program in the electronic device, and can open the URL by opening the URL.
  • the user's electronic device can report data to the server in the sensor federation kkk through the application program or website. If the electronic device has also joined another sensory federation xxx, the electronic device can also obtain authorization from the sensory federation xxx, and upload the data in the sensory federation xxx to the server in the sensory federation kkk.
  • the cardiovascular and cerebrovascular research community establishes a sensory federation kkk on the server, and releases an application program or website for joining the sensory federation kkk. Users who are willing to provide can download the application program or join the sensor federation kkk through the URL.
  • the organizer of an event can create a sensor federation in the server, which is used to monitor the physical conditions of the event participants (e.g., whether they are hypothermic , sudden myocardial infarction, etc.).
  • the electronic devices of all event participants can join the sensor federation. That is, the electronic devices of all event participants and the server of the event organizer form a sensor federation.
  • the server confirms which sensor data needs to be collected to judge the disease condition. If the electronic devices of the activity participants have their own monitoring functions, they can only report the monitoring results to the server. If the electronic equipment of the activity participant does not have a monitoring function, the corresponding sensor data will be reported according to the requirements of the server.
  • the reporting method can be real-time reporting, or reporting when a certain sensor data is abnormal.
  • the server judges the physical status of the event participants by reasoning the collected sensor data. If there is any abnormality, it will report to the event organizer and provide emergency assistance to the event participants.
  • the mobile phones of several users can form a sensor federation according to the steps shown in Figure 7A- Figure 7E or Figure 8A- Figure 8I and Figure 9A- Figure 9G .
  • the body state estimation model does not exist on mobile2 and mobile3.
  • the user can set to send the sensor data in the mobile phone mobile2 and the mobile phone mobile3 that can be used to infer the body state to the mobile phone mobile1.
  • the mobile phone mobile1 When the mobile phone mobile1 deduces that the user's physical condition is abnormal according to the sensor data sent by the mobile phone mobile2 or mobile phone 3, it can send a reminder message to the mobile phone mobile2 or mobile phone 3.
  • the association model in the mobile phone mobile2 can remind you to refuel according to the navigation data, the amount of oil in the car, etc.
  • Mobile1, mobile3, vehicle1, vehicle2, and vehicle3 do not have this association model.
  • the user In the sensor federation, the user can set the vehicle model, fuel consumption and current fuel volume of vehicle1, vehicle2, and vehicle3 to mobile2.
  • the mobile phone mobile2 will judge a suitable gas station based on these comprehensive information and give a reminder.
  • an electronic device with strong computing and storage capabilities can be selected as the federation management center.
  • Each sensor federation can correspond to a sensor federation ID.
  • the electronic device serving as the federation management center in a sensing federation when the electronic device serving as the federation management center in a sensing federation is in an abnormal state, or cannot communicate with other electronic devices, another electronic device can be selected as the federation control center.
  • one electronic device in the sensory federation can obtain the data collected by the sensors of one or more other electronic devices, or the data collected by the sensors of one or more other electronic devices Get semantic information.
  • the data-demanding device may be referred to as a first device, or a first electronic device, or a sixth device.
  • the data acquisition device may be called as the second device, the third device, the fourth device, the fifth device, the sixth device, the seventh device, or any one of the third electronic device and the fourth electronic device.
  • the federal management center may also be referred to as a second electronic device.
  • an electronic device in a sensor federation acquires data collected by sensors in other electronic devices or semantic information obtained from data collected by sensors.
  • FIG. 10 exemplarily shows a schematic flowchart of a data collection method provided by an embodiment of the present application.
  • a data collection method provided by the embodiment of the present application may include the following steps:
  • the data demand device 20 establishes a communication connection with the federation management center 30; the data collection device 40 establishes a communication connection with the federation management center 30.
  • the data demand device 20 can establish a communication connection with the electronic device where the federation management center 30 is located through WLAN, Bluetooth, cellular network, distributed soft bus, USB cable, etc.
  • WLAN Wireless Local Area Network
  • Bluetooth Wireless Fidelity
  • cellular network Wireless Local Area Network
  • distributed soft bus Wireless Local Area Network
  • the data collection device 40 can establish a communication connection with the electronic device where the federation management center 30 is located through WLAN, Bluetooth, cellular network, distributed soft bus, USB cable, etc.
  • WLAN Wireless Local Area Network
  • Bluetooth Wireless Fidelity
  • cellular network Wireless Local Area Network
  • distributed soft bus Wireless Local Area Network
  • the data demand device 20, the federation management center 30, and the data collection device 40 have established a data collection system (also called a sensory federation).
  • a data collection system also called a sensory federation.
  • the data demand device 20 may be the air conditioner 101 shown in FIG. 2 .
  • the electronic device where the federation management center 30 is located may be the mobile phone 104 or the tablet 105 shown in FIG. 2 .
  • the electronic device where the federation management center 30 is located may also be a server or a cloud server.
  • the data collection device 40 may be any electronic device such as the camera 102 , the watch 103 , the mobile phone 104 , the tablet 105 , and the air quality sensor 106 shown in FIG. 2 .
  • the data demand device 20 sends a data collection task request and collection task parameters to the federal management center 30.
  • the collection task parameters include one or more of collection capability requirements, collection cycle, collection duration, collection data accuracy, and collection operator.
  • the data demand device 20 can generate data collection tasks and data collection parameters.
  • the data collection task is used to indicate the data required by the data demand device 20 .
  • the collection task parameters may include one or more of collection capability requirements, collection period, collection duration, collection data accuracy, and collection operator.
  • the collection capability requirement is used to indicate the sensing capability information of the data collection device corresponding to the data required in the data collection task.
  • the collection period is used to indicate the period of collecting the data required in the data collection task (for example, the data required in the data collection task needs to be collected once every 5 minutes).
  • the collection duration is used to indicate the duration of collecting the data required in the data collection task.
  • the Acquisition Data Accuracy is used to indicate the accuracy of the data required in the Acquisition Data task.
  • the collection operator is used to process the sensor data collected by the data collection device. For example, the average value of sensor data collected in 5 seconds.
  • the embodiment of the present application does not limit the specific content of the data collection task.
  • the embodiment of the present application does not limit the specific content of the task collection parameters.
  • an application program in the application layer of the data demand device 20 may initiate a data collection request.
  • the sensor federation engine module 202 in the data demand device 20 can generate data collection tasks and collection task parameters from data collection requests initiated by applications in the application layer.
  • the air conditioner 101 may have software for adjusting the intelligent mode, which can automatically adjust the working mode (cooling, heating, sweeping, etc.) of the air conditioner 101 and the cooling or heating temperature of the air conditioner according to the temperature in the environment.
  • the software for adjusting the smart mode in the air conditioner 101 needs temperature data in the environment.
  • the software used to adjust the smart mode can be based on temperature data in the environment every 30 minutes.
  • the sensing federation engine module 202 in the air conditioner 101 can generate a data collection task for obtaining temperature data in the environment (ie, collect temperature data in the environment) and collection task parameters (ie, the collection cycle is once every 30 minutes).
  • the data collection task may include collecting one or more types of data.
  • the data collection task may correspond to one or more data collection devices 40 . That is, multiple types of data to be collected in the data collection task may be collected by one data collection device 40 , or may be collected by multiple data collection devices 40 . It can be understood that each type of data that needs to be collected in the data collection task can also be collected by one or more data collection devices 40 . This embodiment of the present application does not limit it. In the following, a data collection task that requires one type of data is used as an example to illustrate.
  • the data demand device 20 can send the data collection task and the collection task parameters to the federation management center 30 .
  • FIG. 11 exemplarily shows a flow chart of steps in which the data demand device 20 sends a data collection task request and collection task parameters to the federation management center 30 .
  • the data demand device 20 sends the data collection task request and the collection task parameters to the federation management center 30 may include the following steps:
  • the data demand device 20 determines whether there is a data collection device 40 that meets the parameters of the collection task. If yes, execute step S10012a; if not, execute step S10012b.
  • step S10012 can be executed; otherwise, step S10012b can be executed.
  • the data demand device 20 requests to establish a communication connection with the data collection device 40 , and sends a collection task request and collection task parameters to the data collection device 40 .
  • the data demand device 20 may directly request to establish a communication connection with the data collection device 40 .
  • the data collection device 40 has completed the data collection task sent by the data demand device 20 and complies with the collection parameters of the task.
  • the data demand device 20 may directly send the collection task request and the collection task parameters to the data collection device 40 . In this way, the following steps S1003-S1005 and S1006a and S1006b do not need to be performed.
  • the data demand device 20 sends a data collection task request and collection task parameters to the federation management center 30 .
  • the federation management center 30 determines the data collection device 40 corresponding to the data collection task based on the collection task parameters.
  • the federation management center 30 may receive the data collection task and collection task parameters sent by the data demand device 20 .
  • the federal management center 30 may store a list of different sensing capability information, which may include different sensing capability information, the ID of the semantic information contained in each sensing capability information, and an ID that can provide semantic information. or multiple devices and so on.
  • the federation management center 30 can determine the semantic information x1 required to complete the data collection task based on the collection task parameters of the data collection task, and query the corresponding data collection device 40 that can provide the semantic information x1 in the sensing capability information list.
  • the sensing capability information list may be specifically shown in Table 1 below.
  • Table 1 exemplarily shows a list of sensing capability information in the federation management center 30 .
  • the sensing capability information of multiple devices is exemplarily shown in Table 1.
  • the sensing capability information of each device may include information such as semantic information that each device can provide, a semantic information ID, data accuracy of the provided semantic information, a location of the device, and the like.
  • Table 1 can include semantic information such as environmental temperature data, user identity, user's exercise steps, user body temperature, user fatigue, etc., as well as environmental temperature data, user identity, user's exercise steps, user body temperature, etc. Semantic information ID, electronic device that provides semantic information, ID of electronic device, data accuracy, location of electronic device, etc. corresponding to sensing capabilities.
  • the semantic information ID corresponding to the semantic information "ambient temperature data” may be "CGLB0001".
  • the electronic device providing the semantic information "ambient temperature data” may be a temperature sensor, the device model of the temperature sensor may be “XH01”, and the device ID may be "Device 0001".
  • the data accuracy of the ambient temperature data provided by the temperature sensor may be " ⁇ 0.01°C”.
  • the location where the temperature sensor is located may be "user A's bedroom”.
  • the semantic information ID corresponding to the semantic information "user identity” may be "CGLB0002".
  • Electronic devices that provide the semantic information "user identity” can be mobile phones, tablets, and televisions.
  • the device model of the mobile phone can be "XH02", and the device ID can be “Device 0002".
  • the data accuracy of the semantic information "user identity” provided by the mobile phone can be "98%”.
  • the location of the mobile phone can be a null value (such as Null).
  • the device model of the tablet can be "XH03", and the device ID can be "Device0003".
  • the data accuracy of the semantic information "user identity” provided by the tablet can be "99%”.
  • the location of the tablet may be "user A's bedroom”.
  • the TV model can be "XH04” and the device ID can be "Device 0004".
  • the data accuracy of the "user identity” provided by the television may be "95%”.
  • the location of the television may be "user A's living room”.
  • the semantic information ID corresponding to the semantic information "user's motion steps” may be "CGLB0003".
  • Electronic devices that provide the semantic information "number of user's motion steps” can be mobile phones, watches, and bracelets.
  • the device model of the mobile phone can be "XH02", and the device ID can be "Device 0002".
  • the data accuracy of the semantic information "user's movement steps” provided by the mobile phone can be "0.1 step”.
  • the location of the mobile phone can be a null value (such as Null).
  • the model of the watch can be "XH05" and the device ID can be "Device 0005".
  • the data accuracy of the semantic information "user's motion steps” provided by the watch may be "0.5 steps".
  • the location of the watch may be "user A's bedroom”.
  • the model of the bracelet can be "XH06", and the device ID can be "Device 0006".
  • the data accuracy of the semantic information "user's movement steps” provided by the bracelet can be "0.8 steps”.
  • the location of the wristband can be a null value (such as Null).
  • the semantic information ID corresponding to the semantic information "user body temperature” may be "CGLB0004".
  • Devices that provide the semantic information "user body temperature” can be watches and wristbands.
  • the model of the watch can be "XH05” and the device ID can be "Device0005".
  • the data accuracy of the semantic information "user body temperature” provided by the watch can be " ⁇ 0.01°C”.
  • the location of the watch may be "user A's bedroom”.
  • the model of the bracelet can be "XH06", and the device ID can be "Device 0006".
  • the data accuracy of the semantic information "user body temperature” provided by the bracelet can be " ⁇ 0.02°C”.
  • the location of the wristband can be a null value (such as Null).
  • the semantic information ID corresponding to the semantic information "user fatigue” may be "CGLB0006".
  • Electronic devices that provide the semantic information "user fatigue” may be mobile phones and wristbands.
  • the device model of the mobile phone can be "XH02", and the device ID can be "Device 0002".
  • the data accuracy of the semantic information "user fatigue” provided by the mobile phone can be "95%”.
  • the location of the mobile phone can be a null value (such as Null).
  • the model of the wristband can be "XH06", and the device ID can be "Device0006".
  • the data accuracy of the semantic information "user fatigue” provided by the wristband can be "92%”.
  • the location of the wristband can be a null value (such as Null).
  • sensing capabilities may be stored in federation management center 30 .
  • more information corresponding to the sensing capability can also be stored in the federal management center 30 (for example, the resource of the electronic device that provides the sensing capability, and the wearing state of the electronic device, the power state, and the sensors and sensor information included in the electronic device. ID, model, type of raw data that the sensor can provide, accuracy, etc.).
  • the embodiment of the present application does not limit the content contained in the sensing capability information list stored in the federation management center 30 .
  • the position information of the electronic device may be recorded in the sensing capability information list. If the position of the electronic device is not fixed (for example, a handheld device or a wearable device), the position information of the electronic device may not be recorded in the sensing capability information list.
  • the electronic device may periodically report location information to the federation management center.
  • the sensing capability information in the sensing capability information list in the federation management center 30 may be reported to the federation management center 30 by sensing each electronic device in the federation. Specifically, when the data demand device 20 and the data collection device 40 join the sensor federation formed by the federation management center 30, the data demand device 30 and the data collection device 40 can report the sensing capability information in the device to the federation management center 30 respectively .
  • the federation management center 30 may update the sensor capability information list stored in the federation management center 30 based on the sensor capability information reported by the data demand device 20 and the data collection device 40 .
  • a device in the sensor federation when a device in the sensor federation joins the sensor federation, it can report the device model of the device to the federation management center.
  • the federal management center can obtain the sensing capability information of the device in the cloud server based on the device model of the device. Sensing capability information corresponding to different types of devices is stored in the cloud server.
  • the sensing capability information list generated from the sensing capability information of each device in a sensing federation may be stored in a cloud server or a server.
  • the information in the federation management can obtain the sensing capability information list from the cloud server or the server.
  • the federation management center may also use the storage resources of another device in the sensing federation to store data or information that the federation management center needs to store (for example, a list of sensing data or sensing capability information).
  • the federation management center can obtain the sensing capability information of the new device model.
  • the federation management center can update the sensing capability information list in the sensing federation based on the full amount of knowledge graph stored in the cloud server and the sensing capability information of the new device model, and update the Local knowledge graph.
  • the cloud or cloud server, or the entire knowledge graph stored in the server may be referred to as the second knowledge graph.
  • the local knowledge graph in the sensor federation can be called the first knowledge graph.
  • the federal management center can push out new types of sensing capability information based on the full knowledge graph stored in the cloud server and the sensing capability information of the new device model, and/or obtain information for A derivation model for deriving new types of sensory capability information.
  • the sensor capability information list in the sensor federation may not include the wristband with the model "XH06".
  • the sensing capability information corresponding to the ring for example, the device that provides the semantic information corresponding to the semantic information "user body temperature” does not include the model "XH06" wristband
  • a new type of sensory capability information eg, semantic information "user fatigue" is derived from the sensory capability information.
  • the federation management center can obtain the sensing capability information of the wristband, and can derive new sensing information based on the semantic information "user's movement steps” and semantic information "user's body temperature” provided by the wristband.
  • Capability information such as the semantic information "user fatigue”, and the ID of the semantic information "user fatigue”, can provide the semantic information "user fatigue” device, device model and other sensing capability information.
  • the federation management center may generate a device ID in the sensing federation for the device.
  • the federation management center can delete the sensing capability information of the device in the sensing capability information list and the information derived based on the sensing capability information of the device. New sensing capability information.
  • the federation management center may delete the sensing capability information list in the sensor federation.
  • FIG. 12 exemplarily shows a specific flowchart of the federation management center 30 determining the data collection device 40 corresponding to the data collection task based on the collection task parameters.
  • the federation management center 30 determines the data collection device 40 corresponding to the data collection task based on the collection task parameters may include the following steps:
  • the federal management center 30 determines the semantic information N corresponding to the data collection task, and determines M1 data collection devices 40 corresponding to the sensing capability N in the sensing capability information list, and the sensing capability information list contains multiple semantic information And one or more data collection devices 40 respectively corresponding to multiple semantic information.
  • the federation management center 30 can determine the semantic information N corresponding to the data to be collected in the data collection task, and determine the M1 data collection devices 40 corresponding to the semantic information N in the sensing capability information list.
  • M1 can be an integer.
  • the sensing capability information list may include a plurality of semantic information and one or more data collection devices 40 respectively corresponding to the plurality of semantic information. For a list of sensing capability information, reference may be made to Table 1 above, which will not be repeated here.
  • the electronic device that provides the semantic information "environmental temperature data" in Table 1 above is a temperature sensor.
  • the electronic devices that provide the semantic information "user identity” in Table 1 above may be mobile phones, tablets, and televisions.
  • the data required in the above data collection task may be one or more of environmental temperature data, user identity, user's exercise steps, user's body temperature and other data.
  • the embodiment of the present application does not limit the specific data collection task.
  • the semantic information required by the data collection task may also be multiple.
  • the federation management center 30 may determine to send the data collection task to the data collection device 40, and the federation management center 30 may The following steps S10021 to S10025 are not executed.
  • M1 is greater than 1, it means that there are multiple data acquisition devices 40 in the sensing capability information list that can provide the semantic information N, and the federation management center 30 can follow the steps S10022-Step S10025 below to select from multiple data collection devices 40 that can provide the semantic information N.
  • a target data collection device 40 is selected from the collection devices 40 .
  • M1 may be equal to 0, that is, there is no device providing the semantic information in the sensor federation.
  • the federation management device may inform the data demand device 20 that there is no device in the sensing federation that can provide the semantic information.
  • the federal management center may not perform the following steps.
  • the federation management center 30 can directly send the data collection task and the collection task parameters to multiple data collection devices that can provide semantic information N Acquisition device 40 . That is, the federation management center 30 does not need to execute the following steps S10022-step S10025.
  • the federal management center 30 determines M2 wakeable data collection devices 40 from the M1 data collection devices 40 .
  • the federal management center 30 may determine M2 wakeable data collection devices 40 from the M1 data collection devices 40 .
  • M2 is an integer, and M2 is less than or equal to M1.
  • the wakeable data collection device 40 may mean that the federation management center 30 can receive the message sent by the data collection device 40 within a preset time, and the data collection device 40 does not report an abnormal state (for example, data The collection device 40 is shut down, the data collection device 40 is powered off, the power of the data collection device is lower than the preset power threshold, and the data collection device is not in the wearing state (one or more items).
  • the electronic devices that can provide semantic information N in the sensor capability information list in the federation management center 30 may not be in the sensor federation where the data demand device 20 and the federation management center 30 are located.
  • the electronic device providing the semantic information N may be another sensor federation that has joined the federation management center 30 before step S1001.
  • M2 may be greater than 1 or equal to 1.
  • M2 is equal to 1, it means that there is only one wakeable data collection device 40 among the M1 data collection devices 40 .
  • the federal management center 30 can send the data collection task and data collection parameters to the wakeable data collection device 40 .
  • the federation management center 30 may not execute the following steps S10023-step S10025.
  • M2 is greater than 1, the federation management center 30 may execute the following step S10023.
  • M2 may be equal to 0, which means that there is no wakeable data collection device 40 among the M1 data collection devices 40 .
  • the federation management center 30 may not perform the following steps.
  • the federation management center 30 may inform the data demand device 20 that there is no device in the sensor federation that can complete the data collection task.
  • the federation management center 30 determines M3 data collection devices 40 from the M2 data collection devices 40 that meet the accuracy of the collected data.
  • the collection task parameters may include the accuracy range of the data required by the data collection task.
  • the federal management center 30 can determine M3 data collection devices 40 from the M2 data collection devices 40 that meet the data accuracy in the collection task parameters.
  • M3 is an integer, and M3 may be less than or equal to M2.
  • M3 may be greater than 1, or equal to 1, or equal to 0.
  • the federation management center 30 may not execute the following steps S10024-step S10025.
  • the federation management center 30 may execute the following step S10024.
  • the federation management center 30 may send a message to remind the data demand device 20 that currently no data collection device 20 can receive the data collection task.
  • the federation management center 30 does not execute the following steps S10024-S10025.
  • the federation management center 30 determines from the M3 data collection devices 40 that M4 data collection devices 40 whose distance to the data demand device 20 is less than a preset distance threshold.
  • the task collection parameters may include a distance range between the data collection device 40 and the data demand device 20, and the distance between the data collection device 40 and the data demand device 20 should be smaller than a preset distance threshold.
  • the federation management center 30 may determine M4 data collection devices 40 whose distance from the data demand device 20 is less than a preset distance threshold from the M3 data collection devices 40 .
  • M4 is an integer, where M4 may be less than or equal to M3.
  • M4 may be greater than 1 or equal to 1.
  • M4 is equal to 1, it means that the distance between only one data collection device 40 among the M3 data collection devices 40 and the data demand device 20 is smaller than the preset distance threshold.
  • the federation management center 30 can send the data collection task and the parameters of the collection task to the data collection device 40 .
  • the federation management center 30 may not execute the following step S10025.
  • M4 is greater than 1, it means that among the M3 data collection devices 40, the distance between multiple data collection devices 40 and the data demand device 20 is smaller than the preset distance threshold.
  • the federation management center 30 may execute the following step S10025.
  • M4 may be equal to 0, which means that the distance between the data collection device 40 and the data demand device 20 among the M3 data collection devices 40 is less than the preset distance threshold.
  • the federation management center 30 is based on the device states of the M4 data collection devices 40.
  • the device states of the data collection devices 40 include the power state of the data collection devices 40, the device type, the wearing state, and the data accuracy of the semantic information N in the data collection devices 40.
  • the federation management center 30 can compare the device states of the M4 data collection devices 40 , that is, determine the target data collection device 40 by the device states of the M4 data collection devices.
  • the device state of the data collection device 40 may include the power state of the data collection device 40, the device type (whether it has computing resources or storage resources), the power state, the wearing state, the data accuracy of the semantic information N in the data collection device 40, and the data requirements The distance of the device 20 and whether it has one or more of the standard sensing federation data transmission interface.
  • the federal management center 30 determines the active device according to the power status (active device and passive device) of the M4 data collection devices 40, and the data collection device 40 connected to the power supply is the target Data Acquisition Device 40 .
  • the M4 data collection devices 40 include a first data collection device 40 and a second data collection device 40 .
  • the first data collection device 40 is an active device (for example, a notebook computer), and the first data collection device 40 is connected to a power supply, the second data collection device is a passive device (for example, a mobile phone), and the first data collection device 40 Power is not connected. Then, based on the power status in the device status, the federation management center 30 can determine that the first data collection device 40 is the target data collection device 40 .
  • the federation management center 30 selects from the M4 data collection devices 40 based on the device types of the M4 data collection devices 40, a data collection device 40 with the most computing resources and the most storage resources as the target Data Acquisition Device 40 .
  • the federation management center 30 may select a data collection device 40 with the most power from the M4 data collection devices 40 as the target data collection device 40 based on the power status of the M4 data collection devices 40 .
  • the federation management center 30 may base on the equipment types of the M4 data collection devices 40 (whether There are computing resources or storage resources), battery status, wearing status, data accuracy of semantic information N in the data collection device 40, distance from the data demand device 20, and whether there is a standard sensor federation data transmission interface, from M4 Select one of the data acquisition devices 40 with the most computing resources, the most storage resources, the most power, the wearing state, the highest data accuracy of semantic information N, the closest distance to the data demand device 20, and a standard sensor federation data transmission interface.
  • One data collection device 40 serves as the target data collection device 40 .
  • the federation management center 30 can base the M4 data collection devices 40 on the power status, device type (whether has computing resources or storage resources), power state, the data accuracy of the semantic information N in the data collection device 40, the distance from the data demand device 20, and whether there is a standard sensor federation data transmission interface, select one of the M4 data collection devices 40 to connect to the power supply, and calculate
  • the target data collection device 40 is a data collection device 40 with the most resources, the most storage resources, the most power, the highest data accuracy of the semantic information N, and the closest distance to the data demand device 20 , and equipped with a standard sensor federation data transmission interface.
  • the federation management center 30 sends the collection task parameters to the data collection device 40.
  • the federation management center 30 may send the data collection task and the collection task parameters to the determined target data collection device 40 . Specifically, if there is a sensor federation engine module in the data collection device 40 , the federation management center 30 can directly send the data collection task and the collection task parameters to the data collection device 40 . If there is no sensing federation engine module in the data collection device 40, the federation management center 30 can decompose the data collection task (for example, obtaining user identity data before air conditioning) and the collection task parameters into the collection subtasks of the data collection device 40 (for example, Take a user image), and then send the collection subtask to the data collection device 40.
  • the data collection task for example, obtaining user identity data before air conditioning
  • the collection task parameters into the collection subtasks of the data collection device 40 (for example, Take a user image), and then send the collection subtask to the data collection device 40.
  • the sensor federation engine module can parse the collection task parameters into data collection parameters in the data collection device 40 .
  • the “user identity” in the task collection parameters of the sensor federation engine module is resolved to the data collection parameter “user face image” in the data collection device 40 .
  • the specific functions of the sensor federation engine module please refer to the description in FIG. 4 above, which will not be repeated here.
  • the data collection device 40 determines whether to accept the data collection task based on the collection task parameters and the device capabilities of the data collection device 40; if accepted, execute step S1006a; if not, execute step S1006b.
  • the data collection device 40 can evaluate the resources (computing resources and storage resources) to be used if the data collection device 40 needs to execute the data collection task based on the collection task parameters. Then, the data collection device 40 determines whether the remaining resources in the data collection device 40 are larger than the resources to be used; if the remaining resources are larger than the resources to be used, the data collection device 40 can accept the data collection task. When the data collection device 40 accepts the data collection task, the data collection device 40 may execute step S1006a. If the remaining resources are less than the resources to be used, the data collection device 40 may not accept the data collection task. When the data collection device 40 does not accept the data collection task, the data collection device 40 may execute step S1006b.
  • the remaining resources of the data collection device 40 may refer to remaining resources in the resources reserved for sensor federation in the data collection device 40 . It can be understood that, after the data acquisition device 40 joins the sensor federation, certain computing resources and storage resources may be reserved for the sensor federation.
  • the data collection device 40 establishes a communication connection with the data demand device 20 , and the data collection device 40 sends the collected sensor data to the data demand device 20 .
  • the data collection device 40 After the data collection device 40 accepts the data collection task of the data demand device 20, if a communication connection has been established between the data collection device 40 and the data demand device 20, the data collection device 4 can collect the collected sensor data, or based on the collected sensor data The obtained semantic information is sent to the data demand device 20 . If there is no communication connection established between the data collection device 40 and the data demand device 20, the data collection device 40 may establish a connection with the data demand device 20, and then send the collected sensor data or the semantic information based on the collected sensor data to To the data demand device 20. Alternatively, if no communication connection is established between the data collection device 40 and the data demand device 20, the data collection device 40 can send the collected sensor data, or the semantic information based on the collected sensor data, to the data demand device through the federal management center 30. device 20.
  • the data collection device 40 sends a message of refusing to accept the data collection task to the federation management center 30 .
  • the data collection device 40 may refuse to accept the data collection task. Or, when the sensor in the data collection device 40 used to collect the data required in the data collection task is in working state and is occupied by another task, the data collection device 40 can also refuse to accept the data collection task.
  • the data collection device 40 may send a message of refusing to accept the data collection task to the federation management center 30 .
  • the federation management center 30 may also send a message to the data demand device 30 that the data collection device 40 refuses to accept the data collection task.
  • the federation management center 30 may determine another data collection device 40 from the sensor federation to complete the data collection task.
  • the data collection device 40 may have a sensory federation engine module.
  • the sensor federation engine module in the data collection device 40 can analyze the collection task parameters and the data collection task, and can determine whether to accept the data collection task according to the collection task parameters and the device status of the data collection device 40 .
  • Fig. 13A exemplarily shows how the federation management center 30 sends a data collection task to the data collection device 40 when there is a sensor federation engine module in the data collection device 40, and how the data collection device 40 determines whether to Flowchart of specific steps for accepting data collection tasks.
  • the federal management center 30 sends the collection task parameters to the data collection device 40, and the data collection device 40 determines to accept the data collection task may include the following steps:
  • the federation management center 30 determines that the data collection device 40 has a sensor federation engine module.
  • the federation management center 30 may store the device information of the data demand device 20 and the device information of the data collection device 40 in the sensor federation.
  • the federation management center 30 may determine according to the device information of the data collection device 40 that the data collection device 40 has a sensor federation engine module.
  • the data collection device 40 may report to the federation management center 30 that the data collection device 40 has a sensor federation engine module.
  • the federation management center 30 sends the task collection parameters to the sensor federation engine module in the data collection device 40 .
  • the federation management center 30 can send the task collection parameters to the sensing federation causing module in the data collection device 40 .
  • the sensor federation engine module in the data collection device 40 analyzes the task collection parameters, and maps the task collection parameters to the data collection parameters in the data collection device 40 .
  • the sensor federation engine module in the data collection device 40 can analyze the task collection parameters. Specifically, the task analysis module in the sensor federation engine module can map the task collection parameters to the data collection parameters in the data collection device 40 .
  • the task parsing module in the sensor federation engine module can decompose the semantic information "user identity" required in the data collection task into the specific collection parameters of the data collection device 40 (for example, the specific collected data is "image collected by camera") ", as well as shooting several images, resolution, image compression ratio and other parameters).
  • the task parsing module in the sensor federation engine module can map the semantic information "average heart rate" required by the data collection task to the collection cycle and collection frequency of the device.
  • the PPG sensor of the watch has a fixed collection frequency of 1Hz, so the parameters may be Yes: The collection time is 5s, the collection frequency is 1Hz, and the collection operator is to average the data collected within 5s.
  • the task analysis module in the sensor federation engine can analyze the semantic information in the task collection parameters to obtain the data or low-level semantic information collected by the sensor that generates or derives the semantic information.
  • the sensing federation engine module in the data collection device 40 determines the resources to be used corresponding to the data collection task based on the data collection parameters;
  • the management center 30 replies to accept the data collection task.
  • the sensor federation engine module in the data collection device 40 can determine the resources (which may be referred to as resources to be used) to be used by the data collection task based on the data collection parameters.
  • the sensor federation engine module in the data collection device 40 can determine the remaining resources in the data collection device 40 based on the working status of the data collection device 40 (for example, the number of tasks being executed).
  • the data collection device 40 may reply to the federation management center 30 to accept the data collection task.
  • the data collection device 40 may directly establish a communication connection with the data demand device 20 .
  • the data collection device 40 may reply to the federation management center 30 that the data collection task is not accepted.
  • the data collection task in the data demand device 20 has been sent to the data collection device 40 times, and the number of times the data collection device 40 refuses to execute the data collection task is greater than a preset threshold.
  • the federal management center 30 determines whether the data collection device 40 accepts the data collection task.
  • FIG. 13B exemplarily shows a specific flowchart of how to determine whether the data collection device 40 accepts the data collection task this time when the number of times the data collection device 40 has refused to execute the data collection task is greater than a preset threshold.
  • determining that the data collection device 40 accepts the data collection task this time may include the following steps:
  • the federal management center 30 determines that the data collection task request carries an arbitration mode identifier, and the arbitration mode identifier is used to indicate that the data collection device 40 refuses to accept the data collection task in the data demand device 20.
  • the number of times the federation management center 30 based on The device capability of the data collection device 40 determines whether the data collection device 40 accepts the data collection task.
  • the data collection task sent by the data demand device 20 may carry an arbitration mode identifier.
  • the data collection device 40 corresponding to the data collection task in the data collection device 20 rejects the threshold of the number of times the data collection task is greater than the preset threshold, when the data demand device 20 sends the data collection task to the federation management center 30 again, it can carry Arbitration mode flag.
  • the arbitration mode flag may be used to indicate that the data collection device 40 rejects the data collection task in the data demand device 20 for a number of times exceeding a preset threshold.
  • the arbitration mode identifier may carry the device information of the data collection device 40 that rejects the data collection task and the number of times of rejection.
  • the federation management center 30 can determine the arbitration mode identifier carried in the data collection task sent by the data demand device 20 .
  • the federation management center 30 sends the task collection parameters and the arbitration mode identifier to the sensor federation engine module in the data collection device 40 .
  • the federation management center 30 may send the task collection parameters and the arbitration mode identifier to the data collection device 40 .
  • the arbitration mode identifier may instruct the data collection device 40 to send the remaining resources and the resources to be used required by the data collection task to the federation management center 30 .
  • the federation management center 30 can send an instruction a to the data collection device 40, and the instruction a can be used to instruct the data collection device 40 to send the data collection device 40 The remaining resources are sent to the federation management center 30.
  • the sensor federation engine module in the data collection device 40 analyzes the task collection parameters, and maps the task collection parameters to the data collection parameters in the data collection device 40 .
  • the sensor federation engine module in the data collection device 40 determines the resources to be used corresponding to the data collection task based on the data collection parameters; the data collection device 40 sends the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 to Federal Management Center 30.
  • the sensor federation engine module in the data collection device 40 can determine the to-be-used resources corresponding to the data collection task based on the data collection parameters.
  • the data collection device 40 may send the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 to the federation management center 30 .
  • the federation management center 30 determines that the data collection device 40 accepts the data collection task based on the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 .
  • the federation management center 30 may determine that the data collection device 40 can receive the data collection task. Further, the federation management center 30 may notify the data collection device 40 to accept the data collection task.
  • the federation management center 30 may determine that the data collection device can reject the data collection task. Further, the federation management center 30 may notify the data collection device 40 that it does not need to receive the data collection task.
  • the data collection device 40 may report the remaining resources and the list of tasks being executed in the data collection device 40 to the federation management center 30 .
  • the federation management center 30 can compare the priority of the data collection task with the tasks in the task list being executed in the data collection device 40 . If the priority of the data collection task is higher than the priority of the tasks in the task list being executed in the data collection device 40, the federation management center 30 can notify the data collection device 40 to suspend or delete the task with lower priority in the task list being executed. task, and receive the data collection task.
  • the data collection device 40 does not have a sensor federation engine module, the data collection device 40 needs to resolve the data collection task through the federation management center 30, and needs to send the collected sensor data to the data demand device through the federation management center 30 20. Then the federation management center 30 needs to determine whether the data collection device 40 accepts based on the resource status of the federation management center 30 and the new resources to be used that the federation management center 30 helps the data collection device 40 to forward the collected sensors to the data demand device 20. data collection tasks.
  • FIG. 13C exemplarily shows a flow chart of specific steps of how the federation management center 30 determines whether the data collection device 40 accepts the data collection task when there is no sensor federation engine module in the data collection device 40 .
  • the federal management center 30 determines that the data collection device 40 accepts the data collection task may include the following steps:
  • the federation management center 30 determines that the data collection device 40 does not have a sensor federation engine module.
  • the federation management center 30 may determine that the data collection device 40 does not have a sensor federation engine module according to the stored device information of the data collection device 40 .
  • the federation management center 30 parses the task collection parameters and data collection tasks, and parses the data collection tasks into a list of data collection subtasks of the data collection device 40 .
  • the federation management center module in the federation management center 30 can resolve task collection parameters and data collection tasks, and can parse the data collection tasks into the data collection subtask list of the data collection device 40.
  • the federation management center 30 may parse the data collection task “user identity” into a list of data collection subtasks in the data collection device 40 .
  • the data collection subtask list may include the data collection subtask "collect user's face image” and the data collection subtask "according to the user's face image to determine user identity (children, young and middle-aged people, old people, etc.)".
  • the federation management center 30 evaluates new resources to be used of the federation management center 30 based on the data collection subtask list.
  • the federation management center 30 can evaluate the resources that the federation management center 30 needs to invest in the data collection device 40 when the data collection device 40 completes the data collection subtasks in the collection subtask list based on the data collection subtask list (which can be referred to as new Incrementally use resources).
  • the newly added resources to be used may include the resources that the federation management center 30 needs to use to send the sensor data collected by the data collection device 40 to the data demand device 20, and the federation management center 30 converts the sensor data collected by the data collection device 40 into data collection Semantic information required by a task requires resources to be used.
  • the federal management center 30 determines to start the proxy data collection mode based on the newly added resources to be used and the resource status of the federal management center 30, and sends the collection subtask list to the data collection device 40;
  • the proxy data collection mode refers to the federal management center 30 Send the data collected by the data collection device 40 to the data demand device 20 ;
  • the federation management center 30 may determine whether to enable the proxy data collection mode based on newly added resources to be used and the resource status of the federation management center 30 .
  • the federal management center 30 may also send the collection subtask list to the data collection device 40 .
  • the federation management center 30 determines to enable the proxy data collection mode.
  • the proxy data collection mode may mean that the federal management center 30 sends the data collected by the data collection device 40 to the data demand device 20;
  • the processed data (for example, converting sensor data into semantic information conforming to data collection parameters) is sent to the data demand device 20 .
  • the federation management center 30 when the federation management center 30 is in the cloud server, and the newly added resources to be used by the federation management center 30 are greater than the remaining resources in the federation management center 30, the federation management center 30 can apply to the cloud server More resources. After the federation management center 30 applies for more resources, the federation management center can start the proxy data collection mode.
  • the federation management center 30 is deployed in an electronic device, and can apply for resources from other electronic devices in the sensor federation for proxy data collection or proxy model training or derivation of new semantics.
  • the data collection device 40 can also complete the data collection task in the data demand device 20 .
  • the data collection device 40 may directly send the sensor data collected based on the data collection task to the data demand device 20 .
  • the federal management center 30 determines that the data collection device 40 completes the data collection task in the data demand device 20
  • the data demand device 20 can directly establish a data transmission channel with the data collection device 40 .
  • FIG. 14A exemplarily shows specific steps for establishing a data transmission channel between the data collection device 40 and the data demand device 20 .
  • the federation management center 30 determines that the data collection task of the data demand device 20 is completed by the data collection device 40, the federation management center 30, the data collection device 40 and the data demand device 20 can perform the following steps:
  • the federation management center 30 triggers the sensor federation engine module in the data demand device 20 and the data collection device 40 to start.
  • the federation management center 30 can trigger the sensory federation engine module in the data demand device 20 to start. Specifically, the federation management center 30 can send an instruction b to the data demand device 20, and the instruction b can be used to instruct the data demand device 20 to start the sensor federation engine module. The data demand device 20 may receive the instruction b, and start the sensor federation engine module based on the instruction b.
  • the federation management center 30 can trigger the sensor federation engine module in the data collection device 40 to start. Specifically, the federation management center 30 may send an instruction c to the data collection device 40, and the instruction c may be used to instruct the data collection device 40 to start the sensor federation engine module. The data collection device 40 may receive the instruction c, and start the sensor federation engine module based on the instruction c.
  • the sensor federation engine module of the data collection device 40 and the sensor federation engine module of the data demand device 20 establish a data transmission channel.
  • the sensor federation engine module of the data collection device 40 can establish a data transmission channel with the sensor federation engine module of the data demand device 20 .
  • the sensor federation engine module in the data collection device 40 may send a request for establishing a data transmission channel to the sensor federation engine module in the data demand device 20 .
  • the sensor federation engine module in the data demand device 20 can reply to the sensor federation engine module in the data collection device 40 for approval Establish a data transmission channel. Then, the sensor federation engine module in the data collection device 40 and the sensor federation engine in the data demand device 20 can successfully establish a data transmission channel.
  • the data collection device 40 obtains the device information of the data demand device 20
  • the data demand device 20 obtains the device information of the data collection device 40 .
  • the data collection device 40 can send the data collection device 40 to the data demand device 20.
  • device information The data demand device 20 may also send the device information of the data demand device 20 to the data collection device 40 .
  • the data collection device 40 may send the sensor data collected based on the data collection task to the federation management center 30 , and then the federation management center 30 sends the sensor data to the data demand device 20 .
  • the federal management center 30 determines that the data collection device 40 completes the data collection task in the data demand device 20, the federation management center 30 needs to establish data transmission channels with the data demand device 20 and the data collection device 40 respectively.
  • FIG. 14B exemplarily shows specific steps for establishing data transmission channels between the federation management center 30 and the data demand device 20 and the data collection device 40 respectively.
  • the federation management center 30 determines that the data collection task of the data demand device 20 is completed by the data collection device 40
  • the federation management center 30, the data collection device 40 and the data demand device 20 can perform the following steps:
  • the federation management center 30 triggers the sensor federation engine in the data demand device 20 and the data collection device 40 to start.
  • step S10041b reference may be made to the description in the above step S10041a, which will not be repeated here.
  • the federation management center 30 establishes a data transmission channel with the data demand device 20 , and the federation management center 30 establishes a data transmission channel with the data collection device 40 .
  • the federation management center module (or the sensory federation engine module) in the federation management center 30 can establish a communication connection with the sensory federation engine module in the data demand device 20 .
  • the federation management center module (or the sensory federation engine module) in the federation management center 30 may send a request for establishing a data transmission channel to the sensory federation engine module in the data demand device 20 .
  • the sensor federation engine module in the data demand device 20 can send a federation management center module in the federation management center 30 (or the federation management center module in the federation management center 30).
  • Sense federation engine module replies to agree to establish a data transmission channel. Then, the federation management center module (or sensory federation engine module) in the federation management center 30 and the sensory federation engine in the data demand device 20 can successfully establish a data transmission channel.
  • the federation management center module (or the sensory federation engine module) in the federation management center 30 can establish a communication connection with the sensory federation engine module in the data demand device 20 .
  • the federation management center module (or the sensory federation engine module) in the federation management center 30 may send a request for establishing a data transmission channel to the sensory federation engine module in the data demand device 20 .
  • the sensor federation engine module in the data demand device 20 can send a federation management center module in the federation management center 30 (or the federation management center module in the federation management center 30).
  • Sense federation engine module replies to agree to establish a data transmission channel. Then, the federation management center module (or sensory federation engine module) in the federation management center 30 and the sensory federation engine in the data demand device 20 can successfully establish a data transmission channel.
  • the data collection device 40 obtains the device information of the data demand device 20 through the federation management center 30
  • the data demand device 20 obtains the device information of the data collection device 40 through the federation management center 30 .
  • the data demand device 20 may send the device information of the data demand device 20 to the federation management center 30 through the data transmission channel. Then, the federation management center 30 can send the device information of the data demand device 20 to the data collection device 40 .
  • the data collection device 40 can also send the device information of the data collection device 40 to the federal management center 30, and after the federation management center 30 receives the device information of the data collection device 40, it can send the device information of the data collection device 40 to the data demander. device 20.
  • the data collection device 40 can send the collected sensor data to the data demand device through the federation management center 30 20.
  • FIG. 15A exemplarily shows specific steps for the data collection device 40 to send the collected sensor data to the data demand device 20 through the federation management center 30 .
  • the data collection device 40 sends the collected sensor data to the data demand device 20 through the federation management center 30 may include the following steps:
  • the sensors in the data collection device 40 collect data based on the data collection subtask list, and send the sensor data collected by the sensors to the federation management center 30 .
  • the federation management center 30 can parse the data collection task into a data collection subtask list of the data collection device 40 .
  • the data collection subtask list may include one or more data collection subtasks. Reference can be made here to the description of FIG. 13C above.
  • the sensors in the data collection device 40 can collect data based on the data collection subtask list, and send the sensor data collected by the sensors, such as sensor data data100 , to the federation management center 30 .
  • the federation management center 30 processes the sensor data based on the collection task parameter collection operator to obtain a data collection result.
  • the acquisition task parameters include the acquisition operator
  • the federation management center 30 receives the sensor data, such as the sensor data data100, it can process the sensor data based on the acquisition operator to obtain the data acquisition result, such as the sensor data data200 .
  • the collection operator may be averaging the sensor data collected within 10 seconds, or taking the maximum value of the sensor data collected within 10 seconds, etc. The embodiment of the present application does not limit the collection operator.
  • the federal management center 30 can also convert the sensor data data200 into semantic information.
  • the federation management center 30 sends the data collection result to the data demand device 20 .
  • the federation management center 30 can send the data collection result (for example, sensor data data200 ) to the data demand device 20 .
  • the federal management center 30 can convert the sensor data data200 into semantic information, and then send the semantic information to the data demand device 20 .
  • the data collection device 40 may report the abnormal event to the federation management center 30 .
  • FIG. 15B exemplarily shows the specific steps of how the data collection device 40 and the federation management center 30 handle abnormal events occurring in the data collection device 40 .
  • the data collection device 40 and the federation management center 30 can perform the following steps:
  • the data collection device 40 sends the collected sensor data to the data demand device 20 .
  • the data collection device 40 can directly send the collected sensor data to the data demand device 20 .
  • the data collection device 40 may send the collected sensor data to the federation management center 30, and the federation management center 30 processes the sensor data based on the collection operator, and then sends the processed sensor data to the data demand device.
  • the data collection device 40 may send the collected sensor data to the federation management center 30, and the federation management center 30 processes the sensor data based on the collection operator, and then sends the processed sensor data to the data demand device.
  • the federation management center 30 processes the sensor data based on the collection operator, and then sends the processed sensor data to the data demand device.
  • the data collection device 40 reports the abnormal state to the federal management center 30.
  • the abnormal state includes the shutdown of the data collection device 40, the power failure of the data collection device 40, the power of the data collection device is lower than the preset power threshold, and the data collection device is not in the wearing state. one or more of .
  • the data collection device 40 When the data collection device 40 is abnormal when collecting data, the data collection device 40 cannot continue to collect data normally based on the data collection task.
  • the data collection device 40 can report the specific abnormal state to the federation management center.
  • the abnormal state may include one or more of the data collection device 40 being shut down, the data collection device 40 being powered off, the power of the data collection device 40 being lower than a preset power threshold, and the data collection device 40 not being worn.
  • the federation management center 30 searches for a data collection device 40 that meets the data collection parameters.
  • the federation management center 30 can search for other data collection devices 40 that meet the data collection parameters again. For details, reference may be made to the description of FIG. 12 above, and details are not repeated here.
  • the data collection device 40 may cache the collected sensor data, and delete sensor data exceeding the collection time.
  • the data collection device 40 can also send the cached sensor data to the federation management center 30 .
  • FIG. 15C exemplarily shows a schematic flow chart of processing the collected sensor data by the data collection device 40 .
  • the data acquisition device 40 may perform the following steps:
  • the data collection device 40 caches the collected sensor data in the data collection device 40, and deletes the sensor data exceeding the collection time.
  • the data collection device 40 may cache the collected sensor data in the data collection device 40, and delete the sensor data exceeding the collection time.
  • the data collection device 40 may execute the following step S10052c, and the federation management center 30 may execute the following step S10053c.
  • the data collection device 40 sends the cached sensor data to the federation management center 30 .
  • the data collection device 40 can send the cached sensor data to the federation management center 30 .
  • the federation management center 30 receives and saves the sensor data, and releases the saved sensor data after the collection period.
  • the federation management center 30 can receive the sensor data sent by the data collection device 40 and save the sensor data. Optionally, the federation management center 30 may delete the sensor data after the collection period.
  • the federation management center may store semantic information required in the data collection task, and the federation management center may directly send the stored semantic information to the data demand device.
  • the federal management center does not need to perform the above steps.
  • the data collection device 40 may proactively report the collected abnormal data.
  • the federation management center 30 may store some sensing data sent by one or more devices in the sensing federation.
  • the federation management center can also periodically refresh the stored sensory data sent by one or more devices in the sensory federation. Specifically, the federation management center can allow one or more devices to periodically send some sensing data to the federation management center.
  • a data collection system (or called sensor federation) provided in the embodiment of the present application may include a mobile phone 104, an air conditioner 101, a camera 102, and a TV 107 (the TV 107 includes a camera).
  • the mobile phone 104 may be an electronic device where the federation management center is located.
  • the air conditioner 101 may be a data demand device in the data collection system.
  • the camera 102 and the TV set 107 may be data collection devices in the data collection system.
  • the air conditioner 101 can send a data collection task to the mobile phone 104 .
  • the data collection task may include data collection parameters, for example, the data to be collected is user identity and number of users, which needs to be collected in real time and allows multi-device collection.
  • the mobile phone 104 can receive the data collection task, and analyze the data collection task into data collection subtask 1 (collect image data in real time) and data collection subtask 2 (collect user identities and numbers in real time).
  • the mobile phone 104 can send the data collection subtask 1 to the camera 102 , and send the data collection subtask 2 to the TV 107 .
  • the mobile phone 104 determines that the data collection device corresponding to the data collection subtask 1 is the camera 102, and how to determine that the data collection device corresponding to the data collection subtask 2 is the TV 107, please refer to the descriptions in FIGS. 10-12 above. I won't repeat them here.
  • the camera 102 may collect user images based on the data collection subtask 1.
  • the camera 102 does not have a sensor federation engine module, and the mobile phone 104 needs to convert the user image captured by the camera into corresponding semantic information "user identity and number of users" and send it to the air conditioner 101.
  • the proxy data collection mode described above in FIG. 13C , which will not be repeated here.
  • the television 107 may collect user images based on the data collection subtask 2.
  • the TV 107 is equipped with a sensor federation engine module.
  • the TV 107 can convert the user image into corresponding semantic information "user identity and number of users".
  • the television set 107 sends the obtained semantic information "user identity and number of users" to the air conditioner 101 .
  • the data collection shown in Figure 16 will be described in detail below in conjunction with the data demand device, data collection device, sensor federation engine module, and software architecture of the federation management center in the data collection system shown in Figures 3-6 above. The specific software module implementation process in the scenario.
  • FIG. 17 shows a schematic diagram of a specific software model implementation process of the data collection scenario provided in FIG. 16 .
  • the air conditioner 101 may include a sensor federation engine module 1600 .
  • the air conditioner 101 may generate a data collection task through the sensor federation engine module 1600 .
  • the air conditioner 101 can generate a data collection task through the task generation module 1602 in the sensor federation engine module 1600.
  • the sensor federation engine module 1600 in the air conditioner 101 can send the data collection task to the federation management center 1700 in the mobile phone 104 .
  • the mobile phone 104 may have a federal management center 1700 .
  • the federation management center 1700 can receive the data collection task sent by the sensor federation engine module 1600 in the air conditioner 101 .
  • the federation management center 1700 can analyze the data collection task, and analyze the semantic information required by the data collection task. Then, the semantic information corresponding to the semantic information and the data collection device that provides the semantic information can be searched based on the parsed semantic information. Then, the federation management center 1700 can send the data collection task to the corresponding data collection device.
  • the task parsing module 1701 in the federation management center 1700 can perform data collection tasks (for example, the data to be collected is user identity and number of users, real-time collection is required, and multi-device collection is allowed ) is parsed into data collection subtask 1 (for example, collecting image data in real time) and data collection subtask 2 (for example, collecting user identities and numbers in real time).
  • the task analysis module 1701 can send the parsed data collection subtask 1 (for example, collect image data in real time) and data collection subtask 2 (for example, collect user identities and numbers in real time) to the task assignment and scheduling module 1702 .
  • the task allocation and scheduling module 1702 may send the received semantic information required by the data collection subtask 1 and the semantic information required by the data collection subtask 2 to the semantic search module 1703 .
  • the semantic search module 1703 can search in the sensing capability management model 1704 based on the semantic information required in the data collection subtask 1 and the semantic information required in the data collection subtask 2, and determine the information required in the data collection subtask 1.
  • the semantic information corresponding to the semantic information of the semantic information and the data acquisition device (for example, camera 102) that provides the semantic information, and the semantic information corresponding to the semantic information required for the data acquisition subtask 2 and the data acquisition device that provides the semantic information For example, television 107).
  • the semantic search module 1703 may send the device information of the data collection device corresponding to the data collection subtask 1 and the device information of the data collection device corresponding to the data collection subtask 2 to the task assignment Scheduling module 1702 .
  • the task allocation and scheduling module 1702 may send the data collection subtask 1 to the data collection device (for example, the camera 102 ) corresponding to the data collection subtask 1 based on the device information of the data collection device corresponding to the data collection subtask 1 .
  • the task allocation and scheduling module 1702 may send the data collection subtask 2 to the data collection device corresponding to the data collection subtask 2 (for example, the TV 107 ) based on the device information of the data collection device corresponding to the data collection subtask 2 .
  • the camera 102 may include a data collection module 1801 and a data transmission interface 1802 .
  • the camera 102 may receive the data collection subtask 1 sent by the mobile phone 104 .
  • the data collection module 1801 in the camera 102 may receive the data collection subtask 1 sent by the federal management center 1700 in the mobile phone 104 .
  • the data collection module 1801 can collect user images based on the data collection subtask 1 .
  • the data collection module 1801 may send the user image to the data transmission interface 1802 .
  • the data transmission interface 1802 can establish a data transmission channel with the federation management center 1700 of the mobile phone 104 .
  • the data transmission interface 1802 may establish a data transmission channel with the interface adaptation module 1705 in the federation management center 1700 of the mobile phone 104 .
  • the data transmission interface 1802 can send the user image to the interface adaptation module 1705 .
  • the interface adaptation module 1705 may send the user image to the subscription and query module 1706 .
  • the federation management center 1700 includes a data analysis module (not shown in FIG. 17 ).
  • the interface adaptation module 1705 can send the user image to the data analysis module.
  • the data analysis module can convert the user image into user identity and number of users, and send it to the subscription and query module 1706 .
  • the subscription and query module 1706 can convert the user image into user identity and number of users, and send the user identity and number of users to the data access module in the sensing federation engine module 1600 of the air conditioner 101 1601.
  • the TV 107 can receive the data collection subtask 2 sent by the mobile phone 104 .
  • the TV 107 may include a sensor federation engine module 1900 and a data collection module 1905 .
  • the sensor federation engine module 1900 may include a task analysis module 1901 , a subscription and query module 1902 , a data analysis module 1903 , and a data access module 1904 .
  • the task parsing module 1901 in the sensing federation engine module 1900 of the TV set 107 may receive the data collection subtask 2 sent by the mobile phone 104 .
  • the task parsing module 1901 can parse the data collection subtask 2 into a task of collecting user images, and instruct the data collection module 1905 to collect user images.
  • the data collection module 1905 can send the collected user images to the data access module 1904 .
  • the data access module 1904 can send the user image to the data analysis module 1903 .
  • the data analysis module 1903 can convert user images into user identities and user numbers.
  • the data analysis module 1903 can send the user identity and the number of users to the subscription and query module 1902 , and the subscription and query module 1902 sends data such as the user identity and the number of users to the air conditioner 101 .
  • the air conditioner 101 may receive data such as user identity and number of users sent by the television 107 .
  • the data access module 1601 in the sensing federation engine module 1600 of the air conditioner 101 can receive data such as user identity and number of users sent by the subscription and query module 1902 in the TV set 107 .
  • the air conditioner 101 After the air conditioner 101 collects the target data, it can transmit the target data to the upper-layer intelligent mode adjustment module.
  • the intelligent adjustment module in the air conditioner 101 intelligently selects a working mode suitable for the user according to the received result information.
  • the intelligent application of the air conditioner does not need to preset the device type and signal that can provide effective information, nor does it need to preset the ability to access the target interface, and the target data can be determined through the federal management center (i.e. data collection The data required in the task) corresponds to the data acquisition device and obtains the target data. In this way, the preparation cost of the air conditioner with high-order intelligent functions can be greatly reduced.
  • the interface adaptation module in the federal management center of the mobile phone 104 can pass the interface of the target data acquisition device (for example, the data transmission interface 1802 of the camera 102 ) for data access.
  • the federation management center of the mobile phone 104 processes the returned result parameters according to the configured preprocessing operator, and synchronizes the target data to the sensor federation engine module of the air conditioner 101 through the data subscription module of the federation management center.
  • the sensor federation engine module of the air conditioner 101 can provide the target data to the upper intelligent application of the air conditioner 101 for use.
  • the decoupling of the data access capability of the electronic device that does not have a federation engine module can be realized.
  • the operator adaptation capability provided by the federal management center also reduces the requirements for air-conditioning bandwidth and computing power.
  • the federation management center of the mobile phone 104 can initiate a data collection request to the two target data collection devices.
  • the television 107 that receives the data collection request can make a decision to determine whether to accept the data collection task.
  • the TV 107 can obtain the relevant parameters of the data collection task through the task parsing module in the sensory federation engine module, and then send the request parameters to the task allocation and scheduling module in the sensory federation engine module.
  • the task allocation and scheduling module in the sensing federation engine module can decide whether to accept the task based on the remaining resources of the federated resource pool reserved by the device.
  • the purpose of the data collection device (for example, TV 107) making a decision whether to accept the data collection task is that the data collection device accepts the data collection task in the sensor federation without affecting the normal function of the data collection device itself. run.
  • the task scheduling module in the data collection device may use different public or private algorithms to make decisions, and may also rely entirely or partially on the remaining resources of the federated resource pool to make decisions.
  • the embodiment of the present application does not limit the specific decision-making manner.
  • the task scheduling module in the sensor federation engine of the data collection device will inquire about the remaining resources and task queues of the current federated resource pool, and estimate that new tasks need to be added.
  • the resources include: computing resources (CPU resources), storage resources (RAM, ROM, etc.), and sensor access channel resources.
  • computing resources CPU resources
  • storage resources RAM, ROM, etc.
  • sensor access channel resources For example.
  • Commercial camera sensors generally only support two-channel signal access, and do not support simultaneous multi-channel signal access.
  • the task scheduling module decides to accept the task, then feeds back to the federation management center and starts the corresponding collection action through the operating system service of the device itself.
  • the sensing federation engine module in the TV 107 can report the rejection result and the reason The code is fed back to the Federal Management Center.
  • the federation management center can record the result of the task application to the database module, and feed it back to the data-demanding device (for example, the air conditioner 101).
  • the federation management center can determine that other data collection devices in the sensor federation that can meet the data collection task requirements complete the data collection task. For example, when the TV 107 refuses to accept the data collection task of the air conditioner 101, the federal management center calls another data collection device that meets the data collection task during the capability search process.
  • the data acquisition tasks include not only tasks requiring real-time acquisition of sensing data, but also tasks requiring non-real-time and long-term acquisition of sensing data.
  • the real-time data collection task in this application is not limited to the data collection task that the air conditioner obtains the identity information and the number of users in real time in the above example.
  • some devices may initiate a real-time data collection task, and determine whether the user is in a hypothermia state according to the collected sensor data.
  • the user's mobile phone, body fat scale, watch, bracelet, and server can be combined into a data collection system.
  • the body fat scale provides the sensor data of the physiological characteristics measured by the user with the body fat scale, such as body weight, body fat rate, heart rate, skeletal muscle mass, basal metabolic rate, moisture rate, bone salt mass, protein, fat-free body mass, Predict body age, predict body score, etc.
  • the body fat scale can transmit the user's physiological data to the mobile phone.
  • the mobile phone may have a user profile registration module for the user to manually input data, such as age, gender, height, and menstrual cycle.
  • the mobile phone can also learn and process the heart rate, blood pressure and other data collected by the smart wearable device, and obtain the user's prediction of heart health and sleep quality.
  • Smart wearable devices such as wristbands and watches can continuously collect sensory data of users' real-time physiological characteristics.
  • Physiological data can include the physiological characteristics of the user's daily life, exercise, and official competition, such as heart rate, blood pressure, pulse, body temperature, blood oxygen saturation, blood sugar concentration, inertial measurement unit (Inertial Measurement Unit, IMU) signal and photoelectric volume Pulse wave method (Photoplethysmography, PPG) signal, etc.
  • IMU Inertial Measurement Unit
  • PPG photoelectric volume Pulse wave method
  • the body temperature sensor on the wristband and watch can monitor the body surface temperature of the wrist.
  • watches and bracelets can use PPG signals to further extract sensing data related to physiological characteristics of the cardiovascular system such as the user's breathing rate, pulse rate, blood flow rate, blood temperature, arterial pressure, hardness index, and so on.
  • Watches and watches can use IMU signals and PPG signals to further identify the user's shivering degree and determine whether the user's gait is stumbling.
  • the wristband and watch also include sensors that can collect sensory data such as environmental characteristics, such as ambient temperature sensors, humidity sensors, wind speed sensors, altitude sensors, air pressure sensors, and so on.
  • the user's mobile phone can initiate a data collection task, and the user's wristband, watch and other wearable devices can collect the sensing data of the user's physiological characteristics and environmental characteristics in real time to determine whether the user is suffering from hypothermia state. If it is judged that the user is in a state of hypothermia, various interactive methods can be used to remind the user and ask whether an alarm is required. Optional interactive methods such as vibration from the bracelet, ringtones, and voice prompts are available. When the user does not respond, the user will automatically Alarm and send GPS positioning information.
  • the server of the competition party can initiate a data collection task, and can send the data collection task to the mobile phone or wearable device such as a watch or bracelet of each user participating in the competition.
  • This data collection task can be used to obtain sensing data of the contestants’ physiological characteristics and environmental characteristics that can be collected in real time on wearable devices such as bracelets and watches of each user, that is, sensing data based on the user’s physiological characteristics And the sensor data of environmental characteristics can judge whether the contestant is in a state of hypothermia, and if so, can contact the contestant in time and provide rescue in time.
  • the data-demanding device can also initiate a long-term data collection task to obtain sensory data collected by one or more data collection devices for a long time.
  • multiple devices of the user may form a sensing federation, and receive a data collection task instructing the user's devices to collect sensory data related to the user's physiological characteristics for a long time.
  • the user's watch or bracelet can collect sensory data such as heart rate, HRV, blood oxygen saturation, and sleep quality in different scenarios such as sports activities, meals, sedentary, and rest.
  • the user's earphones or smart glasses collect sensory data such as the user's heart rate, HRV, and blood oxygen saturation in leisure scenarios (such as listening to music).
  • the user's mobile phone can collect sensory data such as heart rate, HRV, and blood oxygen saturation of the user in leisure scenes (such as watching videos, listening to music, playing games, and meditating) and work scenes.
  • the mobile phone can also obtain sensory data such as the user's age, gender, and BMI.
  • the user's car machine can collect sensory data such as the user's acceleration operation, brake operation, and steering operation on the vehicle in scenarios such as traffic jams and traffic accidents.
  • the user's smart headband can collect sensory data such as the user's heart rate, HRV, brain wave and other physiological signals in the meditation scene.
  • the user's computer and large screen can collect sensory data such as user status (working status, leisure status, indoor sports).
  • the federal management center in the sensing federation determines the user's stress state.
  • sensory data related to the user's physiological characteristics can be collected through various devices, and the user's stress state can be evaluated more accurately and objectively.
  • it can also provide timely health reminders to identified high-stress users to ensure that users can adjust their living conditions in a timely manner and avoid the occurrence of diseases.
  • the long-term tracking of the user's psychological stress state can also be realized through multiple devices of the user user, so as to provide quantitative reference for doctors to assess the stress state of patients in daily life, and to grasp the patient's condition changes more accurately.
  • FIG. 18 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194 and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the SIM interface can be used to communicate with the SIM card interface 195 to realize the function of transmitting data to the SIM card or reading data in the SIM card.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel may be a liquid crystal display (LCD).
  • the display panel can also use organic light-emitting diodes (organic light-emitting diodes, OLEDs), active-matrix organic light-emitting diodes or active-matrix organic light-emitting diodes (active-matrix organic light emitting diodes, AMOLEDs), flexible light-emitting diodes ( flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application required by a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.) and the like.
  • the data storage area can store data created during use of the electronic device 100 (such as face information template data, fingerprint information template, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device where the federation management center 30 is located may include more or less components shown in the above-mentioned electronic device 100 .
  • the data demanding device 20 may include more or less of the components shown in the electronic device 100 described above.
  • the data collection device may also include fewer or more components than those shown in the electronic device 100 described above.
  • the embodiment of the present application does not limit the hardware structure of the data demand device 20 , the electronic device where the federation management center 30 is located, and the data collection device 40 , and the specific components included therein.
  • the term “when” may be interpreted to mean “if” or “after” or “in response to determining" or “in response to detecting".
  • the phrase “in determining” or “if detected (a stated condition or event)” may be interpreted to mean “if determining" or “in response to determining" or “on detecting (a stated condition or event)” or “in response to detecting (a stated condition or event)”.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Telephonic Communication Services (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

A data acquisition method and system, and a related device. The data acquisition method can be applied to a data acquisition system, the data acquisition system comprising a plurality of apparatuses and a federation management center, and the method comprising: the federation management center can receive a data acquisition task sent by a first apparatus of the plurality of apparatuses; in accordance with the data acquisition task and in accordance with sensing capability information of the plurality of apparatuses, the federation management center determines one or more apparatuses for providing sensing data required by the data acquisition task; the federation management center instructs the one or more apparatuses to provide the required sensing data. In the data acquisition method provided by the embodiments of the present application, a plurality of (two or more) electronic apparatuses can establish a data acquisition system, and one electronic apparatus in the data acquisition system can obtain raw data acquired by a sensor of another electronic apparatus, or can obtain semantic information obtained from the raw data acquired by the sensor.

Description

一种数据采集方法、系统以及相关装置A data acquisition method, system and related device
本申请要求于2021年11月12日提交中国专利局、申请号为202111340157.5、申请名称为“一种数据采集方法及相关装置”的中国专利申请的优先权,以及要求于2021年12月30日提交中国专利局、申请号为202111669822.5、申请名称为“一种数据采集方法、系统以及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111340157.5 and the application name "A Data Acquisition Method and Related Device" filed with the China Patent Office on November 12, 2021, and claims that it was filed on December 30, 2021 The priority of the Chinese patent application with the application number 202111669822.5 and the application title "A Data Acquisition Method, System and Related Device" submitted to the China Patent Office, the entire content of which is incorporated by reference in this application.
技术领域technical field
本申请涉及电子设备及数据处理领域,尤其涉及一种数据采集方法、系统以及相关装置。The present application relates to the fields of electronic equipment and data processing, and in particular to a data collection method, system and related devices.
背景技术Background technique
人工智能技术(artificialintelligence,AI)以及人工智能物联网技术(artificialintelligence&Internetofthings,AIOT)及应用已经在多领域场景取得突破性进展,正迅速改变经济及生活方式。在AI技术和AIOT技术的基础上,电子设备越来越智能。电子设备能够根据各种数据(例如当前用户状态(运动、静止)、用户年龄等等数据),来调整电子设备的工作状态,以便于给用户带来更好的体验。例如,具备环境光采集传感器的智能电灯,可以根据环境光数据来调整智能电灯的亮度等。Artificial intelligence technology (artificial intelligence, AI) and artificial intelligence Internet of Things technology (artificial intelligence & Internet of things, AIOT) and its application have made breakthroughs in many fields and are rapidly changing the economy and lifestyle. On the basis of AI technology and AIOT technology, electronic devices are becoming more and more intelligent. The electronic device can adjust the working state of the electronic device according to various data (such as current user status (exercise, stillness), user age, etc.), so as to bring better experience to the user. For example, a smart light equipped with an ambient light collection sensor can adjust the brightness of the smart light according to ambient light data.
但是,很多电子设备自身不具备能够采集所需数据的传感器。在一些场景中,该电子设备的周围又存在可以采集所需数据的另一些电子设备。电子设备可以借助另一些电子设备采集所需数据。但是,不同的电子设备采集的数据格式不同,电子设备对数据的处理能力也不相同,不同的电子设备的数据接口不相同。电子设备难以通过其他电子设备获取到所需求数据格式、精度等一致的数据。However, many electronic devices do not have their own sensors capable of collecting the required data. In some scenarios, there are other electronic devices around the electronic device that can collect the required data. Electronic devices can collect required data with the help of other electronic devices. However, different electronic devices collect data in different formats, the electronic devices have different data processing capabilities, and different electronic devices have different data interfaces. It is difficult for electronic equipment to obtain consistent data such as the required data format and accuracy through other electronic equipment.
由此,电子设备如何将多个可以提供不同传感器数据的电子设备组建成一个系统,使得系统中的一个电子设备可以通过系统中其他电子设备获取到符合需求的数据,是亟待解决的问题。Therefore, how an electronic device integrates multiple electronic devices that can provide different sensor data into a system, so that an electronic device in the system can obtain data meeting requirements through other electronic devices in the system, is an urgent problem to be solved.
发明内容Contents of the invention
本申请提供了一种数据采集方法、系统以及相关装置,通过本申请实施例提供的数据采集方法,数据需求设备可以只需要发一个数据采集请求,中心管理设备可以根据数据采集请求中的语义信息找到能够该语义信息的数据采集设备。This application provides a data collection method, system and related devices. Through the data collection method provided by the embodiment of this application, the data demand device can only send a data collection request, and the central management device can use the semantic information in the data collection request Find data acquisition devices capable of this semantic information.
第一方面,本申请提供了一种数据采集方法,该数据采集方法应用于数据采集系统。该数据采集系统中可以包括多个设备和联邦管理中心,多个设备中包括第一设备。该数据采集方法可以包括:联邦管理中心接收第一设备发送的数据采集任务;联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心指示一个或多个设备提供所需的传感数据。In a first aspect, the present application provides a data collection method, which is applied to a data collection system. The data collection system may include multiple devices and a federal management center, and the multiple devices include the first device. The data collection method may include: the federation management center receives the data collection task sent by the first device; the federation management center determines one of the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices or multiple devices; the federation management center instructs one or more devices to provide the required sensory data.
联邦管理中心可以部署在一个设备、或分布式部署在数据采集系统中的一个或多个设备中,该设备可以包括电子设备、服务器。The federation management center can be deployed in one device, or distributed in one or more devices in the data collection system, and the devices can include electronic devices and servers.
通过本申请实施例提供的数据采集方法,数据需求设备只需向中心管理设备发送数据采集任务,无需知道哪一个设备可以提供该数据采集请求所需的数据,中心管理设备可以基于该数据采集任务中所需的数据确定能够提供该数据的数据采集设备。数据需求设备也无需和数据采集设备具备统一的数据传输接口,也可以获取到数据采集设备采集的数据。Through the data collection method provided by the embodiment of the present application, the data demand device only needs to send the data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task The data required in Identify the data acquisition devices that can provide that data. The data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
结合第一方面,在一种可能的实现方式中,联邦管理中心根据数据采集任务和多个设备 的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;可以包括:联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心根据多个设备的传感能力信息、以及多个设备的传感数据之间的关联关系和/或多个设备的设备状态,确定出提供数据采集任务所需的传感数据的一个或多个设备执行数据采集任务。In combination with the first aspect, in a possible implementation, the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
其中,设备状态包括多个设备的电量状态、佩戴状态、与第一设备的距离、多个设备中提供的传感器数据的精度中的一项或多项。Wherein, the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
这样,联邦管理中心可以确定出能够提供数据采集任务所需传感数据的数据采集设备。In this way, the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
结合第一方面,在一种可能的实现方式中,联邦管理中心根据数据采集任务和多个设备的传感数据,确定提供数据采集任务所需的传感数据的一个或多个设备;包括:联邦管理中心解析出数据采集任务,确定数据采集任务所需的传感数据包括第一传感数据和第二传感数据;联邦管理中心根据第一传感数据和所述第二传感数据;从多个设备中确定提供第一传感数据的第二设备和提供第二传感数据的第三设备;联邦管理中心向第二设备发送第一采集子任务,向第三设备发送第二采集子任务;第一采集子任务用于指示第二设备提供第一传感数据,第二采集子任务用于指示第三设备提供第二传感数据。In combination with the first aspect, in a possible implementation, the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensor data of multiple devices; including: The federation management center analyzes the data collection task, and determines that the sensing data required for the data collection task includes the first sensing data and the second sensing data; the federation management center uses the first sensing data and the second sensing data; Determine the second device that provides the first sensing data and the third device that provides the second sensing data from multiple devices; the federal management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device Subtasks; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the third device to provide the second sensing data.
这样,联邦管理中心可以将数据采集任务分解成不同的子任务,并且找到分别完成子任务的设备。In this way, the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
结合第一方面,在一种可能的实现方式中,联邦管理中心向第二设备发送第一采集子任务,向第三设备发送第二采集子任务之后,该数据采集方法还可以包括:第二设备接受或拒绝第一采集子任务;第三设备接受或拒绝第二采集子任务。In combination with the first aspect, in a possible implementation manner, after the federation management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device, the data collection method may further include: second The device accepts or rejects the first collection subtask; the third device accepts or rejects the second collection subtask.
这样,数据采集系统中的一个或多个设备可以决定是否接受该数据采集任务。In this way, one or more devices in the data collection system can decide whether to accept the data collection task.
结合第一方面,在一种可能的实现方式中,第二设备接受或拒绝第一采集子任务,包括:第二设备基于第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务。With reference to the first aspect, in a possible implementation manner, the second device accepting or rejecting the first collection subtask includes: the second device determines to accept or reject the first collection subtask based on remaining resources in the second device. Task.
结合第一方面,在一种可能的实现方式中,第二设备基于所述第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务,包括:在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第一消息,第一消息用于指示第二设备接受第一采集子任务;第二设备中的剩余资源包括第二设备中的剩余的计算资源和存储资源;在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务。With reference to the first aspect, in a possible implementation manner, the second device determines to accept or reject the first collection subtask based on remaining resources in the second device, including: determining at the second device that the second device When the remaining resources in the resource are greater than the resources to be used required by the first acquisition subtask, the second device sends a first message to the federation management center, and the first message is used to instruct the second device to accept the first acquisition subtask; the second The remaining resources in the device include remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device Sending a second message to the federation management center, where the second message is used to instruct the second device to refuse to accept the first acquisition subtask.
这样,数据采集系统中的一个或多个设备可以根据设备中的剩余资源和执行该数据采集任务所需的待使用资源确定是否接受该数据采集任务。In this way, one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
结合第一方面,在一种可能的实现方式中,所述联邦管理中心指示一个或多个设备提供所需的传感数据,包括:一个或多个设备与第一设备建立数据传输通道;一个或多个设备通过数据传输通道将所需的传感数据发送给第一设备。With reference to the first aspect, in a possible implementation manner, the federation management center instructs one or more devices to provide required sensing data, including: one or more devices establish a data transmission channel with the first device; a One or more devices send the required sensing data to the first device through the data transmission channel.
这样,数据采集设备,即一个或多个设备,可以直接将采集到的传感数据发送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
结合第一方面,在一种可能的实现方式中,联邦管理中心指示一个或多个设备提供所需的传感数据,包括:联邦管理中心将一个或多个设备发送的所需的传感数据,发送给第一设备。In combination with the first aspect, in a possible implementation, the federation management center instructs one or more devices to provide the required sensing data, including: the federation management center sends the required sensing data to one or more devices , sent to the first device.
这样,数据采集设备,即一个或多个设备,可以通过联邦管理中心将采集的传感数据发 送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
结合第一方面,在一种可能的实现方式中,数据采集任务所需的传感数据包括第一语义信息;联邦管理中心将一个或多个设备发送的所需的传感数据,发送给第一设备,包括:联邦管理中心将一个或多个设备发送的传感器采集的原始信号或者第二语义信息,转化为第一语义信息,并将第一语义信息发送给第一设备。In combination with the first aspect, in a possible implementation, the sensory data required for the data collection task includes the first semantic information; the federal management center sends the required sensory data sent by one or more devices to the first A device, including: the federation management center converts raw signals collected by sensors or second semantic information sent by one or more devices into first semantic information, and sends the first semantic information to the first device.
这样,联邦管理中心可以将数据采集设备发送的传感器采集的原始信号或者低阶语义信息,转为数据需求设备所需的语义信息或者高阶语义信息。In this way, the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
结合第一方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务;包括:联邦管理中心根据第一采集子任务和多个设备的传感能力信息,确定提供第一传感数据的第四设备。With reference to the first aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center determines the provider of the first sensing data according to the first collection subtask and the sensing capability information of multiple devices Fourth device.
这样,当数据采集系统中的一个设备拒绝任务后,联邦管理中心还可以找到另一个设备执行该数据采集任务。In this way, when a device in the data collection system rejects the task, the federation management center can find another device to perform the data collection task.
结合第一方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第一消息,所述第一消息用于指示所述第二设备接受第一采集子任务之后,包括:第二设备基于第一采集子任务采集第一传感数据;联邦管理中心确定第二设备处于异常状态,联邦管理中心确定提供第一传感数据的第四设备;异常状态包括第二设备的电池电量低于电量阈值、第二设备与联邦管理中心的连接断开、第二设备未处于佩戴状态、第二设备与电源断开中的一项或多项。With reference to the first aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first acquisition subtask, the second device sends the After the federation management center sends the first message, the first message is used to instruct the second device to accept the first collection subtask, including: the second device collects the first sensing data based on the first collection subtask; the federation management center It is determined that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, the connection between the second device and the federal management center is disconnected, and the fourth device is connected to the federal management center. One or more of the second device not being worn, and the second device disconnected from the power supply.
这样,当数据采集设备在执行数据采集任务中出现异常时,联邦管理中心还可以找另一个设备继续完成该数据采集任务。In this way, when the data collection device is abnormal in the execution of the data collection task, the federation management center can also find another device to continue to complete the data collection task.
结合第一方面,在一种可能的实现方式中,数据采集任务携带仲裁标识,仲裁标识用于指示一个或多个设备中的第五设备拒绝接受数据采集任务的次数超过预设阈值;联邦管理中心指示一个或多个设备提供所需的传感数据;包括:联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据。With reference to the first aspect, in a possible implementation manner, the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
这样,可以避免数据采集设备恶意拒绝接受数据采集任务。In this way, the data collection device can be prevented from maliciously refusing to accept the data collection task.
结合第一方面,在一种可能的实现方式中,联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心向第五设备发送第三消息,所需第三消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;联邦管理中心接收第五设备发送的第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心指示第五设备提供数据采集任务所需的数据。With reference to the first aspect, in a possible implementation, the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a third message to the fifth device , the required third message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center, and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center receives the fifth device The remaining resources in the fifth device sent, and the estimated resources to be used by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide Data required for data collection tasks.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第一方面,在一种可能的实现方式中,联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心向第五设备发送第四消息,所需第四消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源;联邦管理中心接收第五设备发送的第五设备中的剩余资源;联邦管理中心基于数据采集任务,评估出第五设备执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心指示第五设备提供数据采集任务所需的数据。With reference to the first aspect, in a possible implementation, the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a fourth message to the fifth device , the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center receives the remaining resources in the fifth device sent by the fifth device; based on the data collection task, the federation management center, Evaluate the to-be-used resources required by the fifth device to perform the data collection task; if the remaining resources are greater than the required to-be-used resources, the federation management center instructs the fifth device to provide the data required by the data collection task.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第一方面,在一种可能的实现方式中,联邦管理中心接收第一设备发送的数据采集任务之前;该方法还可以包括:联邦管理中心接收到多个设备的传感能力信息;联邦管理中心基于多个设备的传感能力信息和下载的第一知识图谱,推导出新的传感能力信息。In combination with the first aspect, in a possible implementation manner, before the federation management center receives the data collection task sent by the first device; the method may also include: the federation management center receives the sensing capability information of multiple devices; the federation management The center derives new sensing capability information based on the sensing capability information of multiple devices and the downloaded first knowledge map.
这样,联邦管理中心可以获取数据采集系统中所有的传感能力信息。In this way, the federal management center can obtain all the sensing capability information in the data acquisition system.
结合第一方面,在一种可能的实现方式中,联邦管理中心接收到多个设备的传感能力信息;可以包括:联邦管理中心接收到多个设备中第六设备加入数据采集系统的消息以及第六设备的设备型号;联邦管理中心基于第六设备的设备型号,从第一服务器中获取第六设备的传感能力信息;第一服务器中存储有不同的设备型号、以及设备型号对应的传感能力信息。In combination with the first aspect, in a possible implementation, the federation management center receives the sensing capability information of multiple devices; it may include: the federation management center receives a message that the sixth device among the multiple devices joins the data collection system and The device model of the sixth device; based on the device model of the sixth device, the federation management center obtains the sensing capability information of the sixth device from the first server; the first server stores different device models and the sensor information corresponding to the device model sensory information.
这样,每当有设备加入数据采集系统时,联邦管理中心可以更新该数据采集系统中的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can update the sensing capability information in the data collection system.
结合第一方面,在一种可能的实现方式中,联邦管理中心基于第六设备的设备型号,从第一服务器中获取第六设备的能力信息之后,该方法还可以包括:联邦管理中心基于第六设备的传感能力信息,以及第二知识图谱,推导出新的传感能力信息;第二知识图谱包括第一知识图谱,第二知识图谱中包含的传感能力信息比第一知识图谱中包含的传感能力信息多;基于新的传感能力信息,更新联邦管理中心存储的传感能力信息。With reference to the first aspect, in a possible implementation manner, after the federal management center obtains the capability information of the sixth device from the first server based on the device model of the sixth device, the method may further include: Sixth, the sensing capability information of the device, and the second knowledge graph, deduce new sensing capability information; the second knowledge graph includes the first knowledge graph, and the sensing capability information contained in the second knowledge graph is more than that contained in the first knowledge graph It contains a lot of sensing capability information; based on the new sensing capability information, the sensing capability information stored in the federal management center is updated.
这样,每当有设备加入数据采集系统时,联邦管理中心还可以根据新加入设备的传感能力信息推导出新的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
结合第一方面,在一种可能的实现方式中,联邦管理中心基于第六设备的传感能力信息,以及的第二知识图谱,推导出新的传感能力信息之后,该方法还可以包括:联邦管理中心确定第六设备退出数据采集系统;联邦管理中心删除存储的第六设备的传感能力信息、以及删除基于第六设备的传感能力信息推导出的新的传感能力信息。With reference to the first aspect, in a possible implementation manner, after the federation management center derives new sensing capability information based on the sensing capability information of the sixth device and the second knowledge map, the method may further include: The federation management center determines that the sixth device exits the data collection system; the federation management center deletes the stored sensing capability information of the sixth device, and deletes new sensing capability information derived based on the sixth device's sensing capability information.
结合第一方面,在一种可能的实现方式中,联邦管理中心确定第六设备退出数据采集系统,包括:联邦管理中心在预设时长内未收到第六设备的发送的第五消息的情况下,联邦管理中心确定第六设备退出数据采集系统;第五消息用于指示第六设备在数据采集系统中。In combination with the first aspect, in a possible implementation manner, the federation management center determines that the sixth device exits the data collection system, including: the federation management center does not receive the fifth message sent by the sixth device within a preset period of time Next, the federal management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
结合第一方面,在一种可能的实现方式中,联邦管理中心确定第六设备退出数据采集系统,包括:联邦管理中心接收到第六设备发送的第六消息,第六消息用于指示第六设备退出数据采集系统中。With reference to the first aspect, in a possible implementation manner, the federation management center determines that the sixth device exits the data collection system, including: the federation management center receives a sixth message sent by the sixth device, and the sixth message is used to indicate that the sixth device The device exits the data acquisition system.
结合第一方面,在一种可能的实现方式中,一个或多个设备中还包括第七设备,方法还包括:联邦管理中心向第七设备发送第一指示信息,第一指示信息用于指示在确定第七设备中采集的第三传感器数据处于第一状态的情况下,第七设备向所述联邦管理中心发送第三传感器数据;联邦管理中心接收第七设备发送的第三传感数据;联邦管理中心将第三传感数据发送给订阅第三传感数据的一个或多个设备。With reference to the first aspect, in a possible implementation manner, one or more devices further include a seventh device, and the method further includes: the federal management center sends first indication information to the seventh device, and the first indication information is used to indicate In the case of determining that the third sensor data collected by the seventh device is in the first state, the seventh device sends the third sensor data to the federation management center; the federation management center receives the third sensory data sent by the seventh device; The federal management center sends the third sensing data to one or more devices subscribed to the third sensing data.
结合第一方面,在一种可能的实现方式中,联邦管理中心接收第一设备发送的数据采集任务之后,该方法还包括:联邦管理中心基于数据采集任务、和联邦管理中心存储的传感数据;联邦管理中心确定联邦管理中心存储有数据采集任务所需的传感数据;联邦管理中心将所需的传感数据发送给第一设备。In combination with the first aspect, in a possible implementation manner, after the federation management center receives the data collection task sent by the first device, the method further includes: ; The federation management center determines that the federation management center stores the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
结合第一方面,在一种可能的实现方式中,传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;第一知识图谱由联邦管理中心基于多个设备的传感能力信息生成;第二知识图谱存储在服务器中,第一知识图谱包括所述多个设备的传感数据、以及多个设备的传感数据之间的关联关系。当第四传感数据和第五传感数据可以计算或推导得到第六传感数据时,可以称第四传感数据与第五传感数据以及第六传感数据具有关联关系。With reference to the first aspect, in a possible implementation manner, the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first knowledge map is created by the federation management center based on the Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices. When the fourth sensing data and the fifth sensing data can be calculated or derived to obtain the sixth sensing data, it can be said that the fourth sensing data has an associated relationship with the fifth sensing data and the sixth sensing data.
第二方面,提供一种数据采集方法,该数据采集方法应用于数据采集系统。该数据采集系统中可以包括多个设备和联邦管理中心,多个设备中包括第一设备。该数据采集方法可以包括:第一设备向联邦管理中心发送第一数据采集任务,第一数据采集任务指示在第一数据采集任务所需的传感数据符合第一条件的情况下,获取第一数据采集任务所需的传感数据;联邦管理中心基于所述数据采集任务、以及多个设备的传感能力信息,确定提供第一数据采集任务所需的传感数据的一个或多个设备;联邦管理中心向一个或多个设备发送第一指示信息,第一指示信息用于指示在确定一个或多个设备中采集的所需的传感器数据符合第一条件的情况下,一个或多个设备向邦管理中心发送所需的传感器数据。In the second aspect, a data collection method is provided, and the data collection method is applied to a data collection system. The data collection system may include multiple devices and a federal management center, and the multiple devices include the first device. The data collection method may include: the first device sends a first data collection task to the federal management center, and the first data collection task indicates that when the sensor data required by the first data collection task meets the first condition, obtain the first Sensing data required for the data collection task; based on the data collection task and the sensing capability information of multiple devices, the federal management center determines one or more devices that provide the sensing data required for the first data collection task; The federal management center sends first indication information to one or more devices, and the first indication information is used to indicate that when it is determined that the required sensor data collected by one or more devices meets the first condition, one or more devices Send the required sensor data to the state management center.
其中,联邦管理中心部署在一个设备、或分布式地部署在数据采集系统中的多个设备中,设备包括电子设备、服务器。Wherein, the federation management center is deployed in one device, or distributed in multiple devices in the data collection system, and the devices include electronic devices and servers.
其中,传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;第一条件包括所需的传感器数据超过第一阈值、第二时刻采集所需的传感数据与第一时刻采集所需的传感数据的差值大于第二阈值;第二时刻晚于所述第一时刻。Among them, the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first condition includes that the required sensor data exceeds the first threshold, and the sensing data required for collection at the second time is different from the first threshold. The difference of the sensor data required for collection at a time is greater than a second threshold; the second time is later than the first time.
这样,数据需求设备可以向数据采集设备订阅数据,即只在传感数据符合第一条件时,数据采集系统设备才会向数据需求设备发送该传感数据。In this way, the data demand device can subscribe data to the data collection device, that is, only when the sensing data meets the first condition, the data collection system device will send the sensing data to the data demand device.
结合第二方面,在一种可能的实现方式中,该数据采集方法还可以包括:第二设备向联邦管理中心发送第二数据采集任务,第二采集任务中包括采集周期参数,采集周期参数指示第二设备需要第四传感数据的周期;联邦管理中心基于第二数据采集任务、以及多个设备的传感能力信息,确定提供第四传感数据一个或多个设备;联邦管理中心指示一个或多个设备基于采集周期参数采集第四传感数据。With reference to the second aspect, in a possible implementation, the data collection method may further include: the second device sends a second data collection task to the federation management center, the second collection task includes a collection cycle parameter, and the collection cycle parameter indicates The second device needs the cycle of the fourth sensing data; the federal management center determines one or more devices to provide the fourth sensing data based on the second data collection task and the sensing capability information of multiple devices; the federal management center instructs one The or multiple devices collect fourth sensory data based on the collection period parameter.
这样,数据需求设备可以周期地获取数据采集设备采集的传感数据。In this way, the data demand device can periodically obtain the sensing data collected by the data collection device.
结合第二方面,在一种可能的实现方式中,该数据采集方法还可以包括:联邦管理中心接收第一设备发送的数据采集任务;联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心指示一个或多个设备提供所需的传感数据。With reference to the second aspect, in a possible implementation, the data collection method may further include: the federation management center receives the data collection task sent by the first device; the federation management center information to determine one or more devices that provide the sensory data required for the data collection task; the federal management center instructs one or more devices to provide the required sensory data.
通过本申请实施例提供的数据采集方法,数据需求设备只需向中心管理设备发送数据采集任务,无需知道哪一个设备可以提供该数据采集请求所需的数据,中心管理设备可以基于该数据采集任务中所需的数据确定能够提供该数据的数据采集设备。数据需求设备也无需和数据采集设备具备统一的数据传输接口,也可以获取到数据采集设备采集的数据。Through the data collection method provided by the embodiment of the present application, the data demand device only needs to send the data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task The data required in Identify the data acquisition devices that can provide that data. The data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
结合第二方面,在一种可能的实现方式中,联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;可以包括:联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心根据多个设备的传感能力信息、以及多个设备的传感数据之间的关联关系和/或多个设备的设备状态,确定出提供数据采集任务所需的传感数据的一个或多个设备执行数据采集任务。In combination with the second aspect, in a possible implementation, the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
其中,设备状态包括多个设备的电量状态、佩戴状态、与第一设备的距离、多个设备中提供的传感器数据的精度中的一项或多项。Wherein, the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
这样,联邦管理中心可以确定出能够提供数据采集任务所需传感数据的数据采集设备。In this way, the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
结合第二方面,在一种可能的实现方式中,联邦管理中心根据数据采集任务和多个设备的传感数据,确定提供数据采集任务所需的传感数据的一个或多个设备;包括:联邦管理中心解析出数据采集任务,确定数据采集任务所需的传感数据包括第一传感数据和第二传感数 据;联邦管理中心根据第一传感数据和所述第二传感数据;从多个设备中确定提供第一传感数据的第二设备和提供第二传感数据的第三设备;联邦管理中心向第二设备发送第一采集子任务,向第三设备发送第二采集子任务;第一采集子任务用于指示第二设备提供第一传感数据,第二采集子任务用于指示第三设备提供第二传感数据。In combination with the second aspect, in a possible implementation, the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensor data of multiple devices; including: The federation management center analyzes the data collection task, and determines that the sensing data required for the data collection task includes the first sensing data and the second sensing data; the federation management center uses the first sensing data and the second sensing data; Determine the second device that provides the first sensing data and the third device that provides the second sensing data from multiple devices; the federal management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device Subtasks; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the third device to provide the second sensing data.
这样,联邦管理中心可以将数据采集任务分解成不同的子任务,并且找到分别完成子任务的设备。In this way, the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
结合第二方面,在一种可能的实现方式中,联邦管理中心向第二设备发送第一采集子任务,向第三设备发送第二采集子任务之后,该数据采集方法还可以包括:第二设备接受或拒绝第一采集子任务;第三设备接受或拒绝第二采集子任务。With reference to the second aspect, in a possible implementation manner, after the federation management center sends the first collection subtask to the second device, and sends the second collection subtask to the third device, the data collection method may further include: second The device accepts or rejects the first collection subtask; the third device accepts or rejects the second collection subtask.
这样,数据采集系统中的一个或多个设备可以决定是否接受该数据采集任务。In this way, one or more devices in the data collection system can decide whether to accept the data collection task.
结合第二方面,在一种可能的实现方式中,第二设备接受或拒绝第一采集子任务,包括:第二设备基于第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务。With reference to the second aspect, in a possible implementation manner, the second device accepting or rejecting the first collection subtask includes: the second device determines to accept or reject the first collection subtask based on remaining resources in the second device. Task.
结合第二方面,在一种可能的实现方式中,第二设备基于所述第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务,包括:在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第一消息,第一消息用于指示第二设备接受第一采集子任务;第二设备中的剩余资源包括第二设备中的剩余的计算资源和存储资源;在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务。With reference to the second aspect, in a possible implementation manner, the second device determines to accept or reject the first acquisition subtask based on remaining resources in the second device, including: determining at the second device that the second device When the remaining resources in the resource are greater than the resources to be used required by the first acquisition subtask, the second device sends a first message to the federation management center, and the first message is used to instruct the second device to accept the first acquisition subtask; the second The remaining resources in the device include remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device Sending a second message to the federation management center, where the second message is used to instruct the second device to refuse to accept the first collection subtask.
这样,数据采集系统中的一个或多个设备可以根据设备中的剩余资源和执行该数据采集任务所需的待使用资源确定是否接受该数据采集任务。In this way, one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
结合第二方面,在一种可能的实现方式中,所述联邦管理中心指示一个或多个设备提供所需的传感数据,包括:一个或多个设备与第一设备建立数据传输通道;一个或多个设备通过数据传输通道将所需的传感数据发送给第一设备。With reference to the second aspect, in a possible implementation manner, the federation management center instructs one or more devices to provide required sensing data, including: one or more devices establish a data transmission channel with the first device; a One or more devices send the required sensing data to the first device through the data transmission channel.
这样,数据采集设备,即一个或多个设备,可以直接将采集到的传感数据发送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
结合第二方面,在一种可能的实现方式中,联邦管理中心指示一个或多个设备提供所需的传感数据,包括:联邦管理中心将一个或多个设备发送的所需的传感数据,发送给第一设备。In combination with the second aspect, in a possible implementation manner, the federation management center instructs one or more devices to provide the required sensing data, including: the federation management center sends the required sensing data to one or more devices , sent to the first device.
这样,数据采集设备,即一个或多个设备,可以通过联邦管理中心将采集的传感数据发送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
结合第二方面,在一种可能的实现方式中,数据采集任务所需的传感数据包括第一语义信息;联邦管理中心将一个或多个设备发送的所需的传感数据,发送给第一设备,包括:联邦管理中心将一个或多个设备发送的传感器采集的原始信号或者第二语义信息,转化为第一语义信息,并将第一语义信息发送给第一设备。In combination with the second aspect, in a possible implementation, the sensory data required for the data collection task includes the first semantic information; the federal management center sends the required sensory data sent by one or more devices to the first A device, including: the federation management center converts raw signals collected by sensors or second semantic information sent by one or more devices into first semantic information, and sends the first semantic information to the first device.
这样,联邦管理中心可以将数据采集设备发送的传感器采集的原始信号或者低阶语义信息,转为数据需求设备所需的语义信息或者高阶语义信息。In this way, the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
结合第二方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务;包括:联邦管理中心根据第一采集子任务和多个设备的传感能力信息,确定提供第一传感数据的第四设备。With reference to the second aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first collection subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center determines the provider of the first sensing data according to the first collection subtask and the sensing capability information of multiple devices Fourth device.
这样,当数据采集系统中的一个设备拒绝任务后,联邦管理中心还可以找到另一个设备执行该数据采集任务。In this way, when a device in the data collection system rejects the task, the federation management center can find another device to perform the data collection task.
结合第二方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第一消息,所述第一消息用于指示所述第二设备接受第一采集子任务之后,包括:第二设备基于第一采集子任务采集第一传感数据;联邦管理中心确定第二设备处于异常状态,联邦管理中心确定提供第一传感数据的第四设备;异常状态包括第二设备的电池电量低于电量阈值、第二设备与联邦管理中心的连接断开、第二设备未处于佩戴状态、第二设备与电源断开中的一项或多项。With reference to the second aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the second device sends the After the federation management center sends the first message, the first message is used to instruct the second device to accept the first collection subtask, including: the second device collects the first sensing data based on the first collection subtask; the federation management center It is determined that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, the connection between the second device and the federal management center is disconnected, and the fourth device is connected to the federal management center. One or more of the second device not being worn, and the second device disconnected from the power supply.
这样,当数据采集设备在执行数据采集任务中出现异常时,联邦管理中心还可以找另一个设备继续完成该数据采集任务。In this way, when the data collection device is abnormal in the execution of the data collection task, the federation management center can also find another device to continue to complete the data collection task.
结合第二方面,在一种可能的实现方式中,数据采集任务携带仲裁标识,仲裁标识用于指示一个或多个设备中的第五设备拒绝接受数据采集任务的次数超过预设阈值;联邦管理中心指示一个或多个设备提供所需的传感数据;包括:联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据。With reference to the second aspect, in a possible implementation manner, the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
这样,可以避免数据采集设备恶意拒绝接受数据采集任务。In this way, the data collection device can be prevented from maliciously refusing to accept the data collection task.
结合第二方面,在一种可能的实现方式中,联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心向第五设备发送第三消息,所需第三消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;联邦管理中心接收第五设备发送的第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心指示第五设备提供数据采集任务所需的数据。With reference to the second aspect, in a possible implementation, the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a third message to the fifth device , the required third message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center, and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center receives the fifth device The remaining resources in the fifth device sent, and the estimated resources to be used by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide Data required for data collection tasks.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第二方面,在一种可能的实现方式中,联邦管理中心基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心向第五设备发送第四消息,所需第四消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源;联邦管理中心接收第五设备发送的第五设备中的剩余资源;联邦管理中心基于数据采集任务,评估出第五设备执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心指示第五设备提供数据采集任务所需的数据。With reference to the second aspect, in a possible implementation, the federation management center instructs the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center sends a fourth message to the fifth device , the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center receives the remaining resources in the fifth device sent by the fifth device; based on the data collection task, the federation management center, Evaluate the to-be-used resources required by the fifth device to perform the data collection task; if the remaining resources are greater than the required to-be-used resources, the federation management center instructs the fifth device to provide the data required by the data collection task.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第二方面,在一种可能的实现方式中,联邦管理中心接收第一设备发送的数据采集任务之前;该方法还可以包括:联邦管理中心接收到多个设备的传感能力信息;联邦管理中心基于多个设备的传感能力信息和下载的第一知识图谱,推导出新的传感能力信息。In combination with the second aspect, in a possible implementation manner, before the federation management center receives the data collection task sent by the first device; the method may also include: the federation management center receives the sensing capability information of multiple devices; the federation management The center derives new sensing capability information based on the sensing capability information of multiple devices and the downloaded first knowledge map.
这样,联邦管理中心可以获取数据采集系统中所有的传感能力信息。In this way, the federal management center can obtain all the sensing capability information in the data acquisition system.
结合第二方面,在一种可能的实现方式中,联邦管理中心接收到多个设备的传感能力信息;可以包括:联邦管理中心接收到多个设备中第六设备加入数据采集系统的消息以及第六设备的设备型号;联邦管理中心基于第六设备的设备型号,从第一服务器中获取第六设备的传感能力信息;第一服务器中存储有不同的设备型号、以及设备型号对应的传感能力信息。With reference to the second aspect, in a possible implementation, the federation management center receives the sensing capability information of multiple devices; it may include: the federation management center receives a message that the sixth device among the multiple devices joins the data collection system and The device model of the sixth device; based on the device model of the sixth device, the federation management center obtains the sensing capability information of the sixth device from the first server; the first server stores different device models and the sensor information corresponding to the device model sensory information.
这样,每当有设备加入数据采集系统时,联邦管理中心可以更新该数据采集系统中的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can update the sensing capability information in the data collection system.
结合第二方面,在一种可能的实现方式中,联邦管理中心基于第六设备的设备型号,从 第一服务器中获取第六设备的能力信息之后,该方法还可以包括:联邦管理中心基于第六设备的传感能力信息,以及第二知识图谱,推导出新的传感能力信息;第二知识图谱包括第一知识图谱,第二知识图谱中包含的传感能力信息比第一知识图谱中包含的传感能力信息多;基于新的传感能力信息,更新联邦管理中心存储的传感能力信息。With reference to the second aspect, in a possible implementation manner, after the federal management center obtains the capability information of the sixth device from the first server based on the device model of the sixth device, the method may further include: Sixth, the sensing capability information of the device, and the second knowledge graph, deduce new sensing capability information; the second knowledge graph includes the first knowledge graph, and the sensing capability information contained in the second knowledge graph is more than that contained in the first knowledge graph It contains a lot of sensing capability information; based on the new sensing capability information, the sensing capability information stored in the federal management center is updated.
这样,每当有设备加入数据采集系统时,联邦管理中心还可以根据新加入设备的传感能力信息推导出新的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
结合第二方面,在一种可能的实现方式中,联邦管理中心基于第六设备的传感能力信息,以及的第二知识图谱,推导出新的传感能力信息之后,该方法还可以包括:联邦管理中心确定第六设备退出数据采集系统;联邦管理中心删除存储的第六设备的传感能力信息、以及删除基于第六设备的传感能力信息推导出的新的传感能力信息。With reference to the second aspect, in a possible implementation manner, after the federation management center derives new sensing capability information based on the sensing capability information of the sixth device and the second knowledge map, the method may further include: The federation management center determines that the sixth device exits the data collection system; the federation management center deletes the stored sensing capability information of the sixth device, and deletes new sensing capability information derived based on the sixth device's sensing capability information.
结合第二方面,在一种可能的实现方式中,联邦管理中心确定第六设备退出数据采集系统,包括:联邦管理中心在预设时长内未收到第六设备的发送的第五消息的情况下,联邦管理中心确定第六设备退出数据采集系统;第五消息用于指示第六设备在数据采集系统中。In combination with the second aspect, in a possible implementation, the federation management center determines that the sixth device exits the data collection system, including: the federation management center does not receive the fifth message sent by the sixth device within a preset period of time Next, the federal management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
结合第二方面,在一种可能的实现方式中,联邦管理中心确定第六设备退出数据采集系统,包括:联邦管理中心接收到第六设备发送的第六消息,第六消息用于指示第六设备退出数据采集系统中。With reference to the second aspect, in a possible implementation manner, the federation management center determines that the sixth device exits the data collection system, including: the federation management center receives a sixth message sent by the sixth device, and the sixth message is used to indicate that the sixth device The device exits the data acquisition system.
结合第二方面,在一种可能的实现方式中,一个或多个设备中还包括第七设备,方法还包括:联邦管理中心向第七设备发送第一指示信息,第一指示信息用于指示在确定第七设备中采集的第三传感器数据处于第一状态的情况下,第七设备向所述联邦管理中心发送第三传感器数据;联邦管理中心接收第七设备发送的第三传感数据;联邦管理中心将第三传感数据发送给订阅第三传感数据的一个或多个设备。With reference to the second aspect, in a possible implementation, the one or more devices further include a seventh device, and the method further includes: the federation management center sends first indication information to the seventh device, and the first indication information is used to indicate In the case of determining that the third sensor data collected by the seventh device is in the first state, the seventh device sends the third sensor data to the federation management center; the federation management center receives the third sensory data sent by the seventh device; The federal management center sends the third sensing data to one or more devices subscribed to the third sensing data.
结合第二方面,在一种可能的实现方式中,联邦管理中心接收第一设备发送的数据采集任务之后,该方法还包括:联邦管理中心基于数据采集任务、和联邦管理中心存储的传感数据;联邦管理中心确定联邦管理中心存储有数据采集任务所需的传感数据;联邦管理中心将所需的传感数据发送给第一设备。With reference to the second aspect, in a possible implementation manner, after the federation management center receives the data collection task sent by the first device, the method further includes: ; The federation management center determines that the federation management center stores the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
结合第二方面,在一种可能的实现方式中,传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;第一知识图谱由联邦管理中心基于多个设备的传感能力信息生成;第二知识图谱存储在服务器中,第一知识图谱包括所述多个设备的传感数据、以及多个设备的传感数据之间的关联关系。当第四传感数据和第五传感数据可以计算或推导得到第六传感数据时,可以称第四传感数据与第五传感数据以及第六传感数据具有关联关系。With reference to the second aspect, in a possible implementation manner, the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first knowledge graph is created by the federation management center based on the Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices. When the fourth sensing data and the fifth sensing data can be calculated or derived to obtain the sixth sensing data, it can be said that the fourth sensing data has an associated relationship with the fifth sensing data and the sixth sensing data.
第三方面,提供一种数据采集方法,该数据采集方法应用于数据采集系统,该数据采集系统可以包括第一电子设备、第二电子设备以及第三电子设备。其中,第一电子设备与所述第二电子设备建立有通信连接,第二电子设备与第三电子设备建立有通信连接;其中,该数据采集方法可以包括:第一电子设备向第二电子设备发送数据采集任务;第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第二电子设备将数据采集任务发送给第三电子设备;第三电子设备基于数据采集任务,采集第一传感器数据;第三电子设备将第一传感器数据发送给第一电子设备。In a third aspect, a data collection method is provided, the data collection method is applied to a data collection system, and the data collection system may include a first electronic device, a second electronic device, and a third electronic device. Wherein, the first electronic device establishes a communication connection with the second electronic device, and the second electronic device establishes a communication connection with the third electronic device; wherein, the data collection method may include: sending the first electronic device to the second electronic device Send the data acquisition task; the second electronic device analyzes the data acquisition task, determines the first sensor data required in the data acquisition task, and provides the third electronic device for the first sensor data; the first sensor data includes the hardware in the third electronic device The data collected by the sensor and the data provided by the software in the third electronic device; the second electronic device sends the data collection task to the third electronic device; the third electronic device collects the first sensor data based on the data collection task; the third electronic device The first sensor data is sent to the first electronic device.
该第一电子设备可以是数据需求设备,第二电子设备可以是联邦管理中心,第三电子设备可以是数据采集设备。The first electronic device may be a data demand device, the second electronic device may be a federal management center, and the third electronic device may be a data collection device.
这样,通过本申请实施例提供的数据采集方法,数据需求设备只需向中心管理设备发送 数据采集任务,无需知道哪一个设备可以提供该数据采集请求所需的数据,中心管理设备可以基于该数据采集任务中所需的数据确定能够提供该数据的数据采集设备。数据需求设备也无需和数据采集设备具备统一的数据传输接口,也可以获取到数据采集设备采集的数据。In this way, through the data collection method provided by the embodiment of the present application, the data requesting device only needs to send a data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request. The central management device can The data required in the collection task determines the data collection equipment that can provide the data. The data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
结合第三方面,在一种可能的实现方式中,第二电子设备解析所述数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件产生的数据;包括:第二电子设备解析所述数据采集任务,确定数据采集任务中所需的第一传感器数据;第二电子设备从传感能力信息列表中查询到提供第一传感器数据的第三电子设备;传感能力信息列表用于存储数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。With reference to the third aspect, in a possible implementation manner, the second electronic device parses the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to a third electronic device; The first sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device analyzes the data collection task, and determines the first data collection task required in the data collection task. Sensor data; the second electronic device queries the third electronic device that provides the first sensor data from the sensing capability information list; the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system , and the identification of the electronic device that provides the sensor data; the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
结合第三方面,在一种可能的实现方式中,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件产生的数据;包括:With reference to the third aspect, in a possible implementation manner, the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the third electronic device with the first sensor data; the first Sensor data includes data collected by hardware sensors in the third electronic device and data generated by software in the third electronic device; including:
第二电子设备解析所述数据采集任务,确定所述数据采集任务的所需的第一语义信息,第二电子设备确定第一语义信息基于第一传感器数据得到;第二电子设备确定从传感能力信息列表中查询到提供传感器数据的第三电子设备;传感能力信息列表用于存储数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。The second electronic device parses the data collection task, and determines the first semantic information required by the data collection task, and the second electronic device determines that the first semantic information is obtained based on the first sensor data; the second electronic device determines from the sensor The third electronic device that provides sensor data is found in the capability information list; the sensor capability information list is used to store the identification of one or more sensor data included in the data acquisition system and the identification of the electronic device that provides sensor data; The identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
结合第三方面,在一种可能的实现方式中,传感器数据的标识包括传感器数据的名称、ID、类型中的一项或多项;电子设备的标识包括电子设备的名称、设备ID。With reference to the third aspect, in a possible implementation manner, the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
结合第三方面,在一种可能的实现方式中,第二电子设备将数据采集任务发送给第三电子设备;包括:第二电子设备将数据采集任务分解为数据采集子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据;第二电子设备将数据采集子任务发送给第三电子设备。In combination with the third aspect, in a possible implementation manner, the second electronic device sends the data collection task to the third electronic device; including: the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask It is used to instruct the third electronic device to collect the first sensor data; the second electronic device sends the data collection subtask to the third electronic device.
结合第三方面,在一种可能的实现方式中,第三电子设备基于数据采集任务,采集传感器数据之前,该数据采集方法还可以包括:在第三电子设备确定第三电子设备中的剩余资源大于数据采集任务所需的待使用资源的情况下,第三电子设备向第二电子设备发送第一消息,第一消息用于指示第三电子设备接受数据采集任务;在第三电子设备确定第三电子设备中的剩余资源小于数据采集任务所需的待使用资源的情况下,第三电子设备向第二电子设备发送第二消息,第二消息用于指示第三电子设备拒绝接受数据采集任务。With reference to the third aspect, in a possible implementation manner, before the third electronic device collects sensor data based on the data collection task, the data collection method may further include: before the third electronic device determines remaining resources in the third electronic device If it is greater than the resource to be used required by the data collection task, the third electronic device sends a first message to the second electronic device, and the first message is used to instruct the third electronic device to accept the data collection task; When the remaining resources in the third electronic device are less than the resources to be used required by the data collection task, the third electronic device sends a second message to the second electronic device, and the second message is used to instruct the third electronic device to refuse to accept the data collection task .
结合第三方面,在一种可能的实现方式中,第三电子设备将传感器数据发送给第一电子设备,包括:第三电子设备将传感器数据发送给第二电子设备;第二电子设备将传感器数据发送给第一电子设备;或者,第三电子设备将传感器数据发送给第一电子设备。With reference to the third aspect, in a possible implementation, the third electronic device sends the sensor data to the first electronic device, including: the third electronic device sends the sensor data to the second electronic device; the second electronic device sends the sensor data to the second electronic device; The data is sent to the first electronic device; or, the third electronic device sends the sensor data to the first electronic device.
结合第三方面,在一种可能的实现方式中,第三电子设备将传感器数据发送给第一电子设备,包括:第三电子设备与第一电子设备建立数据传输通道;第三电子设备通过数据传输通道将传感器数据发送给第一电子设备。With reference to the third aspect, in a possible implementation manner, the third electronic device sends the sensor data to the first electronic device, including: the third electronic device establishes a data transmission channel with the first electronic device; the third electronic device passes the data The transmission channel sends the sensor data to the first electronic device.
结合第三方面,在一种可能的实现方式中,第二电子设备将数据采集任务分解为数据采集子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据,包括:第二电子设备确定所述确定数据采集任务的所需的第一语义信息,第一语义信息基于第一传感器数据得 到;第二电子设备将数据采集任务分解为数据采集子任务和语义转换子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据;语义转换子任务用于指示第三电子设备将采集的第一传感器数据转换为第一语义信息。With reference to the third aspect, in a possible implementation manner, the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data, including: the second The electronic device determines the first semantic information required for determining the data collection task, and the first semantic information is obtained based on the first sensor data; the second electronic device decomposes the data collection task into a data collection subtask and a semantic conversion subtask, and the data The collection subtask is used to instruct the third electronic device to collect the first sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected first sensor data into first semantic information.
结合第三方面,在一种可能的实现方式中,第三电子设备将第一传感器数据发送给第一电子设备,包括:第三电子设备将第一传感器数据转换成第一语义信息;第三电子设备将第一语义信息发送给第一电子设备。With reference to the third aspect, in a possible implementation, the third electronic device sends the first sensor data to the first electronic device, including: the third electronic device converts the first sensor data into first semantic information; the third electronic device converts the first sensor data into first semantic information; The electronic device sends the first semantic information to the first electronic device.
结合第三方面,在一种可能的实现方式中,第三电子设备将第一传感器发送给第一电子设备,包括:第三电子设备将第一传感器数据发送给第二电子设备;第二电子设备将第一传感器数据转换成第一语义信息;第二电子设备将第一语义信息发送给第一电子设备。With reference to the third aspect, in a possible implementation manner, sending the first sensor to the first electronic device by the third electronic device includes: sending the first sensor data to the second electronic device by the third electronic device; The device converts the first sensor data into first semantic information; the second electronic device sends the first semantic information to the first electronic device.
结合第三方面,在一种可能的实现方式中,数据采集系统还包括第四电子设备,第四电子设备,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;包括:第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据和第二传感器数据,以及提供第一传感器数据的第三电子设备和提供第二传感器数据的第四电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第二传感器数据包括第四电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第一传感器数据的类型与第二传感器数据的类型不同。In combination with the third aspect, in a possible implementation manner, the data collection system further includes a fourth electronic device, the fourth electronic device, and the second electronic device analyzes the data collection task to determine the first sensor data required in the data collection task , and a third electronic device that provides first sensor data; the first sensor data includes data collected by hardware sensors in the third electronic device and data provided by software in the third electronic device; including: the second electronic device parses data collection tasks , to determine the first sensor data and second sensor data required in the data acquisition task, and the third electronic device providing the first sensor data and the fourth electronic device providing the second sensor data; the first sensor data includes the third electronic device The data collected by the hardware sensor in the device and the data provided by the software in the third electronic device; the second sensor data includes the data collected by the hardware sensor in the fourth electronic device and the data provided by the software in the third electronic device; the first sensor data The type of is different from the type of the second sensor data.
结合第三方面,在一种可能的实现方式中,数据采集任务中可以包括所需的第一传感器数据的第一采集参数;第一采集参数包括采集时长、采集周期、传感器数据精度、采集算子中的一项或多项;采集时长用于指示第三电子设备采集第一传感器数据的时长;采集周期用于指示第三电子设备采集第一传感器数据的周期;传感器数据精度用于指示第一传感器数据的精度;采集算子用于指示第一传感器数据的处理方法。In combination with the third aspect, in a possible implementation manner, the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection period, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
结合第三方面,在一种可能的实现方式中,数据采集系统中还包括第五电子设备,在第三电子设备确定第三电子设备中的剩余资源小于数据采集任务所需的待使用资源的情况下,第三电子设备向第二电子设备发送第二消息,第二消息用于指示第三电子设备拒绝接受数据采集任务之后,该数据采集方法还可以包括:第二电子设备提供第一传感器数据的第五电子设备;第二电子设备将数据采集任务发送给第五电子设备。With reference to the third aspect, in a possible implementation manner, the data collection system further includes a fifth electronic device, and the third electronic device determines that the remaining resources in the third electronic device are less than the resources to be used required by the data collection task. In this case, after the third electronic device sends a second message to the second electronic device, after the second message is used to indicate that the third electronic device refuses to accept the data collection task, the data collection method may further include: the second electronic device provides the first sensor The fifth electronic device for data; the second electronic device sends the data collection task to the fifth electronic device.
结合第三方面,在一种可能的实现方式中,数据采集系统中还包括第五电子设备,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据,包括:第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备和第五电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第一传感数据包括第五电子设备中硬件传感器采集的数据、由第五电子设备中软件提供的数据;在数据采集任务指示由多个电子设备执行数据采集任务的情况下,第二电子设备确定第三电子设备和第五电子设备执行数据采集任务;在数据采集任务指示由一个电子设备执行数据采集任务的情况下,第二电子设备选择第三电子设备执行数据采集任务;或第二电子设备选择第五电子设备执行数据采集任务。With reference to the third aspect, in a possible implementation manner, the data collection system further includes a fifth electronic device, and the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the fifth electronic device. A third electronic device with sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device and the data provided by the software in the third electronic device, including: the second electronic device analyzes the data collection task and determines the data collection The first sensor data required in the task, and the third electronic device and the fifth electronic device that provide the first sensor data; The data provided; the first sensory data includes the data collected by the hardware sensor in the fifth electronic device and the data provided by the software in the fifth electronic device; when the data collection task indicates that multiple electronic devices perform the data collection task, The second electronic device determines that the third electronic device and the fifth electronic device perform the data collection task; when the data collection task indicates that one electronic device performs the data collection task, the second electronic device selects the third electronic device to perform the data collection task; Or the second electronic device selects the fifth electronic device to perform the data collection task.
结合第三方面,在一种可能的实现方式中,第二电子设备选择第三电子设备执行所述数据采集任务,包括:在第三电子设备提供的第一传感器数据的精度高于第五电子设备提供的 第一传感器数据的精度的情况下,第二电子设备选择第三电子设备执行数据采集任务;With reference to the third aspect, in a possible implementation manner, the second electronic device selects the third electronic device to perform the data collection task, including: the accuracy of the first sensor data provided by the third electronic device is higher than that of the fifth electronic device. In the case of the accuracy of the first sensor data provided by the device, the second electronic device selects the third electronic device to perform the data collection task;
或,在第三电子设备中的计算资源和/或存储资源大于第五电子设备中的计算资源和/或存储资源情况下,第二电子设备选择第三电子设备执行数据采集任务;Or, when the computing resources and/or storage resources in the third electronic device are greater than the computing resources and/or storage resources in the fifth electronic device, the second electronic device selects the third electronic device to perform the data collection task;
或,在第三电子设备中的电池电量大于第五电子设备中的电池电量情况下,第二电子设备选择第三电子设备执行数据采集任务;Or, when the battery power in the third electronic device is greater than the battery power in the fifth electronic device, the second electronic device selects the third electronic device to perform the data collection task;
或,在第三电子设备与第一电子设备的第一距离小于第五电子设备与第一电子设备的第二距离的情况下,第二电子设备选择第三电子设备执行数据采集任务;Or, when the first distance between the third electronic device and the first electronic device is smaller than the second distance between the fifth electronic device and the first electronic device, the second electronic device selects the third electronic device to perform the data collection task;
第二电子设备选择第五电子设备执行数据采集任务,包括:The second electronic device selects the fifth electronic device to perform data collection tasks, including:
在第三电子设备提供的第一传感器数据的精度低于第五电子设备提供的第一传感器数据的精度的情况下,第二电子设备选择第五电子设备执行数据采集任务;When the accuracy of the first sensor data provided by the third electronic device is lower than the accuracy of the first sensor data provided by the fifth electronic device, the second electronic device selects the fifth electronic device to perform the data acquisition task;
或,在第三电子设备中的计算资源和/或存储资源小于第五电子设备中的计算资源和/或存储资源情况下,第二电子设备选择第五电子设备执行数据采集任务;Or, when the computing resources and/or storage resources in the third electronic device are smaller than the computing resources and/or storage resources in the fifth electronic device, the second electronic device selects the fifth electronic device to perform the data collection task;
或,在第三电子设备中的电池电量小于第五电子设备中的电池电量情况下,第二电子设备选择第五电子设备执行数据采集任务;Or, when the battery power in the third electronic device is less than the battery power in the fifth electronic device, the second electronic device selects the fifth electronic device to perform the data collection task;
或,在第三电子设备与第一电子设备的第一距离大于第五电子设备与第一电子设备的第二距离的情况下,第二电子设备选择第五电子设备执行数据采集任务。Or, when the first distance between the third electronic device and the first electronic device is greater than the second distance between the fifth electronic device and the first electronic device, the second electronic device selects the fifth electronic device to perform the data collection task.
结合第三方面,在一种可能的实现方式中,数据采集任务中携带仲裁标识,仲裁标识指示第三电子设备拒绝接受数据采集任务的次数超过预设阈值;第三电子设备基于数据采集任务,采集传感器数据之前,该数据采集方法还包括:第三电子设备向第二电子设备发送第三消息,第三消息用于通知第二电子设备,第三电子设备中的剩余资源,以及数据采集任务所需的待使用资源;在第二电子设备确定第三电子设备中的剩余资源大于数据采集任务所需的待使用资源的情况下,第二电子设备向第三电子设备发送第四消息,第四消息用于指示第三电子设备接受数据采集任务。In combination with the third aspect, in a possible implementation manner, the data collection task carries an arbitration flag, and the arbitration flag indicates that the number of times the third electronic device refuses to accept the data collection task exceeds a preset threshold; the third electronic device, based on the data collection task, Before collecting sensor data, the data collection method further includes: the third electronic device sends a third message to the second electronic device, and the third message is used to notify the second electronic device, remaining resources in the third electronic device, and the data collection task Required resources to be used; when the second electronic device determines that the remaining resources in the third electronic device are greater than the resources to be used required by the data collection task, the second electronic device sends a fourth message to the third electronic device, and the second electronic device sends a fourth message to the third electronic device. Four messages are used to instruct the third electronic device to accept the data collection task.
结合第三方面,在一种可能的实现方式中,该数据采集方法还可以包括:在数据采集系统中提供的传感器数据的类型增加的情况下,第二电子设备更新传感能力信息列表。With reference to the third aspect, in a possible implementation manner, the data collection method may further include: when the type of sensor data provided by the data collection system increases, the second electronic device updates the sensor capability information list.
结合第三方面,在一种可能的实现方式中,该数据采集方法还可以包括:第二电子设备基于数据采集系统中的多个传感器数据建立语义推理模型;语义推理模型用于基于一个或多个传感器数据,得到一个或多个传感器数据对应的语义信息。With reference to the third aspect, in a possible implementation manner, the data collection method may further include: the second electronic device establishes a semantic reasoning model based on multiple sensor data in the data collection system; the semantic reasoning model is used to sensor data to obtain semantic information corresponding to one or more sensor data.
第四方面,提供一种数据采集方法,该数据采集方法可以包括:第二电子设备接收第一电子设备发送的数据采集任务;第二电子设备与第一电子设备建立有通信连接;第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第二电子设备将数据采集任务发送给第三电子设备;第二电子设备接收第三电子设备采集到的第一传感器数据;第二电子设备将第一传感器数据发送给第一电子设备。In a fourth aspect, a data collection method is provided, and the data collection method may include: the second electronic device receives the data collection task sent by the first electronic device; the second electronic device establishes a communication connection with the first electronic device; the second electronic device The device analyzes the data collection task, determines the first sensor data required in the data collection task, and the third electronic device that provides the first sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device, and is provided by the third electronic device The data provided by the software in the electronic device; the second electronic device sends the data collection task to the third electronic device; the second electronic device receives the first sensor data collected by the third electronic device; the second electronic device sends the first sensor data to the first electronic device.
结合第四方面,在一种可能的实现方式中,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件产生的数据;包括:第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据;第二电子设备从传感能力信息列表中查询到提供第一传感器数据的第三电子设备;传感能力信息列表用于存储数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设 备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。With reference to the fourth aspect, in a possible implementation manner, the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device; the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device analyzes the data collection task and determines the first sensor data required in the data collection task; The second electronic device queries the third electronic device that provides the first sensor data from the sensing capability information list; the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system, and provide sensor The identification of the electronic device of the data; the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
结合第四方面,在一种可能的实现方式中,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件产生的数据;包括:第二电子设备解析所述数据采集任务,确定数据采集任务的所需的第一语义信息,第二电子设备确定第一语义信息基于第一传感器数据得到;第二电子设备确定从传感能力信息列表中查询到提供传感器数据的第三电子设备;传感能力信息列表用于存储所述数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。With reference to the fourth aspect, in a possible implementation manner, the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device; the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data generated by the software in the third electronic device; including: the second electronic device parses the data collection task and determines the first semantic information required by the data collection task , the second electronic device determines that the first semantic information is obtained based on the first sensor data; the second electronic device determines that a third electronic device that provides sensor data is found from the sensor capability information list; the sensor capability information list is used to store the The identification of one or more sensor data included in the data acquisition system, and the identification of the electronic device that provides the sensor data; the identification of one or more sensor data includes the identification of the first sensor data, and the identification of the electronic device includes An identification of the third electronic device.
结合第四方面,在一种可能的实现方式中,传感器数据的标识包括传感器数据的名称、ID、类型中的一项或多项;电子设备的标识包括电子设备的名称、设备ID。With reference to the fourth aspect, in a possible implementation manner, the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
结合第四方面,在一种可能的实现方式中,第二电子设备将数据采集任务发送给第三电子设备;包括:第二电子设备将数据采集任务分解为数据采集子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据;第二电子设备将数据采集子任务发送给第三电子设备。In combination with the fourth aspect, in a possible implementation manner, the second electronic device sends the data collection task to the third electronic device; including: the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask It is used to instruct the third electronic device to collect the first sensor data; the second electronic device sends the data collection subtask to the third electronic device.
结合第四方面,在一种可能的实现方式中,第二电子设备将数据采集任务分解为数据采集子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据;包括:第二电子设备确定所述数据采集任务的所需的第一语义信息,第一语义信息基于传感器数据得到;第二电子设备将数据采集任务分解为数据采集子任务和语义转换子任务,数据采集子任务用于指示第三电子设备采集传感器数据;语义转换子任务用于指示第三电子设备将采集的传感器数据转换为第一语义信息。With reference to the fourth aspect, in a possible implementation manner, the second electronic device decomposes the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data; including: the second The electronic device determines the first semantic information required for the data collection task, and the first semantic information is obtained based on the sensor data; the second electronic device decomposes the data collection task into a data collection subtask and a semantic conversion subtask, and the data collection subtask It is used to instruct the third electronic device to collect sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected sensor data into first semantic information.
结合第四方面,在一种可能的实现方式中,第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;包括:With reference to the fourth aspect, in a possible implementation manner, the second electronic device analyzes the data collection task, determines the first sensor data required in the data collection task, and provides the first sensor data to the third electronic device; the first The sensor data includes the data collected by the hardware sensor in the third electronic device and the data provided by the software in the third electronic device; including:
第二电子设备解析数据采集任务,确定数据采集任务中所需的第一传感器数据和第二传感器数据,以及提供第一传感器数据的第三电子设备和提供第二传感器数据的第四电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第二传感器数据包括第四电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第一传感器数据的类型与第二传感器数据的类型不同。The second electronic device analyzes the data collection task, determines the first sensor data and the second sensor data required in the data collection task, and the third electronic device that provides the first sensor data and the fourth electronic device that provides the second sensor data; The first sensor data includes the data collected by the hardware sensor in the third electronic device and the data provided by the software in the third electronic device; the second sensor data includes the data collected by the hardware sensor in the fourth electronic device and is provided by the software in the third electronic device Data provided; the first sensor data is of a different type than the second sensor data.
结合第四方面,在一种可能的实现方式中,数据采集任务中可以包括所需的第一传感器数据的第一采集参数;第一采集参数包括采集时长、采集周期、传感器数据精度、采集算子中的一项或多项;采集时长用于指示第三电子设备采集第一传感器数据的时长;采集周期用于指示第三电子设备采集第一传感器数据的周期;传感器数据精度用于指示第一传感器数据的精度;采集算子用于指示第一传感器数据的处理方法。With reference to the fourth aspect, in a possible implementation manner, the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection cycle, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
第五方面,提供一种数据采集系统,该数据采集系统中包括联邦管理中心和多个设备。其中:联邦管理中心用于接收第一设备发送的数据采集任务;联邦管理中心用于根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心用于指示一个或多个设备提供所需的传感数据。In a fifth aspect, a data collection system is provided, and the data collection system includes a federation management center and multiple devices. Among them: the federation management center is used to receive the data collection task sent by the first device; the federation management center is used to determine one or more of the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices. Multiple devices; used by the federation management center to instruct one or more devices to provide the required sensory data.
联邦管理中心可以部署在一个设备、或分布式部署在数据采集系统中的一个或多个设备中,该设备可以包括电子设备、服务器。The federation management center can be deployed in one device, or distributed in one or more devices in the data collection system, and the devices can include electronic devices and servers.
通过本申请实施例提供的数据采集系统,数据需求设备只需向中心管理设备发送数据采集任务,无需知道哪一个设备可以提供该数据采集请求所需的数据,中心管理设备可以基于该数据采集任务中所需的数据确定能够提供该数据的数据采集设备。数据需求设备也无需和数据采集设备具备统一的数据传输接口,也可以获取到数据采集设备采集的数据。Through the data collection system provided by the embodiment of the present application, the data requesting device only needs to send a data collection task to the central management device, and does not need to know which device can provide the data required for the data collection request, and the central management device can based on the data collection task The data required in Identify the data acquisition devices that can provide that data. The data demand equipment does not need to have a unified data transmission interface with the data acquisition equipment, and can also obtain the data collected by the data acquisition equipment.
结合第一方面,在一种可能的实现方式中,联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;可以包括:联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦管理中心根据多个设备的传感能力信息、以及多个设备的传感数据之间的关联关系和/或多个设备的设备状态,确定出提供数据采集任务所需的传感数据的一个或多个设备执行数据采集任务。In combination with the first aspect, in a possible implementation, the federation management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; Including: the federal management center determines one or more devices that provide the sensing data required for the data collection task according to the data collection task and the sensing capability information of multiple devices; As well as the association relationship between the sensing data of multiple devices and/or the device states of multiple devices, it is determined that one or more devices that provide the sensing data required by the data collection task perform the data collection task.
其中,设备状态包括多个设备的电量状态、佩戴状态、与第一设备的距离、多个设备中提供的传感器数据的精度中的一项或多项。Wherein, the device status includes one or more of the battery status of the multiple devices, the wearing status, the distance from the first device, and the accuracy of sensor data provided by the multiple devices.
这样,联邦管理中心可以确定出能够提供数据采集任务所需传感数据的数据采集设备。In this way, the federal management center can determine the data collection equipment that can provide the sensory data required for the data collection task.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于解析出数据采集任务,确定数据采集任务所需的传感数据包括第一传感数据和第二传感数据;联邦管理中心用于根据第一传感数据和所述第二传感数据;从多个设备中确定提供第一传感数据的第二设备和提供第二传感数据的第三设备;联邦管理中心用于向第二设备发送第一采集子任务,向第三设备发送第二采集子任务;第一采集子任务用于指示第二设备提供第一传感数据,第二采集子任务用于指示第三设备提供第二传感数据。In combination with the fifth aspect, in a possible implementation, the federation management center is used to analyze the data collection task, and determine that the sensory data required for the data collection task includes the first sensory data and the second sensory data; the federated management center The center is used to determine the second device providing the first sensing data and the third device providing the second sensing data from multiple devices according to the first sensing data and the second sensing data; the federal management center uses The first collection subtask is sent to the second device, and the second collection subtask is sent to the third device; the first collection subtask is used to instruct the second device to provide the first sensing data, and the second collection subtask is used to instruct the first collection subtask The third device provides second sensory data.
这样,联邦管理中心可以将数据采集任务分解成不同的子任务,并且找到分别完成子任务的设备。In this way, the federation management center can decompose the data collection task into different sub-tasks, and find the equipments that respectively complete the sub-tasks.
结合第五方面,在一种可能的实现方式中,第二设备用于接受或拒绝第一采集子任务;第三设备用于接受或拒绝第二采集子任务。With reference to the fifth aspect, in a possible implementation manner, the second device is configured to accept or reject the first collection subtask; the third device is configured to accept or reject the second collection subtask.
这样,数据采集系统中的一个或多个设备可以决定是否接受该数据采集任务。In this way, one or more devices in the data collection system can decide whether to accept the data collection task.
结合第五方面,在一种可能的实现方式中,第二设备接受或拒绝第一采集子任务,包括:第二设备用于:基于第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务。With reference to the fifth aspect, in a possible implementation manner, the second device accepting or rejecting the first collection subtask includes: the second device is configured to: determine to accept or reject the first acquisition subtask based on remaining resources in the second device. A collection subtask.
结合第五方面,在一种可能的实现方式中,第二设备用于基于所述第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务,包括:在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,第二设备用于向联邦管理中心发送第一消息,第一消息用于指示第二设备接受第一采集子任务;第二设备中的剩余资源包括第二设备中的剩余的计算资源和存储资源;在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备用于向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务。With reference to the fifth aspect, in a possible implementation manner, the second device is configured to determine to accept or reject the first collection subtask based on remaining resources in the second device, including: When the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the second device is used to send a first message to the federation management center, and the first message is used to instruct the second device to accept the first collection subtask Task; the remaining resources in the second device include the remaining computing resources and storage resources in the second device; when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask , the second device is used to send a second message to the federation management center, and the second message is used to instruct the second device to refuse to accept the first acquisition subtask.
这样,数据采集系统中的一个或多个设备可以根据设备中的剩余资源和执行该数据采集任务所需的待使用资源确定是否接受该数据采集任务。In this way, one or more devices in the data collection system can determine whether to accept the data collection task according to the remaining resources in the devices and the resources to be used required to perform the data collection task.
结合第五方面,在一种可能的实现方式中,所述联邦管理中心用于指示一个或多个设备提供所需的传感数据,包括:一个或多个设备用于与第一设备建立数据传输通道;一个或多个设备用于通过数据传输通道将所需的传感数据发送给第一设备。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to instruct one or more devices to provide the required sensing data, including: one or more devices are used to establish data with the first device Transmission channel: one or more devices are used to send the required sensing data to the first device through the data transmission channel.
这样,数据采集设备,即一个或多个设备,可以直接将采集到的传感数据发送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can directly send the collected sensing data to the data demand device, that is, the first device.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于将一个或多个设备发送的 所需的传感数据,发送给第一设备。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to send the required sensing data sent by one or more devices to the first device.
这样,数据采集设备,即一个或多个设备,可以通过联邦管理中心将采集的传感数据发送给数据需求设备,即第一设备。In this way, the data collection device, that is, one or more devices, can send the collected sensing data to the data demand device, that is, the first device through the federation management center.
结合第五方面,在一种可能的实现方式中,包括:联邦管理中心用于将一个或多个设备发送的传感器采集的原始信号或者第二语义信息,转化为第一语义信息,并将第一语义信息发送给第一设备。With reference to the fifth aspect, in a possible implementation manner, it includes: the federal management center is used to convert the original signal or the second semantic information collected by the sensor sent by one or more devices into the first semantic information, and convert the second semantic information into the first semantic information. A semantic message is sent to the first device.
这样,联邦管理中心可以将数据采集设备发送的传感器采集的原始信号或者低阶语义信息,转为数据需求设备所需的语义信息或者高阶语义信息。In this way, the federal management center can convert the original signal or low-level semantic information collected by the sensor sent by the data collection device into the semantic information or high-level semantic information required by the data demand device.
结合第五方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源小于第一采集子任务所需的待使用资源的情况下,第二设备向联邦管理中心发送第二消息,第二消息用于指示第二设备拒绝接受第一采集子任务;包括:联邦管理中心用于根据第一采集子任务和多个设备的传感能力信息,确定提供第一传感数据的第四设备。With reference to the fifth aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device sends a The second message, the second message is used to indicate that the second device refuses to accept the first collection subtask; including: the federation management center is used to determine to provide the first sensing subtask according to the first collection subtask and the sensing capability information of multiple devices data to the fourth device.
这样,当数据采集系统中的一个设备拒绝任务后,联邦管理中心还可以找到另一个设备执行该数据采集任务。In this way, when a device in the data collection system rejects the task, the federation management center can find another device to perform the data collection task.
结合第五方面,在一种可能的实现方式中,在第二设备确定第二设备中的剩余资源大于第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第一消息,所述第一消息用于指示所述第二设备接受第一采集子任务之后,包括:第二设备用于基于第一采集子任务采集第一传感数据;联邦管理中心确定第二设备处于异常状态,联邦管理中心确定提供第一传感数据的第四设备;异常状态包括第二设备的电池电量低于电量阈值、第二设备与联邦管理中心的连接断开、第二设备未处于佩戴状态、第二设备与电源断开中的一项或多项。With reference to the fifth aspect, in a possible implementation manner, when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first acquisition subtask, the second device sends the After the federation management center sends the first message, the first message is used to instruct the second device to accept the first collection subtask, including: the second device is used to collect the first sensory data based on the first collection subtask; the federation The management center determines that the second device is in an abnormal state, and the federal management center determines the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power threshold, and the connection between the second device and the federal management center is disconnected , the second device is not in the wearing state, and the second device is disconnected from the power source.
这样,当数据采集设备在执行数据采集任务中出现异常时,联邦管理中心还可以找另一个设备继续完成该数据采集任务。In this way, when the data collection device is abnormal in the execution of the data collection task, the federation management center can also find another device to continue to complete the data collection task.
结合第五方面,在一种可能的实现方式中,数据采集任务携带仲裁标识,仲裁标识用于指示一个或多个设备中的第五设备拒绝接受数据采集任务的次数超过预设阈值;联邦管理中心指示一个或多个设备提供所需的传感数据;包括:联邦管理中心用于基于第五设备的剩余资源,指示第五设备提供所需的传感数据。With reference to the fifth aspect, in a possible implementation manner, the data collection task carries an arbitration identifier, and the arbitration identifier is used to indicate that the number of times the fifth device in the one or more devices refuses to accept the data collection task exceeds a preset threshold; federated management The center instructs one or more devices to provide the required sensing data; including: the federal management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device.
这样,可以避免数据采集设备恶意拒绝接受数据采集任务。In this way, the data collection device can be prevented from maliciously refusing to accept the data collection task.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心用于向第五设备发送第三消息,所需第三消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;联邦管理中心接收第五设备发送的第五设备中的剩余资源、以及第五设备评估出的执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心指示第五设备提供数据采集任务所需的数据。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center is used to send the fifth device Sending a third message, the required third message is used to instruct the fifth device to send to the federation management center the remaining resources in the fifth device and the resources to be used estimated by the fifth device to perform data collection tasks; the federation management center Receive the remaining resources in the fifth device sent by the fifth device, and the resources to be used that are estimated by the fifth device to perform data collection tasks; if the remaining resources are greater than the required resources to be used, the federation management center instructs The fifth device provides the data required for the data collection task.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于基于第五设备的剩余资源,指示第五设备提供所需的传感数据,包括:联邦管理中心用于向第五设备发送第四消息,所需第四消息用于指示第五设备向联邦管理中心发送第五设备中的剩余资源;联邦管理中心用于接收第五设备发送的第五设备中的剩余资源;联邦管理中心用于基于数据采集任务,评估出第五设备执行数据采集任务所需的待使用资源;在剩余资源大于所需的待使用资源的情况下,联邦管理中心用于指示第五设备提供数据采集任务所需的数据。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to instruct the fifth device to provide the required sensing data based on the remaining resources of the fifth device, including: the federation management center is used to send the fifth device Sending a fourth message, the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center; the federation management center is used to receive the remaining resources in the fifth device sent by the fifth device; federation management The center is used to evaluate the resources to be used by the fifth device to perform the data collection task based on the data collection task; when the remaining resources are greater than the required resources to be used, the federation management center is used to instruct the fifth device to provide data collection data required for the task.
这样,联邦管理中心可以比较准确地评判第五设备是否能够接受数据采集任务。In this way, the federal management center can more accurately judge whether the fifth device can accept the data collection task.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于接收到多个设备的传感能力信息;联邦管理中心用于基于多个设备的传感能力信息和下载的第一知识图谱,推导出新的传感能力信息。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to receive the sensing capability information of multiple devices; Atlas to derive new sensory capability information.
这样,联邦管理中心可以获取数据采集系统中所有的传感能力信息。In this way, the federal management center can obtain all the sensing capability information in the data acquisition system.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于接收到多个设备中第六设备加入数据采集系统的消息以及第六设备的设备型号;联邦管理中心用于基于第六设备的设备型号,从第一服务器中获取第六设备的传感能力信息;第一服务器中存储有不同的设备型号、以及设备型号对应的传感能力信息。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to receive the message that the sixth device among the multiple devices joins the data collection system and the device model of the sixth device; For the device model of the device, the sensing capability information of the sixth device is acquired from the first server; different device models and sensing capability information corresponding to the device model are stored in the first server.
这样,每当有设备加入数据采集系统时,联邦管理中心可以更新该数据采集系统中的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can update the sensing capability information in the data collection system.
结合第五方面,在一种可能的实现方式中,联邦管理中心还用于基于第六设备的传感能力信息,以及第二知识图谱,推导出新的传感能力信息;第二知识图谱包括第一知识图谱,第二知识图谱中包含的传感能力信息比第一知识图谱中包含的传感能力信息多;联邦管理中心用于基于新的传感能力信息,更新联邦管理中心存储的传感能力信息。With reference to the fifth aspect, in a possible implementation manner, the federation management center is further configured to derive new sensing capability information based on the sensing capability information of the sixth device and the second knowledge graph; the second knowledge graph includes The first knowledge map, the sensing capability information contained in the second knowledge map is more than the sensing capability information contained in the first knowledge map; the federal management center is used to update the sensor capability information stored in the federal management center based on the new sensing capability information sensory information.
这样,每当有设备加入数据采集系统时,联邦管理中心还可以根据新加入设备的传感能力信息推导出新的传感能力信息。In this way, whenever a device is added to the data collection system, the federal management center can also derive new sensing capability information based on the sensing capability information of the newly added device.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于确定第六设备退出数据采集系统;联邦管理中心用于删除存储的第六设备的传感能力信息、以及删除基于第六设备的传感能力信息推导出的新的传感能力信息。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to determine that the sixth device exits the data collection system; the federation management center is used to delete the stored sensor capability information of the sixth device, and delete The new sensing capability information derived from the sensing capability information of the device.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于确定第六设备退出数据采集系统,包括:联邦管理中心用于在预设时长内未收到第六设备的发送的第五消息的情况下,联邦管理中心确定第六设备退出数据采集系统;第五消息用于指示第六设备在数据采集系统中。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to determine that the sixth device exits the data collection system, including: the federation management center is used to send the sixth device if it has not received the sixth device within a preset period of time. In the case of five messages, the federation management center determines that the sixth device exits the data collection system; the fifth message is used to indicate that the sixth device is in the data collection system.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于确定第六设备退出数据采集系统,包括:联邦管理中心用于接收到第六设备发送的第六消息,第六消息用于指示第六设备退出数据采集系统中。With reference to the fifth aspect, in a possible implementation manner, the federation management center is used to determine that the sixth device exits the data collection system, including: the federation management center is used to receive the sixth message sent by the sixth device, and the sixth message uses In order to instruct the sixth device to exit the data collection system.
结合第五方面,在一种可能的实现方式中,一个或多个设备中还包括第七设备,联邦管理中心用于向第七设备发送第一指示信息,第一指示信息用于指示在确定第七设备中采集的第三传感器数据处于第一状态的情况下,第七设备用于向所述联邦管理中心发送第三传感器数据;联邦管理中心用于接收第七设备发送的第三传感数据;联邦管理中心用于将第三传感数据发送给订阅第三传感数据的一个或多个设备。With reference to the fifth aspect, in a possible implementation manner, one or more devices further include a seventh device, and the federation management center is configured to send first indication information to the seventh device, and the first indication information is used to indicate When the third sensor data collected by the seventh device is in the first state, the seventh device is used to send the third sensor data to the federation management center; the federation management center is used to receive the third sensor data sent by the seventh device Data; the federation management center is used to send the third sensing data to one or more devices subscribed to the third sensing data.
结合第五方面,在一种可能的实现方式中,联邦管理中心用于接收第一设备发送的数据采集任务之后,该方法还包括:联邦管理中心用于基于数据采集任务、和联邦管理中心存储的传感数据;联邦管理中心用于确定联邦管理中心存储有数据采集任务所需的传感数据;联邦管理中心将所需的传感数据发送给第一设备。With reference to the fifth aspect, in a possible implementation manner, after the federation management center is configured to receive the data collection task sent by the first device, the method further includes: the federation management center is used to store data based on the data collection task, and the federation management center The federation management center is used to determine that the federation management center has stored the sensing data required for the data collection task; the federation management center sends the required sensing data to the first device.
结合第五方面,在一种可能的实现方式中,传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;第一知识图谱由联邦管理中心基于多个设备的传感能力信息生成;第二知识图谱存储在服务器中,第一知识图谱包括所述多个设备的传感数据、以及多个设备的传感数据之间的关联关系。当第四传感数据和第五传感数据可以计算或推导得到第六传感数据时,可以称第四传感数据与第五传感数据以及第六传感数据具有关联关系。With reference to the fifth aspect, in a possible implementation, the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; Sensitivity information is generated; the second knowledge map is stored in the server, and the first knowledge map includes the sensing data of the multiple devices and the association relationship between the sensing data of the multiple devices. When the fourth sensing data and the fifth sensing data can be calculated or derived to obtain the sixth sensing data, it can be said that the fourth sensing data has an associated relationship with the fifth sensing data and the sixth sensing data.
第六方面,提供一种电子设备,包括一个或多个处理器、一个或多个存储器、收发器;其中,收发器、一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器在执行计算机指令时,使得电子设备执行:接收第一电子设备发送的数据采集任务;与第一电子设备建立有通信连接;解析数据采集任务,确定数据采集任务中所需的第一传感器数据,以及提供第一传感器数据的第三电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;将数据采集任务发送给第三电子设备;接收第三电子设备采集到的第一传感器数据;将第一传感器数据发送给第一电子设备。In a sixth aspect, an electronic device is provided, including one or more processors, one or more memories, and a transceiver; wherein, the transceiver, one or more memories are coupled with one or more processors, and one or more The memory is used to store computer program codes, and the computer program codes include computer instructions. When one or more processors are executing computer instructions, the electronic equipment executes: receiving the data collection task sent by the first electronic equipment; There is a communication connection; analyze the data acquisition task, determine the first sensor data required in the data acquisition task, and provide the third electronic device for the first sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device, The data provided by the software in the third electronic device; sending the data collection task to the third electronic device; receiving the first sensor data collected by the third electronic device; sending the first sensor data to the first electronic device.
结合第六方面,在一种可能的实现方式中,该电子设备还用于执行:解析数据采集任务,确定数据采集任务中所需的第一传感器数据;从传感能力信息列表中查询到提供第一传感器数据的第三电子设备;传感能力信息列表用于存储数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。With reference to the sixth aspect, in a possible implementation manner, the electronic device is further configured to perform: parsing the data collection task, determining the first sensor data required in the data collection task; querying from the sensing capability information list to provide The third electronic device for the first sensor data; the sensing capability information list is used to store the identification of one or more sensor data included in the data acquisition system, and the identification of the electronic device providing the sensor data; one or more sensors The identifier of the data includes the identifier of the first sensor data, and the identifier of the electronic device includes the identifier of the third electronic device.
结合第六方面,在一种可能的实现方式中,该电子设备还用于执行:解析所述数据采集任务,确定数据采集任务的所需的第一语义信息,确定第一语义信息基于第一传感器数据得到;确定从传感能力信息列表中查询到提供传感器数据的第三电子设备;传感能力信息列表用于存储所述数据采集系统中包括的一种或多种传感器数据的标识、以及提供传感器数据的电子设备的标识;一种或多种传感器数据的标识中包括第一传感器数据的标识,电子设备的标识中包括第三电子设备的标识。With reference to the sixth aspect, in a possible implementation manner, the electronic device is further configured to perform: parsing the data collection task, determining first semantic information required by the data collection task, and determining the first semantic information based on the first The sensor data is obtained; it is determined that the third electronic device that provides the sensor data is queried from the sensing capability information list; the sensing capability information list is used to store the identification of one or more sensor data included in the data collection system, and The identification of the electronic device that provides the sensor data; the identification of one or more types of sensor data includes the identification of the first sensor data, and the identification of the electronic device includes the identification of the third electronic device.
结合第六方面,在一种可能的实现方式中,传感器数据的标识包括传感器数据的名称、ID、类型中的一项或多项;电子设备的标识包括电子设备的名称、设备ID。With reference to the sixth aspect, in a possible implementation manner, the identification of the sensor data includes one or more of the name, ID, and type of the sensor data; the identification of the electronic device includes the name of the electronic device and the device ID.
结合第六方面,在一种可能的实现方式中,该电子设备还用于执行:将数据采集任务分解为数据采集子任务,数据采集子任务用于指示第三电子设备采集第一传感器数据;将数据采集子任务发送给第三电子设备。With reference to the sixth aspect, in a possible implementation manner, the electronic device is further configured to: decompose the data collection task into data collection subtasks, and the data collection subtask is used to instruct the third electronic device to collect the first sensor data; Send the data collection subtask to the third electronic device.
结合第六方面,在一种可能的实现方式中,该电子设备还用于执行:确定确定所述数据采集任务的所需的第一语义信息,第一语义信息基于传感器数据得到;将数据采集任务分解为数据采集子任务和语义转换子任务,数据采集子任务用于指示第三电子设备采集传感器数据;语义转换子任务用于指示第三电子设备将采集的传感器数据转换为第一语义信息。With reference to the sixth aspect, in a possible implementation manner, the electronic device is further configured to: determine the first semantic information required for determining the data collection task, where the first semantic information is obtained based on sensor data; The task is decomposed into a data collection subtask and a semantic conversion subtask, the data collection subtask is used to instruct the third electronic device to collect sensor data; the semantic conversion subtask is used to instruct the third electronic device to convert the collected sensor data into first semantic information .
结合第六方面,在一种可能的实现方式中,该电子设备还用于执行:解析数据采集任务,确定数据采集任务中所需的第一传感器数据和第二传感器数据,以及提供第一传感器数据的第三电子设备和提供第二传感器数据的第四电子设备;第一传感器数据包括第三电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第二传感器数据包括第四电子设备中硬件传感器采集的数据、由第三电子设备中软件提供的数据;第一传感器数据的类型与第二传感器数据的类型不同。With reference to the sixth aspect, in a possible implementation manner, the electronic device is further configured to: analyze the data collection task, determine the first sensor data and the second sensor data required in the data collection task, and provide the first sensor data The third electronic device for the data and the fourth electronic device for providing the second sensor data; the first sensor data includes the data collected by the hardware sensor in the third electronic device, and the data provided by the software in the third electronic device; the second sensor data includes The data collected by the hardware sensor in the fourth electronic device and the data provided by the software in the third electronic device; the type of the first sensor data is different from the type of the second sensor data.
结合第六方面,在一种可能的实现方式中,数据采集任务中可以包括所需的第一传感器数据的第一采集参数;第一采集参数包括采集时长、采集周期、传感器数据精度、采集算子中的一项或多项;采集时长用于指示第三电子设备采集第一传感器数据的时长;采集周期用于指示第三电子设备采集第一传感器数据的周期;传感器数据精度用于指示第一传感器数据的精度;采集算子用于指示第一传感器数据的处理方法。In combination with the sixth aspect, in a possible implementation manner, the data collection task may include the first collection parameters of the first sensor data required; the first collection parameters include collection duration, collection period, sensor data accuracy, collection algorithm One or more items in the sub-items; the collection duration is used to indicate the duration for the third electronic device to collect the first sensor data; the collection cycle is used to indicate the cycle for the third electronic device to collect the first sensor data; the sensor data accuracy is used to indicate the first Accuracy of sensor data; the acquisition operator is used to indicate the processing method of the first sensor data.
第七方面,本申请提供了一种数据采集装置,包括一个或多个处理器、一个或多个存储器和收发器。收发器、该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用 于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得数据采集装置执行上述第一方面任一项可能的实现方式中的方法。In a seventh aspect, the present application provides a data collection device, including one or more processors, one or more memories, and a transceiver. The transceiver, the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the The data collection device executes the method in any possible implementation manner of the first aspect above.
第八方面,提供一种数据采集装置,该数据采集装置包括联邦管理中心模块。联邦管理中心可以用于接收数据需求设备中的传感联邦引擎模块发送的数据采集任务。联邦管理中心还可以将数据采集任务发送给数据采集设备的传感联邦引擎模块或者数据采集模块。联邦管理中心还可以接收数据采集设备发送的传感器采集的数据1或者由数据1得到的语义信息。In an eighth aspect, a data collection device is provided, and the data collection device includes a federation management center module. The federation management center can be used to receive data collection tasks sent by the sensor federation engine module in the data demand device. The federation management center can also send the data collection task to the sensor federation engine module or the data collection module of the data collection device. The federal management center can also receive the data 1 collected by the sensor sent by the data collection device or the semantic information obtained from the data 1 .
结合第八方面,在一种可能的实现方式中,联邦管理中心可以包括任务生成模块、任务分配调度模块、资源访问授权模块、语义推理模块、任务解析模块、设备加入/退出管理模块、传感能力管理模块、语义更新模块、以及语义融合和关联关系管理模块。其中:In combination with the eighth aspect, in a possible implementation, the federation management center may include a task generation module, a task allocation and scheduling module, a resource access authorization module, a semantic reasoning module, a task parsing module, a device joining/exiting management module, a sensor Capability management module, semantic update module, and semantic fusion and association relationship management module. in:
任务生成模块用于生成数据采集任务。The task generation module is used to generate data collection tasks.
任务分配调度模块用于向一个或多个数据采集设备分配数据采集任务。The task allocation and scheduling module is used to allocate data acquisition tasks to one or more data acquisition devices.
资源访问授权模块可以用于记录各个数据采集设备中授权的资源(例如,计算资源、存储资源等)、传感器能力。资源访问授权模块还可以用于对数据需求设备进行资源访问授权,即授权数据需求设备可以使用数据采集设备的哪些资源(例如,计算资源、存储资源等等)。The resource access authorization module can be used to record authorized resources (for example, computing resources, storage resources, etc.) and sensor capabilities in each data acquisition device. The resource access authorization module can also be used to authorize the resource access of the data demand device, that is, authorize the data demand device to use which resources of the data collection device (for example, computing resources, storage resources, etc.).
语义推理模块可以用于基于传感器采集的原始数据推理出语义信息、或者基于多个语义信息(又可以称为低阶语义信息)推理新的语义信息(又可以称为高阶语义信息)。可以理解的是,在本申请实施例中,高阶语义信息和低阶语义信息是相对概念。本申请实施例将多个可以推理得到或者生成新的语义信息的多个语义信息称为低阶语义信息,将由多个语义信息生成的新的语义信息称为高阶语义信息。例如,语义信息A和语义信息B可以推理得到或者生成语义信息C。那么语义信息A和语义信息B可以称为低阶语义信息,语义信息C可以称为高阶语义信息。The semantic inference module can be used to infer semantic information based on raw data collected by sensors, or infer new semantic information (also called high-order semantic information) based on multiple semantic information (also called low-order semantic information). It can be understood that, in the embodiment of the present application, high-level semantic information and low-level semantic information are relative concepts. In the embodiment of the present application, a plurality of semantic information that can be inferred or generated as new semantic information is referred to as low-level semantic information, and new semantic information generated from the plurality of semantic information is referred to as high-level semantic information. For example, semantic information A and semantic information B can be deduced or generated semantic information C. Then semantic information A and semantic information B can be called low-order semantic information, and semantic information C can be called high-order semantic information.
任务解析模块可以用于解析数据采集任务。The task parsing module can be used to parse data collection tasks.
设备加入/退出管理模块可以用于管理数据采集系统中的设备的加入和退出。The equipment joining/exiting management module can be used to manage the joining and exiting of equipment in the data acquisition system.
传感能力管理模块可以用于管理数据采集系统中各个设备的传感能力信息。在本申请实施例,传感能力信息可以包括设备中可以提供语义信息、语义信息的精度以及传感器采集的原始数据、原始数据的精度等等。The sensing capability management module can be used to manage the sensing capability information of each device in the data acquisition system. In this embodiment of the present application, the sensing capability information may include semantic information that can be provided by the device, the precision of the semantic information, raw data collected by the sensor, the precision of the raw data, and the like.
语义更新模块可以用于更新语义信息,并存储更新后语义信息。The semantic update module can be used to update semantic information and store the updated semantic information.
语义融合和关联关系管理模块可以用于进行语义信息的融合,知识融合以及语义信息之间关联关系的管理。在本申请实施例中,如语义信息A和语义信息B可以推出语义信息C,那么可以称语义信息A与语义信息B存在关联关系。The semantic fusion and relationship management module can be used for the fusion of semantic information, knowledge fusion and management of the relationship between semantic information. In the embodiment of the present application, if semantic information A and semantic information B can derive semantic information C, then it can be said that semantic information A and semantic information B have an association relationship.
第九方面,本申请提供了一种计算机可读存储介质,该计算机存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行上述第一方面至第四方面任一项可能的实现方式中的方法。In a ninth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are run on a computer, the computer is made to execute any possible implementation of any one of the first to fourth aspects above. methods in methods.
第十方面,本申请提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面至第四方面任一项可能的实现方式中的方法。In a tenth aspect, the present application provides a computer program product, which, when running on a computer, causes the computer to execute the method in any one possible implementation manner of the first aspect to the fourth aspect above.
附图说明Description of drawings
图1是本申请实施例提供的数据采集系统10的架构示意图;FIG. 1 is a schematic diagram of the architecture of a data acquisition system 10 provided by an embodiment of the present application;
图2是本申请实施例提供的数据采集系统10的场景示意图;FIG. 2 is a schematic diagram of a scene of a data acquisition system 10 provided in an embodiment of the present application;
图3是本申请实施例提供的数据采集系统10中数据需求设备20、联邦管理中心30、数 据采集设备40的软件架构示意图;Fig. 3 is the software architecture diagram of data demand equipment 20, federation management center 30, data acquisition equipment 40 in the data acquisition system 10 that the embodiment of the application provides;
图4是本申请实施例提供的传感联邦引擎的软件架构示意图;Fig. 4 is a schematic diagram of the software architecture of the sensor federation engine provided by the embodiment of the present application;
图5是本申请实施例提供的联邦管理中心的软件架构示意图;Fig. 5 is a schematic diagram of the software architecture of the federal management center provided by the embodiment of the present application;
图6是本申请实施例提供的一种语义信息的知识图谱示意图;FIG. 6 is a schematic diagram of a knowledge graph of semantic information provided by an embodiment of the present application;
图7A是本申请实施例提供的一种手机104的用户界面70A示意图;FIG. 7A is a schematic diagram of a user interface 70A of a mobile phone 104 provided in an embodiment of the present application;
图7B是本申请实施例提供的一种手机104的用户界面70B示意图;FIG. 7B is a schematic diagram of a user interface 70B of a mobile phone 104 provided in an embodiment of the present application;
图7C是本申请实施例提供的一种手机104的用户界面70C示意图;FIG. 7C is a schematic diagram of a user interface 70C of a mobile phone 104 provided in an embodiment of the present application;
图7D是本申请实施例提供的一种手机104的用户界面70D示意图;FIG. 7D is a schematic diagram of a user interface 70D of a mobile phone 104 provided in an embodiment of the present application;
图7E是本申请实施例提供的一种手机104的用户界面70E示意图;FIG. 7E is a schematic diagram of a user interface 70E of a mobile phone 104 provided in an embodiment of the present application;
图8A是本申请实施例提供的一种手机104的用户界面80A示意图;FIG. 8A is a schematic diagram of a user interface 80A of a mobile phone 104 provided in an embodiment of the present application;
图8B是本申请实施例提供的一种手机104的用户界面80B示意图;FIG. 8B is a schematic diagram of a user interface 80B of a mobile phone 104 provided in an embodiment of the present application;
图8C是本申请实施例提供的一种手机104的用户界面80C示意图;FIG. 8C is a schematic diagram of a user interface 80C of a mobile phone 104 provided in an embodiment of the present application;
图8D是本申请实施例提供的一种手机104的用户界面80D示意图;FIG. 8D is a schematic diagram of a user interface 80D of a mobile phone 104 provided in an embodiment of the present application;
图8E是本申请实施例提供的一种手机104的用户界面80E示意图;FIG. 8E is a schematic diagram of a user interface 80E of a mobile phone 104 provided in an embodiment of the present application;
图8F是本申请实施例提供的一种手机104的用户界面80F示意图;FIG. 8F is a schematic diagram of a user interface 80F of a mobile phone 104 provided in an embodiment of the present application;
图8G是本申请实施例提供的一种平板105的用户界面80G示意图;FIG. 8G is a schematic diagram of a user interface 80G of a tablet 105 provided in an embodiment of the present application;
图8H是本申请实施例提供的一种手机104的用户界面80H示意图;FIG. 8H is a schematic diagram of a user interface 80H of a mobile phone 104 provided in an embodiment of the present application;
图8I是本申请实施例提供的一种手机104的用户界面80I示意图;FIG. 8I is a schematic diagram of a user interface 80I of a mobile phone 104 provided in an embodiment of the present application;
图9A是本申请实施例提供的一种平板105的用户界面90A示意图;FIG. 9A is a schematic diagram of a user interface 90A of a tablet 105 provided in an embodiment of the present application;
图9B是本申请实施例提供的一种平板105的用户界面90B示意图;FIG. 9B is a schematic diagram of a user interface 90B of a tablet 105 provided in an embodiment of the present application;
图9C是本申请实施例提供的一种平板105的用户界面90C示意图;FIG. 9C is a schematic diagram of a user interface 90C of a tablet 105 provided in an embodiment of the present application;
图9D是本申请实施例提供的一种手机104的用户界面90D示意图;FIG. 9D is a schematic diagram of a user interface 90D of a mobile phone 104 provided in an embodiment of the present application;
图9E是本申请实施例提供的一种平板105的用户界面90E示意图;FIG. 9E is a schematic diagram of a user interface 90E of a tablet 105 provided in an embodiment of the present application;
图9F是本申请实施例提供的一种平板105的用户界面90F示意图;FIG. 9F is a schematic diagram of a user interface 90F of a tablet 105 provided in an embodiment of the present application;
图9G是本申请实施例提供的一种平板105的用户界面90G示意图;FIG. 9G is a schematic diagram of a user interface 90G of a tablet 105 provided in an embodiment of the present application;
图10是本申请实施例提供的一种数据采集方法的流程示意图;FIG. 10 is a schematic flow chart of a data collection method provided by an embodiment of the present application;
图11是本申请实施例提供的一种数据采集任务处理流程示意图;FIG. 11 is a schematic diagram of a data acquisition task processing flow provided by an embodiment of the present application;
图12是本申请实施例提供的确定目标数据采集设备的流程示意图;FIG. 12 is a schematic flow diagram of determining a target data collection device provided by an embodiment of the present application;
图13A是本申请实施例提供的数据采集设备如何确定是否接受数据采集任务的流程示意图;Fig. 13A is a schematic flow diagram of how the data collection device provided in the embodiment of the present application determines whether to accept the data collection task;
图13B是本申请实施例提供的在仲裁模式时,如何确定数据采集设备是否接受数据采集任务的流程示意图;FIG. 13B is a schematic flowchart of how to determine whether the data collection device accepts the data collection task in the arbitration mode provided by the embodiment of the present application;
图13C是本申请实施例提供的数据采集设备如何确定是否接受数据采集任务的流程示意图;Fig. 13C is a schematic flow diagram of how the data collection device provided in the embodiment of the present application determines whether to accept the data collection task;
图14A是本申请实施例提供的数据采集设备40与数据需求设备20建立数据传输通道的具体步骤示意图;FIG. 14A is a schematic diagram of specific steps for establishing a data transmission channel between the data acquisition device 40 and the data demand device 20 provided by the embodiment of the present application;
图14B是本申请实施例提供的联邦管理中心30分别与数据需求设备20、数据采集设备40建立数据传输通道的具体步骤示意图;FIG. 14B is a schematic diagram of specific steps for establishing a data transmission channel between the federal management center 30 and the data demand device 20 and the data collection device 40 provided by the embodiment of the present application;
图15A是本申请实施例提供的数据采集设备40通过联邦管理中心30将采集的传感器数据发送给数据需求设备20具体步骤示意图;FIG. 15A is a schematic diagram of specific steps for the data collection device 40 to send the collected sensor data to the data demand device 20 through the federation management center 30 provided by the embodiment of the present application;
图15B是本申请实施例提供的数据采集设备40以及联邦管理中心30如何处理数据采集 设备40发生异常事件的具体步骤示意图;Fig. 15B is a schematic diagram of specific steps of how the data collection device 40 provided by the embodiment of the application and how the federation management center 30 handles an abnormal event in the data collection device 40;
图15C是本申请实施例提供的数据采集设备40对采集的传感器数据的处理流程示意图;FIG. 15C is a schematic diagram of the processing flow of the collected sensor data by the data collection device 40 provided in the embodiment of the present application;
图16是本申请实施例提供的一种数据采集系统的具体应用场景示意图;FIG. 16 is a schematic diagram of a specific application scenario of a data acquisition system provided by an embodiment of the present application;
图17是本申请实施例提供的数据采集场景的具体软件模型实现流程示意图;FIG. 17 is a schematic diagram of a specific software model implementation process of the data collection scene provided by the embodiment of the present application;
图18是本申请实施例提供的电子设备的结构示意图。FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Plural expressions are included unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in this application refers to and includes any and all possible combinations of one or more of the listed items.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more.
首先,介绍本申请实施例提供的一种数据采集系统。First, a data collection system provided by the embodiment of the present application is introduced.
图1示例性地示出了本申请实施例提供的一种数据采集系统10。如图1所示,该数据采集系统中包括一个或多个数据需求设备,联邦管理中心以及一个或多个数据采集设备。在该数据采集系统10中,该联邦管理中心可以在数据需求设备中,也可以在数据采集设备中。或者该联邦管理中心也可以在除数据需求设备和数据采集设备之外的电子设备、或者云服务器、服务器中。或者该联邦管理中心可以分布式地部署在多个电子设备中,即多个电子设备可以一起作为该数据采集系统10中的联邦管理中心。FIG. 1 exemplarily shows a data acquisition system 10 provided by an embodiment of the present application. As shown in Figure 1, the data collection system includes one or more data demand devices, a federation management center and one or more data collection devices. In the data collection system 10, the federation management center may be in the data demand device or in the data collection device. Or the federation management center can also be located in an electronic device other than the data demand device and the data collection device, or a cloud server or server. Or the federation management center can be deployed in multiple electronic devices in a distributed manner, that is, multiple electronic devices can serve as the federation management center in the data collection system 10 together.
该数据采集系统10中的数据需求设备、数据采集设备以及联邦管理中心所在的电子设备或者云服务器、服务器可以通过无线局域网(wirelesslocalareanetworks,WLAN)、或者蜂窝网络、蓝牙以及分布式软总线等建立通信连接。本申请实施例对该数据采集系统10中数据需求设备、数据采集设备以及作为联邦管理中心所在的电子设备或者云服务器、服务器建立通信连接的方式不作限定。In the data acquisition system 10, the data demand equipment, the data acquisition equipment, and the electronic equipment or cloud server where the federation management center is located, and the server can establish communication through wireless local area networks (wireless local area networks, WLAN), or cellular networks, bluetooth, and distributed soft buses, etc. connect. The embodiment of the present application does not limit the data demand device, the data collection device, and the electronic device as the federation management center, or the cloud server, or the way in which the server establishes a communication connection in the data collection system 10 .
可以理解的是,分布式软总线可以是支持各类有线、无线通信协议的上层软件通信总线系统,是手机、平板、智能穿戴、智慧屏、车机等等电子设备的通信基座,可以为设备之间的互联互通提供通信能力。It is understandable that the distributed soft bus can be an upper-level software communication bus system that supports various wired and wireless communication protocols, and is a communication base for electronic devices such as mobile phones, tablets, smart wearables, smart screens, and cars. Interconnection between devices provides communication capabilities.
具体地,数据需求设备可以与联邦管理中心所在的电子设备或云服务器、服务器建立通信连接。数据需求设备与作为联邦管理中心的电子设备或云服务器、服务器可以通过无线局域网(wirelesslocalareanetworks,WLAN)、蜂窝网络、蓝牙或者分布式软总线或者通用串行总线(universalserialbus,USB)连接线等建立通信连接。本申请实施例对数据需求设备与联邦管理中心所在的电子设备或云服务器、服务器建立通信连接的具体方式不作限定。Specifically, the data demand device can establish a communication connection with the electronic device or cloud server or server where the federation management center is located. The data demand device and the electronic device or cloud server as the federal management center can establish communication through wireless local area network (wireless local area network, WLAN), cellular network, Bluetooth or distributed soft bus or universal serial bus (universal serial bus, USB) connection line, etc. connect. The embodiment of the present application does not limit the specific manner in which the data demand device establishes a communication connection with the electronic device, cloud server, or server where the federation management center is located.
数据采集设备也可以与联邦管理中心所在的电子设备或云服务器、服务器建立通信连接。数据采集设备与联邦管理中心所在的电子设备或云服务器、服务器可以通过WLAN、蜂窝网络、蓝牙或者分布式软总线、USB连接线等建立通信连接。本申请实施例对数据采集设备与联邦管理中心所在的电子设备或云服务器、服务器建立通信连接的具体方式不作限定。The data collection device can also establish a communication connection with the electronic device or cloud server or server where the federal management center is located. The data acquisition equipment and the electronic equipment or cloud server where the federal management center is located, and the server can establish a communication connection through WLAN, cellular network, Bluetooth or distributed soft bus, USB cable, etc. The embodiment of the present application does not limit the specific manner in which the data collection device establishes a communication connection with the electronic device, cloud server, or server where the federation management center is located.
数据需求设备可以通过联邦管理中心所在的设备与数据需求设备建立通信连接。可选地, 数据需求设备也可以直接与数据采集设备建立通信连接。数据需求设备与数据采集设备之间可以通过WLAN、蜂窝网络、蓝牙或者分布式软总线、USB连接线等建立通信连接。本申请实施例对此不作限定。The data demand device can establish a communication connection with the data demand device through the device where the federation management center is located. Optionally, the data demand device may also directly establish a communication connection with the data collection device. A communication connection can be established between the data demand device and the data acquisition device through WLAN, cellular network, Bluetooth or distributed soft bus, USB cable, etc. This embodiment of the present application does not limit it.
其中,数据需求设备可以用于发送数据请求任务,并且获取一个或多个数据采集设备基于该数据请求任务采集到的传感器数据或者根据传感器数据得到的语义信息。Wherein, the data demand device may be used to send a data request task, and obtain sensor data collected by one or more data collection devices based on the data request task or semantic information obtained from the sensor data.
联邦管理中心可以用于基于数据需求设备发送的采集数据请求,确定是否有满足该采集数据请求的数据采集设备。The federal management center can be used to determine whether there is a data collection device that meets the data collection request based on the data collection request sent by the data demand device.
联邦管理中心还可以用于将数据采集设备中传感器采集的数据进行处理,得到传感器采集到的数据对应的语义信息。The federal management center can also be used to process the data collected by the sensors in the data collection device to obtain semantic information corresponding to the data collected by the sensors.
数据采集设备可以用于基于采集数据任务采集传感器的原始数据,或者对采集到的传感器的原始数据处理为语义信息。The data collection device can be used to collect raw sensor data based on the data collection task, or process the collected raw sensor data into semantic information.
在一种可能的实现方式中,数据需求设备可以向联邦管理中心发送数据采集请求,联邦管理中心可以将该数据采集请求发送给一个或多个数据采集设备。数据采集设备可以基于该数据采集请求采集数据。数据采集设备可以通过联邦管理中心可以将采集的数据发送给数据需求设备。In a possible implementation manner, the data demand device may send a data collection request to the federation management center, and the federation management center may send the data collection request to one or more data collection devices. The data collection device can collect data based on the data collection request. The data collection device can send the collected data to the data demand device through the federation management center.
在另一种可能的实现方式中,数据需求设备可以直接向数据采集设备发送数据采集请求。数据采集设备基于该数据采集请求采集数据,并将采集的数据发送给数据需求设备。In another possible implementation manner, the data demand device may directly send the data collection request to the data collection device. The data collection device collects data based on the data collection request, and sends the collected data to the data demand device.
数据需求设备中的传感器以及传感器的能力有限。数据需求设备可能在执行某一些任务或者实现某一些功能时,数据需求设备中不能提供符合这些任务或功能的需求的传感器数据。例如,智能空调、智能电视、智能洗衣机等等设备。联邦管理中心模块可以部署在具备较强的数据处理能力和运算能力的一个或多个电子设备(例如,智能手机、电脑、平板等等)或云服务器、服务器中。数据采集设备可以是具有可以采集数据的传感器的设备。数据采集设备也可以是仅由单个传感器组成的设备。例如,智能摄像头、温度传感器等等。可以理解的是,本申请实施例对数据需求设备、联邦管理中心所在的设备、以及数据采集设备不作限定。Sensors in data demanding devices and the capabilities of sensors are limited. The data-requiring device may perform certain tasks or realize certain functions, but the data-requiring device cannot provide sensor data that meets the requirements of these tasks or functions. For example, smart air conditioners, smart TVs, smart washing machines and other equipment. The federation management center module can be deployed in one or more electronic devices (such as smart phones, computers, tablets, etc.) or cloud servers or servers with strong data processing capabilities and computing capabilities. A data collection device may be a device with sensors that can collect data. A data acquisition device can also be a device consisting of only a single sensor. For example, smart cameras, temperature sensors, and more. It can be understood that the embodiment of the present application does not limit the data demand device, the device where the federation management center is located, and the data collection device.
可以理解的是,在数据采集系统中的单个电子设备,可以随着数据采集任务发起方的变换,该电子设备在数据采集系统中的承担的设备角色(即:数据需求设备、联邦管理中心、数据采集设备)也可能会随之发生变化。在数据采集系统10中,联邦管理中心可以分布式地部署在多个电子设备中。关于多个电子设备如何组建数据采集系统,将在下文中详细描述,此处先不赘述。It can be understood that, for a single electronic device in the data collection system, as the initiator of the data collection task changes, the role of the electronic device in the data collection system (ie: data demand device, federation management center, data acquisition equipment) may also change accordingly. In the data collection system 10, the federation management center can be deployed in multiple electronic devices in a distributed manner. How multiple electronic devices form a data acquisition system will be described in detail below, and details will not be repeated here.
可以理解的是,在一些实施例中,数据需求设备、联邦管理中心所在的电子设备以及数据采集设备均可以称为电子设备,或者终端。本申请实施例对数据需求设备、联邦管理中心所在的电子设备以及数据采集设备的名称不作限定。It can be understood that, in some embodiments, the data demand device, the electronic device where the federation management center is located, and the data collection device can all be called electronic devices or terminals. The embodiment of the present application does not limit the names of the data demand device, the electronic device where the federation management center is located, and the data collection device.
在本申请实施例中,上述数据采集系统10可以称为传感联邦,传感联邦用于将分布在多个设备的传感器数据进行融合、调度以及管理。传感联邦由多个电子设备组成,在传感联邦内,每个电子设备可以提供该电子设备中的一个或多个传感器(具体数量、和具体传感器可由电子设备设定)的数据。传感联邦可以将传感联邦内的多个电子设备的传感器数据进行融合、调度以及管理。该传感器数据可以是电子设备中的传感器采集的原始数据或者将原始数据进行处理得到的数据。该传感数据可以是通过软件获取或计算得到数据,或硬件传感器的数据。In the embodiment of the present application, the above-mentioned data collection system 10 may be referred to as a sensor federation, and the sensor federation is used to fuse, schedule, and manage sensor data distributed in multiple devices. A sensor federation is composed of multiple electronic devices. In a sensor federation, each electronic device can provide data of one or more sensors in the electronic device (the specific number and specific sensors can be set by the electronic device). The sensor federation can fuse, schedule and manage the sensor data of multiple electronic devices in the sensor federation. The sensor data may be raw data collected by a sensor in the electronic device or data obtained by processing the raw data. The sensing data may be data acquired or calculated by software, or data of hardware sensors.
在本申请实施例中,语义信息可以是将传感器采集到的原始数据或者原始数据处理后得到的数据处理得到的电子设备可识别和可处理的信息。例如,温度传感器采集的原始温度波 形信号,可以被处理成为电子设备可理解和应用的语义信息(例如,26℃(摄氏度))。In this embodiment of the present application, the semantic information may be information that is identifiable and processable by an electronic device obtained by processing raw data collected by a sensor or data obtained after processing the raw data. For example, the original temperature waveform signal collected by the temperature sensor can be processed into semantic information that can be understood and applied by electronic equipment (for example, 26°C (Celsius)).
可以理解的是,传感器采集的原始数据可由于场景、应用需求等约束的不同被处理成为不同的语义信息。例如,温度传感器提供的测量结果可以根据该温度传感器部署位置的不同,被处理为“室内温度”或者“室外温度”。再例如,摄像头提供的图像信号可根据应用需求的不同而被处理成为“身份”或者“年龄”等不同语义信息。可以理解的是,不同型号、精度、类型的传感器数据也可能被处理成为同样的语义信息。例如,麦克风采集的语音信号可被处理为“身份”的语义信息,摄像头采集到的图像信号也可以被处理为“身份”的语义信息。It can be understood that the raw data collected by sensors can be processed into different semantic information due to different constraints such as scenarios and application requirements. For example, the measurement result provided by the temperature sensor may be treated as "indoor temperature" or "outdoor temperature" according to the deployment location of the temperature sensor. For another example, the image signal provided by the camera can be processed into different semantic information such as "identity" or "age" according to different application requirements. It is understandable that sensor data of different models, precisions, and types may also be processed into the same semantic information. For example, the voice signal collected by the microphone can be processed as the semantic information of "identity", and the image signal collected by the camera can also be processed as the semantic information of "identity".
可以理解的是,在一些实施例当中,语义信息不仅包含电子设备可直接应用的信息,还可以包括用于描述语义信息的元数据,例如,元数据可以是语义信息的类型、属性、精度、约束等信息。该元数据可辅助电子设备更加有效的处理和应用传感数据。It can be understood that, in some embodiments, the semantic information not only includes information directly applicable to the electronic device, but also includes metadata used to describe the semantic information. For example, the metadata can be the type, attribute, precision, Constraints and other information. The metadata can assist electronic devices to process and apply sensory data more efficiently.
在本申请实施例中,上述语义信息和传感器数据、传感器采集到的原始数据、原始信号等统称为传感数据。In the embodiment of the present application, the above-mentioned semantic information, sensor data, raw data collected by the sensor, raw signal, etc. are collectively referred to as sensory data.
可以理解的是,上述图1中示出的数据采集系统10可以应用在多种场景中,例如,家庭场景(将家庭中的电子设备组建成数据采集系统)、工作场景(将工作场所中一个或多个用户的电子设备组建成数据采集系统)、或者其他场景。不同场景的数据采集系统中电子设备的数量增减频次,以及在数据采集系统中的作为联邦管理中心的电子设备的更换频次不同。例如,在家庭场景中,数据采集系统中的电子设备的数量增减频次较低(可能长时间内不会有新的电子设备的加入),以及作为联邦管理中心的电子设备的更换频次较低。在办公场景中,数据采集系统中的电子设备的数量增减频次较高,以及作为作为联邦管理中心的电子设备的更换频次也较高。本申请实施例对数据采集系统10的使用场景不作限定。It can be understood that the above-mentioned data collection system 10 shown in FIG. or multiple users' electronic devices to form a data acquisition system), or other scenarios. The frequency of increase or decrease in the number of electronic devices in the data collection system in different scenarios, as well as the frequency of replacement of electronic devices serving as the federal management center in the data collection system are different. For example, in the household scenario, the frequency of increase or decrease of the number of electronic devices in the data collection system is low (maybe no new electronic devices will be added for a long time), and the frequency of replacement of electronic devices serving as the federal management center is low . In office scenarios, the number of electronic devices in the data collection system increases or decreases frequently, and the frequency of replacement of electronic devices serving as the federal management center is also high. The embodiment of the present application does not limit the usage scenarios of the data acquisition system 10 .
下面将以一个具体的场景来介绍上述图1中示出的数据采集系统10。以个人家庭场景为例,可以将一个用户家庭中的空调、平板、手机、手表、摄像头、空气质量传感器等等电子设备组建成一个数据采集系统。The data collection system 10 shown in FIG. 1 will be described below in a specific scenario. Taking the personal home scene as an example, electronic devices such as air conditioners, tablets, mobile phones, watches, cameras, air quality sensors, etc. in a user's home can be combined into a data acquisition system.
图2示例性地示出了一种家庭场景中的数据采集系统。如图2所示,该家庭场景中的数据采集系统可以包括空调101、摄像头102、手表103、手机104、平板105、空气质量传感器106。空调101可以作为该数据采集系统中的数据需求设备。摄像头102、手表103、平板105、空气质量传感器106均可以采集数据。摄像头102、手表103、平板105、空气质量传感器106均可以作为该数据采集系统中的数据采集设备。例如,摄像头102可以采集用户身份(老人、小孩、中青年人等)、用户位置等数据。手表103可以采集用户状态(睡眠、工作学习、运动等)、以及用户体温等数据。平板105可以采集用户状态睡眠、工作学习、运动等)、用户身份(老人、小孩、中青年人等)、用户健康状态等数据。空气质量传感器106可以采集室内外空气的气压、湿度、PM2.5(空气中细颗粒物)等数据。其中,手机104可以作为该数据采集系统中的联邦管理中心。空调101可以通过手机104获取到摄像头102、手表103、手机104、平板105、空气质量传感器106等电子设备采集到的数据。空调101可以基于摄像头102、手表103、平板105、空气质量传感器106等电子设备采集到的数据来调节空调的工作模式。这样,空调101可以不用存在传感器,也可以获取可以智能调节空调工作模式的用户信息、或者环境情况。Fig. 2 exemplarily shows a data collection system in a home scene. As shown in FIG. 2 , the data collection system in this home scene may include an air conditioner 101 , a camera 102 , a watch 103 , a mobile phone 104 , a tablet 105 , and an air quality sensor 106 . The air conditioner 101 can be used as a data demand device in the data collection system. The camera 102, watch 103, tablet 105, and air quality sensor 106 can all collect data. Camera 102, watch 103, tablet 105, and air quality sensor 106 can all be used as data collection devices in the data collection system. For example, the camera 102 may collect data such as user identity (the elderly, children, young and middle-aged people, etc.), user location, and the like. The watch 103 can collect data such as user status (sleep, work and study, exercise, etc.), and user body temperature. Tablet 105 can collect data such as user status (sleep, work, study, exercise, etc.), user identity (old people, children, young and middle-aged people, etc.), user health status. The air quality sensor 106 can collect data such as air pressure, humidity, and PM2.5 (fine particulate matter in the air) of indoor and outdoor air. Wherein, the mobile phone 104 can be used as the federal management center in the data collection system. The air conditioner 101 can obtain data collected by electronic devices such as a camera 102 , a watch 103 , a mobile phone 104 , a tablet 105 , and an air quality sensor 106 through a mobile phone 104 . The air conditioner 101 can adjust the working mode of the air conditioner based on the data collected by electronic devices such as the camera 102 , the watch 103 , the tablet 105 , and the air quality sensor 106 . In this way, the air conditioner 101 does not need a presence sensor, and can also acquire user information or environmental conditions that can intelligently adjust the working mode of the air conditioner.
可选地,在一种可能的实现方式中,数据采集系统中的一个设备获取另一个设备的用户信息、传感数据之前,需要先获取另一个设备的用户的授权。Optionally, in a possible implementation manner, before one device in the data collection system obtains user information and sensing data of another device, it needs to obtain authorization from a user of another device.
示例性地,数据需求设备、联邦管理中心、数据采集设备的框架图可以如图3所示。图3示例性地示出了数据采集系统10中的数据需求设备20、联邦管理中心30以及数据采集设 备40的软件框架示意图。Exemplarily, a frame diagram of the data demand device, the federation management center, and the data collection device may be as shown in FIG. 3 . Fig. 3 exemplarily shows a schematic diagram of the software framework of the data demand device 20, the federation management center 30 and the data collection device 40 in the data collection system 10.
如图3所示,数据需求设备20可以包括应用层201、传感联邦引擎模块202。其中,应用层201中可以包括一个或多个应用程序,例如,应用程序APP2011、应用程序APP2012等应用程序。本申请实施例对数据需求设备20中包含的应用程序的数量以及应用程序的具体类型不作限定。数据需求设备20中的应用层201的某个应用程序可以发起数据采集请求。然后,传感联邦引擎模块202可以将该数据采集请求生成数据采集任务。传感联邦引擎模块202可以将该数据采集任务发送给联邦管理中心30。As shown in FIG. 3 , the data demand device 20 may include an application layer 201 and a sensor federation engine module 202 . Wherein, the application layer 201 may include one or more application programs, for example, application program APP2011, application program APP2012 and other application programs. The embodiment of the present application does not limit the number of application programs included in the data demand device 20 and the specific types of application programs. An application program of the application layer 201 in the data demand device 20 may initiate a data collection request. Then, the sensor federation engine module 202 may generate a data collection task from the data collection request. The sensor federation engine module 202 may send the data collection task to the federation management center 30 .
如图3所示,联邦管理中心30可以接收数据需求设备20中的传感联邦引擎模块202发送的数据采集任务。联邦管理中心30还可以将数据采集任务发送给数据采集设备40的传感联邦引擎模块401或者数据采集模块402。联邦管理中心30还可以接收数据采集设备40发送的传感器采集的数据1或者由数据1得到的语义信息。具体地,联邦管理中心30可以接收到数据采集设备40中传感联邦引擎模块401或者数据采集模块402发送的传感器采集的数据1或者由数据1得到的语义信息。联邦管理中心30可以用于接收到的数据1发送给数据需求设备20中的传感联邦引擎模块202。或者,联邦管理中心30还可以将接收到的数据1变换为语义信息后,将该语义信息发送给传感联邦引擎模块202。As shown in FIG. 3 , the federation management center 30 may receive the data collection task sent by the sensor federation engine module 202 in the data demand device 20 . The federation management center 30 may also send the data collection task to the sensor federation engine module 401 or the data collection module 402 of the data collection device 40 . The federal management center 30 can also receive the data 1 collected by the sensor sent by the data collection device 40 or the semantic information obtained from the data 1 . Specifically, the federation management center 30 may receive the data 1 collected by the sensor or the semantic information obtained from the data 1 sent by the sensor federation engine module 401 or the data collection module 402 in the data collection device 40 . The federation management center 30 can send the received data 1 to the sensor federation engine module 202 in the data demand device 20 . Alternatively, the federation management center 30 may convert the received data 1 into semantic information, and then send the semantic information to the sensor federation engine module 202 .
如图3所示,数据采集设备40中可以包括数据采集模块402。可选地,数据采集设备40还可以包括传感联邦引擎模块401。可以理解的是,在一些数据采集设备40中,可以不包含传感联邦引擎模块401。数据采集模块402可以直接接收联邦管理中心30发送的数据采集任务,或者通过传感联邦引擎模块401接收联邦管理中心30发送的数据采集任务。数据采集模块402可以基于该数据采集任务,将采集的数据1发送给联邦管理中心30、或者将采集的数据1发送给传感联邦引擎模块401,经传感联邦引擎模块401将数据1转换成对应的语义信息后再发送给联邦管理中心30。As shown in FIG. 3 , the data collection device 40 may include a data collection module 402 . Optionally, the data collection device 40 may also include a sensor federation engine module 401 . It can be understood that, in some data collection devices 40, the sensor federation engine module 401 may not be included. The data collection module 402 can directly receive the data collection task sent by the federation management center 30 , or receive the data collection task sent by the federation management center 30 through the sensing federation engine module 401 . The data collection module 402 can send the collected data 1 to the federation management center 30 based on the data collection task, or send the collected data 1 to the sensor federation engine module 401, and the sensor federation engine module 401 converts the data 1 into The corresponding semantic information is then sent to the federal management center 30 .
可选地,数据采集设备40可以将采集的数据1或由数据1得到的语义信息直接发送给数据需求设备20。具体地,数据采集设备40中的传感联邦引擎模块401可以将数据采集模块402采集到的数据1或由数据1得到的语义信息直接发送给数据需求设备20。Optionally, the data collection device 40 may directly send the collected data 1 or the semantic information obtained from the data 1 to the data demand device 20 . Specifically, the sensor federation engine module 401 in the data collection device 40 can directly send the data 1 collected by the data collection module 402 or the semantic information obtained from the data 1 to the data demand device 20 .
可以理解的是,数据采集模块402可以是数据采集设备40中具体的硬件传感器,也可以是数据采集设备40中用于采集数据的一些软件模块或者算法,本申请实施例对此不作限定。It can be understood that the data collection module 402 may be a specific hardware sensor in the data collection device 40, or some software modules or algorithms for collecting data in the data collection device 40, which is not limited in this embodiment of the present application.
如图3所示,联邦管理中心30可以接收到数据采集模块402发送的数据1,然后将该数据转换成对应的语义信息后发送给传感联邦引擎模块202。As shown in FIG. 3 , the federation management center 30 may receive the data 1 sent by the data collection module 402 , and then convert the data into corresponding semantic information and send it to the sensor federation engine module 202 .
可选地,在另一种可能的实现方式中,联邦管理中心30可以接收到传感联邦引擎模块401发送的语义信息。Optionally, in another possible implementation manner, the federation management center 30 may receive the semantic information sent by the sensing federation engine module 401 .
联邦管理中心30可以将语义信息发送给传感联邦引擎模块202。传感联邦引擎模块202可以将该语义信息发送给数据需求设备20中发起数据采集请求的应用程序。The federation management center 30 can send the semantic information to the sensing federation engine module 202 . The sensor federation engine module 202 can send the semantic information to the application program in the data demand device 20 that initiates the data collection request.
传感联邦引擎模块202、以及传感联邦引擎模块401的具体功能将在图4中具体介绍,此处先不赘述。联邦管理中心30的具体功能将在图5中具体介绍,此处不在赘述。The specific functions of the sensor federation engine module 202 and the sensor federation engine module 401 will be introduced in detail in FIG. 4 , and will not be repeated here. The specific functions of the federation management center 30 will be introduced in detail in FIG. 5 and will not be repeated here.
可以理解的是,数据需求设备20、以及数据采集设备40可以具有更多或更少的模块,本申请实施例对此不作限定。It can be understood that the data demand device 20 and the data collection device 40 may have more or less modules, which is not limited in this embodiment of the present application.
图4示例性地示出了传感联邦引擎模块的功能模块示意图。如图4所示,传感联邦引擎模块可以包括订阅与查询模块501、模型探索模块502、数据分析模块503、管理模块504、数据存储模块505、以及数据接入模块506。其中:Fig. 4 exemplarily shows a schematic diagram of functional modules of the sensor federation engine module. As shown in FIG. 4 , the sensor federation engine module may include a subscription and query module 501 , a model exploration module 502 , a data analysis module 503 , a management module 504 , a data storage module 505 , and a data access module 506 . in:
订阅与查询模块501用于接收查询请求,基于查询请求发送查询信息。订阅与查询模块 501还可以用于订阅事件,基于订阅事件发送针对订阅事件的通知。The subscription and query module 501 is configured to receive query requests, and send query information based on the query requests. The subscription and query module 501 can also be used for subscribing events, and sending notifications for subscribing events based on subscribing events.
模型探索模块502中可以包括任务生成模块5021、任务解析模块5022、任务管理模块5023、任务执行模块5024。其中:任务生成模块5021可以用于生成数据采集任务。数据采集任务中可以包括需要采集的数据的类型、精度、实时采集的数据或获取历史数据、以及采集算子等等信息。任务解析模块5022可以用于解析接收到的数据采集任务、以及确定数据采集任务需要用到的资源(例如计算资源、存储资源等)等等。任务管理模块5023可以用于启动数据采集任务、暂停数据采集任务、以及取消数据采集任务。任务执行模块5024可以用于执行数据采集任务。The model exploration module 502 may include a task generation module 5021 , a task analysis module 5022 , a task management module 5023 and a task execution module 5024 . Among them: the task generation module 5021 can be used to generate data collection tasks. The data collection task may include information such as the type of data to be collected, accuracy, real-time data or historical data, and collection operators. The task parsing module 5022 can be used for parsing the received data collection tasks, and determining the resources needed for the data collection tasks (such as computing resources, storage resources, etc.) and the like. The task management module 5023 can be used to start a data collection task, suspend a data collection task, and cancel a data collection task. The task execution module 5024 can be used to execute data collection tasks.
数据分析模块503中可以包括画像分析模块5031、短期记忆模块5032、感知分析模块5033。其中,画像分析模块5031可以基于预设时间内(例如,三个月内、一个月内等等)数据存储模块505中的数据、以及数据接入模块506接收到的数据形成用户画像信息(例如,用户的年龄,用户的喜好、用户的睡眠情况等等信息)。画像分析模块5031还可以存储用户画像信息。短期记忆模块5032可以用于基于历史数据得到语义信息,并存储该语义信息;以及存储感知分析模块得到的语义信息。感知分析模块5033可以基于数据接入模块506采集的实时数据得到语义信息。The data analysis module 503 may include a portrait analysis module 5031 , a short-term memory module 5032 , and a perception analysis module 5033 . Among them, the portrait analysis module 5031 can form user portrait information (such as , user's age, user's preference, user's sleep condition, etc.). The portrait analysis module 5031 can also store user portrait information. The short-term memory module 5032 can be used to obtain semantic information based on historical data, and store the semantic information; and store the semantic information obtained by the perceptual analysis module. The perception analysis module 5033 can obtain semantic information based on the real-time data collected by the data access module 506 .
管理模块504可以包括设备发现模块5041、任务协商与决策模块5042。其中,设备发现模块5041可以用于发现设备,加入或者退出数据采集系统。任务协商与决策模块5042用于与其他设备交互采集任务信息,并且根据设备的工作状态确定是否接受另一个设备发送的数据采集任务。The management module 504 may include a device discovery module 5041 and a task negotiation and decision module 5042 . Among them, the device discovery module 5041 can be used to discover devices, join or exit the data collection system. The task negotiation and decision-making module 5042 is used to interact with other devices to collect task information, and determine whether to accept the data collection task sent by another device according to the working status of the device.
数据存储模块505可以用于存储数据,还可以用于接收和存储其他设备发送的数据、以及数据接入模块506发送的数据。The data storage module 505 can be used to store data, and can also be used to receive and store data sent by other devices and data sent by the data access module 506 .
数据接入模块506可以用于接收其他设备发送的数据。The data access module 506 can be used to receive data sent by other devices.
可以理解的是,图4中示出的传感联邦引擎模块仅为示例,传感联邦引擎模块可以包含更多或更少的模块,本申请实施例对此不作限定。图4中示出的各个模块在另一些场景中也可以是其他名称,本申请实施例对传感联邦引擎模块中各个模块的名称不作限定。It can be understood that the sensor federation engine module shown in FIG. 4 is only an example, and the sensor federation engine module may include more or less modules, which is not limited in this embodiment of the present application. The modules shown in FIG. 4 may also have other names in other scenarios, and this embodiment of the present application does not limit the names of the modules in the sensor federation engine module.
在一种可能的实现方式中,该传感联邦引擎模块可以弹性地、可裁剪地安装在电子设备中。电子设备可以基于电子设备的计算能力和存储能力下载该传感联邦引擎模块中的一个或多个模块。例如,手机中可以安装上述图4示出的传感联邦引擎模块中的所有模块。空调中可以安装上述图4中示出的传感联邦引擎模块中的设备发现模块5041以及数据接入模块506。In a possible implementation manner, the sensor federation engine module can be elastically and tailorably installed in an electronic device. The electronic device can download one or more modules in the sensor federation engine module based on the computing capability and storage capability of the electronic device. For example, all the modules in the sensing federation engine module shown in FIG. 4 above can be installed in the mobile phone. The device discovery module 5041 and the data access module 506 in the sensor federation engine module shown in FIG. 4 above can be installed in the air conditioner.
图5示例性地示出了联邦管理中心30的功能模块示意图。如图5所示,联邦管理中心30可以包括任务生成模块601、任务分配调度模块602、资源访问授权模块603、语义推理模块604、任务解析模块605、设备加入/退出管理模块606、传感能力管理模块607、语义更新模块608、以及语义融合和关联关系管理模块609。其中:FIG. 5 exemplarily shows a schematic diagram of functional modules of the federation management center 30 . As shown in Figure 5, the federation management center 30 may include a task generation module 601, a task allocation and scheduling module 602, a resource access authorization module 603, a semantic reasoning module 604, a task analysis module 605, a device joining/exiting management module 606, a sensing capability A management module 607 , a semantic update module 608 , and a semantic fusion and association relationship management module 609 . in:
任务生成模块601用于生成数据采集任务。数据采集任务具体可以参数上文中的描述,以及下文在具体场景中对数据采集任务的具体示例的描述,此处不赘述。The task generation module 601 is used to generate data collection tasks. The specific data collection task may refer to the description above, and the description below of a specific example of the data collection task in a specific scenario, which will not be repeated here.
任务分配调度模块602用于向一个或多个数据采集设备分配数据采集任务。The task assignment scheduling module 602 is used to assign data collection tasks to one or more data collection devices.
资源访问授权模块603可以用于记录各个数据采集设备中授权的资源(例如,计算资源、存储资源等)、传感器能力。资源访问授权模块603还可以用于对数据需求设备进行资源访问授权,即授权数据需求设备可以使用数据采集设备的哪些资源(例如,计算资源、存储资源等等)。The resource access authorization module 603 may be used to record authorized resources (for example, computing resources, storage resources, etc.) and sensor capabilities in each data collection device. The resource access authorization module 603 can also be used to authorize resource access to the data demand device, that is, authorize the data demand device to use which resources of the data collection device (for example, computing resources, storage resources, etc.).
语义推理模块604可以用于基于传感器采集的原始数据推理出语义信息、或者基于多个 语义信息(又可以称为低阶语义信息)推理新的语义信息(又可以称为高阶语义信息)。可以理解的是,在本申请实施例中,高阶语义信息和低阶语义信息是相对概念。本申请实施例将多个可以推理得到或者生成新的语义信息的多个语义信息称为低阶语义信息,将由多个语义信息生成的新的语义信息称为高阶语义信息。例如,语义信息A和语义信息B可以推理得到或者生成语义信息C。那么语义信息A和语义信息B可以称为低阶语义信息,语义信息C可以称为高阶语义信息。The semantic reasoning module 604 can be used to infer semantic information based on raw data collected by sensors, or infer new semantic information (also called high-level semantic information) based on multiple semantic information (also called low-level semantic information). It can be understood that, in the embodiment of the present application, high-level semantic information and low-level semantic information are relative concepts. In the embodiment of the present application, a plurality of semantic information that can be inferred or generated as new semantic information is referred to as low-level semantic information, and new semantic information generated from the plurality of semantic information is referred to as high-level semantic information. For example, semantic information A and semantic information B can be deduced or generated semantic information C. Then semantic information A and semantic information B can be called low-order semantic information, and semantic information C can be called high-order semantic information.
任务解析模块605可以用于解析数据采集任务。The task parsing module 605 can be used for parsing data collection tasks.
设备加入/退出管理模块606可以用于管理数据采集系统中的设备的加入和退出。The device joining/exiting management module 606 can be used to manage joining and leaving of devices in the data collection system.
传感能力管理模块607可以用于管理数据采集系统中各个设备的传感能力信息。在本申请实施例,传感能力信息可以包括设备中可以提供语义信息、语义信息的精度以及传感器采集的原始数据、原始数据的精度等等。The sensing capability management module 607 can be used to manage the sensing capability information of each device in the data collection system. In this embodiment of the present application, the sensing capability information may include semantic information that can be provided by the device, the precision of the semantic information, raw data collected by the sensor, the precision of the raw data, and the like.
语义更新模块608可以用于更新语义信息,并存储更新后语义信息。The semantic update module 608 may be used to update the semantic information and store the updated semantic information.
语义融合和关联关系管理模块609可以用于进行语义信息的融合,知识融合以及语义信息之间关联关系的管理。在本申请实施例中,如语义信息A和语义信息B可以推出语义信息C,那么可以称语义信息A与语义信息B存在关联关系。The semantic fusion and relationship management module 609 can be used for the fusion of semantic information, knowledge fusion and management of the relationship between semantic information. In the embodiment of the present application, if semantic information A and semantic information B can derive semantic information C, then it can be said that semantic information A and semantic information B have an association relationship.
在一些例子中,知识融合可以指将与某个语义信息对应的多个语义知识图谱融合成一个语义知识图谱。示例性地,如图6所示,图6中的(a)图为与语义信息A对应的一个语义知识图谱,在该语义知识图谱中,语义信息A和语义信息B可以得到语义信息C。图6中的(b)图为与语义信息A对应的另一个语义知识图谱,在该语义知识图谱中,语义信息A和语义信息D可以得到语义信息E。图6中的(c)图为图6中的(a)图中的语义知识图谱和图6中的(b)图中的语义知识图谱融合得到的语义知识图谱。In some examples, knowledge fusion may refer to fusing multiple semantic knowledge graphs corresponding to certain semantic information into one semantic knowledge graph. Exemplarily, as shown in FIG. 6 , (a) in FIG. 6 is a semantic knowledge graph corresponding to semantic information A, in which semantic information A and semantic information B can obtain semantic information C. (b) in Fig. 6 is another semantic knowledge graph corresponding to semantic information A. In this semantic knowledge graph, semantic information E can be obtained from semantic information A and semantic information D. (c) in FIG. 6 is a semantic knowledge graph obtained by fusing the semantic knowledge graph in (a) in FIG. 6 and the semantic knowledge graph in (b) in FIG. 6 .
在一些例子中,语义融合可以是指将多个语义信息(低阶语义信息)融合成新的语义信息(高阶语义信息)。In some examples, semantic fusion may refer to fusing multiple semantic information (low-order semantic information) into new semantic information (high-order semantic information).
可以理解的是,图5中示出的联邦管理中心30的功能模块仅为示例,联邦管理中心可以包含更多或更少的模块,本申请实施例对此不作限定。图5中示出的各个模块在另一些场景中也可以是其他名称,本申请实施例对联邦管理中心30中各个模块的名称不作限定。It can be understood that the functional modules of the federation management center 30 shown in FIG. 5 are only examples, and the federation management center may include more or fewer modules, which is not limited in this embodiment of the present application. The modules shown in FIG. 5 may also have other names in other scenarios, and the embodiment of the present application does not limit the names of the modules in the federation management center 30 .
在一种可能的实现方式中,该联邦管理中心30可以部署在手机、平板、电脑等电子设备中,或者云服务器或者服务器中。In a possible implementation manner, the federation management center 30 may be deployed in electronic devices such as mobile phones, tablets, and computers, or in cloud servers or servers.
在一种可能的实现方式中,该联邦管理中心30可以分布式地安装在电子设备中。电子设备可以基于电子设备的计算能力和存储能力下载该联邦管理中心中的一个或多个模块。例如,在一些场景中,上述图5示出的联邦管理中心30中的所有模块可以安装在手机中。在另一些场景中,上述图5示出的联邦管理中心30中的任务生成模块601、任务分配调度模块602、资源访问授权模块603、任务解析模块605、设备加入/退出管理模块606、以及传感能力管理模块607可以安装在手机中。联邦管理中心30中的语义推理模块604、语义更新模块608、以及语义融合和关联关系管理模块609可以安装在平板中。In a possible implementation manner, the federation management center 30 may be installed in electronic devices in a distributed manner. The electronic device can download one or more modules in the federation management center based on the computing capability and storage capability of the electronic device. For example, in some scenarios, all the modules in the federation management center 30 shown in FIG. 5 above can be installed in the mobile phone. In other scenarios, the task generation module 601, task allocation and scheduling module 602, resource access authorization module 603, task analysis module 605, device joining/exit management module 606, and transmission The sensory ability management module 607 can be installed in the mobile phone. The semantic reasoning module 604, the semantic update module 608, and the semantic fusion and association relationship management module 609 in the federation management center 30 can be installed in the tablet.
本申请实施例提供一种数据采集方法、系统以及相关设备。该数据采集方法可以应用于数据采集系统,该数据采集系统包括多个设备和联邦管理中心,该方法包括:该联邦管理中心可以接收多个设备中的第一设备发送的数据采集任务;联邦管理中心根据数据采集任务和多个设备的传感能力信息,确定提供数据采集任务所需的传感数据的一个或多个设备;联邦 管理中心指示一个或多个设备提供所需的传感数据。通过本申请实施例提供的数据采集方法,多个(两个或两个以上)电子设备可以建立数据采集系统,数据采集系统中的一个电子设备可以获取另一个电子设备的传感器采集的原始数据、或者由传感器采集的原始数据得到的语义信息。Embodiments of the present application provide a data collection method, system, and related equipment. The data collection method can be applied to a data collection system, the data collection system includes a plurality of devices and a federation management center, the method includes: the federation management center can receive the data collection task sent by the first device among the multiple devices; the federation management According to the data collection task and the sensing capability information of multiple devices, the center determines one or more devices that provide the sensing data required by the data collection task; the federation management center instructs one or more devices to provide the required sensing data. Through the data collection method provided by the embodiment of the present application, multiple (two or more) electronic devices can establish a data collection system, and one electronic device in the data collection system can obtain the raw data collected by the sensor of another electronic device, Or semantic information obtained from raw data collected by sensors.
下面先详细介绍多个电子设备如何组建数据采集系统。The following first introduces in detail how to build a data acquisition system with multiple electronic devices.
联邦管理中心可以创建数据采集系统(在本申请实施例中又可以称为传感联邦,下文将简称为传感联邦)。当联邦管理中心所在的电子设备或云服务器、服务器创建传感联邦后,其他设备(例如数据需求设备、数据采集设备)可以加入到该传感联邦中。The federation management center can create a data collection system (also referred to as a sensor federation in this embodiment of the application, which will be referred to as a sensor federation hereinafter). After the electronic device or cloud server or server where the federation management center is located creates a sensing federation, other devices (such as data demand devices and data collection devices) can join the sensing federation.
在一些场景中,联邦管理中心所在的电子设备或云服务器、服务器可以将登录由同一个用户账户的多个电子设备组建成传感联邦。不需要用户操作,用户的电子设备可以在登录账号后自动加入到联邦管理中心为该账号创建的传感联邦中。In some scenarios, the electronic device or cloud server or server where the federation management center is located can form a sensory federation from multiple electronic devices logged in with the same user account. No user operation is required, and the user's electronic device can automatically join the sensor federation created for the account by the federation management center after logging in to the account.
在一些场景中,当电子设备A和电子设备B进行连接时,电子设备A和电子设备B的一个电子设备可以创建传感联邦。电子设备A和/或电子设备B可以显示提示框,该提示框可以用于提示用户是否同意传感联邦,若用户点击用于同意创建传感联邦的控件,则可以成功创建传感联邦。In some scenarios, when electronic device A and electronic device B are connected, one electronic device of electronic device A and electronic device B may create a sensing federation. The electronic device A and/or the electronic device B may display a prompt box, which may be used to prompt the user whether to agree to the sensor federation, and if the user clicks a control for agreeing to create the sensor federation, the sensor federation can be successfully created.
在一种可能的实现方式中,联邦管理中心可以部署在服务器或云服务器中(下文以云服务器为例进行阐述)。当用户的电子设备登录用户账号时,电子设备可以将电子设备的用户账号信息发送给云服务器中的联邦管理中心,云服务器中的联邦管理中心可以确定该用户账号是否有对应的传感联邦;若没有,则云服务器中的联邦管理中心为该用户账号创建一个传感联邦;若有,则云服务器中的联邦管理中心获取将登录该用户账号的电子设备的设备信息(例如,设备ID,设备型号等等),并基于该电子设备的设备信息,将该电子设备加入该用户账号对应的传感联邦。In a possible implementation manner, the federation management center may be deployed in a server or a cloud server (the cloud server is used as an example for illustration below). When the user's electronic device logs into the user account, the electronic device can send the user account information of the electronic device to the federation management center in the cloud server, and the federation management center in the cloud server can determine whether the user account has a corresponding sensor federation; If not, the federation management center in the cloud server creates a sensing federation for the user account; if there is, the federation management center in the cloud server obtains the device information (for example, the device ID, device model, etc.), and based on the device information of the electronic device, add the electronic device to the sensor federation corresponding to the user account.
具体地,当一个用户账号首次在电子设备上登录时,云服务器中的联邦管理中心还未创建该用户账号对应的传感联邦。云服务器中的联邦管理中心查到不到与该用户账号对应的传感联邦,云服务器可以为该用户账号创建一个传感联邦。然后,云服务器将该电子设备加入到传感联邦。Specifically, when a user account logs in on the electronic device for the first time, the federation management center in the cloud server has not yet created a sensor federation corresponding to the user account. The federation management center in the cloud server cannot find the sensor federation corresponding to the user account, and the cloud server can create a sensor federation for the user account. Then, the cloud server adds the electronic device to the sensing federation.
可以理解的是,传感联邦中的多个电子设备可以来自不同的设备厂商。每个能够加入传感联邦的电子设备可以具备有用于传输供数据的标准接口。这样,传感联邦中不同厂商的电子设备之间也可以传输数据。It can be understood that the multiple electronic devices in the sensing federation may come from different device manufacturers. Each electronic device that can join the sensory federation can have a standard interface for transmitting data. In this way, data can also be transmitted between electronic devices of different manufacturers in the sensor federation.
可以理解的是,该用户账号可以用于电子设备创建传感联邦或加入传感联邦。该用户账号可以是电子设备的登录账号,例如,华为账号,鸿蒙账号等等。It can be understood that the user account can be used by the electronic device to create a sensor federation or join a sensor federation. The user account may be a login account of the electronic device, for example, a Huawei account, a Hongmeng account, and the like.
下面以图2中示出的手机104为例,具体讲述联邦管理中心如何组建手机104的用户账号对应的传感联邦,并将手机104加入到该用户账号对应的传感联邦中。Taking the mobile phone 104 shown in FIG. 2 as an example, how the federation management center establishes the sensor federation corresponding to the user account of the mobile phone 104 and adds the mobile phone 104 to the sensor federation corresponding to the user account.
示例性地,图7A-图7E示出了云服务器或服务器端中的联邦管理中心创建传感联邦和用户的电子设备加入联邦管理中心创建的传感联邦的示意图。Exemplarily, FIG. 7A-FIG. 7E show a cloud server or a schematic diagram of the federation management center in the server side creating a sensor federation and the user's electronic device joining the sensor federation created by the federation management center.
如图7A所示,图7A示例性地示出了手机104登录用户账号的用户界面70A。该用户界面70A中可以包括控件7000、文本7001和文本7002、输入栏7003、输入栏7004、文本7005、文本7006、控件7007、控件7008。控件7000可以用于返回上一级界面。文本7001可以用于提示用户该用户界面用于登录用户账号。文本7001的内容可以是“用户账号”,此处对文本7001的具体内容不作限定。文本7002可以用于提示用户登录用户账号后可使用的服务。文 本7002的内容可以是“登录账号以使用传感联邦服务”,此处对文本7002的具体内容不作限定。输入栏7003可用于输入用户账号,例如“131****7837”。输入栏7004用于输入密码,例如“.…..”。文本7005可以用于提示用户其他登录方式。文本7005可以是“短信验证码登录”,此处对文本7005的具体内容不作限定。文本7006可以用于用户找回密码。文本7006可以是“忘记密码”,此处对文本7006的具体内容不作限定。控件7007可以用于登录用户账号。控件7008可以用于注册用户账号。As shown in FIG. 7A , FIG. 7A exemplarily shows a user interface 70A for logging in a user account by the mobile phone 104 . The user interface 70A may include control 7000 , text 7001 and text 7002 , input field 7003 , input field 7004 , text 7005 , text 7006 , control 7007 , and control 7008 . Control 7000 can be used to return to the previous interface. Text 7001 may be used to prompt the user that the user interface is used to log in the user account. The content of the text 7001 may be "user account", and the specific content of the text 7001 is not limited here. The text 7002 can be used to prompt the user to log in the user account to use the service. The content of the text 7002 may be "login the account to use the sensor federation service", and the specific content of the text 7002 is not limited here. The input field 7003 can be used to input user account number, for example "131****7837". The input column 7004 is used to input a password, such as "...". Text 7005 can be used to prompt the user for other login methods. The text 7005 may be "SMS verification code login", and the specific content of the text 7005 is not limited here. Text 7006 can be used for user to retrieve password. The text 7006 may be "forgot password", and the specific content of the text 7006 is not limited here. Control 7007 may be used to log in a user account. Control 7008 may be used to register a user account.
当用户在输入栏7003中输入账号,和输入栏7004中输入密码后,用户可以点击控件7007,响应于该用户操作,手机104可以成功登录该用户账号“131****7837”。手机104可以向联邦管理中心发送消息,该消息可以携带用户账号“131****7837”。联邦管理中心可以基于该消息,查询联邦管理中心中是否已经建立有该用户账号“131****7837”对应的传感联邦。若联邦管理中心中没有用户账号“131****7837”对应的传感联邦,则联邦管理中心创建一个用户账号“131****7837”对应的传感联邦。若联邦管理中心中已经建立有该用户账号“131****7837”对应的传感联邦,则联邦管理中心查询手机104是否已加入该传感联邦,如没有加入,则邀请手机104加入该用户账号“131****7837”对应的传感联邦。After the user enters the account number in the input field 7003 and the password in the input field 7004, the user can click the control 7007, and in response to the user operation, the mobile phone 104 can successfully log in the user account "131****7837". The mobile phone 104 can send a message to the federal management center, and the message can carry the user account "131****7837". Based on the message, the federation management center can query whether a sensor federation corresponding to the user account "131****7837" has been established in the federation management center. If there is no sensor federation corresponding to the user account "131****7837" in the federation management center, the federation management center will create a sensor federation corresponding to the user account "131****7837". If the sensor federation corresponding to the user account "131****7837" has been established in the federation management center, then the federation management center inquires whether the mobile phone 104 has joined the sensor federation, if not, invites the mobile phone 104 to join the federation The sensor federation corresponding to the user account "131****7837".
在一种可能的示例中,若联邦管理中心中没有用户账号“131****7837”对应的传感联邦,联邦管理中心可以向手机104发送请求消息,该请求消息用于请求建立用户账号“131****7837”对应的传感联邦。手机104中可以接收到该请求消息,并显示用户界面70B。In a possible example, if there is no sensor federation corresponding to the user account "131****7837" in the federation management center, the federation management center may send a request message to the mobile phone 104, and the request message is used to request to establish a user account The sensor federation corresponding to "131****7837". The mobile phone 104 may receive the request message and display the user interface 70B.
如图7B所示,图7B示例性地示出了手机104的用户界面70B。该用户界面70B可以包括提示消息7101,以及弹框7102。其中,提示消息7101可以用于提示用户成功登录用户账号。该提示消息7101可以是“登录成功”,此处对提示消息7101的具体内容不作限定。弹框7102可以包括控件7103以及控件7104。用户可以点击控件7103,用于同意联邦管理中心建立用户账号“131****7837”对应的传感联邦。用户可以点击控件7104,用于拒绝联邦管理中心建立用户账号“131****7837”对应的传感联邦。As shown in FIG. 7B , FIG. 7B exemplarily shows a user interface 70B of the mobile phone 104 . The user interface 70B may include a prompt message 7101 and a bullet box 7102 . Wherein, the prompt message 7101 may be used to prompt the user to log in the user account successfully. The prompt message 7101 may be "login successful", and the specific content of the prompt message 7101 is not limited here. The bullet box 7102 may include a control 7103 and a control 7104 . The user can click the control 7103 to agree to the federation management center to establish a sensor federation corresponding to the user account "131****7837". The user can click on the control 7104, which is used to reject the establishment of the sensor federation corresponding to the user account "131****7837" by the federation management center.
当用户点击控件7103后,手机104可以向联邦管理中心发送同意建立用户账号“131****7837”对应的传感联邦的通知消息。并且,手机104还可以将手机104的设备信息(例如,设备ID,设备型号等等)发送给联邦管理中心。联邦管理中心可以基于该通知消息建立用户账号“131****7837”对应的传感联邦,并将手机104加入该传感联邦中。联邦管理中心建立用户账号“131****7837”对应的传感联邦后,可以向手机104发送消息,该消息可以用于提示手机104已经建立好用户账号“131****7837”对应的传感联邦。手机104接收到该消息后,可以显示用户界面70C。After the user clicks the control 7103, the mobile phone 104 may send a notification message agreeing to establish a sensor federation corresponding to the user account "131****7837" to the federation management center. Moreover, the mobile phone 104 may also send the device information (eg, device ID, device model, etc.) of the mobile phone 104 to the federation management center. The federation management center may establish a sensor federation corresponding to the user account "131****7837" based on the notification message, and add the mobile phone 104 to the sensor federation. After the federal management center establishes the sensor federation corresponding to the user account "131****7837", it can send a message to the mobile phone 104. The message can be used to prompt the mobile phone 104 that the user account "131****7837" has been established. sensor federation. After receiving the message, mobile phone 104 may display user interface 70C.
如图7C所示,图7C示例性地示出了手机104的用户界面70C。用户界面70C中可以包括消息提示框7301。该消息提示框7301用于提示用户联邦管理中心已经成功创建用户账号“131****7837”对应的传感联邦。该消息提示框7301中的内容可以是“账号131****7837的传感联邦创建成功,您的设备可以享受传感联邦服务”,此处对该消息提示框7301的具体内容不作限定。As shown in FIG. 7C , FIG. 7C exemplarily shows a user interface 70C of the mobile phone 104 . The user interface 70C may include a message prompt box 7301 . The message prompt box 7301 is used to remind the user that the federation management center has successfully created the sensor federation corresponding to the user account "131****7837". The content in the message prompt box 7301 may be "the sensor federation of account 131****7837 is successfully created, and your device can enjoy the sensor federation service", and the specific content of the message prompt box 7301 is not limited here.
在另一种可能的示例中,当用户在手机104的用户界面70A中点击控件7007后,联邦管理中心确定已建立有用户账号“131****7837”对应的传感联邦,但是手机104未加入到用户账号“131****7837”对应的传感联邦中。联邦管理中心可以向手机104发送请求,该请求用于请求手机104加入该用户账号“131****7837”对应的传感联邦中。手机104接收到该请求后,可以显示用户界面70D。In another possible example, after the user clicks the control 7007 on the user interface 70A of the mobile phone 104, the federation management center determines that a sensor federation corresponding to the user account "131****7837" has been established, but the mobile phone 104 It has not joined the sensor federation corresponding to the user account "131****7837". The federation management center may send a request to the mobile phone 104, and the request is used to request the mobile phone 104 to join the sensor federation corresponding to the user account "131****7837". After receiving the request, the mobile phone 104 may display the user interface 70D.
如图7D所示,图7D示例性地示出了手机104的用户界面70D。用户界面70D中可以包 括提示消息7401、弹框7102。其中,提示消息7401可以用于提示用户成功登录用户账号。该提示消息7401可以是“登录成功”,此处对提示消息7401的具体内容不作限定。弹框7402可以包括控件7403以及控件7404。用户可以点击控件7403,用于同意加入到用户账号“131****7837”对应的传感联邦。用户可以点击控件7404,用于拒绝加入到用户账号“131****7837”对应的传感联邦。As shown in FIG. 7D , FIG. 7D exemplarily shows a user interface 70D of the mobile phone 104 . The user interface 70D may include a prompt message 7401 and a bullet box 7102. Wherein, the prompt message 7401 may be used to prompt the user to log in the user account successfully. The prompt message 7401 may be "login successful", and the specific content of the prompt message 7401 is not limited here. The bullet box 7402 may include a control 7403 and a control 7404 . The user can click the control 7403 to agree to join the sensor federation corresponding to the user account "131****7837". The user can click on the control 7404 to refuse to join the sensor federation corresponding to the user account "131****7837".
当用户点击控件7403后,手机104可以向联邦管理中心发送同意加入到用户账号“131****7837”对应的传感联邦的通知消息。联邦管理中心收到该通知消息后,可以将手机104加入到用户账号“131****7837”对应的传感联邦中。可选地,联邦管理中心还可以向手机104发送指示已将手机104成功加入用户账号“131****7837”对应的传感联邦的通知消息。手机104收到该通知消息后,手机104可以显示用户界面70E。After the user clicks the control 7403, the mobile phone 104 may send a notification message agreeing to join the sensor federation corresponding to the user account "131****7837" to the federation management center. After receiving the notification message, the federation management center can add the mobile phone 104 to the sensor federation corresponding to the user account "131****7837". Optionally, the federation management center may also send a notification message to the mobile phone 104 indicating that the mobile phone 104 has been successfully added to the sensor federation corresponding to the user account "131****7837". After the mobile phone 104 receives the notification message, the mobile phone 104 can display the user interface 70E.
如图7E所示,图7E示例性地示出了手机104的用户界面70E。用户界面70E中可以包括消息提示框7501。该消息提示框7501用于提示用户联邦管理中心已经将手机104加入到用户账号“131****7837”对应的传感联邦中。该消息提示框7501中的内容可以是“你的设备已成功加入到账号131****7837的传感联邦中,可享受传感联邦服务”,此处对该消息提示框7501的具体内容不作限定。As shown in FIG. 7E , FIG. 7E exemplarily shows a user interface 70E of the mobile phone 104 . The user interface 70E may include a message prompt box 7501 . The message prompt box 7501 is used to remind the user that the federation management center has added the mobile phone 104 to the sensor federation corresponding to the user account "131****7837". The content in the message prompt box 7501 can be "Your device has successfully joined the sensor federation of account 131****7837, and can enjoy the sensor federation service", here is the specific content of the message prompt box 7501 Not limited.
可以理解的是,上述图7A-图7E中示出的用户界面仅为示例,上述图7A-图7B示出的用户界面中可以包含更多或更少的界面元素,或者上述用户界面的元素在用户界面中的位置可以有所变化,本申请实施例对此不作限定。It can be understood that the user interface shown in the above-mentioned Figures 7A-7E is only an example, and the user interface shown in the above-mentioned Figures 7A-7B may contain more or less interface elements, or The position on the user interface may vary, which is not limited in this embodiment of the present application.
在一些可能的示例中,一些电子设备不具备用户可操作的显示屏,例如,空调,耳机,温度传感器等等。用户不能在这些不具备用户可操作的显示屏的电子设备上登录用户账号,但是空调,耳机,温度传感器等等电子设备可以通过无线局域网、蓝牙或者分布式软总线等与另一类具有用户可操作显示屏的电子设备(例如,手机、电脑、平板等等)建立通信连接。当用户在具有可操作显示屏的电子设备A上登录账号时,电子设备A可以将与电子设备A建立通信连接的不具有可操作显示屏的电子设备B的设备信息也发送给联邦管理中心。联邦管理中心可以向电子设备A发送请求将电子设备A以及电子设备B加入到传感联邦的请求。用户在电子设备A上可以点击同意将电子设备A以及电子设备B加入到传感联邦的控件,响应于该用户操作,电子设备A可以向联邦管理中心发送同意将电子设备A以及电子设备B加入到传感联邦的通知消息。联邦管理中心收到该通知消息后,联邦管理中心可以将电子设备A以及电子设备B加入到传感联邦。In some possible examples, some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like. Users cannot log in user accounts on these electronic devices that do not have user-operable display screens, but electronic devices such as air conditioners, earphones, and temperature sensors can communicate with other types of electronic devices that have user-operable functions through wireless local area networks, Bluetooth, or distributed soft buses. An electronic device (for example, a mobile phone, a computer, a tablet, etc.) that operates a display screen establishes a communication connection. When the user logs in the account on the electronic device A with an operable display screen, the electronic device A can also send the device information of the electronic device B without an operable display screen that establishes a communication connection with the electronic device A to the federation management center. The federation management center may send a request to electronic device A for adding electronic device A and electronic device B to the sensor federation. The user can click on the electronic device A to agree to add electronic device A and electronic device B to the control of the sensor federation. In response to the user operation, electronic device A can send the consent to join the electronic device A and electronic device B to the federation management center Notification message to sensor federation. After the federation management center receives the notification message, the federation management center can add electronic device A and electronic device B to the sensing federation.
举例来说,空调101与手机104建立有通信连接,当用户在手机104上登录用户账号131****7837时,手机104可以将手机104的设备信息和空调101的设备信息发送给联邦管理中心。联邦管理中心可以将手机104和空调101加入到用户账号131****7837对应的传感联邦中。For example, the air conditioner 101 establishes a communication connection with the mobile phone 104. When the user logs in the user account 131****7837 on the mobile phone 104, the mobile phone 104 can send the equipment information of the mobile phone 104 and the equipment information of the air conditioner 101 to the federal management center. The federation management center can add the mobile phone 104 and the air conditioner 101 to the sensor federation corresponding to the user account 131****7837.
可以理解的是,手机104可以和空调101不是同一个厂商生产的,但是手机104和空调101都具有可以互相传输数据的接口。It can be understood that the mobile phone 104 and the air conditioner 101 may not be produced by the same manufacturer, but both the mobile phone 104 and the air conditioner 101 have interfaces that can transmit data to each other.
在一些场景中,用户可以选择自己的一个电子设备作为联邦管理中心。用户可以在该作为联邦管理中心的电子设备中安装有联邦管理中心应用程序。用户可以在该联邦管理中心应用程序中创建传感联邦,并邀请其他电子设备加入到所创建的传感联邦中。另一些可以作为数据需求设备或者数据采集设备的电子设备中,可以安装有传感联邦引擎应用程序,用户可以在该传感联邦引擎应用程序中搜索可以加入的传感联邦,并申请加入到传感联邦中。In some scenarios, users can choose one of their own electronic devices as the federation management center. The user may install a federation management center application in the electronic device serving as the federation management center. Users can create a sensor federation in the application of the federation management center, and invite other electronic devices to join the created sensor federation. Other electronic devices that can be used as data demand devices or data collection devices can be installed with a sensor federation engine application, and users can search for sensor federations that can be joined in the sensor federation engine application, and apply to join the sensor federation. Feel the Federation.
以用户在手机104中建立传感联邦为例,图8A-图8I示例性地展示了用户通过手机104 中的联邦管理中心应用程序建立传感联邦的过程。Taking the user establishing a sensor federation in the mobile phone 104 as an example, FIGS. 8A-8I exemplarily show the process in which the user establishes a sensor federation through the federation management center application program in the mobile phone 104 .
如图8A所示,图8A示例性地示出了手机104的用户界面80A。该用户界面80A可以是手机104的主界面。该用户界面80A中可以包括联邦管理中心应用程序的图标8001。该用户界面80A还可以包括其他应用程序的图标,例如天气应用程序的图标、邮件应用程序的图标等等,在此不赘述。用户可以在该用户界面80A中点击该联邦管理中心应用程序的图标8001。响应于该用户操作,手机104可以显示用户界面80B。As shown in FIG. 8A , FIG. 8A exemplarily shows a user interface 80A of the mobile phone 104 . The user interface 80A may be the main interface of the mobile phone 104 . The user interface 80A may include an icon 8001 for the federation management center application. The user interface 80A may also include icons of other application programs, such as icons of weather application programs, icons of mail application programs, etc., which will not be described in detail here. A user may click on the federation management center application icon 8001 in the user interface 80A. In response to this user action, handset 104 may display user interface 80B.
如图8B所示,图8B示例性地示出了手机104的用户界面80B。该用户界面80B中可以包括控件8101、控件8102以及控件8103。该控件8101可以用于创建新的传感联邦。该控件8102可以用于查看手机104中已建立过的传感联邦。控件8103可以用于查看并管理手机104中的语义模型。可以理解的是,手机104中可以有一个或多个语义模型。语义模型可以用于根据一个或多个传感器数据得到语义信息。一个用于分析睡眠质量的语义模型,可以根据用户的睡眠时长,得到用户睡眠质量高或睡眠质量低等语义信息。用户可以在用户界面80B中点击控件8101,响应于该用户操作,手机104可以显示用户界面80C。As shown in FIG. 8B , FIG. 8B exemplarily shows a user interface 80B of the mobile phone 104 . The user interface 80B may include a control 8101 , a control 8102 and a control 8103 . This control 8101 can be used to create new sensory federations. The control 8102 can be used to view the sensor federations that have been established in the mobile phone 104 . The control 8103 can be used to view and manage the semantic model in the mobile phone 104 . It can be understood that there may be one or more semantic models in the mobile phone 104 . Semantic models can be used to derive semantic information from one or more sensor data. A semantic model for analyzing sleep quality, which can obtain semantic information such as high or low sleep quality of the user according to the user's sleep duration. The user may click on the control 8101 in the user interface 80B, and in response to the user operation, the mobile phone 104 may display the user interface 80C.
如图8C所示,图8C示例性地示出了手机104的用户界面80C。该用户界面80C中可以包括控件8301、文本信息8302、输入框8303、选项框8304、控件8316和控件8317。控件8301可以用于返回上一级界面。文本信息8302可以指示当前界面用于创建传感联邦。文本信息8302的内容可以是“创建传感联邦”,此处对文本信息8302的具体内容不作限定。输入框8303可用于输入所创建的传感联邦的名称,例如“xxx”。此处对输入框8303中可以输入的内容不作限定。选项框8304中可以包括滑动栏8305、控件8306、控件8307、控件8308、控件8309。其中,滑动栏8305可以用于查看选项框8304中未显示的内容。控件8306可以用于选择“加速度”作为手机104可以提供传感器数据。控件8307可以用于选择“位置”作为手机104可以提供的传感器数据。控件8308可以用于选择“心率”作为手机104可以提供的传感器数据。控件8309可以用于选择“体温”作为手机104可以提供的传感器数据。控件8316可以用于保存用户在当前界面中输入的内容以及设置的内容。控件8317可以用于指示完成传感联邦的创建。As shown in FIG. 8C , FIG. 8C exemplarily shows a user interface 80C of the mobile phone 104 . The user interface 80C may include a control 8301 , text information 8302 , an input box 8303 , an option box 8304 , a control 8316 and a control 8317 . Control 8301 can be used to return to the previous interface. Text information 8302 may indicate that the current interface is used to create a sensory federation. The content of the text information 8302 may be "create a sensor federation", and the specific content of the text information 8302 is not limited here. The input box 8303 can be used to input the name of the sensor federation created, such as "xxx". There is no limit to the content that can be input in the input box 8303. The option box 8304 may include a sliding bar 8305, a control 8306, a control 8307, a control 8308, and a control 8309. Among them, the sliding bar 8305 can be used to view the content not displayed in the option box 8304 . Control 8306 may be used to select "acceleration" as the cell phone 104 may provide sensor data. Control 8307 may be used to select "location" as sensor data that the handset 104 may provide. Control 8308 may be used to select "heart rate" as sensor data that cell phone 104 may provide. Control 8309 may be used to select "body temperature" as sensor data that the handset 104 may provide. The control 8316 can be used to save the content entered and set by the user in the current interface. Control 8317 may be used to indicate that the creation of a sensory federation is complete.
可以理解的是,上述用户界面80C仅为示例,用户界面80C可以包括更少或更多的界面元素,例如,用户界面80C中还可以包括用于设置传感联邦中可以提供的语义模型的控件。或者,该用户界面80C中还可以包括用于设置手机104所需数据的选项框。此处对用于创建传感联邦的用户界面不作限定。It can be understood that the above-mentioned user interface 80C is only an example, and the user interface 80C may include fewer or more interface elements. For example, the user interface 80C may also include a control for setting the semantic model that may be provided in the sensing federation . Alternatively, the user interface 80C may also include an option box for setting data required by the mobile phone 104 . The user interface for creating a sensor federation is not limited here.
在一种可能的实现方式中,当用户在手机104的联邦管理中心应用程序中创建完传感联邦之后,用户可以在联邦管理中心应用程序中查看用户已创建的传感联邦。In a possible implementation manner, after the user creates a sensor federation in the federation management center application program of the mobile phone 104, the user can view the sensor federation created by the user in the federation management center application program.
如图8D所示,图8D示例性地示出了手机104的用户界面80D。该用户界面80D中可以包括控件8101、控件8102以及控件8103。关于控件8101、控件8102、以及控件8103可以参考上文中图8B的描述,此处不再赘述。用户可以点击控件8102查看手机104中已创建的传感联邦。响应于用于点击控件8102的操作,手机104可以显示用户界面80E。As shown in FIG. 8D , FIG. 8D exemplarily shows a user interface 80D of the mobile phone 104 . The user interface 80D may include a control 8101 , a control 8102 and a control 8103 . Regarding the control 8101, the control 8102, and the control 8103, reference may be made to the description in FIG. 8B above, and details will not be repeated here. The user can click on the control 8102 to view sensor federations that have been created in the handset 104 . In response to an action to tap control 8102, handset 104 may display user interface 80E.
如图8E所示,图8E示例性地示出了手机104的用户界面80E。该用户界面80E可以包括控件8501、文本信息8502、文本信息8503、控件8504、控件8505以及控件8506、文本信息8507、控件8508、控件8509、控件8510。控件8501可以用于返回上一级界面。文本信息8502可以指示当前界面可以用于查看手机104中已创建的传感联邦列表。文本信息8503用于指示手机104中已创建的一个传感联邦的名称以及创建时间。例如,文本信息8503的内容可以是“传感联邦xxx(1分钟前)”,即该文本信息8503可以表示传感联邦名称为“xxx”, 该传感联邦xxx为手机104在1分钟前创建。控件8504可以用于查看传感联邦xxx中的成员(即加入到传感联邦xxx中的电子设备)。控件8505可以用于邀请其他电子设备加入传感联邦xxx。控件8506可以用于删除该传感联邦xxx。文本信息8507可以用于指示手机104中已创建的另一个传感联邦的名称以及创建时间。例如,文本信息8507具体内容可以是“传感联邦111(3天前)”,即该文本信息8507可以表示传感联邦名称为“111”,该传感联邦111为手机104在三天前创建。控件8508可以用于查看传感联邦111中的成员(即加入到传感联邦111中的电子设备)。控件8509可以用于邀请其他电子设备加入到传感联邦111。控件8510可以用于删除该传感联邦111。As shown in FIG. 8E , FIG. 8E exemplarily shows a user interface 80E of the mobile phone 104 . The user interface 80E may include a control 8501 , text information 8502 , text information 8503 , control 8504 , control 8505 , and control 8506 , text information 8507 , control 8508 , control 8509 , and control 8510 . Control 8501 can be used to return to the previous interface. Text message 8502 may indicate that the current interface may be used to view a list of sensory federations that have been created in cell phone 104 . The text information 8503 is used to indicate the name and creation time of a sensor federation created in the mobile phone 104 . For example, the content of the text information 8503 may be "sensing federation xxx (1 minute ago)", that is, the text information 8503 may indicate that the name of the sensing federation is "xxx", and the sensing federation xxx was created by the mobile phone 104 1 minute ago . The control 8504 can be used to view the members of the sensory federation xxx (that is, the electronic devices joined in the sensory federation xxx). Control 8505 may be used to invite other electronic devices to join the sensory federation xxx. Control 8506 may be used to delete the sensory federation xxx. The text message 8507 may be used to indicate the name and creation time of another sensory federation that has been created in the handset 104 . For example, the specific content of the text information 8507 may be "sensing federation 111 (3 days ago)", that is, the text information 8507 may indicate that the name of the sensing federation is "111", and the sensing federation 111 was created by the mobile phone 104 three days ago . The control 8508 can be used to view the members in the sensory federation 111 (ie, the electronic devices joined in the sensory federation 111). Control 8509 may be used to invite other electronic devices to join the sensory federation 111. Control 8510 may be used to delete the sensory federation 111.
可以理解的是,图8E中示出的用户界面80E仅为示例。该用户界面80E可以包含更多或更少的界面元素,例如,该用户界面80E中该可以包含更多的已创建的传感联邦。或者,该用户界面80E中还可以包括手机104加入的传感联邦(不是在手机104中创建的传感联邦)。本申请实施例对用于展示手机104创建的和加入的传感联邦列表不作限定。It will be appreciated that the user interface 80E shown in FIG. 8E is merely an example. The user interface 80E may contain more or fewer interface elements, for example, the user interface 80E may contain more created sensor federations. Alternatively, the user interface 80E may also include a sensor federation joined by the mobile phone 104 (not a sensor federation created in the mobile phone 104). The embodiment of the present application does not limit the display of the sensor federation list created and joined by the mobile phone 104 .
用户可以点击用户界面80E中的控件8505,响应于该用户操作,手机104可以显示用户界面80F。A user may click on control 8505 in user interface 80E, and in response to the user action, handset 104 may display user interface 80F.
如图8F所示,图8F示例性地示出了手机104的用户界面80F。该用户界面80F可以包括控件8601、文本信息8602以及选项框8603、控件8610。控件8601可以用于返回上一级界面。文本信息8602可以指示当前界面用于邀请其他电子设备加入传感联邦xxx。该文本信息8602的内容可以是“传感联邦xxx.邀请”,此处对该文本信息8602的具体内容不作限定。选项框8603中可以显示可邀请的电子设备以及用于邀请电子设备的控件。例如,该选项框8603中可以空调101以及空调101对应的控件8604、摄像头102以及摄像头102对应控件8605、手表103以及手表103对应的控件8606、平板105以及平板105对应的控件8607、空气质量传感器106以及空气质量传感器106对应的控件8608、以及滑动栏8609。控件8604可以用于邀请空调101加入传感联邦xxx。控件8605可以用于邀请摄像头102加入传感联邦xxx。控件8606可以用于邀请手表103加入传感联邦xxx。控件8607可以用于邀请平板105加入传感联邦xxx。控件8608可以用于邀请空气质量传感器106加入传感联邦xxx。滑动栏8609可以用于显示可邀请设备列表中未显示的电子设备以及该电子设备对应的控件。控件8610用于确定邀请用户选定的电子设备。As shown in FIG. 8F , FIG. 8F exemplarily shows a user interface 80F of the mobile phone 104 . The user interface 80F may include a control 8601 , text information 8602 , an option box 8603 , and a control 8610 . Control 8601 can be used to return to the previous interface. Text information 8602 may indicate that the current interface is used to invite other electronic devices to join the sensory federation xxx. The content of the text message 8602 may be "sensing federation xxx. invitation", and the specific content of the text message 8602 is not limited here. Invitable electronic devices and controls for inviting electronic devices may be displayed in option box 8603. For example, in the option box 8603, the air conditioner 101 and the control 8604 corresponding to the air conditioner 101, the camera 102 and the control 8605 corresponding to the camera 102, the watch 103 and the control 8606 corresponding to the watch 103, the tablet 105 and the control 8607 corresponding to the tablet 105, and the air quality sensor 106 and the control 8608 corresponding to the air quality sensor 106, and the sliding bar 8609. The control 8604 can be used to invite the air conditioner 101 to join the sensor federation xxx. Control 8605 can be used to invite camera 102 to join sensory federation xxx. Control 8606 may be used to invite watch 103 to join sensory federation xxx. Control 8607 can be used to invite tablet 105 to join sensory federation xxx. Control 8608 may be used to invite air quality sensors 106 to join sensory federation xxx. The sliding bar 8609 may be used to display electronic devices not displayed in the inviteable device list and controls corresponding to the electronic devices. Control 8610 is used to determine the electronic device selected by the inviting user.
用户可以在选项框8603中选定一个或多个电子设备,然后再点击控件8610来邀请用户选定的一个多个电子设备。下文以用户选择邀请平板105加入传感联邦xxx为例进行阐述说明。用户在用户界面80F中点击控件8607后,再点击控件8610。响应于用户操作,手机104可以向平板105发送邀请加入传感联邦xxx的通知消息。平板105可以接收到该通知消息,并显示用户界面80G。The user can select one or more electronic devices in the option box 8603, and then click the control 8610 to invite one or more electronic devices selected by the user. In the following, the user chooses to invite the tablet 105 to join the sensor federation xxx as an example for illustration. The user clicks the control 8607 in the user interface 80F, and then clicks the control 8610. In response to the user operation, the mobile phone 104 may send a notification message to the tablet 105 inviting to join the sensor federation xxx. Tablet 105 may receive the notification message and display user interface 80G.
如图8G所示,图8G示例性地示出了平板105的用户界面80G。该用户界面80G中可以包括消息通知框8701。消息通知框8701中可以包括文本信息以及控件8702和控件8703。消息通知框8701中的文本信息用于提示用户手机104邀请平板105加入传感联邦xxx。该文本信息的内容可以是“手机104邀请你加入传感联邦xxx”,此处对该文本信息的具体内容不作限定。控件8702可以用于同意加入传感联邦xxx。控件8703可以用于拒绝加入传感联邦xxx。As shown in FIG. 8G , FIG. 8G exemplarily shows a user interface 80G of the tablet 105 . The user interface 80G may include a message notification box 8701 . The message notification box 8701 may include text information and a control 8702 and a control 8703 . The text information in the message notification box 8701 is used to prompt the user's mobile phone 104 to invite the tablet 105 to join the sensor federation xxx. The content of the text message may be "the mobile phone 104 invites you to join the sensor federation xxx", and the specific content of the text message is not limited here. Control 8702 may be used to agree to join the sensory federation xxx. Control 8703 can be used to refuse to join the sensing federation xxx.
在一些可能的示例中,一些电子设备不具备用户可操作的显示屏,例如,空调,耳机,温度传感器等等。不具备用户可操作显示屏的电子设备也可以被手机104邀请加入传感联邦xxx。In some possible examples, some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like. Electronic devices that do not have user-operable displays can also be invited by the cell phone 104 to join the sensory federation xxx.
在一种可能的实现方式中,手机104可以直接向该类不具备用户可操作显示屏的电子设 备发送邀请加入传感联邦xxx的通知消息,该类电子设备接收到消息后,可以提示用户(例如,指示灯闪烁,或者电子设备震动,响铃等等方法提示用户),用户可以通过语音指令或者点击该类电子设备上的实体控件同意加入传感联邦xxx。In a possible implementation, the mobile phone 104 can directly send a notification message inviting to join the sensor federation xxx to this type of electronic device that does not have a user-operable display screen. After receiving the message, this type of electronic device can prompt the user ( For example, the indicator light flashes, or the electronic device vibrates, rings, etc. to prompt the user), and the user can agree to join the sensor federation xxx through voice commands or by clicking on the physical control on this type of electronic device.
在一种可能的实现方式中,用户可以手机104直接将该类不具备用户可操作显示屏、且与手机104连接的电子设备,加入到传感联邦xxx中。In a possible implementation, the user can directly add such electronic devices that do not have a user-operable display screen and are connected to the mobile phone 104 to the sensor federation xxx through the mobile phone 104 .
可选地,在另一种可能的实现方式中,该类不具备用户可操作显示屏的电子设备(例如,空调、耳机、温度传感器等等)可以与具有可操作显示屏的电子设备(例如,平板、手机等等)建立通信连接。当手机104邀请该类不具备可操作显示屏的电子设备时,与该类不具备可操作显示屏的电子设备建立通信连接的具备可操作显示屏的电子设备上可以显示消息提示框,用户可以在可操作显示屏的电子设备中同意或拒绝该类不具备用户可操作显示屏的电子设备加入到传感联邦xxx。Optionally, in another possible implementation manner, such electronic devices without user-operable display screens (for example, air conditioners, earphones, temperature sensors, etc.) , tablet, mobile phone, etc.) to establish a communication connection. When the mobile phone 104 invites this type of electronic device without an operable display screen, a message prompt box can be displayed on the electronic device with an operable display screen that establishes a communication connection with this type of electronic device without an operable display screen, and the user can In electronic devices with operable display screens, agree or reject such electronic devices that do not have user-operable display screens to join the sensor federation xxx.
在一种可能的实现方式中,用户还可以在手机104中的可以用于查看传感联邦列表的用户界面中查看传感联邦中的成员(即加入传感联邦的电子设备)。In a possible implementation manner, the user can also check the members of the sensor federation (that is, the electronic devices that join the sensor federation) in the user interface on the mobile phone 104 that can be used to view the list of sensor federations.
如图8H所示,图8H示例性地示出了手机104的用户界面80H。用户界面80H中可以包括控件8501、文本信息8502、文本信息8503、控件8504、控件8505以及控件8506、文本信息8507、控件8508、控件8509、控件8510。关于用户界面80H中控件的具体作用可以参考用户界面80E中的描述,此处不再赘述。用户可以通过点击控件8504查看传感联邦xxx中的成员。手机104响应于用户点击控件8504的操作,可以显示用户界面80I。As shown in FIG. 8H , FIG. 8H exemplarily shows a user interface 80H of the cell phone 104 . The user interface 80H may include a control 8501 , text information 8502 , text information 8503 , control 8504 , control 8505 , control 8506 , text information 8507 , control 8508 , control 8509 , and control 8510 . For the specific functions of the controls in the user interface 80H, reference may be made to the description in the user interface 80E, which will not be repeated here. The user can view the members in the sensing federation xxx by clicking the control 8504. Cell phone 104 may display user interface 801 in response to the user's operation of clicking control 8504 .
如图8I所示,图8I示例性地示出了手机104的用户界面80I。该用户界面80I中可以包括控件8801、文本信息8802、成员列表栏8803。控件8801可以用于返回上一级界面。文本信息8802可以指示当前界面用于查看传感联邦xxx中的成员。成员列表栏8803可以用于显示传感联邦xxx中的成员。该成员列表栏8803可以包括传感联邦xxx的成员平板105、以及该成员平板105对应的控件8804和控件8805、以及滑动栏8806。控件8804可以用于设置平板105的权限(例如,平板105可以提供的传感器数据,以及平板105需要的传感器数据)。控件8805可用于将平板105退出传感联邦xxx。滑动栏8806可以用于显示成员列表栏8803中未显示的传感联邦xxx中的其他成员。As shown in FIG. 8I , FIG. 8I exemplarily shows a user interface 80I of the mobile phone 104 . The user interface 80I may include a control 8801, text information 8802, and a member list column 8803. Control 8801 can be used to return to the previous interface. Text information 8802 may indicate that the current interface is used to view members in sensing federation xxx. The member list column 8803 can be used to display the members in the sensing federation xxx. The member list bar 8803 may include a member tablet 105 of the sensing federation xxx, a control 8804 and a control 8805 corresponding to the member tablet 105, and a sliding bar 8806. Control 8804 can be used to set the permissions of tablet 105 (eg, the sensor data that tablet 105 can provide, and the sensor data that tablet 105 requires). Control 8805 may be used to withdraw tablet 105 from sensory federation xxx. The sliding bar 8806 may be used to display other members of the sensing federation xxx not displayed in the member list bar 8803.
可以理解的是,上述图8A-图8B示出的用户界面仅为示例。上述图8A-图8I示出的用户界面可以包括更少或更多的界面元素,或者上述用户界面的元素在用户界面中的位置可以有所变化,本申请实施例对此不作限定。It can be understood that the above user interfaces shown in FIGS. 8A-8B are only examples. The user interface shown in FIG. 8A-FIG. 8I may include fewer or more interface elements, or the positions of elements of the user interface in the user interface may be changed, which is not limited in this embodiment of the present application.
可以理解的是,用户可以通过手机104中的联邦管理中心应用程序调用手机104中功能模块,即联邦管理中心。关于联邦管理中心可以参考图3中对联邦管理中心30的描述以及图5中对联邦管理中心30的描述,此处不再赘述。It can be understood that the user can call the function module in the mobile phone 104, that is, the federation management center, through the application program of the federation management center in the mobile phone 104 . Regarding the federation management center, reference may be made to the description of the federation management center 30 in FIG. 3 and the description of the federation management center 30 in FIG. 5 , and details are not repeated here.
在另一些可能的示例中,电子设备中可以安装有传感联邦引擎应用程序。用户可以通过该传感联邦引擎应用程序搜索其他电子设备创建的传感联邦,并加入其他电子设备创建的传感联邦。下面以平板105中安装有传感联邦引擎应用程序,用户通过该传感联邦引擎应用程序加入手机104创建的传感联邦xxx为例进行阐述说明。In other possible examples, a sensor federation engine application may be installed in the electronic device. Users can search for and join sensor federations created by other electronic devices through the sensor federation engine application. In the following, the tablet 105 is installed with a sensor federation engine application program, and the user joins the sensor federation xxx created by the mobile phone 104 through the sensor federation engine application program as an example for illustration.
图9A-图9G示例性地展示了用户通过平板105中的传感联邦引擎应用程序,将平板105加入到手机104创建的传感联邦xxx的具体过程。9A-9G exemplarily show the specific process of adding the tablet 105 to the sensor federation xxx created by the mobile phone 104 through the sensor federation engine application program in the tablet 105 .
如图9A所示,图9A示例性地示出了平板105的用户界面90A。该用户界面90A可以是平板105的主界面。该用户界面90A中可以包括传感联邦引擎应用程序的图标9101。该用户界面90A还可以包括其他应用程序的图标,例如天气应用程序的图标、邮件应用程序的图标 等等,在此不赘述。用户可以在该用户界面90A中点击该传感联邦引擎应用程序的图标9101。响应于该用户操作,平板105可以显示用户界面90B。As shown in FIG. 9A , FIG. 9A exemplarily shows a user interface 90A of the tablet 105 . The user interface 90A may be the main interface of the tablet 105 . The user interface 90A may include an icon 9101 for the sensor federation engine application. The user interface 90A may also include icons of other application programs, such as icons of weather application programs, icons of mail application programs, etc., which will not be described in detail here. A user may click on the sensor federation engine application icon 9101 in the user interface 90A. In response to this user operation, tablet 105 may display user interface 90B.
如图9B所示,图9B示例性地示出了平板105的用户界面90B。该用户界面90B可以包括控件9201、控件9202以及控件9203。控件9201可以用于搜索附近可加入的传感联邦。控件9202可以查看平板105当前已加入的传感联邦。控件9203可以用于查看平板105加入过的历史传感联邦(之前加入过的传感联邦,但当前不在该传感联邦中)。用户可以点击用户界面90B中的控件9201,响应于该用户操作,平板105可以显示用户界面90C。As shown in FIG. 9B , FIG. 9B exemplarily shows a user interface 90B of the tablet 105 . The user interface 90B may include a control 9201 , a control 9202 and a control 9203 . Control 9201 may be used to search for nearby sensory federations to join. The control 9202 can view the sensing federations that the tablet 105 has currently joined. The control 9203 can be used to view the historical sensor federations that the tablet 105 has joined (the sensor federations that have joined before, but are not currently in the sensor federation). A user may click on control 9201 in user interface 90B, and in response to the user action, tablet 105 may display user interface 90C.
如图9C所示,图9C示例性地示出了平板105的用户界面90C。该用户界面90C可以包括控件9301、文本信息9302、传感联邦列表9303。控件9301可以用于返回上一级界面。文本信息9302可以指示当前界面用于搜索附近可以加入的传感联邦。传感联邦列表9303可以用于展示附近的传感联邦。传感联邦列表9303中可以包括传感联邦xxx以及传感联邦xxx对应的控件9304、传感联邦aaa以及传感联邦aaa对应的控件9305、传感联邦bbb以及传感联邦bbb对应的控件9306、传感联邦ccc以及传感联邦ccc对应的控件9307、传感联邦ddd以及传感联邦ddd对应的控件9308、以及滑动栏9309。控件9304可以用于申请加入传感联邦xxx。控件9305可以用于申请加入传感联邦aaa。控件9306可以用于申请加入传感联邦bbb。控件9307可以用于申请加入传感联邦ccc。控件9308可以用于申请加入传感联邦ddd。滑动栏9309可以用于显示传感联邦列表9303中未显示的传感联邦。As shown in FIG. 9C , FIG. 9C exemplarily shows a user interface 90C of the tablet 105 . The user interface 90C may include a control 9301 , text information 9302 , and a sensor federation list 9303 . Control 9301 can be used to return to the previous interface. Text information 9302 may indicate that the current interface is used to search for nearby sensor federations that can be joined. The sensor federation list 9303 can be used to display nearby sensor federations. The sensor federation list 9303 may include the sensor federation xxx and the control 9304 corresponding to the sensor federation xxx, the sensor federation aaa and the control 9305 corresponding to the sensor federation aaa, the sensor federation bbb and the control 9306 corresponding to the sensor federation bbb, The sensor federation ccc and the control 9307 corresponding to the sensor federation ccc, the sensor federation ddd and the control 9308 corresponding to the sensor federation ddd, and the sliding bar 9309. The control 9304 can be used to apply for joining the sensor federation xxx. The control 9305 can be used to apply for joining the sensing federation aaa. The control 9306 can be used to apply for joining the sensing federation bbb. Control 9307 can be used to apply for joining the sensing federation ccc. Control 9308 can be used to apply for joining the sensing federation ddd. The sliding bar 9309 may be used to display sensor federations not displayed in the sensor federation list 9303 .
可以理解的是,该传感联邦列表9303中可以显示更多或更少的传感联邦。用户界面90C中可以显示更多或更少的界面元素,本申请实施例对可以用于搜索并展示附近可以加入的传感联邦的用户界面不作限定。It can be understood that more or fewer sensor federations may be displayed in the sensor federation list 9303 . More or fewer interface elements may be displayed on the user interface 90C, and the embodiment of the present application does not limit the user interface that can be used to search and display nearby sensor federations that can be added.
当用户想要加入手机104创建的传感联邦xxx时,用户可以点击用户界面90C中的控件9304。响应于该用户操作,平板105可以向手机104发送申请加入传感联邦xxx的通知消息。手机104可以接收该通知消息并显示用户界面90D。When the user wants to join the sensing federation xxx created by the mobile phone 104, the user may click on the control 9304 in the user interface 90C. In response to the user operation, the tablet 105 may send a notification message to the mobile phone 104 to apply for joining the sensor federation xxx. Cell phone 104 may receive the notification message and display user interface 90D.
如图9D所示,图9D示例性地示出了手机104的用户界面90D。该用户界面90D中可以包括消息通知框9401。消息通知框9401中可以包括文本信息以及控件9402和控件9403。消息通知框9401中的文本信息可以用于指示平板105申请加入传感联邦xxx。该消息通知框9401中的文本信息的内容可以是“平板105申请加入传感联邦xxx”。控件9402可以用于同意平板105加入传感联邦xxx。控件9403可以用于拒绝平板105加入传感联邦xxx。As shown in FIG. 9D , FIG. 9D exemplarily shows a user interface 90D of the mobile phone 104 . The user interface 90D may include a message notification box 9401 . The message notification box 9401 may include text information and a control 9402 and a control 9403 . The text information in the message notification box 9401 may be used to instruct the tablet 105 to apply for joining the sensor federation xxx. The content of the text information in the message notification box 9401 may be "the tablet 105 applies to join the sensor federation xxx". Control 9402 may be used to agree to the tablet 105 joining the sensory federation xxx. The control 9403 can be used to refuse the tablet 105 to join the sensor federation xxx.
在一种可能的实现方式中,用户点击用户界面90D中的控件9402后,手机104可以向平板105发送同意平板105加入传感联邦xxx的通知消息。平板105可以接收该通知消息并显示用户界面90E。In a possible implementation manner, after the user clicks the control 9402 in the user interface 90D, the mobile phone 104 may send a notification message to the tablet 105 agreeing that the tablet 105 joins the sensor federation xxx. Tablet 105 may receive the notification message and display user interface 90E.
如图9E所示,图9E示例性地示出了平板105的用户界面90E。该用户界面90E可以包括消息通知框9501、以及控件9201、控件9202、控件9203。该消息通知框9501可以用于提示用户平板105已成功加入传感联邦xxx。该消息通知框9501的内容可以是“已成功加入传感联邦,可在已加入的传感联邦中查询,并设置权限”。本申请实施例对该消息通知框9501中的具体内容不作限定。关于控件9201、控件9202、控件9203可以参考图9B中的描述,此处不再赘述。用户可以点击控件9202,响应于该用户操作,平板105可以显示用户界面90F。As shown in FIG. 9E , FIG. 9E exemplarily shows a user interface 90E of the tablet 105 . The user interface 90E may include a message notification box 9501 , and a control 9201 , a control 9202 , and a control 9203 . The message notification box 9501 can be used to prompt the user that the tablet 105 has successfully joined the sensor federation xxx. The content of the message notification box 9501 may be "successfully joined the sensor federation, you can query and set permissions in the joined sensor federation". The embodiment of this application does not limit the specific content in the message notification box 9501. Regarding the control 9201, the control 9202, and the control 9203, reference may be made to the description in FIG. 9B , which will not be repeated here. A user may click on control 9202, and in response to this user action, tablet 105 may display user interface 90F.
如图9F所示,图9F示例性地示出了平板105的用户界面90F。该用户界面90F中可以包括控件9601、文本信息9602、控件9603、控件9604、文本信息9605、控件9606以及控件9607。控件9601可以用于返回上一级界面。文本信息9602可以用于指示平板105加入的传感联邦xxx以及加入该传感联邦xxx的时间(例如,1分钟前)。控件9603可以用于设置 平板105在传感联邦xxx中的权限。控件9604可以用于将平板105退出传感联邦xxx。文本信息9605可以用于指示平板105加入的传感联邦111以及加入该传感联邦111的时间(例如,3天前)。控件9606可以用于设置平板105在传感联邦111中的权限。控件9607可以用于将平板105退出传感联邦111。用户可以在该用户界面90F中点击控件9603,响应于该用户操作,平板105可以显示用户界面90G。As shown in FIG. 9F , FIG. 9F exemplarily shows a user interface 90F of the tablet 105 . The user interface 90F may include a control 9601 , text information 9602 , control 9603 , control 9604 , text information 9605 , control 9606 and control 9607 . Control 9601 can be used to return to the previous interface. The text information 9602 may be used to indicate the sensor federation xxx joined by the tablet 105 and the time (for example, 1 minute ago) when the tablet 105 joined the sensor federation xxx. The control 9603 can be used to set the authority of the tablet 105 in the sensor federation xxx. Control 9604 may be used to withdraw tablet 105 from sensory federation xxx. The text message 9605 may be used to indicate the sensory federation 111 that the tablet 105 joined and the time (eg, 3 days ago) when the tablet 105 joined the sensory federation 111 . The control 9606 can be used to set the authority of the tablet 105 in the sensor federation 111 . Control 9607 may be used to withdraw tablet 105 from sensory federation 111. The user can click the control 9603 in the user interface 90F, and in response to the user operation, the tablet 105 can display the user interface 90G.
如图9G所示,图9G示例性地示出了平板105的用户界面90G。控件9701、选项框9702、以及控件9714。控件9701可以用于返回上一级界面。选项框9702可以包括控件9703、控件9704、控件9705、控件9706以及滑动栏9707。控件9703可以用于选择“加速度”作为平板105可以提供传感器数据。控件9704可以用于选择“位置”作为平板105可以提供的传感器数据。控件9705可以用于选择“心率”作为平板105可以提供的传感器数据。控件9706可以用于选择“体温”作为平板可以提供的传感器数据。滑动栏9707可以用于查看选项框9702中未显示的内容。控件9714可以用于指示完成平板105在传感联邦xxx中的权限设置。As shown in FIG. 9G , FIG. 9G exemplarily shows a user interface 90G of the tablet 105 . Control 9701 , option box 9702 , and control 9714 . Control 9701 can be used to return to the previous interface. Option box 9702 may include control 9703 , control 9704 , control 9705 , control 9706 , and slide bar 9707 . Control 9703 can be used to select "acceleration" as the tablet 105 can provide sensor data. Control 9704 may be used to select a "location" as sensor data that tablet 105 may provide. Control 9705 may be used to select "heart rate" as sensor data that tablet 105 may provide. Control 9706 can be used to select "body temperature" as sensor data that the tablet can provide. The slide bar 9707 can be used to view content not displayed in the options box 9702. The control 9714 can be used to indicate that the authorization setting of the tablet 105 in the sensor federation xxx is completed.
可以理解的是,上述用户界面90G仅为示例,用户界面90G可以包括更少或更多的界面元素,例如,用户界面90G中还可以包括用于设置平板105可以提供的语义模型的控件。或者,该用户界面90G中还可以包括用于设置平板105所需数据的选项框。此处对用于设置平板105在传感联邦的权限的用户界面不作限定。It can be understood that the above user interface 90G is only an example, and the user interface 90G may include fewer or more interface elements, for example, the user interface 90G may also include controls for setting the semantic model that the tablet 105 may provide. Alternatively, the user interface 90G may also include an option box for setting the data required by the tablet 105 . The user interface for setting the authority of the tablet 105 in the sensor federation is not limited here.
可以理解的是,用户可以通过平板105中的传感联邦引擎应用程序调用平板105中功能模块,即传感联邦引擎模块。关于联邦管理中心可以参考图3以及图4中对传感联邦引擎模块的描述,此处不再赘述。It can be understood that the user can call the function module in the tablet 105, that is, the sensor federation engine module, through the sensor federation engine application program in the tablet 105 . Regarding the federation management center, reference may be made to the description of the sensing federation engine module in FIG. 3 and FIG. 4 , and details will not be repeated here.
在一些可能的示例中,一些电子设备不具备用户可操作的显示屏,例如,空调,耳机,温度传感器等等。不具备用户可操作显示屏的电子设备也可以申请加入传感联邦xxx。In some possible examples, some electronic devices do not have user-operable display screens, eg, air conditioners, earphones, temperature sensors, and the like. Electronic devices that do not have a user-operable display can also apply to join the Sensing Federation xxx.
可选地,在另一种可能的实现方式中,该类不具备用户可操作显示屏的电子设备(例如,空调、耳机、温度传感器等等)可以与具有可操作显示屏的电子设备(例如,平板、手机等等)建立通信连接。用户可以在与该类不具备可操作显示屏的电子设备建立通信连接的具备可操作显示屏的电子设备上申请将该类不具备可操作显示屏的电子设备加入到传感联邦xxx。具体操作过程可以参考上述图9A-图9G中的描述。Optionally, in another possible implementation manner, such electronic devices without user-operable display screens (for example, air conditioners, earphones, temperature sensors, etc.) , tablet, mobile phone, etc.) to establish a communication connection. Users can apply to join this type of electronic device without an operable display screen to the sensor federation xxx on the electronic device with an operable display that establishes a communication connection with this type of electronic device without an operable display. For the specific operation process, reference may be made to the descriptions in FIGS. 9A-9G above.
在一些场景中,一些电子设备上可以具备设备二维码,其他电子设备可以通过扫描该电子设备上的设备二维码来邀请该电子设备加入传感联邦。In some scenarios, some electronic devices may have device QR codes, and other electronic devices may invite the electronic devices to join the sensor federation by scanning the device QR codes on the electronic devices.
在一些场景中,电子设备中的一些数据是电子设备中的一些应用程序得到的,例如,一些运动类的应用程序可以提供用户每天的行走步数和行走距离等数据。若电子设备要向传感联邦提供用户每天的行走步数和行走距离等数据,电子设备可以在传感联邦中设置允许向该类应用程序获取数据的权限。In some scenarios, some data in the electronic device is obtained by some application programs in the electronic device. For example, some sports application programs may provide data such as the number of steps taken by the user every day and the walking distance. If the electronic device wants to provide data such as the number of steps taken by the user every day and the distance traveled to the sensor federation, the electronic device can set permissions in the sensor federation to allow such applications to obtain data.
可以理解的是,传感联邦的联邦管理中心中可以存储有知识图谱,例如,上述图6中的(a)图与图6中的(b)图中示出的知识图谱。联邦管理中心中存储的知识图谱可以用于表征当前该传感联邦中可以采集到的数据,以及这些数据产生的语义信息。例如,传感器1采集的数据data1(例如,时间:工作日上午10点)、传感器2采集的数据data2(例如:当前位置:xxx科技园)以及传感器采集的数据data3(例如,年龄:30岁)可以生成语义信息X(例如,用户在工作)。It can be understood that the federation management center of the sensor federation may store knowledge graphs, for example, the knowledge graphs shown in (a) and (b) of FIG. 6 above. The knowledge graph stored in the federation management center can be used to represent the data that can be collected in the current sensing federation, as well as the semantic information generated by these data. For example, the data data1 collected by sensor 1 (for example, time: 10 am on weekdays), the data data2 collected by sensor 2 (for example: current location: xxx Science Park) and the data data3 collected by sensor (for example, age: 30 years old) Semantic information X (eg, user is working) can be generated.
进一步地,当联邦管理中心收到新的设备加入信息后,该联邦管理中心可以确定该设备是否提供有新类型或者新的精度的数据,如有,则联邦管理中心可以向存储有完整知识图谱 的云服务器获取与该新类型或者新的精度的数据有关的知识图谱。然后,联邦管理中心可以向传感联邦中需要该新类型的数据的电子设备发送通知消息。Further, when the federation management center receives the new device joining information, the federation management center can determine whether the device provides data of a new type or new precision, and if so, the federation management center can store a complete knowledge graph The cloud server obtains the knowledge graph related to the data of the new type or new precision. The federation management center may then send notification messages to electronic devices in the sensing federation that require this new type of data.
在一些场景中,用户可以将自己私有的一些电子设备,例如用户的手机、耳机、平板电脑等等加入到传感联邦中。用户可以按照图7A-图7E或图8A-图8I以及图9A-图9G示出的步骤为用户的电子设备创建传感联邦,并将用户的电子设备加入到传感联邦中。In some scenarios, users can add some of their private electronic devices, such as the user's mobile phone, headset, tablet computer, etc., to the sensor federation. The user can create a sensory federation for the user's electronic device according to the steps shown in FIGS. 7A-7E or 8A-8I and 9A-9G, and add the user's electronic device to the sensory federation.
可以理解的是,在电子设备加入传感联邦时,联邦管理中心可以获取到电子设备的传感能力信息、例如,电子设备的设备ID、电子设备的型号和电子设备中能够提供数据的传感器类型以及该传感器可以提供的数据类型,可以提供数据的软件类型以及该软件可以提供的数据类型、根据传感器采集的数据或者软件产生的数据得到的低阶语义信息、高阶语义信息等等信息。联邦管理中心可以在联邦管理中心所在的电子设备或者云服务器中记录传感联邦中每个电子设备的设备信息。当电子设备中的设备信息有变化时,例如,新下载了应用程序,可以得到一种新类型的数据时,电子设备可以向联邦管理中心上报该新类型的数据。联邦管理中心可以刷新记录。It can be understood that when an electronic device joins a sensing federation, the federation management center can obtain information about the sensing capabilities of the electronic device, such as the device ID of the electronic device, the model of the electronic device, and the type of sensor that can provide data in the electronic device And the type of data that the sensor can provide, the type of software that can provide data and the type of data that the software can provide, low-level semantic information, high-level semantic information and other information obtained from data collected by the sensor or data generated by the software. The federation management center can record the device information of each electronic device in the sensing federation in the electronic device or the cloud server where the federation management center is located. When the device information in the electronic device changes, for example, a new application is downloaded and a new type of data can be obtained, the electronic device can report the new type of data to the federation management center. The federal management center can refresh the record.
在一种可能的实现方式中,在电子设备加入传感联邦时,电子设备可以将电子设备的型号上报给联邦管理中心。联邦管理中心可以基于该电子设备的型号,从云服务器中获取该电子设备的设备能力、In a possible implementation manner, when the electronic device joins the sensing federation, the electronic device may report the model of the electronic device to the federation management center. Based on the model of the electronic device, the federal management center can obtain the device capability,
可选地,联邦管理中心还可以向传感联邦中的其他电子设备获取非个人隐私数据(例如,基站数据、小区数据)用于训练更精准的模型(例如,输入位置可以得到周围小区画像的模型)。Optionally, the federation management center can also obtain non-personal privacy data (for example, base station data, cell data) from other electronic devices in the sensor federation for training a more accurate model (for example, the input position can get the image of surrounding cells Model).
在一些场景中,传感联邦中的电子设备可以按照上述图8I所示在联邦管理中心的联邦管理中心应用程序中选择退出传感联邦。或者传感联邦中的电子设备也可以按照上述图9F所示在电子设备的传感联邦引擎应用程序中选择退出传感联邦。In some scenarios, the electronic devices in the sensing federation can opt out of the sensing federation in the federation management center application program of the federation management center as shown in FIG. 8I above. Alternatively, the electronic device in the sensor federation can also choose to quit the sensor federation in the sensor federation engine application program of the electronic device as shown in FIG. 9F above.
在另一些场景中,当传感联邦中的电子设备在预设时长处于离线状态(例如,与联邦管理中心的通信连接中断,或者电子设备未连接到互联网、或者电子设备关机等等状态)时,该电子设备退出传感联邦。In other scenarios, when the electronic equipment in the sensor federation is offline for a preset period of time (for example, the communication connection with the federation management center is interrupted, or the electronic equipment is not connected to the Internet, or the electronic equipment is turned off, etc.) , the electronic device exits the sensing federation.
在一些场景中,传感联邦中的电子设备采集到异常数据后主动上报给联邦管理中心。联邦管理中心可以基于该异常数据进行相关的推荐或决策,或修改相应的判断结果。可选地,联邦管理中心还可以基于异常数据向传感联邦中的其他电子设备发送相关的通知或推荐。例如,传感联邦中的手表采集到体温数据“用户体温为39°”,手表判断该体温数据为异常数据,可以向联邦管理中心上报“用户体温为39°”的异常体温数据,以及基于该体温数据得到的语义信息“用户生病了”。联邦管理中心接收到手表发送的异常体温数据,以及基于该体温数据得到的语义信息“用户生病了”。联邦管理中心可以调整联邦管理中心中存储的用户原始体温数据和健康状态数据。联邦管理中心还可以将该异常体温数据和基于该体温数据得到的语义信息“用户生病了”发送给需要该类数据的电子设备。该电子设备中收到该类数据后,基于该类数据调整电子设备中模型的输出。例如,电子设备收到“用户生病了”的语义信息后,电子设备中用于智能推荐路线的模型可能会规划用户从当前位置到医院的路线,而不是规划用户从当前位置回家的路线。电子设备还可以根据“用户体温为39°”推荐合适的药物或降温方式给用户。该电子设备还可以记录根据该用户的体温数据以及语义信息得到的其他数据。In some scenarios, electronic devices in the sensor federation actively report to the federation management center after collecting abnormal data. The federal management center can make relevant recommendations or decisions based on the abnormal data, or modify the corresponding judgment results. Optionally, the federation management center can also send relevant notifications or recommendations to other electronic devices in the sensor federation based on the abnormal data. For example, if a watch in the sensing federation collects body temperature data "the user's body temperature is 39°", the watch judges that the body temperature data is abnormal data, and can report the abnormal body temperature data of "the user's body temperature is 39°" to the federation management center, and based on this The semantic information obtained from body temperature data is "the user is sick". The federal management center receives the abnormal body temperature data sent by the watch, and the semantic information "user is sick" based on the body temperature data. The federal management center can adjust the user's original body temperature data and health status data stored in the federal management center. The federal management center can also send the abnormal body temperature data and the semantic information "user is sick" obtained based on the body temperature data to electronic devices that need such data. After receiving the data of this type, the electronic device adjusts the output of the model in the electronic device based on the data of this type. For example, after the electronic device receives the semantic information of "the user is sick", the model used in the electronic device for intelligent route recommendation may plan the user's route from the current location to the hospital instead of planning the user's home from the current location. The electronic device can also recommend appropriate medicines or cooling methods to the user according to "the user's body temperature is 39°". The electronic device can also record other data obtained according to the user's body temperature data and semantic information.
进一步地,在一种可能的实现方式中,用户可以将传感联邦中电子设备可提供的传感器数据或语义信息设置重要等级。例如,重要级(意外伤害、严重疾病、老人跌倒/小朋友位置异常等数据或语义信息),普通级(一般疾病、加班等数据或语义信息)。当传感联邦中的一 个电子设备中采集到重要级的数据后,可以实时上报给传感联邦中的联邦管理中心,联邦管理者中心可以发送通知消息给传感联邦中的其他电子设备。可选地,在一种可能的实现方式中,用户可以设置传感联邦中一个或多个电子设备可以提供的数据的种类,例如,身体健康类,异常位置类数据等等。可选地,该设置可以被分享给其他联邦用户可选地,收到提醒消息后,可以给对方发语音/通知/其他信息进行反馈,比如加班的时候提醒注意休息之类的。可选地,同一传感联邦内的成员可以互相设置提醒、日程等信息。如:原本约了晚上7点家庭聚餐,其中一个家庭成员爸爸的电子设备的日历中临时被添加了会议,则其他用户妈妈的电子设备可以收到提醒消息,并且妈妈的电子设备可以对收到的提醒进行回复,如早点儿吃饭,注意休息等。Further, in a possible implementation manner, the user can set an importance level for sensor data or semantic information that can be provided by electronic devices in the sensor federation. For example, important level (data or semantic information such as accidental injury, serious illness, elderly fall/children’s abnormal position), and general level (data or semantic information such as general illness and overtime). When important data is collected by an electronic device in the sensor federation, it can be reported to the federation management center in the sensor federation in real time, and the federation manager center can send notification messages to other electronic devices in the sensor federation. Optionally, in a possible implementation manner, the user can set the type of data that one or more electronic devices in the sensor federation can provide, for example, data of physical health, data of abnormal location, and so on. Optionally, this setting can be shared with other federated users. Optionally, after receiving the reminder message, you can send a voice/notification/other information to the other party for feedback, such as reminding to pay attention to rest when working overtime. Optionally, members in the same sensor federation can set reminders, schedules and other information with each other. For example: a family dinner was originally scheduled at 7:00 p.m., and a meeting is temporarily added to the calendar of one of the family members’ father’s electronic devices, then other users’ mother’s electronic devices can receive reminder messages, and the mother’s electronic devices can receive reminders. Respond to reminders, such as eating early, taking a break, etc.
在一些场景中,一些需要某些特定数据的社团或者单位可以在服务器中建立传感联邦kkk,服务器可以为该传感联邦的联邦管理中心,并将该传感联邦生成应用程序或者网址、或者二维码发布出来,愿意提供数据的用户可以在电子设备中安装该应用程序,可以通过打开该网址。用户的电子设备可以通过该应用程序或网址向传感联邦kkk中的服务器上报数据。若该电子设备已经同时也加入到了另一个传感联邦xxx,电子设备也可以在传感联邦xxx中获取授权,将传感联邦xxx中的数据上传给传感联邦kkk中的服务器。In some scenarios, some communities or units that need certain specific data can establish a sensory federation kkk in the server, and the server can be the federation management center of the sensory federation, and generate an application program or a website for the sensory federation, or The two-dimensional code is released, and users who are willing to provide data can install the application program in the electronic device, and can open the URL by opening the URL. The user's electronic device can report data to the server in the sensor federation kkk through the application program or website. If the electronic device has also joined another sensory federation xxx, the electronic device can also obtain authorization from the sensory federation xxx, and upload the data in the sensory federation xxx to the server in the sensory federation kkk.
在一个可行的例子中,心脑血管研究社团在服务器建立了一个传感联邦kkk,并发布了用于加入该传感联邦kkk的应用程序或网址。愿意提供的用户可以下载应用程序或通过网址加入该传感联邦kkk。In a feasible example, the cardiovascular and cerebrovascular research community establishes a sensory federation kkk on the server, and releases an application program or website for joining the sensory federation kkk. Users who are willing to provide can download the application program or join the sensor federation kkk through the URL.
在另一个可行的例子中,举办活动(例如,马拉松比赛)的主办方可以在服务器中创建一个传感联邦,该传感联邦用于监控活动参与者的身体状况(比如,是否处于失温状态、突发心梗等等)。活动开始前,所有活动参与者的电子设备可以加入传感联邦中。即所有活动参与者的电子设备和活动主办方的服务器组成了一个传感联邦。服务器确认需要收集哪些传感器数据来对发病情况进行判断。如果活动参与者的电子设备自带监测功能,则可以只上报监控结果给服务器。如果活动参与者的电子设备不带监测功能,则按照服务器的需求来上报相应的传感器数据。上报的方式可以为实时上报,或者为某个传感器数据异常时上报。服务器通过对收集到的传感器数据进行推理,判断活动参与者的身体状态,如果有异常,则上报活动主办方,对该活动参与者进行紧急救助。In another possible example, the organizer of an event (e.g., a marathon) can create a sensor federation in the server, which is used to monitor the physical conditions of the event participants (e.g., whether they are hypothermic , sudden myocardial infarction, etc.). Before the event starts, the electronic devices of all event participants can join the sensor federation. That is, the electronic devices of all event participants and the server of the event organizer form a sensor federation. The server confirms which sensor data needs to be collected to judge the disease condition. If the electronic devices of the activity participants have their own monitoring functions, they can only report the monitoring results to the server. If the electronic equipment of the activity participant does not have a monitoring function, the corresponding sensor data will be reported according to the requirements of the server. The reporting method can be real-time reporting, or reporting when a certain sensor data is abnormal. The server judges the physical status of the event participants by reasoning the collected sensor data. If there is any abnormality, it will report to the event organizer and provide emergency assistance to the event participants.
在一些可行的例子中,在几个用户组团自驾游的时候,几个用户的手机(例如,用户1的手机mobile1、用户2的手机mobile2、以及用户3的手机mobile3)和车机(例如,用户1的车机vehicle1、用户2的车机vehicle2、以及用户3的车机vehicle3)可以按照上述图7A-图7E或者图8A-图8I以及图9A-图9G示出的步骤组建传感联邦。手机mobile1中有身体状态推测模型。手机mobile2和手机mobile3上没有该身体状态推测模型。用户可以设置将手机mobile2和手机mobile3中可以用于推测身体状态的传感器数据发送给手机mobile1。当手机mobile1根据手机mobile2或者手机mobile3发送的传感器数据推测出用户身体状态有异常时,可以向手机mobile2或者手机mobile3发送提醒消息。手机mobile2中有地图上加油站和车机油量的关联模型。手机mobile2中的关联模型可以根据导航数据、车机油量等,提醒加油。手机mobile1、手机mobile3、车机vehicle1、车机vehicle2、以及车机vehicle3都没有该关联模型。在传感联邦中,用户可以设置将车机vehicle1、车机vehicle2、以及车机vehicle3的汽车的型号、油耗和当前油量提供给手机mobile2。手机mobile2会根据这些综合信息,判断出合适的加油站,并给予提醒。In some feasible examples, when several users travel by car in a group, the mobile phones of several users (for example, the mobile phone mobile1 of user 1, the mobile phone of user 2, and the mobile phone of user 3) and the car (for example, The vehicle-machine vehicle1 of user 1, the vehicle-machine vehicle2 of user 2, and the vehicle-machine vehicle3 of user 3) can form a sensor federation according to the steps shown in Figure 7A-Figure 7E or Figure 8A-Figure 8I and Figure 9A-Figure 9G . There is a body state estimation model in mobile1. The body state estimation model does not exist on mobile2 and mobile3. The user can set to send the sensor data in the mobile phone mobile2 and the mobile phone mobile3 that can be used to infer the body state to the mobile phone mobile1. When the mobile phone mobile1 deduces that the user's physical condition is abnormal according to the sensor data sent by the mobile phone mobile2 or mobile phone 3, it can send a reminder message to the mobile phone mobile2 or mobile phone 3. There is an associated model of the gas station on the map and the vehicle oil quantity in mobile2. The association model in the mobile phone mobile2 can remind you to refuel according to the navigation data, the amount of oil in the car, etc. Mobile1, mobile3, vehicle1, vehicle2, and vehicle3 do not have this association model. In the sensor federation, the user can set the vehicle model, fuel consumption and current fuel volume of vehicle1, vehicle2, and vehicle3 to mobile2. The mobile phone mobile2 will judge a suitable gas station based on these comprehensive information and give a reminder.
在一些场景中,当多个电子设备组建传感联邦,可以选择一个计算能力以及存储能力较 强的电子设备作为联邦管理中心。每一个传感联邦可以对应一个传感联邦ID。In some scenarios, when multiple electronic devices form a sensing federation, an electronic device with strong computing and storage capabilities can be selected as the federation management center. Each sensor federation can correspond to a sensor federation ID.
可选地,在一种可能的实现方式中,当一个传感联邦中的作为联邦管理中心的电子设备处于异常状态,或者与无法与其他电子设备进行通信时,可以选择另一个电子设备作为联邦管理中心。Optionally, in a possible implementation, when the electronic device serving as the federation management center in a sensing federation is in an abnormal state, or cannot communicate with other electronic devices, another electronic device can be selected as the federation control center.
多个电子设备组建成传感联邦后,传感联邦中的一个电子设备可以获取到其他的一个或多个电子设备的传感器采集的数据,或者由其他的一个或多个电子设备传感器采集的数据得到的语义信息。After multiple electronic devices form a sensory federation, one electronic device in the sensory federation can obtain the data collected by the sensors of one or more other electronic devices, or the data collected by the sensors of one or more other electronic devices Get semantic information.
在本申请实施例中,数据需求设备可以称为第一设备、或第一电子设备、或第六设备。数据采集设备可以称为第二设备、第三设备、第四设备、第五设备、第六设备、第七设备、或第三电子设备、第四电子设备中的任一项。联邦管理中心也可以称为第二电子设备。In this embodiment of the present application, the data-demanding device may be referred to as a first device, or a first electronic device, or a sixth device. The data acquisition device may be called as the second device, the third device, the fourth device, the fifth device, the sixth device, the seventh device, or any one of the third electronic device and the fourth electronic device. The federal management center may also be referred to as a second electronic device.
下面将详细描述传感联邦中的电子设备如何获取其他电子设备中传感器采集的数据或由传感器采集的数据得到的语义信息。The following will describe in detail how an electronic device in a sensor federation acquires data collected by sensors in other electronic devices or semantic information obtained from data collected by sensors.
图10示例性示出了本申请实施例提供的一种数据采集方法的流程示意图。如图10所示,本申请实施例提供的一种数据采集方法可以包括如下步骤:FIG. 10 exemplarily shows a schematic flowchart of a data collection method provided by an embodiment of the present application. As shown in Figure 10, a data collection method provided by the embodiment of the present application may include the following steps:
S1001、数据需求设备20与联邦管理中心30建立通信连接;数据采集设备40与联邦管理中心30建立通信连接。S1001. The data demand device 20 establishes a communication connection with the federation management center 30; the data collection device 40 establishes a communication connection with the federation management center 30.
数据需求设备20可以通过WLAN、蓝牙、蜂窝网络或者分布式软总线、USB连接线等与联邦管理中心30所在的电子设备建立通信连接,具体可以参考图1中的描述,此处不再赘述。The data demand device 20 can establish a communication connection with the electronic device where the federation management center 30 is located through WLAN, Bluetooth, cellular network, distributed soft bus, USB cable, etc. For details, refer to the description in FIG. 1 , which will not be repeated here.
数据采集设备40可以通过WLAN、蓝牙、蜂窝网络或者分布式软总线、USB连接线等与联邦管理中心30所在的电子设备建立通信连接,具体可以参考图1中的描述此处不再赘述。The data collection device 40 can establish a communication connection with the electronic device where the federation management center 30 is located through WLAN, Bluetooth, cellular network, distributed soft bus, USB cable, etc. For details, please refer to the description in FIG. 1 and will not go into details here.
可以理解的是,数据需求设备20、联邦管理中心30、以及数据采集设备40已建立有数据采集系统(又可以称为传感联邦)。关于数据需求设备20、联邦管理中心30以及数据采集设备40如何建立数据采集系统40可以参考上述图7A-图7E、图8A-图8I、以及图9A-图9G中的描述,此处不再赘述。It can be understood that the data demand device 20, the federation management center 30, and the data collection device 40 have established a data collection system (also called a sensory federation). Regarding how the data demand device 20, the federal management center 30 and the data collection device 40 establish the data collection system 40, you can refer to the descriptions in the above-mentioned Fig. 7A-Fig. 7E, Fig. 8A-Fig. 8I, and Fig. 9A-Fig. 9G. repeat.
关于数据需求设备20可以参考图1和图3中的描述,此处不再赘述。关于联邦管理中心30可以参考图1和图3中的描述,此处不再赘述。关于数据采集设备可以参考图1和图3中的描述,此处不再赘述。Regarding the data demand device 20, reference may be made to the descriptions in FIG. 1 and FIG. 3, which will not be repeated here. Regarding the federation management center 30, reference may be made to the descriptions in FIG. 1 and FIG. 3, which will not be repeated here. Regarding the data acquisition device, reference may be made to the descriptions in FIG. 1 and FIG. 3 , and details are not repeated here.
示例性地,数据需求设备20可以是图2中示出的空调101。联邦管理中心30所在的电子设备可以是图2中示出的手机104或者平板105。可选地,联邦管理中心30所在的电子设备还可以是服务器或者云服务器。数据采集设备40可以是图2中示出的摄像头102、手表103、手机104、平板105、空气质量传感器106的任一个电子设备。Exemplarily, the data demand device 20 may be the air conditioner 101 shown in FIG. 2 . The electronic device where the federation management center 30 is located may be the mobile phone 104 or the tablet 105 shown in FIG. 2 . Optionally, the electronic device where the federation management center 30 is located may also be a server or a cloud server. The data collection device 40 may be any electronic device such as the camera 102 , the watch 103 , the mobile phone 104 , the tablet 105 , and the air quality sensor 106 shown in FIG. 2 .
S1002、数据需求设备20向联邦管理中心30发送数据采集任务请求和采集任务参数,采集任务参数包括采集能力需求、采集周期、采集时长以及采集数据精度、采集算子中的一项或多项。S1002. The data demand device 20 sends a data collection task request and collection task parameters to the federal management center 30. The collection task parameters include one or more of collection capability requirements, collection cycle, collection duration, collection data accuracy, and collection operator.
当数据需求设备20处于工作状态时,数据需求设备20可以生成数据采集任务、以及数据采集参数。数据采集任务用于指示数据需求设备20所需要的数据。采集任务参数可以包括采集能力需求、采集周期、采集时长以及采集数据精度、采集算子中的一项或多项。采集能力需求用于指示数据采集任务中所需的数据对应的数据采集设备的传感能力信息。采集周期用于指示采集数据采集任务中所需数据的周期(例如,每个5分钟需要采集一次该数据采集任务中所需数据)。采集时长用于指示采集数据采集任务中所需数据的时长。采集数据精度用 于指示采集数据任务中所需数据的精度。采集算子用于数据采集设备采集到的传感器数据后,处理该传感器数据的方式。例如,5秒采集到的传感器数据的均值。When the data demand device 20 is in the working state, the data demand device 20 can generate data collection tasks and data collection parameters. The data collection task is used to indicate the data required by the data demand device 20 . The collection task parameters may include one or more of collection capability requirements, collection period, collection duration, collection data accuracy, and collection operator. The collection capability requirement is used to indicate the sensing capability information of the data collection device corresponding to the data required in the data collection task. The collection period is used to indicate the period of collecting the data required in the data collection task (for example, the data required in the data collection task needs to be collected once every 5 minutes). The collection duration is used to indicate the duration of collecting the data required in the data collection task. The Acquisition Data Accuracy is used to indicate the accuracy of the data required in the Acquisition Data task. The collection operator is used to process the sensor data collected by the data collection device. For example, the average value of sensor data collected in 5 seconds.
可以理解的是,本申请实施例对数据采集任务的具体内容不作限定。本申请实施例对任务采集参数的具体内容也不作限定。It can be understood that, the embodiment of the present application does not limit the specific content of the data collection task. The embodiment of the present application does not limit the specific content of the task collection parameters.
具体地,在一种可能的实现方式中,如数据需求设备20中的应用层中的应用程序(例如,APP2011)可以发起数据采集请求。数据需求设备20中的传感联邦引擎模块202可以将应用层中应用程序发起的数据采集请求生成数据采集任务以及采集任务参数。Specifically, in a possible implementation manner, for example, an application program (for example, APP2011) in the application layer of the data demand device 20 may initiate a data collection request. The sensor federation engine module 202 in the data demand device 20 can generate data collection tasks and collection task parameters from data collection requests initiated by applications in the application layer.
示例性地,以数据需求设备20是图2中示出的空调101为例进行阐述说明上述数据采集任务以及采集任务参数。空调101中可以有用于调节智能模式的软件,该软件可以根据环境中的温度自动调节空调101的工作模式(制冷、制热、扫风等等)以及空调的制冷或制热温度。当空调101开启智能模式后,空调101中用于调节智能模式的软件需要环境中的温度数据。该用于调节智能模式的软件可以每隔30分钟根据环境中的温度数据。空调101中的传感联邦引擎模块202可以生成用于获取环境中温度数据的数据采集任务(即采集环境中的温度数据)以及采集任务参数(即采集周期为每隔30分钟一次)。Exemplarily, the above-mentioned data collection task and collection task parameters will be described by taking the air conditioner 101 shown in FIG. 2 as an example where the data demand device 20 is used. The air conditioner 101 may have software for adjusting the intelligent mode, which can automatically adjust the working mode (cooling, heating, sweeping, etc.) of the air conditioner 101 and the cooling or heating temperature of the air conditioner according to the temperature in the environment. When the smart mode of the air conditioner 101 is turned on, the software for adjusting the smart mode in the air conditioner 101 needs temperature data in the environment. The software used to adjust the smart mode can be based on temperature data in the environment every 30 minutes. The sensing federation engine module 202 in the air conditioner 101 can generate a data collection task for obtaining temperature data in the environment (ie, collect temperature data in the environment) and collection task parameters (ie, the collection cycle is once every 30 minutes).
可以理解的是,数据采集任务中可以包括采集一种或多种类型的数据。当数据采集任务为采集多种类型的数据(例如,室外温度数据、用户身份、用户健康等多种类型的数据)时,该数据采集任务可以对应一个或多个数据采集设备40。即,该数据采集任务中的需要采集的多种类型的数据可以由一个数据采集设备40采集,也可以由多个数据采集设备40采集。可以理解的,数据采集任务中需要采集的每一种类型的数据也可以由一个或多个数据采集设备40采集。本申请实施例对此不作限定。下文中以一个数据采集任务中需要一种类型的数据为例进行阐述。It can be understood that the data collection task may include collecting one or more types of data. When the data collection task is to collect multiple types of data (for example, outdoor temperature data, user identity, user health and other types of data), the data collection task may correspond to one or more data collection devices 40 . That is, multiple types of data to be collected in the data collection task may be collected by one data collection device 40 , or may be collected by multiple data collection devices 40 . It can be understood that each type of data that needs to be collected in the data collection task can also be collected by one or more data collection devices 40 . This embodiment of the present application does not limit it. In the following, a data collection task that requires one type of data is used as an example to illustrate.
数据需求设备20可以将数据采集任务和采集任务参数发送给联邦管理中心30。The data demand device 20 can send the data collection task and the collection task parameters to the federation management center 30 .
在一种可能的实现方式中,图11示例性地示出了数据需求设备20向联邦管理中心30发送数据采集任务请求和采集任务参数的步骤流程图。如图11所示,数据需求设备20向联邦管理中心30发送数据采集任务请求和采集任务参数可以包括如下步骤:In a possible implementation manner, FIG. 11 exemplarily shows a flow chart of steps in which the data demand device 20 sends a data collection task request and collection task parameters to the federation management center 30 . As shown in Figure 11, the data demand device 20 sends the data collection task request and the collection task parameters to the federation management center 30 may include the following steps:
S10011、数据需求设备20确定是否记录有满足采集任务参数的数据采集设备40。若有,则执行步骤S10012a;若没有,则执行步骤S10012b。S10011. The data demand device 20 determines whether there is a data collection device 40 that meets the parameters of the collection task. If yes, execute step S10012a; if not, execute step S10012b.
若数据需求设备20中记录有数据采集设备40完成过该数据采集任务、且满足该采集任务参数的历史记录,则可以执行步骤S10012;否则,执行步骤S10012b。If the data demand device 20 records a historical record that the data collection device 40 has completed the data collection task and satisfies the parameters of the collection task, step S10012 can be executed; otherwise, step S10012b can be executed.
S10012a、数据需求设备20请求与数据采集设备40建立通信连接,向数据采集设备40发送采集任务请求和采集任务参数。S10012a, the data demand device 20 requests to establish a communication connection with the data collection device 40 , and sends a collection task request and collection task parameters to the data collection device 40 .
数据需求设备20可以直接请求与数据采集设备40建立通信连接。该数据采集设备40曾经完成过数据需求设备20发送的该数据采集任务,以及符合该任务采集参数。数据需求设备20可以直接将采集任务请求和采集任务参数发送给该数据采集设备40。这样,无需执行下述步骤S1003-S1005以及S1006a和S1006b。The data demand device 20 may directly request to establish a communication connection with the data collection device 40 . The data collection device 40 has completed the data collection task sent by the data demand device 20 and complies with the collection parameters of the task. The data demand device 20 may directly send the collection task request and the collection task parameters to the data collection device 40 . In this way, the following steps S1003-S1005 and S1006a and S1006b do not need to be performed.
S10012b、数据需求设备20向联邦管理中心30发送数据采集任务请求和采集任务参数。S10012b. The data demand device 20 sends a data collection task request and collection task parameters to the federation management center 30 .
这里,可以参考上文中的描述,此处不再赘述。Here, reference may be made to the description above, and details are not repeated here.
S1003、联邦管理中心30基于采集任务参数,确定数据采集任务对应的数据采集设备40。S1003. The federation management center 30 determines the data collection device 40 corresponding to the data collection task based on the collection task parameters.
联邦管理中心30可以接收到数据需求设备20发送的数据采集任务和采集任务参数。联邦管理中心30可以存储有不同传感能力信息列表,该传感能力信息列表中可以包括不同的传感能力信息,每个传感能力信息包含的语义信息的ID、以及可以提供语义信息的一个或多个 设备等等。联邦管理中心30可以基于该数据采集任务的采集任务参数确定完成该数据采集任务需要的语义信息x1,在传感能力信息列表中查询对应的能够提供语义信息x1的数据采集设备40。传感能力信息列表具体可以如下表1所示。The federation management center 30 may receive the data collection task and collection task parameters sent by the data demand device 20 . The federal management center 30 may store a list of different sensing capability information, which may include different sensing capability information, the ID of the semantic information contained in each sensing capability information, and an ID that can provide semantic information. or multiple devices and so on. The federation management center 30 can determine the semantic information x1 required to complete the data collection task based on the collection task parameters of the data collection task, and query the corresponding data collection device 40 that can provide the semantic information x1 in the sensing capability information list. The sensing capability information list may be specifically shown in Table 1 below.
表1示例性地示出了联邦管理中心30中的传感能力信息列表。Table 1 exemplarily shows a list of sensing capability information in the federation management center 30 .
表1 传感能力信息列表Table 1 Sensing capability information list
Figure PCTCN2022128453-appb-000001
Figure PCTCN2022128453-appb-000001
如表1所示,表1中示例性地示出多个设备的传感能力信息。每个设备的传感能力信息可以包括每个设备能够提供的语义信息、以及语义信息ID、以及所提供的语义信息的数据精度、设备所在的位置等等信息。As shown in Table 1, the sensing capability information of multiple devices is exemplarily shown in Table 1. The sensing capability information of each device may include information such as semantic information that each device can provide, a semantic information ID, data accuracy of the provided semantic information, a location of the device, and the like.
如表1所示,表1的可以包括环境温度数据、用户身份、用户运动步数、用户体温、用户疲劳度等等语义信息,以及环境温度数据、用户身份、用户运动步数、用户体温等等传感能力分别对应的语义信息ID、提供语义信息的电子设备、电子设备的ID、数据精度、电子设备所在位置等等。As shown in Table 1, Table 1 can include semantic information such as environmental temperature data, user identity, user's exercise steps, user body temperature, user fatigue, etc., as well as environmental temperature data, user identity, user's exercise steps, user body temperature, etc. Semantic information ID, electronic device that provides semantic information, ID of electronic device, data accuracy, location of electronic device, etc. corresponding to sensing capabilities.
如表1所示,语义信息“环境温度数据”对应的语义信息ID可以是“CGLB0001”。提供该语义信息“环境温度数据”的电子设备可以是温度传感器,该温度传感器的设备型号可以是“XH01”,设备ID可以是“Device 0001”。该温度传感器中提供的环境温度数据的数据精度可以是“±0.01℃”。该温度传感器所在的位置可以是“用户A的卧室”。As shown in Table 1, the semantic information ID corresponding to the semantic information "ambient temperature data" may be "CGLB0001". The electronic device providing the semantic information "ambient temperature data" may be a temperature sensor, the device model of the temperature sensor may be "XH01", and the device ID may be "Device 0001". The data accuracy of the ambient temperature data provided by the temperature sensor may be "±0.01°C". The location where the temperature sensor is located may be "user A's bedroom".
如表1所示,语义信息“用户身份”对应的语义信息ID可以是“CGLB0002”。提供该语义信息“用户身份”的电子设备可以是手机、平板以及电视机。手机的设备型号可以是“XH02”,设备ID可以是“Device 0002”。手机提供的语义信息“用户身份”的数据精度可以是“98%”。手机所在位置可以是空值(例如Null)。平板的设备型号可以是“XH03”,设备ID可以是“Device0003”。平板提供的语义信息“用户身份”的数据精度可以是“99%”。平板所在位置可以是“用户A的卧室”。电视机的型号可以是“XH04”,设备ID可以是“Device 0004”。电视机提供的“用户身份”的数据精度可以是“95%”。电视机所在位置可以是“用户A的客厅”。As shown in Table 1, the semantic information ID corresponding to the semantic information "user identity" may be "CGLB0002". Electronic devices that provide the semantic information "user identity" can be mobile phones, tablets, and televisions. The device model of the mobile phone can be "XH02", and the device ID can be "Device 0002". The data accuracy of the semantic information "user identity" provided by the mobile phone can be "98%". The location of the mobile phone can be a null value (such as Null). The device model of the tablet can be "XH03", and the device ID can be "Device0003". The data accuracy of the semantic information "user identity" provided by the tablet can be "99%". The location of the tablet may be "user A's bedroom". The TV model can be "XH04" and the device ID can be "Device 0004". The data accuracy of the "user identity" provided by the television may be "95%". The location of the television may be "user A's living room".
如表1所示,语义信息“用户运动步数”对应的语义信息ID可以是“CGLB0003”。提供该 语义信息“用户运动步数”的电子设备可以是手机、手表、以及手环。手机的设备型号可以是“XH02”,设备ID可以是“Device 0002”。手机提供的语义信息“用户运动步数”的数据精度可以是“0.1步”。手机所在位置可以是空值(例如Null)。手表的型号可以是“XH05”,设备ID可以是“Device 0005”。手表提供的语义信息“用户运动步数”的数据精度可以是“0.5步”。手表所在位置可以是“用户A的卧室”。手环的型号可以是“XH06”,设备ID可以是“Device 0006”。手环提供的语义信息“用户运动步数”的数据精度可以是“0.8步”。手环所在位置可以是空值(例如Null)。As shown in Table 1, the semantic information ID corresponding to the semantic information "user's motion steps" may be "CGLB0003". Electronic devices that provide the semantic information "number of user's motion steps" can be mobile phones, watches, and bracelets. The device model of the mobile phone can be "XH02", and the device ID can be "Device 0002". The data accuracy of the semantic information "user's movement steps" provided by the mobile phone can be "0.1 step". The location of the mobile phone can be a null value (such as Null). The model of the watch can be "XH05" and the device ID can be "Device 0005". The data accuracy of the semantic information "user's motion steps" provided by the watch may be "0.5 steps". The location of the watch may be "user A's bedroom". The model of the bracelet can be "XH06", and the device ID can be "Device 0006". The data accuracy of the semantic information "user's movement steps" provided by the bracelet can be "0.8 steps". The location of the wristband can be a null value (such as Null).
如表1所示,语义信息“用户体温”对应的语义信息ID可以是“CGLB0004”。提供该语义信息“用户体温”的设备可以是手表和手环。手表的型号可以是“XH05”,设备ID可以是“Device0005”。手表提供的语义信息“用户体温”的数据精度可以是“±0.01℃”。手表所在位置可以是“用户A的卧室”。手环的型号可以是“XH06”,设备ID可以是“Device 0006”。手环提供的语义信息“用户体温”的数据精度可以是“±0.02℃”。手环所在位置可以是空值(例如Null)。As shown in Table 1, the semantic information ID corresponding to the semantic information "user body temperature" may be "CGLB0004". Devices that provide the semantic information "user body temperature" can be watches and wristbands. The model of the watch can be "XH05" and the device ID can be "Device0005". The data accuracy of the semantic information "user body temperature" provided by the watch can be "±0.01°C". The location of the watch may be "user A's bedroom". The model of the bracelet can be "XH06", and the device ID can be "Device 0006". The data accuracy of the semantic information "user body temperature" provided by the bracelet can be "±0.02°C". The location of the wristband can be a null value (such as Null).
如表1所示,语义信息“用户疲劳度”的对应的语义信息ID可以是“CGLB0006”。提供该语义信息“用户疲劳度”的电子设备可以是手机、以及手环。手机的设备型号可以是“XH02”,设备ID可以是“Device 0002”。手机提供的语义信息“用户疲劳度”的数据精度可以是“95%”。手机所在位置可以是空值(例如Null)。手环的型号可以是“XH06”,设备ID可以是“Device0006”。手环提供的语义信息“用户疲劳度”的数据精度可以是“92%”。手环所在位置可以是空值(例如Null)。As shown in Table 1, the semantic information ID corresponding to the semantic information "user fatigue" may be "CGLB0006". Electronic devices that provide the semantic information "user fatigue" may be mobile phones and wristbands. The device model of the mobile phone can be "XH02", and the device ID can be "Device 0002". The data accuracy of the semantic information "user fatigue" provided by the mobile phone can be "95%". The location of the mobile phone can be a null value (such as Null). The model of the wristband can be "XH06", and the device ID can be "Device0006". The data accuracy of the semantic information "user fatigue" provided by the wristband can be "92%". The location of the wristband can be a null value (such as Null).
可以理解的是,上述表1仅为示例。联邦管理中心30中可以存储有更多传感能力。以及联邦管理中心30中还可以存储传感能力对应的更多的信息(例如,提供该传感能力的电子设备的资源、以及电子设备的佩戴状态,电源状态以及电子设备中包括的传感器以及传感器的ID、型号、传感器能够提供的原始数据的类型、精度等等)。本申请实施例对联邦管理中心30中存储的传感能力信息列表中包含的内容不作限定。It can be understood that the above Table 1 is only an example. Further sensing capabilities may be stored in federation management center 30 . And more information corresponding to the sensing capability can also be stored in the federal management center 30 (for example, the resource of the electronic device that provides the sensing capability, and the wearing state of the electronic device, the power state, and the sensors and sensor information included in the electronic device. ID, model, type of raw data that the sensor can provide, accuracy, etc.). The embodiment of the present application does not limit the content contained in the sensing capability information list stored in the federation management center 30 .
可以理解的是,当电子设备的位置是在一段时间内固定不变时(例如,电视机。空调),传感能力信息列表中可以记录该电子设备的位置信息。若电子设备的位置不是固定的(例如,手持设备和穿戴设备),该传感能力信息列表中可以不记录该电子设备的位置信息。It can be understood that, when the position of the electronic device is fixed for a period of time (for example, a TV set or an air conditioner), the position information of the electronic device may be recorded in the sensing capability information list. If the position of the electronic device is not fixed (for example, a handheld device or a wearable device), the position information of the electronic device may not be recorded in the sensing capability information list.
可选地,电子设备可以定期地向联邦管理中心上报位置信息。Optionally, the electronic device may periodically report location information to the federation management center.
可以理解的是,联邦管理中心30中传感能力信息列表中的传感能力信息可以是传感联邦中各个电子设备上报给联邦管理中心30。具体地,在数据需求设备20和数据采集设备40加入联邦管理中心30组建的传感联邦的时候,数据需求设备30和数据采集设备40可以分别向联邦管理中心30上报设备中的传感能力信息。联邦管理中心30可以基于数据需求设备20以及数据采集设备40的上报的传感能力信息更新联邦管理中心30中存储的传感能力信息列表。It can be understood that the sensing capability information in the sensing capability information list in the federation management center 30 may be reported to the federation management center 30 by sensing each electronic device in the federation. Specifically, when the data demand device 20 and the data collection device 40 join the sensor federation formed by the federation management center 30, the data demand device 30 and the data collection device 40 can report the sensing capability information in the device to the federation management center 30 respectively . The federation management center 30 may update the sensor capability information list stored in the federation management center 30 based on the sensor capability information reported by the data demand device 20 and the data collection device 40 .
可选地,传感联邦中的设备在加入传感联邦时,可以将该设备的设备型号上报给联邦管理中心。联邦管理中心可以基于该设备的设备型号在云服务器中获取该设备的传感能力信息。云服务器中存储有不同型号的设备分别对应的传感能力信息。Optionally, when a device in the sensor federation joins the sensor federation, it can report the device model of the device to the federation management center. The federal management center can obtain the sensing capability information of the device in the cloud server based on the device model of the device. Sensing capability information corresponding to different types of devices is stored in the cloud server.
可选地,一个传感联邦中的由各个设备的传感能力信息生成的传感能力信息列表可以存储在云服务器或服务器中。联邦管理中信息可以从云服务器或服务器中获取该传感能力信息列表。Optionally, the sensing capability information list generated from the sensing capability information of each device in a sensing federation may be stored in a cloud server or a server. The information in the federation management can obtain the sensing capability information list from the cloud server or the server.
可选地,联邦管理中心也可以使用传感联邦中的另一个设备的存储资源,用于存储联邦管理中心需要存储的数据或信息(例如,传感数据或者传感能力信息列表)。Optionally, the federation management center may also use the storage resources of another device in the sensing federation to store data or information that the federation management center needs to store (for example, a list of sensing data or sensing capability information).
在一种可能的实现方式中,每当一个新的设备型号的设备加入传感联邦时,该联邦管理 中心可以获取到该新设备型号的设备的传感能力信息。联邦管理中心可以基于云服务器中的存储的全量的知识图谱和该新设备型号的设备的传感能力信息,来更新该传感联邦中的传感能力信息列表,以及更新该传感联邦中的局部的知识图谱。In a possible implementation, whenever a new device model joins the sensor federation, the federation management center can obtain the sensing capability information of the new device model. The federation management center can update the sensing capability information list in the sensing federation based on the full amount of knowledge graph stored in the cloud server and the sensing capability information of the new device model, and update the Local knowledge graph.
在本申请实施例中,云端或云服务器、服务器中存储的全量的知识图谱可以称为第二知识图谱。传感联邦中的局部的知识图谱可以称为第一知识图谱。In the embodiment of the present application, the cloud or cloud server, or the entire knowledge graph stored in the server may be referred to as the second knowledge graph. The local knowledge graph in the sensor federation can be called the first knowledge graph.
可选地,联邦管理中心该可以基于云服务器中的存储的全量的知识图谱和该新设备型号的设备的传感能力信息,推到出新类型的传感能力信息,和/或得到用于推导出新类型的传感能力信息的推导模型。Optionally, the federal management center can push out new types of sensing capability information based on the full knowledge graph stored in the cloud server and the sensing capability information of the new device model, and/or obtain information for A derivation model for deriving new types of sensory capability information.
举例来说,当表1中设备型号为“XH06”的手环未加入到该传感联邦中时,该传感联邦中的传感能力信息列表中可以不包括该型号为“XH06”的手环对应的传感能力信息(例如,语义信息“用户体温”对应的提供该语义信息的设备中不包括该型号为“XH06”手环)、以及利用该为“XH06”的手环对应的传感能力信息推导出新类型的传感能力信息(例如,语义信息“用户疲劳度”)。当手环加入该传感联邦后,联邦管理中心可以获取手环的传感能力信息,根据手环提供的语义信息“用户运动步数”和语义信息“用户体温”可以推导出新的传感能力信息,例如语义信息“用户疲劳度”,以及该语义信息“用户疲劳度”的ID、能够提供该语义信息“用户疲劳度”设备、设备型号等传感能力信息。For example, when the wristband with the device model "XH06" in Table 1 is not added to the sensor federation, the sensor capability information list in the sensor federation may not include the wristband with the model "XH06". The sensing capability information corresponding to the ring (for example, the device that provides the semantic information corresponding to the semantic information "user body temperature" does not include the model "XH06" wristband), and using the sensor information corresponding to the "XH06" wristband A new type of sensory capability information (eg, semantic information "user fatigue") is derived from the sensory capability information. When the wristband joins the sensing federation, the federation management center can obtain the sensing capability information of the wristband, and can derive new sensing information based on the semantic information "user's movement steps" and semantic information "user's body temperature" provided by the wristband. Capability information, such as the semantic information "user fatigue", and the ID of the semantic information "user fatigue", can provide the semantic information "user fatigue" device, device model and other sensing capability information.
可选地,在设备加入传感联邦时,联邦管理中心可以给该设备生成一个在该传感联邦中的设备ID。Optionally, when a device joins a sensing federation, the federation management center may generate a device ID in the sensing federation for the device.
在一种可能的实现方式中,当传感联邦中有设备退出时,联邦管理中心可以删除传感能力信息列表中该设备的传感能力信息、以及基于该设备的传感能力信息推导出的新的传感能力信息。In a possible implementation, when a device in the sensing federation withdraws, the federation management center can delete the sensing capability information of the device in the sensing capability information list and the information derived based on the sensing capability information of the device. New sensing capability information.
在一种可能的实现方式中,当该传感联邦解散时,该联邦管理中心可以删除该传感联邦中的传感能力信息列表。In a possible implementation manner, when the sensor federation is dissolved, the federation management center may delete the sensing capability information list in the sensor federation.
在一种可能的实现方式中,图12示例性地示出了联邦管理中心30基于采集任务参数,确定数据采集任务对应的数据采集设备40的具体流程示意图。如图12所示,联邦管理中心30基于采集任务参数,确定数据采集任务对应的数据采集设备40可以包括如下步骤:In a possible implementation manner, FIG. 12 exemplarily shows a specific flowchart of the federation management center 30 determining the data collection device 40 corresponding to the data collection task based on the collection task parameters. As shown in Figure 12, the federation management center 30 determines the data collection device 40 corresponding to the data collection task based on the collection task parameters may include the following steps:
S10021、联邦管理中心30确定数据采集任务对应的语义信息N,并在传感能力信息列表中确定出传感能力N对应的M1个数据采集设备40,传感能力信息列表中包含多个语义信息以及多个语义信息分别对应的一个或多个数据采集设备40。S10021. The federal management center 30 determines the semantic information N corresponding to the data collection task, and determines M1 data collection devices 40 corresponding to the sensing capability N in the sensing capability information list, and the sensing capability information list contains multiple semantic information And one or more data collection devices 40 respectively corresponding to multiple semantic information.
联邦管理中心30可以确定出数据采集任务中所需采集的数据对应的语义信息N,并在传感能力信息列表中确定出语义信息N对应的M1个数据采集设备40。M1可以为整数。传感能力信息列表中可以包含多个语义信息以及多个语义信息分别对应的一个或多个数据采集设备40。传感能力信息列表可以参考上述表1,此处不再赘述。The federation management center 30 can determine the semantic information N corresponding to the data to be collected in the data collection task, and determine the M1 data collection devices 40 corresponding to the semantic information N in the sensing capability information list. M1 can be an integer. The sensing capability information list may include a plurality of semantic information and one or more data collection devices 40 respectively corresponding to the plurality of semantic information. For a list of sensing capability information, reference may be made to Table 1 above, which will not be repeated here.
可以理解的是,提供语义信息N的电子设备可以是一个,也可以是多个。例如,上述表1中提供语义信息“环境温度数据”的电子设备为温度传感器。上述表1中提供语义信息“用户身份”的电子设备可以是手机、平板以及电视机。It can be understood that there may be one or more electronic devices providing semantic information N. For example, the electronic device that provides the semantic information "environmental temperature data" in Table 1 above is a temperature sensor. The electronic devices that provide the semantic information "user identity" in Table 1 above may be mobile phones, tablets, and televisions.
可以理解的是,上述数据采集任务中所需的数据可以是环境温度数据、用户身份、用户运动步数、用户体温等等数据中的一项或多项。本申请实施例对具体的数据采集任务不作限定。It can be understood that the data required in the above data collection task may be one or more of environmental temperature data, user identity, user's exercise steps, user's body temperature and other data. The embodiment of the present application does not limit the specific data collection task.
在一种可能的实现方式中,当数据采集任务中所述的数据为多种类型的数据时,该数据采集任务所需的语义信息也可以是多个。In a possible implementation manner, when the data described in the data collection task is multiple types of data, the semantic information required by the data collection task may also be multiple.
在一种可能的实现方式中,当语义信息N对应的一个数据采集设备40,即M1为1时,联邦管理中心30可以确定将数据采集任务发送给该数据采集设备40,联邦管理中心30可以不执行下述步骤S10021-步骤S10025。当M1大于1时,表示传感能力信息列表中有多个数据采集设备40可以提供该语义信息N,联邦管理中心30可以按照下述步骤S10022-步骤S10025从多个可以提供语义信息N的数据采集设备40中筛选出一个目标数据采集设备40。In a possible implementation, when the semantic information N corresponds to a data collection device 40, that is, when M1 is 1, the federation management center 30 may determine to send the data collection task to the data collection device 40, and the federation management center 30 may The following steps S10021 to S10025 are not executed. When M1 is greater than 1, it means that there are multiple data acquisition devices 40 in the sensing capability information list that can provide the semantic information N, and the federation management center 30 can follow the steps S10022-Step S10025 below to select from multiple data collection devices 40 that can provide the semantic information N. A target data collection device 40 is selected from the collection devices 40 .
在一种可能的实现方式中,M1可以等于0,即该传感联邦中没有提供该语义信息的设备。联邦管理设备可以告知数据需求设备20该传感联邦中没有可以提供该语义信息的设备。联邦管理中心可以不执行下述步骤。In a possible implementation manner, M1 may be equal to 0, that is, there is no device providing the semantic information in the sensor federation. The federation management device may inform the data demand device 20 that there is no device in the sensing federation that can provide the semantic information. The federal management center may not perform the following steps.
可以理解的是,若采集任务参数指示可以通过多个数据采集设备40完成该数据采集任务时,联邦管理中心30可以直接将数据采集任务和采集任务参数发送给多个可以提供语义信息N的数据采集设备40。即联邦管理中心30无需执行下述步骤S10022-步骤S10025。It can be understood that if the collection task parameters indicate that the data collection task can be completed by multiple data collection devices 40, the federation management center 30 can directly send the data collection task and the collection task parameters to multiple data collection devices that can provide semantic information N Acquisition device 40 . That is, the federation management center 30 does not need to execute the following steps S10022-step S10025.
S10022、联邦管理中心30从M1个数据采集设备40中确定出M2个可唤醒的数据采集设备40。S10022. The federal management center 30 determines M2 wakeable data collection devices 40 from the M1 data collection devices 40 .
联邦管理中心30可以从M1个数据采集设备40中确定出M2个可唤醒的数据采集设备40。M2为整数,M2小于等于M1。在本申请实施例中,可唤醒的数据采集设备40可以是指联邦管理中心30可以在预设时间内接收数据采集设备40发送的消息,且该数据采集设备40未上报异常状态(例如,数据采集设备40关机、数据采集设备40断电、数据采集设备电量低于预设电量阈值、数据采集设备未处于佩戴状态中的一项或多项)。The federal management center 30 may determine M2 wakeable data collection devices 40 from the M1 data collection devices 40 . M2 is an integer, and M2 is less than or equal to M1. In this embodiment of the application, the wakeable data collection device 40 may mean that the federation management center 30 can receive the message sent by the data collection device 40 within a preset time, and the data collection device 40 does not report an abnormal state (for example, data The collection device 40 is shut down, the data collection device 40 is powered off, the power of the data collection device is lower than the preset power threshold, and the data collection device is not in the wearing state (one or more items).
在一种可能的实现方式中,联邦管理中心30中的传感能力信息列表中可以提供语义信息N的电子设备可以不在数据需求设备20和联邦管理中心30所在的传感联邦中。提供语义信息N的电子设备可以是在步骤S1001之前加入过联邦管理中心30创建的另一个传感联邦。In a possible implementation, the electronic devices that can provide semantic information N in the sensor capability information list in the federation management center 30 may not be in the sensor federation where the data demand device 20 and the federation management center 30 are located. The electronic device providing the semantic information N may be another sensor federation that has joined the federation management center 30 before step S1001.
在一种可能的实现方式中,M2可以大于1,也可以等于1。当M2等于1时,即表示M1个数据采集设备40中只有一个可唤醒的数据采集设备40。联邦管理中心30可以将数据采集任务和数据采集参数发送给该可唤醒的数据采集设备40。联邦管理中心30可以不执行下述步骤S10023-步骤S10025。当M2大于1时,联邦管理中心30可以执行下述步骤S10023。In a possible implementation manner, M2 may be greater than 1 or equal to 1. When M2 is equal to 1, it means that there is only one wakeable data collection device 40 among the M1 data collection devices 40 . The federal management center 30 can send the data collection task and data collection parameters to the wakeable data collection device 40 . The federation management center 30 may not execute the following steps S10023-step S10025. When M2 is greater than 1, the federation management center 30 may execute the following step S10023.
在一种可能的实现方式中,M2可以等于0,即表示该M1个数据采集设备40中没有可唤醒的数据采集设备40。此时,联邦管理中心30可以不执行下述步骤。联邦管理中心30可以告知数据需求设备20该传感联邦中没有可以完成该数据采集任务的设备。In a possible implementation manner, M2 may be equal to 0, which means that there is no wakeable data collection device 40 among the M1 data collection devices 40 . At this time, the federation management center 30 may not perform the following steps. The federation management center 30 may inform the data demand device 20 that there is no device in the sensor federation that can complete the data collection task.
S10023、联邦管理中心30从M2个数据采集设备40中确定出M3个符合采集数据精度的数据采集设备40。S10023. The federation management center 30 determines M3 data collection devices 40 from the M2 data collection devices 40 that meet the accuracy of the collected data.
在采集任务参数中,可以包括采集数据任务所需数据的精度范围。联邦管理中心30可以从M2个数据采集设备40中确定出M3个符合采集任务参数中数据精度的数据采集设备40。M3为整数,M3可以小于或等于M2。The collection task parameters may include the accuracy range of the data required by the data collection task. The federal management center 30 can determine M3 data collection devices 40 from the M2 data collection devices 40 that meet the data accuracy in the collection task parameters. M3 is an integer, and M3 may be less than or equal to M2.
在一种可能的实现方式中,M3可以大于1,也可以等于1,也可以等于0。当M3等于1时,联邦管理中心30可以不执行下述步骤S10024-步骤S10025。当M3大于1时,联邦管理中心30可以执行下述步骤S10024。In a possible implementation manner, M3 may be greater than 1, or equal to 1, or equal to 0. When M3 is equal to 1, the federation management center 30 may not execute the following steps S10024-step S10025. When M3 is greater than 1, the federation management center 30 may execute the following step S10024.
在一种可能的实现方式中,当M3等于0时,即表示没有数据采集设备20可以提供该语义信息N。联邦管理中心30可以发消息提示数据需求设备20当前没有数据采集设备20可以接收该数据采集任务。联邦管理中心30不执行下述步骤S10024-步骤S10025。In a possible implementation manner, when M3 is equal to 0, it means that no data collection device 20 can provide the semantic information N. The federation management center 30 may send a message to remind the data demand device 20 that currently no data collection device 20 can receive the data collection task. The federation management center 30 does not execute the following steps S10024-S10025.
S10024、联邦管理中心30从M3个数据采集设备40中确定出于M4个与数据需求设备20之间的距离小于预设距离阈值的数据采集设备40。S10024. The federation management center 30 determines from the M3 data collection devices 40 that M4 data collection devices 40 whose distance to the data demand device 20 is less than a preset distance threshold.
任务采集参数中可以包括数据采集设备40与数据需求设备20之间的距离范围,数据采集设备40与数据需求设备20之间的距离要小于预设距离阈值。联邦管理中心30可以从M3个数据采集设备40中确定出M4个与数据需求设备20之间的距离小于预设距离阈值的数据采集设备40。M4为整数,其中,M4可以小于或等于M3。The task collection parameters may include a distance range between the data collection device 40 and the data demand device 20, and the distance between the data collection device 40 and the data demand device 20 should be smaller than a preset distance threshold. The federation management center 30 may determine M4 data collection devices 40 whose distance from the data demand device 20 is less than a preset distance threshold from the M3 data collection devices 40 . M4 is an integer, where M4 may be less than or equal to M3.
在一种可能的实现方式中,M4可以大于1,也可以等于1。当M4等于1时,即表示M3个数据采集设备40中只有一个数据采集设备40与数据需求设备20之间的距离小于预设距离阈值。那么联邦管理中心30可以将数据采集任务和采集任务参数发送给该数据采集设备40。联邦管理中心30可以不执行下述步骤S10025。当M4大于1时,即表示M3个数据采集设备40中有多个数据采集设备40与数据需求设备20之间的距离小于预设距离阈值。联邦管理中心30可以执行下述步骤S10025。In a possible implementation manner, M4 may be greater than 1 or equal to 1. When M4 is equal to 1, it means that the distance between only one data collection device 40 among the M3 data collection devices 40 and the data demand device 20 is smaller than the preset distance threshold. Then the federation management center 30 can send the data collection task and the parameters of the collection task to the data collection device 40 . The federation management center 30 may not execute the following step S10025. When M4 is greater than 1, it means that among the M3 data collection devices 40, the distance between multiple data collection devices 40 and the data demand device 20 is smaller than the preset distance threshold. The federation management center 30 may execute the following step S10025.
在一种可能的实现方式中,M4可以等于0,即表示M3个数据采集设备40中没有数据采集设备40与数据需求设备20之间的距离小于预设距离阈值。In a possible implementation manner, M4 may be equal to 0, which means that the distance between the data collection device 40 and the data demand device 20 among the M3 data collection devices 40 is less than the preset distance threshold.
S10025、联邦管理中心30基于M4个数据采集设备40的设备状态,数据采集设备40的设备状态包括数据采集设备40的电源状态、设备类型、佩戴状态、数据采集设备40中语义信息N的数据精度、与数据需求设备20的距离中的一项或多项,确定出目标数据采集设备40。S10025. The federation management center 30 is based on the device states of the M4 data collection devices 40. The device states of the data collection devices 40 include the power state of the data collection devices 40, the device type, the wearing state, and the data accuracy of the semantic information N in the data collection devices 40. One or more items of , distance from the data demand device 20 , and determine the target data collection device 40 .
联邦管理中心30可以比较M4个数据采集设备40的设备状态,即M4个数据采集设备的设备状态确定出目标数据采集设备40。数据采集设备40的设备状态可以包括数据采集设备40的电源状态、设备类型(是否具有计算资源或存储资源)、电量状态、佩戴状态、数据采集设备40中语义信息N的数据精度、与数据需求设备20的距离、以及是否具备有标准传感联邦数据传输接口中的一项或多项。The federation management center 30 can compare the device states of the M4 data collection devices 40 , that is, determine the target data collection device 40 by the device states of the M4 data collection devices. The device state of the data collection device 40 may include the power state of the data collection device 40, the device type (whether it has computing resources or storage resources), the power state, the wearing state, the data accuracy of the semantic information N in the data collection device 40, and the data requirements The distance of the device 20 and whether it has one or more of the standard sensing federation data transmission interface.
在一种可能的实现方式中,联邦管理中心30根据M4个数据采集设备40的电源状态(有源设备和无源设备),确定出有源设备,且与电源连接的数据采集设备40为目标数据采集设备40。In a possible implementation, the federal management center 30 determines the active device according to the power status (active device and passive device) of the M4 data collection devices 40, and the data collection device 40 connected to the power supply is the target Data Acquisition Device 40 .
举例来说,以M4等于2为例进行阐述。M4个数据采集设备40中包括第一数据采集设备40和第二数据采集设备40。第一数据采集设备40为有源设备(例如,笔记本电脑),且该第一数据采集设备40连接有电源,第二数据采集设备为无源设备(例如,手机),且第一数据采集设备40未连接电源。那么基于该设备状态中的电源状态,联邦管理中心30可以确定第一数据采集设备40为目标数据采集设备40。For example, take M4 equal to 2 as an example for illustration. The M4 data collection devices 40 include a first data collection device 40 and a second data collection device 40 . The first data collection device 40 is an active device (for example, a notebook computer), and the first data collection device 40 is connected to a power supply, the second data collection device is a passive device (for example, a mobile phone), and the first data collection device 40 Power is not connected. Then, based on the power status in the device status, the federation management center 30 can determine that the first data collection device 40 is the target data collection device 40 .
在一种可能的实现方式中,联邦管理中心30基于M4个数据采集设备40的设备类型,从M4个数据采集设备40中选出,计算资源最多、存储资源最多的一个数据采集设备40作为目标数据采集设备40。In a possible implementation, the federation management center 30 selects from the M4 data collection devices 40 based on the device types of the M4 data collection devices 40, a data collection device 40 with the most computing resources and the most storage resources as the target Data Acquisition Device 40 .
在一种可能的实现方式中,联邦管理中心30可以基于M4个数据采集设备40的电量状态,从M4个数据采集设备40中选择电量最多的一个数据采集设备40作为目标数据采集设备40。In a possible implementation, the federation management center 30 may select a data collection device 40 with the most power from the M4 data collection devices 40 as the target data collection device 40 based on the power status of the M4 data collection devices 40 .
在一种可能的实现方式中,若M4个数据采集设备40为穿戴设备(手表、手环、耳机、智能眼镜等等),联邦管理中心30可以基于M4个数据采集设备40的设备类型(是否具有计算资源或存储资源)、电量状态、佩戴状态、数据采集设备40中语义信息N的数据精度、与数据需求设备20的距离中、以及是否具备有标准传感联邦数据传输接口,从M4个数据采集设备40中选择一个计算资源最多,存储资源最多,电量最多、处于佩戴状态、语义信息N的数据精度最大、且与数据需求设备20的距离最近、具备有标准传感联邦数据传输接口的一 个数据采集设备40作为目标数据采集设备40。In a possible implementation, if the M4 data collection devices 40 are wearable devices (watches, wristbands, earphones, smart glasses, etc.), the federation management center 30 may base on the equipment types of the M4 data collection devices 40 (whether There are computing resources or storage resources), battery status, wearing status, data accuracy of semantic information N in the data collection device 40, distance from the data demand device 20, and whether there is a standard sensor federation data transmission interface, from M4 Select one of the data acquisition devices 40 with the most computing resources, the most storage resources, the most power, the wearing state, the highest data accuracy of semantic information N, the closest distance to the data demand device 20, and a standard sensor federation data transmission interface. One data collection device 40 serves as the target data collection device 40 .
在一种可能的实现方式中,若M4个数据采集设备40为非穿戴设备,联邦管理中心30可以基于M4个数据采集设备40的电源状态、设备类型(是否具有计算资源或存储资源)、电量状态、数据采集设备40中语义信息N的数据精度、与数据需求设备20的距离中、以及是否具备有标准传感联邦数据传输接口,从M4个数据采集设备40中选择一个与电源连接、计算资源最多,存储资源最多,电量最多、语义信息N的数据精度最大、且与数据需求设备20的距离最近、具备有标准传感联邦数据传输接口的一个数据采集设备40作为目标数据采集设备40。In a possible implementation, if the M4 data collection devices 40 are non-wearable devices, the federation management center 30 can base the M4 data collection devices 40 on the power status, device type (whether has computing resources or storage resources), power state, the data accuracy of the semantic information N in the data collection device 40, the distance from the data demand device 20, and whether there is a standard sensor federation data transmission interface, select one of the M4 data collection devices 40 to connect to the power supply, and calculate The target data collection device 40 is a data collection device 40 with the most resources, the most storage resources, the most power, the highest data accuracy of the semantic information N, and the closest distance to the data demand device 20 , and equipped with a standard sensor federation data transmission interface.
S1004、联邦管理中心30向数据采集设备40发送采集任务参数。S1004. The federation management center 30 sends the collection task parameters to the data collection device 40.
联邦管理中心30可以向确定出的目标数据采集设备40发送数据采集任务和采集任务参数。具体地,若数据采集设备40中有传感联邦引擎模块,联邦管理中心30可以直接将数据采集任务以及采集任务参数发送给数据采集设备40。若数据采集设备40中没有传感联邦引擎模块,联邦管理中心30可以将该数据采集任务(例如,获取空调前用户身份数据)和采集任务参数分解成数据采集设备40的采集子任务(例如,拍摄用户图像),然后将采集子任务发送给数据采集设备40。The federation management center 30 may send the data collection task and the collection task parameters to the determined target data collection device 40 . Specifically, if there is a sensor federation engine module in the data collection device 40 , the federation management center 30 can directly send the data collection task and the collection task parameters to the data collection device 40 . If there is no sensing federation engine module in the data collection device 40, the federation management center 30 can decompose the data collection task (for example, obtaining user identity data before air conditioning) and the collection task parameters into the collection subtasks of the data collection device 40 (for example, Take a user image), and then send the collection subtask to the data collection device 40.
传感联邦引擎模块可以将采集任务参数解析为数据采集设备40中的数据采集参数。例如,传感联邦引擎模块任务采集参数中的“用户身份”解析为数据采集设备40中的数据采集参数“用户人脸图像”。关于传感联邦引擎模块的具体功能可以参考上述图4中的描述,此处不再赘述。The sensor federation engine module can parse the collection task parameters into data collection parameters in the data collection device 40 . For example, the “user identity” in the task collection parameters of the sensor federation engine module is resolved to the data collection parameter “user face image” in the data collection device 40 . For the specific functions of the sensor federation engine module, please refer to the description in FIG. 4 above, which will not be repeated here.
关于联邦管理中心30具体如何向数据采集设备40发送采集任务参数可以参考下文图13A-图13C中的描述,此处先不赘述。Regarding how the federation management center 30 sends the collection task parameters to the data collection device 40, please refer to the descriptions in FIGS. 13A-13C below, and details will not be repeated here.
S1005、数据采集设备40基于采集任务参数,以及数据采集设备40的设备能力确定是否接受数据采集任务;若接受,则执行步骤S1006a;若不接受,则执行步骤S1006b。S1005, the data collection device 40 determines whether to accept the data collection task based on the collection task parameters and the device capabilities of the data collection device 40; if accepted, execute step S1006a; if not, execute step S1006b.
数据采集设备40可以基于采集任务参数,评估出数据采集设备40如果要执行该数据采集任务需要的待使用资源(计算资源以及存储资源)。然后,数据采集设备40确定数据采集设备40中的剩余资源是否大于待使用资源;若剩余资源大于待使用资源,则数据采集设备40可以接受该数据采集任务。当数据采集设备40接受数据采集任务时,数据采集设备40可以执行步骤S1006a。若剩余资源小于待使用资源,则数据采集设备40可以不接受该数据采集任务。当数据采集设备40不接受数据采集任务时,数据采集设备40可以执行步骤S1006b。The data collection device 40 can evaluate the resources (computing resources and storage resources) to be used if the data collection device 40 needs to execute the data collection task based on the collection task parameters. Then, the data collection device 40 determines whether the remaining resources in the data collection device 40 are larger than the resources to be used; if the remaining resources are larger than the resources to be used, the data collection device 40 can accept the data collection task. When the data collection device 40 accepts the data collection task, the data collection device 40 may execute step S1006a. If the remaining resources are less than the resources to be used, the data collection device 40 may not accept the data collection task. When the data collection device 40 does not accept the data collection task, the data collection device 40 may execute step S1006b.
关于数据采集设备40具体是否接受数据采集任务,具体可以参考下文中图14A-图14B的描述,此处先不赘述。As for whether the data collection device 40 accepts the data collection task specifically, please refer to the description in FIG. 14A-14B below, and details will not be repeated here.
可选地,在一种可能的实现方式中,数据采集设备40的剩余资源可以指数据采集设备40中为传感联邦预留的资源中的剩余资源。可以理解的是,当数据采集设备40加入传感联邦后,可以为传感联邦预留一定的计算资源和存储资源。Optionally, in a possible implementation manner, the remaining resources of the data collection device 40 may refer to remaining resources in the resources reserved for sensor federation in the data collection device 40 . It can be understood that, after the data acquisition device 40 joins the sensor federation, certain computing resources and storage resources may be reserved for the sensor federation.
S1006a、数据采集设备40与数据需求设备20建立通信连接,数据采集设备40向数据需求设备20发送采集的传感器数据。S1006a, the data collection device 40 establishes a communication connection with the data demand device 20 , and the data collection device 40 sends the collected sensor data to the data demand device 20 .
数据采集设备40接受数据需求设备20的数据采集任务后,若数据采集设备40和数据需求设备20之间已经建立有通信连接,数据采集设备4可以将采集的传感器数据,或者基于采集的传感器数据得到的语义信息,发送给数据需求设备20。若数据采集设备40与数据需求设备20之间没有建立通信连接,数据采集设备40可以与数据需求设备20建立连接后,再将采集的传感器数据,或者基于采集的传感器数据得到的语义信息,发送给数据需求设备20。 或者,若数据采集设备40与数据需求设备20之间没有建立通信连接,数据采集设备40可以通过联邦管理中心30将采集的传感器数据,或者基于采集的传感器数据得到的语义信息,发送给数据需求设备20。After the data collection device 40 accepts the data collection task of the data demand device 20, if a communication connection has been established between the data collection device 40 and the data demand device 20, the data collection device 4 can collect the collected sensor data, or based on the collected sensor data The obtained semantic information is sent to the data demand device 20 . If there is no communication connection established between the data collection device 40 and the data demand device 20, the data collection device 40 may establish a connection with the data demand device 20, and then send the collected sensor data or the semantic information based on the collected sensor data to To the data demand device 20. Alternatively, if no communication connection is established between the data collection device 40 and the data demand device 20, the data collection device 40 can send the collected sensor data, or the semantic information based on the collected sensor data, to the data demand device through the federal management center 30. device 20.
这里,数据采集设备40具体如何将采集的传感器数据发送给数据需求设备20,可以参考下文对图15A-图15C的描述,此处先不赘述。Here, how the data collection device 40 sends the collected sensor data to the data demand device 20 may refer to the descriptions of FIGS. 15A-15C below, and details will not be repeated here.
S1006b、数据采集设备40向联邦管理中心30发送拒绝接受数据采集任务的消息。S1006b. The data collection device 40 sends a message of refusing to accept the data collection task to the federation management center 30 .
在数据采集设备40中的剩余资源小于数据采集任务需要的待使用资源时,数据采集设备40可以拒绝接受该数据采集任务。或者,数据采集设备40中用于采集该数据采集任务中所需数据的传感器正处于工作状态,被另一个任务占用时,数据采集设备40也可以拒绝接受该数据采集任务。When the remaining resources in the data collection device 40 are less than the resources to be used required by the data collection task, the data collection device 40 may refuse to accept the data collection task. Or, when the sensor in the data collection device 40 used to collect the data required in the data collection task is in working state and is occupied by another task, the data collection device 40 can also refuse to accept the data collection task.
数据采集设备40可以向联邦管理中心30发送拒绝接受数据采集任务的消息。联邦管理中心30也可以向数据需求设备30发送该数据采集设备40拒绝接受该数据采集任务的消息。或者,联邦管理中心30可以再从传感联邦中确定出另一个数据采集设备40完成该数据采集任务。The data collection device 40 may send a message of refusing to accept the data collection task to the federation management center 30 . The federation management center 30 may also send a message to the data demand device 30 that the data collection device 40 refuses to accept the data collection task. Alternatively, the federation management center 30 may determine another data collection device 40 from the sensor federation to complete the data collection task.
在一些场景中,数据采集设备40可以具有传感联邦引擎模块。数据采集设备40中的传感联邦引擎模块可以解析该采集任务参数和数据采集任务,并可以根据采集任务参数,以及数据采集设备40的设备状态确定是否接受该数据采集任务。In some scenarios, the data collection device 40 may have a sensory federation engine module. The sensor federation engine module in the data collection device 40 can analyze the collection task parameters and the data collection task, and can determine whether to accept the data collection task according to the collection task parameters and the device status of the data collection device 40 .
图13A示例性地示出了数据采集设备40中存在传感联邦引擎模块时,联邦管理中心30如何向数据采集设备40发送数据采集任务、以及数据采集设备40接收到数据采集任务后如何确定是否接受数据采集任务的具体步骤流程图。如图13A所示,联邦管理中心30向数据采集设备40发送采集任务参数、以及数据采集设备40确定接受数据采集任务可以包括如下步骤:Fig. 13A exemplarily shows how the federation management center 30 sends a data collection task to the data collection device 40 when there is a sensor federation engine module in the data collection device 40, and how the data collection device 40 determines whether to Flowchart of specific steps for accepting data collection tasks. As shown in Figure 13A, the federal management center 30 sends the collection task parameters to the data collection device 40, and the data collection device 40 determines to accept the data collection task may include the following steps:
S10031a、联邦管理中心30确定数据采集设备40具有传感联邦引擎模块。S10031a, the federation management center 30 determines that the data collection device 40 has a sensor federation engine module.
联邦管理中心30中可以存储有传感联邦中的数据需求设备20的设备信息以及数据采集设备40的设备信息。联邦管理中心30可以根据数据采集设备40的设备信息确定该数据采集设备40具有传感联邦引擎模块。或者,在数据采集设备40加入联邦管理中心30创建的传感联邦时,数据采集设备40可以向联邦管理中心30上报该数据采集设备40具备有传感联邦引擎模块。The federation management center 30 may store the device information of the data demand device 20 and the device information of the data collection device 40 in the sensor federation. The federation management center 30 may determine according to the device information of the data collection device 40 that the data collection device 40 has a sensor federation engine module. Alternatively, when the data collection device 40 joins the sensor federation created by the federation management center 30, the data collection device 40 may report to the federation management center 30 that the data collection device 40 has a sensor federation engine module.
S10032a、联邦管理中心30将任务采集参数发送给数据采集设备40中的传感联邦引擎模块。S10032a, the federation management center 30 sends the task collection parameters to the sensor federation engine module in the data collection device 40 .
联邦管理中心30可以将任务采集参数发送给数据采集设备40中的传感联邦引起模块。The federation management center 30 can send the task collection parameters to the sensing federation causing module in the data collection device 40 .
S10033a、数据采集设备40中的传感联邦引擎模块对任务采集参数进行解析,将任务采集参数映射为数据采集设备40中的数据采集参数。S10033a, the sensor federation engine module in the data collection device 40 analyzes the task collection parameters, and maps the task collection parameters to the data collection parameters in the data collection device 40 .
数据采集设备40中的传感联邦引擎模块可以对任务采集参数进行解析。具体地,传感联邦引擎模块中的任务解析模块可以将任务采集参数映射为数据采集设备40中的数据采集参数。例如,传感联邦引擎模块中的任务解析模块可以将数据采集任务中所需的语义信息“用户身份”分解为数据采集设备40具体的采集参数(例如,具体采集的数据为“摄像头采集的图像”,以及拍摄几张图像、分辨率、图像压缩比率等参数)。传感联邦引擎模块中的任务解析模块可以将数据采集任务所需的语义信息“平均心率”,映射为设备的采集周期和采集频率,例如手表的PPG传感器固定的采集频率为1Hz,那么参数可能是:采集时长5s,采集频率为1Hz,采集算子为将5s内采集的数据进行平均处理。可以理解的是,传感联邦引擎中的任务解析模 块可以将任务采集参数中的语义信息解析得到生成或推导出该语义信息的传感器采集的数据或者低阶语义信息。The sensor federation engine module in the data collection device 40 can analyze the task collection parameters. Specifically, the task analysis module in the sensor federation engine module can map the task collection parameters to the data collection parameters in the data collection device 40 . For example, the task parsing module in the sensor federation engine module can decompose the semantic information "user identity" required in the data collection task into the specific collection parameters of the data collection device 40 (for example, the specific collected data is "image collected by camera") ", as well as shooting several images, resolution, image compression ratio and other parameters). The task parsing module in the sensor federation engine module can map the semantic information "average heart rate" required by the data collection task to the collection cycle and collection frequency of the device. For example, the PPG sensor of the watch has a fixed collection frequency of 1Hz, so the parameters may be Yes: The collection time is 5s, the collection frequency is 1Hz, and the collection operator is to average the data collected within 5s. It can be understood that the task analysis module in the sensor federation engine can analyze the semantic information in the task collection parameters to obtain the data or low-level semantic information collected by the sensor that generates or derives the semantic information.
S10034a、数据采集设备40中的传感联邦引擎模块基于数据采集参数确定数据采集任务对应的待使用资源;在数据采集设备40中的剩余资源大于待使用资源的情况下,数据采集设备40向联邦管理中心30回复接受数据采集任务。S10034a, the sensing federation engine module in the data collection device 40 determines the resources to be used corresponding to the data collection task based on the data collection parameters; The management center 30 replies to accept the data collection task.
数据采集设备40中的传感联邦引擎模块可以基于数据采集参数确定出数据采集任务需要使用的资源(可以称为待使用资源)。数据采集设备40中的传感联邦引擎模块可以基于数据采集设备40的工作状态(例如,正在执行的任务数量)确定出数据采集设备40中的剩余资源。在数据采集设备40中的剩余资源大于待使用资源的情况下,数据采集设备40可以向联邦管理中心30回复接受该数据采集任务。或者,数据采集设备40可以直接与数据需求设备20建立通信连接。在数据采集设备40中的剩余资源大于待使用资源的情况下,数据采集设备40可以向联邦管理中心30回复不接受该数据采集任务。The sensor federation engine module in the data collection device 40 can determine the resources (which may be referred to as resources to be used) to be used by the data collection task based on the data collection parameters. The sensor federation engine module in the data collection device 40 can determine the remaining resources in the data collection device 40 based on the working status of the data collection device 40 (for example, the number of tasks being executed). In the case that the remaining resources in the data collection device 40 are greater than the resources to be used, the data collection device 40 may reply to the federation management center 30 to accept the data collection task. Alternatively, the data collection device 40 may directly establish a communication connection with the data demand device 20 . In the case that the remaining resources in the data collection device 40 are greater than the resources to be used, the data collection device 40 may reply to the federation management center 30 that the data collection task is not accepted.
在另一些场景中,数据需求设备20中的数据采集任务已发送过数据采集设备40多次,且数据采集设备40拒绝执行该数据采集任务的次数大于预设阈值。这时,由联邦管理中心30判定数据采集设备40是否接受该数据采集任务。In other scenarios, the data collection task in the data demand device 20 has been sent to the data collection device 40 times, and the number of times the data collection device 40 refuses to execute the data collection task is greater than a preset threshold. At this time, the federal management center 30 determines whether the data collection device 40 accepts the data collection task.
图13B示例性地示出了在数据采集设备40已拒绝执行该数据采集任务的次数大于预设阈值的情况下,如何确定数据采集设备40此次是否接受该数据采集任务的具体流程示意图。如图13B所示,在数据采集设备40已拒绝执行该数据采集任务的次数大于预设阈值的情况下,确定数据采集设备40此次接受该数据采集任务可以包括如下步骤:FIG. 13B exemplarily shows a specific flowchart of how to determine whether the data collection device 40 accepts the data collection task this time when the number of times the data collection device 40 has refused to execute the data collection task is greater than a preset threshold. As shown in FIG. 13B , in the case that the number of times the data collection device 40 has refused to execute the data collection task is greater than the preset threshold, determining that the data collection device 40 accepts the data collection task this time may include the following steps:
S10031b、联邦管理中心30确定数据采集任务请求中携带仲裁模式标识,仲裁模式标识用于指示数据采集设备40拒绝接受数据需求设备20中的数据采集任务的次数超过预设阈值,联邦管理中心30基于数据采集设备40的设备能力决定数据采集设备40是否接受数据采集任务。S10031b. The federal management center 30 determines that the data collection task request carries an arbitration mode identifier, and the arbitration mode identifier is used to indicate that the data collection device 40 refuses to accept the data collection task in the data demand device 20. The number of times the federation management center 30 based on The device capability of the data collection device 40 determines whether the data collection device 40 accepts the data collection task.
数据需求设备20发送的数据采集任务中可以携带有仲裁模式标识。当数据采集设备20中的数据采集任务对应的数据采集设备40拒绝该数据采集任务的次数的阈值大于预设阈值时,数据需求设备20再次向联邦管理中心30发送该数据采集任务时,可以携带仲裁模式标识。该仲裁模式标识可以用于指示数据采集设备40拒绝数据需求设备20中的数据采集任务的次数超过预设阈值。The data collection task sent by the data demand device 20 may carry an arbitration mode identifier. When the data collection device 40 corresponding to the data collection task in the data collection device 20 rejects the threshold of the number of times the data collection task is greater than the preset threshold, when the data demand device 20 sends the data collection task to the federation management center 30 again, it can carry Arbitration mode flag. The arbitration mode flag may be used to indicate that the data collection device 40 rejects the data collection task in the data demand device 20 for a number of times exceeding a preset threshold.
可选地,该仲裁模式标识中可以携带有拒绝该数据采集任务的数据采集设备40的设备信息以及拒绝次数。Optionally, the arbitration mode identifier may carry the device information of the data collection device 40 that rejects the data collection task and the number of times of rejection.
联邦管理中心30可以确定出数据需求设备20中发送的数据采集任务中携带的仲裁模式标识。The federation management center 30 can determine the arbitration mode identifier carried in the data collection task sent by the data demand device 20 .
S10032b、联邦管理中心30将任务采集参数和仲裁模式标识发送给数据采集设备40中的传感联邦引擎模块。S10032b. The federation management center 30 sends the task collection parameters and the arbitration mode identifier to the sensor federation engine module in the data collection device 40 .
联邦管理中心30可以将任务采集参数和仲裁模式标识发送给数据采集设备40。该仲裁模式标识可以指示数据采集设备40将剩余资源以及数据采集任务需要的待使用资源发送给联邦管理中心30。The federation management center 30 may send the task collection parameters and the arbitration mode identifier to the data collection device 40 . The arbitration mode identifier may instruct the data collection device 40 to send the remaining resources and the resources to be used required by the data collection task to the federation management center 30 .
可选地,当数据采集设备40中不具备传感联邦引擎模块时,联邦管理中心30可以向数据采集设备40发送指令a,该指令a可以用于指示数据采集设备40将数据采集设备40中的剩余资源发送给联邦管理中心30。Optionally, when the data collection device 40 does not have a sensor federation engine module, the federation management center 30 can send an instruction a to the data collection device 40, and the instruction a can be used to instruct the data collection device 40 to send the data collection device 40 The remaining resources are sent to the federation management center 30.
S10033b、数据采集设备40中的传感联邦引擎模块对任务采集参数进行解析,将任务采集参数映射为数据采集设备40中的数据采集参数。S10033b. The sensor federation engine module in the data collection device 40 analyzes the task collection parameters, and maps the task collection parameters to the data collection parameters in the data collection device 40 .
此步骤可以参考上述步骤S10033a,此处不再赘述。For this step, reference may be made to the above step S10033a, which will not be repeated here.
S10034b、数据采集设备40中的传感联邦引擎模块基于数据采集参数确定数据采集任务对应的待使用资源;数据采集设备40将数据采集任务对应的待使用资源和数据采集设备40的剩余资源发送给联邦管理中心30。S10034b. The sensor federation engine module in the data collection device 40 determines the resources to be used corresponding to the data collection task based on the data collection parameters; the data collection device 40 sends the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 to Federal Management Center 30.
数据采集设备40中的传感联邦引擎模块可以基于数据采集参数确定数据采集任务对应的待使用资源,此处可以参考上述步骤S10034a中的描述,此处不再赘述。The sensor federation engine module in the data collection device 40 can determine the to-be-used resources corresponding to the data collection task based on the data collection parameters. Here, reference can be made to the description in the above step S10034a, which will not be repeated here.
数据采集设备40可以将数据采集任务对应的待使用资源和数据采集设备40的剩余资源发送给联邦管理中心30。The data collection device 40 may send the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 to the federation management center 30 .
S10035b、联邦管理中心30基于数据采集任务对应的待使用资源和数据采集设备40的剩余资源确定数据采集设备40接受数据采集任务。S10035b. The federation management center 30 determines that the data collection device 40 accepts the data collection task based on the resources to be used corresponding to the data collection task and the remaining resources of the data collection device 40 .
具体地,若数据采集设备40中的剩余资源大于数据采集任务对应的待使用资源;联邦管理中心30可以确定数据采集设备40可以接收该数据采集任务。进一步地,联邦管理中心30可以通知数据采集设备40接受该数据采集任务。Specifically, if the remaining resources in the data collection device 40 are greater than the resources to be used corresponding to the data collection task; the federation management center 30 may determine that the data collection device 40 can receive the data collection task. Further, the federation management center 30 may notify the data collection device 40 to accept the data collection task.
若数据采集设备40中的剩余资源小于数据采集任务对应的待使用资源,则联邦管理中心30可以确定数据采集设备可以拒绝该数据采集任务。进一步地,联邦管理中心30可以通知该数据采集设备40无需接收该数据采集任务。If the remaining resources in the data collection device 40 are less than the resources to be used corresponding to the data collection task, the federation management center 30 may determine that the data collection device can reject the data collection task. Further, the federation management center 30 may notify the data collection device 40 that it does not need to receive the data collection task.
可选地,数据采集设备40可以将剩余资源和数据采集设备40中的正在执行的任务列表上报给联邦管理中心30。在数据采集设备40中的剩余资源小于数据采集任务对应的待使用资源的情况下,联邦管理中心30可以比较数据采集任务和数据采集设备40中正在执行的任务列表中任务的优先级。若数据采集任务的优先级高于数据采集设备40中正在执行的任务列表中任务的优先级,则联邦管理中心30可以通知数据采集设备40暂停或者删除正在执行的任务列表中优先级较低的任务,并接收该数据采集任务。Optionally, the data collection device 40 may report the remaining resources and the list of tasks being executed in the data collection device 40 to the federation management center 30 . When the remaining resources in the data collection device 40 are less than the resources to be used corresponding to the data collection task, the federation management center 30 can compare the priority of the data collection task with the tasks in the task list being executed in the data collection device 40 . If the priority of the data collection task is higher than the priority of the tasks in the task list being executed in the data collection device 40, the federation management center 30 can notify the data collection device 40 to suspend or delete the task with lower priority in the task list being executed. task, and receive the data collection task.
这样,可以避免传感联邦内的一些数据采集设备40恶意拒绝数据需求设备20发送的数据采集任务。In this way, some data collection devices 40 in the sensing federation can be prevented from maliciously rejecting the data collection tasks sent by the data demand device 20 .
在一些场景中,数据采集设备40不具备传感联邦引擎模块,数据采集设备40需要通过联邦管理中心30解析该数据采集任务,以及需要通过联邦管理中心30将采集的传感器数据发送给数据需求设备20。则联邦管理中心30需要基于联邦管理中心30的资源状态、以及联邦管理中心30帮数据采集设备40将采集的传感器转发给数据需求设备20需要的新增待使用资源,确定数据采集设备40是否接受数据采集任务。In some scenarios, the data collection device 40 does not have a sensor federation engine module, the data collection device 40 needs to resolve the data collection task through the federation management center 30, and needs to send the collected sensor data to the data demand device through the federation management center 30 20. Then the federation management center 30 needs to determine whether the data collection device 40 accepts based on the resource status of the federation management center 30 and the new resources to be used that the federation management center 30 helps the data collection device 40 to forward the collected sensors to the data demand device 20. data collection tasks.
图13C示例性地示出了在数据采集设备40中不存在传感联邦引擎模块的情况下,联邦管理中心30如何确定数据采集设备40是否接受数据采集任务的具体步骤流程图。如图13C所示,联邦管理中心30确定数据采集设备40接受数据采集任务可以包括如下步骤:FIG. 13C exemplarily shows a flow chart of specific steps of how the federation management center 30 determines whether the data collection device 40 accepts the data collection task when there is no sensor federation engine module in the data collection device 40 . As shown in Figure 13C, the federal management center 30 determines that the data collection device 40 accepts the data collection task may include the following steps:
S10031c、联邦管理中心30确定数据采集设备40中不具备传感联邦引擎模块。S10031c, the federation management center 30 determines that the data collection device 40 does not have a sensor federation engine module.
联邦管理中心30可以根据存储的数据采集设备40的设备信息确定数据采集设备40中不具备传感联邦引擎模块。The federation management center 30 may determine that the data collection device 40 does not have a sensor federation engine module according to the stored device information of the data collection device 40 .
S10032c、联邦管理中心30解析任务采集参数和数据采集任务,将数据采集任务解析成数据采集设备40的数据采集子任务列表。S10032c. The federation management center 30 parses the task collection parameters and data collection tasks, and parses the data collection tasks into a list of data collection subtasks of the data collection device 40 .
联邦管理中心30中的联邦管理中心模块可以解析任务采集参数和数据采集任务,可以将 数据采集任务解析成数据采集设备40的数据采集子任务列表。例如,联邦管理中心30可以将数据采集任务“用户身份”,解析成数据采集设备40中的数据采集子任务列表。该数据采集子任务列表中可以包括数据采集子任务“采集用户人脸图像”以及数据采集子任务“根据用户人脸图像确定用户身份(小孩、青中年人、老人等等)”。The federation management center module in the federation management center 30 can resolve task collection parameters and data collection tasks, and can parse the data collection tasks into the data collection subtask list of the data collection device 40. For example, the federation management center 30 may parse the data collection task “user identity” into a list of data collection subtasks in the data collection device 40 . The data collection subtask list may include the data collection subtask "collect user's face image" and the data collection subtask "according to the user's face image to determine user identity (children, young and middle-aged people, old people, etc.)".
S10033c、联邦管理中心30基于数据采集子任务列表,评估联邦管理中心30的新增待使用资源。S10033c, the federation management center 30 evaluates new resources to be used of the federation management center 30 based on the data collection subtask list.
联邦管理中心30可以基于数据采集子任务列表,评估在数据采集设备40完成该采集子任务列表中的数据采集子任务时,联邦管理中心30需要为数据采集设备40投入的资源(可以称为新增待使用资源)。该新增待使用资源可以包括联邦管理中心30将数据采集设备40采集的传感器数据发送给数据需求设备20需要使用的资源、以及联邦管理中心30将数据采集设备40采集的传感器数据变换成数据采集任务所需的语义信息需要使用的资源。The federation management center 30 can evaluate the resources that the federation management center 30 needs to invest in the data collection device 40 when the data collection device 40 completes the data collection subtasks in the collection subtask list based on the data collection subtask list (which can be referred to as new Incrementally use resources). The newly added resources to be used may include the resources that the federation management center 30 needs to use to send the sensor data collected by the data collection device 40 to the data demand device 20, and the federation management center 30 converts the sensor data collected by the data collection device 40 into data collection Semantic information required by a task requires resources to be used.
S10034c、联邦管理中心30基于新增待使用资源以及联邦管理中心30的资源状态,确定开启代理数据采集模式,并将采集子任务列表发送给数据采集设备40;代理数据采集模式是指联邦管理中心30将数据采集设备40采集的数据发送给数据需求设备20;或者将数据采集设备40中传感器采集的数据转换为符合数据采集参数的已处理数据发送给数据需求设备20。S10034c, the federal management center 30 determines to start the proxy data collection mode based on the newly added resources to be used and the resource status of the federal management center 30, and sends the collection subtask list to the data collection device 40; the proxy data collection mode refers to the federal management center 30 Send the data collected by the data collection device 40 to the data demand device 20 ;
联邦管理中心30可以基于新增待使用资源以及联邦管理中心30的资源状态,确定是否开启代理数据采集模式。联邦管理中心30还可以将采集子任务列表发送给数据采集设备40。The federation management center 30 may determine whether to enable the proxy data collection mode based on newly added resources to be used and the resource status of the federation management center 30 . The federal management center 30 may also send the collection subtask list to the data collection device 40 .
在一种可能的实现方式中,在联邦管理中心30的新增待使用资源小于联邦管理中心30中剩余资源的情况下,联邦管理中心30确定开启代理数据采集模式。在本申请实施例中,代理数据采集模式可以指联邦管理中心30将数据采集设备40采集的数据发送给数据需求设备20;或者将数据采集设备40中采集的传感器数据转换为符合数据采集参数的已处理数据(例如,将传感器数据转换为符合数据采集参数的语义信息)发送给数据需求设备20。In a possible implementation manner, when the new resources to be used in the federation management center 30 are less than the remaining resources in the federation management center 30, the federation management center 30 determines to enable the proxy data collection mode. In this embodiment of the application, the proxy data collection mode may mean that the federal management center 30 sends the data collected by the data collection device 40 to the data demand device 20; The processed data (for example, converting sensor data into semantic information conforming to data collection parameters) is sent to the data demand device 20 .
在一种可能的实现方式中,在联邦管理中心30在云服务器中,联邦管理中心30的新增待使用资源大于联邦管理中心30中剩余资源的情况下,联邦管理中心30可以向云服务器申请更多的资源。在联邦管理中心30申请到更多的资源后,联邦管理中心可以开启代理数据采集模式。In a possible implementation, when the federation management center 30 is in the cloud server, and the newly added resources to be used by the federation management center 30 are greater than the remaining resources in the federation management center 30, the federation management center 30 can apply to the cloud server More resources. After the federation management center 30 applies for more resources, the federation management center can start the proxy data collection mode.
在一种可能的实现方式中,联邦管理中心30部署在一个电子设备中,可以向传感联邦中的其他电子设备申请资源用于代理数据采集或者代理模型训练或者推导新语义。In a possible implementation, the federation management center 30 is deployed in an electronic device, and can apply for resources from other electronic devices in the sensor federation for proxy data collection or proxy model training or derivation of new semantics.
这样,在数据采集设备40不能直接与数据需求设备20建立通信连接,数据采集设备40中不具备传感联邦引擎模块的情况下,数据采集设备40也可以完成数据需求设备20中的数据采集任务。In this way, when the data collection device 40 cannot directly establish a communication connection with the data demand device 20, and the data collection device 40 does not have a sensor federation engine module, the data collection device 40 can also complete the data collection task in the data demand device 20 .
在一些场景中,数据采集设备40可以直接将基于数据采集任务采集的传感器数据发送给数据需求设备20。当联邦管理中心30确定由数据采集设备40完成数据需求设备20中的数据采集任务后,数据需求设备20可以直接与数据采集设备40建立数据传输通道。In some scenarios, the data collection device 40 may directly send the sensor data collected based on the data collection task to the data demand device 20 . When the federal management center 30 determines that the data collection device 40 completes the data collection task in the data demand device 20 , the data demand device 20 can directly establish a data transmission channel with the data collection device 40 .
图14A示例性地示出了数据采集设备40与数据需求设备20建立数据传输通道的具体步骤。如图14A所示,在联邦管理中心30确定由数据采集设备40完成数据需求设备20的数据采集任务之后,联邦管理中心30、数据采集设备40以及数据需求设备20可以执行如下步骤:FIG. 14A exemplarily shows specific steps for establishing a data transmission channel between the data collection device 40 and the data demand device 20 . As shown in Figure 14A, after the federation management center 30 determines that the data collection task of the data demand device 20 is completed by the data collection device 40, the federation management center 30, the data collection device 40 and the data demand device 20 can perform the following steps:
S10041a、联邦管理中心30触发数据需求设备20、数据采集设备40中的传感联邦引擎模块开启。S10041a, the federation management center 30 triggers the sensor federation engine module in the data demand device 20 and the data collection device 40 to start.
联邦管理中心30可以触发数据需求设备20中的传感联邦引擎模块开启。具体地,联邦 管理中心30可以向数据需求设备20发送指令b,该指令b可以用于指示数据需求设备20开启传感联邦引擎模块。数据需求设备20可以接收到该指令b,并基于该指令b开启传感联邦引擎模块。The federation management center 30 can trigger the sensory federation engine module in the data demand device 20 to start. Specifically, the federation management center 30 can send an instruction b to the data demand device 20, and the instruction b can be used to instruct the data demand device 20 to start the sensor federation engine module. The data demand device 20 may receive the instruction b, and start the sensor federation engine module based on the instruction b.
联邦管理中心30可以触发数据采集设备40中的传感联邦引擎模块开启。具体地,联邦管理中心30可以向数据采集设备40发送指令c,该指令c可以用于指示数据采集设备40开启传感联邦引擎模块。数据采集设备40可以接收到指令c,并基于该指令c开启传感联邦引擎模块。The federation management center 30 can trigger the sensor federation engine module in the data collection device 40 to start. Specifically, the federation management center 30 may send an instruction c to the data collection device 40, and the instruction c may be used to instruct the data collection device 40 to start the sensor federation engine module. The data collection device 40 may receive the instruction c, and start the sensor federation engine module based on the instruction c.
S10042a、数据采集设备40的传感联邦引擎模块与数据需求设备20的传感联邦引擎模块建立数据传输通道。S10042a, the sensor federation engine module of the data collection device 40 and the sensor federation engine module of the data demand device 20 establish a data transmission channel.
数据采集设备40的传感联邦引擎模块可以与数据需求设备20中的传感联邦引擎模块建立数据传输通道。在一种可能的实现方式中,数据采集设备40中的传感联邦引擎模块可以向数据需求设备20中的传感联邦引擎模块发送用于建立数据传输通道的请求。数据需求设备20中的传感联邦引擎模块接收到该用于建立数据传输通道的请求后,数据需求设备20中的传感联邦引擎模块可以向数据采集设备40中的传感联邦引擎模块回复同意建立数据传输通道。然后,数据采集设备40中的传感联邦引擎模块与数据需求设备20中的传感联邦引擎可以成功建立数据传输通道。The sensor federation engine module of the data collection device 40 can establish a data transmission channel with the sensor federation engine module of the data demand device 20 . In a possible implementation manner, the sensor federation engine module in the data collection device 40 may send a request for establishing a data transmission channel to the sensor federation engine module in the data demand device 20 . After the sensor federation engine module in the data demand device 20 receives the request for establishing a data transmission channel, the sensor federation engine module in the data demand device 20 can reply to the sensor federation engine module in the data collection device 40 for approval Establish a data transmission channel. Then, the sensor federation engine module in the data collection device 40 and the sensor federation engine in the data demand device 20 can successfully establish a data transmission channel.
S10043a、数据采集设备40获取数据需求设备20的设备信息、数据需求设备20获取数据采集设备40的设备信息。S10043a, the data collection device 40 obtains the device information of the data demand device 20 , and the data demand device 20 obtains the device information of the data collection device 40 .
可选地,当数据采集设备40中的传感联邦引擎模块与数据需求设备20中的传感联邦引擎可以成功建立数据传输通道之后,数据采集设备40可以向数据需求设备20发送数据采集设备40的设备信息。数据需求设备20也可以向数据采集设备40发送数据需求设备20的设备信息。Optionally, after the sensor federation engine module in the data collection device 40 and the sensor federation engine in the data demand device 20 can successfully establish a data transmission channel, the data collection device 40 can send the data collection device 40 to the data demand device 20. device information. The data demand device 20 may also send the device information of the data demand device 20 to the data collection device 40 .
在一些场景中,数据采集设备40可以将基于数据采集任务采集的传感器数据发送给联邦管理中心30,然后再由联邦管理中心30将该传感器数据发送给数据需求设备20。当联邦管理中心30确定由数据采集设备40完成数据需求设备20中的数据采集任务后,联邦管理中心30需要分别与数据需求设备20、数据采集设备40建立数据传输通道。In some scenarios, the data collection device 40 may send the sensor data collected based on the data collection task to the federation management center 30 , and then the federation management center 30 sends the sensor data to the data demand device 20 . When the federal management center 30 determines that the data collection device 40 completes the data collection task in the data demand device 20, the federation management center 30 needs to establish data transmission channels with the data demand device 20 and the data collection device 40 respectively.
图14B示例性地示出了联邦管理中心30分别与数据需求设备20、数据采集设备40建立数据传输通道的具体步骤。如图14B所示,在联邦管理中心30确定由数据采集机设备40完成数据需求设备20的数据采集任务之后,联邦管理中心30、数据采集设备40以及数据需求设备20可以执行如下步骤:FIG. 14B exemplarily shows specific steps for establishing data transmission channels between the federation management center 30 and the data demand device 20 and the data collection device 40 respectively. As shown in Figure 14B, after the federation management center 30 determines that the data collection task of the data demand device 20 is completed by the data collection device 40, the federation management center 30, the data collection device 40 and the data demand device 20 can perform the following steps:
S10041b、联邦管理中心30触发数据需求设备20、数据采集设备40中的传感联邦引擎开启。S10041b. The federation management center 30 triggers the sensor federation engine in the data demand device 20 and the data collection device 40 to start.
步骤S10041b可以参考上述步骤S10041a中的描述,此处不再赘述。For step S10041b, reference may be made to the description in the above step S10041a, which will not be repeated here.
S10042b、联邦管理中心30与数据需求设备20建立数据传输通道,联邦管理中心30与数据采集设备40建立数据传输通道。S10042b. The federation management center 30 establishes a data transmission channel with the data demand device 20 , and the federation management center 30 establishes a data transmission channel with the data collection device 40 .
联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)可以与数据需求设备20之间中的传感联邦引擎模块建立通信连接。在一种可能的实现方式中,联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)可以向数据需求设备20中的传感联邦引擎模块发送用于建立数据传输通道的请求。数据需求设备20中的传感联邦引擎模块接收到该用 于建立数据传输通道的请求后,数据需求设备20中的传感联邦引擎模块可以向联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)回复同意建立数据传输通道。然后,联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)与数据需求设备20中的传感联邦引擎可以成功建立数据传输通道。The federation management center module (or the sensory federation engine module) in the federation management center 30 can establish a communication connection with the sensory federation engine module in the data demand device 20 . In a possible implementation manner, the federation management center module (or the sensory federation engine module) in the federation management center 30 may send a request for establishing a data transmission channel to the sensory federation engine module in the data demand device 20 . After the sensing federation engine module in the data demand device 20 receives the request for establishing a data transmission channel, the sensor federation engine module in the data demand device 20 can send a federation management center module in the federation management center 30 (or the federation management center module in the federation management center 30). Sense federation engine module) replies to agree to establish a data transmission channel. Then, the federation management center module (or sensory federation engine module) in the federation management center 30 and the sensory federation engine in the data demand device 20 can successfully establish a data transmission channel.
联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)可以与数据需求设备20之间中的传感联邦引擎模块建立通信连接。在一种可能的实现方式中,联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)可以向数据需求设备20中的传感联邦引擎模块发送用于建立数据传输通道的请求。数据需求设备20中的传感联邦引擎模块接收到该用于建立数据传输通道的请求后,数据需求设备20中的传感联邦引擎模块可以向联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)回复同意建立数据传输通道。然后,联邦管理中心30中的联邦管理中心模块(或者传感联邦引擎模块)与数据需求设备20中的传感联邦引擎可以成功建立数据传输通道。The federation management center module (or the sensory federation engine module) in the federation management center 30 can establish a communication connection with the sensory federation engine module in the data demand device 20 . In a possible implementation manner, the federation management center module (or the sensory federation engine module) in the federation management center 30 may send a request for establishing a data transmission channel to the sensory federation engine module in the data demand device 20 . After the sensing federation engine module in the data demand device 20 receives the request for establishing a data transmission channel, the sensor federation engine module in the data demand device 20 can send a federation management center module in the federation management center 30 (or the federation management center module in the federation management center 30). Sense federation engine module) replies to agree to establish a data transmission channel. Then, the federation management center module (or sensory federation engine module) in the federation management center 30 and the sensory federation engine in the data demand device 20 can successfully establish a data transmission channel.
S10043b、数据采集设备40通过联邦管理中心30获取数据需求设备20的设备信息、数据需求设备20通过联邦管理中心30获取数据采集设备40的设备信息。S10043b, the data collection device 40 obtains the device information of the data demand device 20 through the federation management center 30 , and the data demand device 20 obtains the device information of the data collection device 40 through the federation management center 30 .
可选地,在联邦管理中心30与数据需求设备20建立数据传输通道之后,数据需求设备20可以通过该数据传输通道将数据需求设备20的设备信息发送给联邦管理中心30。然后,联邦管理中心30可以将数据需求设备20的设备信息发送给数据采集设备40。数据采集设备40也可以向联邦管理中心30发送数据采集设备40的设备信息,联邦管理中心30接收到该数据采集设备40的设备信息后,可以将该数据采集设备40的设备信息发送给数据需求设备20。Optionally, after the federation management center 30 establishes a data transmission channel with the data demand device 20, the data demand device 20 may send the device information of the data demand device 20 to the federation management center 30 through the data transmission channel. Then, the federation management center 30 can send the device information of the data demand device 20 to the data collection device 40 . The data collection device 40 can also send the device information of the data collection device 40 to the federal management center 30, and after the federation management center 30 receives the device information of the data collection device 40, it can send the device information of the data collection device 40 to the data demander. device 20.
在一些可能的实现方式中,数据需求设备20、以及联邦管理中心30以及数据采集设备40执行完上述步骤S10043b之后,数据采集设备40可以通过联邦管理中心30将采集的传感器数据发送给数据需求设备20。图15A示例性地示出了数据采集设备40通过联邦管理中心30将采集的传感器数据发送给数据需求设备20的具体步骤。如图15A所示,数据采集设备40通过联邦管理中心30将采集的传感器数据发送给数据需求设备20可以包括如下步骤:In some possible implementations, after the data demand device 20, the federation management center 30 and the data collection device 40 perform the above step S10043b, the data collection device 40 can send the collected sensor data to the data demand device through the federation management center 30 20. FIG. 15A exemplarily shows specific steps for the data collection device 40 to send the collected sensor data to the data demand device 20 through the federation management center 30 . As shown in Figure 15A, the data collection device 40 sends the collected sensor data to the data demand device 20 through the federation management center 30 may include the following steps:
S10051a、数据采集设备40中的传感器基于数据采集子任务列表,采集数据,并将传感器采集到的传感器数据发送给联邦管理中心30。S10051a. The sensors in the data collection device 40 collect data based on the data collection subtask list, and send the sensor data collected by the sensors to the federation management center 30 .
当联邦管理中心30开启代理数据采集模式时,联邦管理中心30可以将数据采集任务解析成数据采集设备40的数据采集子任务列表。该数据采集子任务列表中可以包括一个或多个数据采集子任务。此处可以参考上文中对图13C的描述。数据采集设备40中的传感器可以基于数据采集子任务列表,采集数据,并将传感器采集到的传感器数据,例如传感器数据data100发送给联邦管理中心30。When the federation management center 30 starts the proxy data collection mode, the federation management center 30 can parse the data collection task into a data collection subtask list of the data collection device 40 . The data collection subtask list may include one or more data collection subtasks. Reference can be made here to the description of FIG. 13C above. The sensors in the data collection device 40 can collect data based on the data collection subtask list, and send the sensor data collected by the sensors, such as sensor data data100 , to the federation management center 30 .
S10052a、联邦管理中心30基于采集任务参数采集算子对传感器数据进行处理,得到数据采集结果。S10052a. The federation management center 30 processes the sensor data based on the collection task parameter collection operator to obtain a data collection result.
在采集任务参数中包括采集算子的情况下,联邦管理中心30接收到传感器数据,例如传感器数据data100后,可以基于采集算子对该传感器数据进行处理,得到数据采集结果,例如传感数据data200。该采集算子可以是将10秒内采集到的传感器数据求平均,也可以是将10秒内采集到的传感器数据取最大值等等,本申请实施例对采集算子不作限定。In the case that the acquisition task parameters include the acquisition operator, after the federation management center 30 receives the sensor data, such as the sensor data data100, it can process the sensor data based on the acquisition operator to obtain the data acquisition result, such as the sensor data data200 . The collection operator may be averaging the sensor data collected within 10 seconds, or taking the maximum value of the sensor data collected within 10 seconds, etc. The embodiment of the present application does not limit the collection operator.
可选地,联邦管理中心30还可以将该传感器数据data200转换成语义信息。Optionally, the federal management center 30 can also convert the sensor data data200 into semantic information.
S10053a、联邦管理中心30将数据采集结果发送给数据需求设备20。S10053a, the federation management center 30 sends the data collection result to the data demand device 20 .
联邦管理中心30可以将数据采集结果(例如,传感器数据data200)发送给数据需求设备20。或者,联邦管理中心30可以将该传感器数据data200转换成语义信息,然后将该语义信息发送给数据需求设备20。The federation management center 30 can send the data collection result (for example, sensor data data200 ) to the data demand device 20 . Alternatively, the federal management center 30 can convert the sensor data data200 into semantic information, and then send the semantic information to the data demand device 20 .
在一些场景中,当数据采集设备40基于数据采集任务采集数据时,数据采集设备40发生异常,数据采集设备40可以向联邦管理中心30上报异常事件。In some scenarios, when the data collection device 40 collects data based on the data collection task, and the data collection device 40 is abnormal, the data collection device 40 may report the abnormal event to the federation management center 30 .
图15B示例性地示出了数据采集设备40以及联邦管理中心30如何处理数据采集设备40发生异常事件的具体步骤。如图15B所示,当数据采集设备40在采集数据发生异常时,数据采集设备40以及联邦管理中心30可以执行如下步骤:FIG. 15B exemplarily shows the specific steps of how the data collection device 40 and the federation management center 30 handle abnormal events occurring in the data collection device 40 . As shown in FIG. 15B, when the data collection device 40 is abnormal in collecting data, the data collection device 40 and the federation management center 30 can perform the following steps:
S10051b、数据采集设备40将采集到的传感器数据发送给数据需求设备20。S10051b. The data collection device 40 sends the collected sensor data to the data demand device 20 .
数据采集设备40可以将采集到的传感器数据直接发送给数据需求设备20。The data collection device 40 can directly send the collected sensor data to the data demand device 20 .
可选地,数据采集设备40可以将采集到的传感器数据发送给联邦管理中心30,联邦管理中心30基于采集算子对该传感器数据进行处理后,将处理后的传感器数据发送给数据需求设备。具体地,可以参考上述步骤S10051a-步骤S10053a中的描述,此处不再赘述。Optionally, the data collection device 40 may send the collected sensor data to the federation management center 30, and the federation management center 30 processes the sensor data based on the collection operator, and then sends the processed sensor data to the data demand device. Specifically, reference may be made to the descriptions in the above step S10051a-step S10053a, which will not be repeated here.
S10052b、数据采集设备40向联邦管理中心30上报异常状态,异常状态包括数据采集设备40关机、数据采集设备40断电、数据采集设备电量低于预设电量阈值、数据采集设备未处于佩戴状态中的一项或多项。S10052b. The data collection device 40 reports the abnormal state to the federal management center 30. The abnormal state includes the shutdown of the data collection device 40, the power failure of the data collection device 40, the power of the data collection device is lower than the preset power threshold, and the data collection device is not in the wearing state. one or more of .
当数据采集设备40在采集数据时发生异常,该数据采集设备40无法继续正常基于数据采集任务采集数据。数据采集设备40可以向联邦管理中心上报具体地异常状态。该异常状态可以包括数据采集设备40关机、数据采集设备40断电、数据采集设备40电量低于预设电量阈值、数据采集设备40未处于佩戴状态中的一项或多项。When the data collection device 40 is abnormal when collecting data, the data collection device 40 cannot continue to collect data normally based on the data collection task. The data collection device 40 can report the specific abnormal state to the federation management center. The abnormal state may include one or more of the data collection device 40 being shut down, the data collection device 40 being powered off, the power of the data collection device 40 being lower than a preset power threshold, and the data collection device 40 not being worn.
S10053b、联邦管理中心30搜索符合数据采集参数的数据采集设备40。S10053b. The federation management center 30 searches for a data collection device 40 that meets the data collection parameters.
联邦管理中心30可以再次搜索其他符合数据采集参数的数据采集设备40。具体可以参考上文对图12的描述,此处不再赘述。The federation management center 30 can search for other data collection devices 40 that meet the data collection parameters again. For details, reference may be made to the description of FIG. 12 above, and details are not repeated here.
可选地,在一些场景中,数据采集设备40可以缓存采集的传感器数据,并将超过采集时长的传感器数据删除。数据采集设备40还可以将缓存的传感器数据发送给联邦管理中心30。图15C示例性地示出数据采集设备40对采集的传感器数据的处理流程示意图。如图15C所示,数据采集设备40可以执行如下步骤:Optionally, in some scenarios, the data collection device 40 may cache the collected sensor data, and delete sensor data exceeding the collection time. The data collection device 40 can also send the cached sensor data to the federation management center 30 . FIG. 15C exemplarily shows a schematic flow chart of processing the collected sensor data by the data collection device 40 . As shown in FIG. 15C, the data acquisition device 40 may perform the following steps:
S10051c、数据采集设备40将采集到的传感器数据缓存在数据采集设备40中,并将超过采集时长的传感器数据删除。S10051c. The data collection device 40 caches the collected sensor data in the data collection device 40, and deletes the sensor data exceeding the collection time.
数据采集设备40可以将采集到的传感器数据缓存在数据采集设备40中,并将超过采集时长的传感器数据删除。The data collection device 40 may cache the collected sensor data in the data collection device 40, and delete the sensor data exceeding the collection time.
可选地,数据采集设备40可以执行下述步骤S10052c,联邦管理中心30可以执行下述步骤S10053c。Optionally, the data collection device 40 may execute the following step S10052c, and the federation management center 30 may execute the following step S10053c.
S10052c、数据采集设备40将缓存的传感器数据发送至联邦管理中心30。S10052c, the data collection device 40 sends the cached sensor data to the federation management center 30 .
在一些可能的实现方式中,当数据采集设备40中的传感器数据缓存时长超过采集时长、或传感器数据占用的存储空间大于预设存储空间时,数据采集设备40可以将缓存的传感器数据发送至联邦管理中心30。In some possible implementations, when the sensor data cache time in the data collection device 40 exceeds the collection time, or the storage space occupied by the sensor data is greater than the preset storage space, the data collection device 40 can send the cached sensor data to the federation management center 30 .
S10053c、联邦管理中心30接收并保存传感器数据,在采集时长之后,释放保存的传感 器数据。S10053c. The federation management center 30 receives and saves the sensor data, and releases the saved sensor data after the collection period.
联邦管理中心30可以接收数据采集设备40发送的传感器数据,并保存该传感器数据。可选地,在采集时长之后,联邦管理中心30可以删除该传感器数据。The federation management center 30 can receive the sensor data sent by the data collection device 40 and save the sensor data. Optionally, the federation management center 30 may delete the sensor data after the collection period.
可选地,在一种可能的实现方式中,联邦管理中心中可以存储有数据采集任务中所需的语义信息,联邦管理中心可以直接将存储的语义信息发送给数据需求设备。该联邦管理中心可以无需执行上述步骤。Optionally, in a possible implementation manner, the federation management center may store semantic information required in the data collection task, and the federation management center may directly send the stored semantic information to the data demand device. The federal management center does not need to perform the above steps.
在一种可能的实现方式中,该数据采集设备40可以主动上报采集到的异常数据。In a possible implementation manner, the data collection device 40 may proactively report the collected abnormal data.
在一种可能的实现方式中,联邦管理中心30可以将存储传感联邦中的一个或多个设备发送的一些传感数据。In a possible implementation manner, the federation management center 30 may store some sensing data sent by one or more devices in the sensing federation.
进一步地,联邦管理中心还可以定期刷新存储的传感联邦中的一个或多个设备发送的一些传感数据。具体地,联邦管理中心可以让一个或多个设备定期向联邦管理中心发送一些传感数据。Further, the federation management center can also periodically refresh the stored sensory data sent by one or more devices in the sensory federation. Specifically, the federation management center can allow one or more devices to periodically send some sensing data to the federation management center.
下面在一些具体的场景中描述本申请实施例提供的数据采集方法。The following describes the data collection method provided by the embodiment of the present application in some specific scenarios.
图16示例性地展示了本申请实施例提供的数据采集方法的具体使用场景。如图16所示,本申请实施例中提供的一种数据采集系统(或称为传感联邦)中可以包括手机104、空调101、摄像头102以及电视机107(电视机107中包括摄像头)。其中,手机104中可以是联邦管理中心所在的电子设备。空调101可以是该数据采集系统中的数据需求设备。摄像头102和电视机107可以该数据采集系统中的数据采集设备。关于手机104、空调101、摄像头102、电视机107如何组建数据采集系统可以参考上文的描述,此处不再赘述。Fig. 16 exemplarily shows a specific usage scenario of the data collection method provided by the embodiment of the present application. As shown in FIG. 16 , a data collection system (or called sensor federation) provided in the embodiment of the present application may include a mobile phone 104, an air conditioner 101, a camera 102, and a TV 107 (the TV 107 includes a camera). Wherein, the mobile phone 104 may be an electronic device where the federation management center is located. The air conditioner 101 may be a data demand device in the data collection system. The camera 102 and the TV set 107 may be data collection devices in the data collection system. Regarding how the mobile phone 104, the air conditioner 101, the camera 102, and the television 107 set up a data acquisition system, reference can be made to the description above, and details will not be repeated here.
如图16所示,空调101可以向手机104发送数据采集任务。该数据采集任务中可以包括数据采集参数,例如,所需采集的数据为用户身份和用户人数,需要实时采集,并允许多设备采集。手机104可以接收到该数据采集任务,并将该数据采集任务解析成数据采集子任务1(实时采集图像数据)和数据采集子任务2(实时采集用户身份和人数)。As shown in FIG. 16 , the air conditioner 101 can send a data collection task to the mobile phone 104 . The data collection task may include data collection parameters, for example, the data to be collected is user identity and number of users, which needs to be collected in real time and allows multi-device collection. The mobile phone 104 can receive the data collection task, and analyze the data collection task into data collection subtask 1 (collect image data in real time) and data collection subtask 2 (collect user identities and numbers in real time).
手机104可以将数据采集子任务1发送给摄像头102,将数据采集子任务2发送给电视机107。关于手机104如何确定数据采集子任务1对应的数据采集设备为摄像头102、以及如何确定数据采集子任务2对应的数据采集设备为电视机107可以参考上文中图10-图12中的描述,此处不再赘述。The mobile phone 104 can send the data collection subtask 1 to the camera 102 , and send the data collection subtask 2 to the TV 107 . Regarding how the mobile phone 104 determines that the data collection device corresponding to the data collection subtask 1 is the camera 102, and how to determine that the data collection device corresponding to the data collection subtask 2 is the TV 107, please refer to the descriptions in FIGS. 10-12 above. I won't repeat them here.
摄像头102接收到数据采集子任务1后,可以基于该数据采集子任务1采集用户图像。在一种可能的示例中,摄像头102中不具备传感联邦引擎模块,需要手机104将摄像头采集到的用户图像转换成对应的语义信息“用户身份、以及用户人数”后发送给空调101。这里,具体可以参考上文中图13C中描述的代理数据采集模式,此处不再赘述。After receiving the data collection subtask 1, the camera 102 may collect user images based on the data collection subtask 1. In a possible example, the camera 102 does not have a sensor federation engine module, and the mobile phone 104 needs to convert the user image captured by the camera into corresponding semantic information "user identity and number of users" and send it to the air conditioner 101. Here, for details, reference may be made to the proxy data collection mode described above in FIG. 13C , which will not be repeated here.
电视机107接收到数据采集子任务2后,可以基于该数据采集子任务2采集用户图像。在一种可能的示例中,电视机107中具备传感联邦引擎模块。电视机107可以将用户图像转换成对应的语义信息“用户身份以及用户人数”。电视机107将得到的语义信息“用户身份以及用户人数”发送给空调101。这里,可以参考上文图13A中数据采集设备40直接将采集的数据发送给数据需求设备20的描述,此处不再赘述。下面结合上述图3-图6中示出的数据采集系统中数据需求设备、数据采集设备、以及传感联邦引擎模块、以及联邦管理中心的软件架构,来详细描述图16中示出的数据采集场景中具体的软件模块实现流程。After receiving the data collection subtask 2, the television 107 may collect user images based on the data collection subtask 2. In a possible example, the TV 107 is equipped with a sensor federation engine module. The TV 107 can convert the user image into corresponding semantic information "user identity and number of users". The television set 107 sends the obtained semantic information "user identity and number of users" to the air conditioner 101 . Here, reference may be made to the description of the data collection device 40 directly sending the collected data to the data demand device 20 in FIG. 13A above, which will not be repeated here. The data collection shown in Figure 16 will be described in detail below in conjunction with the data demand device, data collection device, sensor federation engine module, and software architecture of the federation management center in the data collection system shown in Figures 3-6 above. The specific software module implementation process in the scenario.
图17示出了图16中提供的数据采集场景的具体软件模型实现流程示意图。FIG. 17 shows a schematic diagram of a specific software model implementation process of the data collection scenario provided in FIG. 16 .
如图17所示,空调101中可以具备传感联邦引擎模块1600。空调101可以通过传感联邦引擎模块1600生成数据采集任务。具体地,空调101可以通过传感联邦引擎模块1600中 的任务生成模块1602生成数据采集任务。As shown in FIG. 17 , the air conditioner 101 may include a sensor federation engine module 1600 . The air conditioner 101 may generate a data collection task through the sensor federation engine module 1600 . Specifically, the air conditioner 101 can generate a data collection task through the task generation module 1602 in the sensor federation engine module 1600.
如图17所示,空调101中的传感联邦引擎模块1600可以将数据采集任务发送给手机104中的联邦管理中心1700。As shown in FIG. 17 , the sensor federation engine module 1600 in the air conditioner 101 can send the data collection task to the federation management center 1700 in the mobile phone 104 .
如图17所示,手机104中可以具备联邦管理中心1700。该联邦管理中心1700可以接收到空调101中传感联邦引擎模块1600发送的数据采集任务。该联邦管理中心1700可以解析数据采集任务,解析出该数据采集任务所需的语义信息。然后,可以基于解析出的语义信息搜索该语义信息对应的语义信息,以及提供该语义信息的数据采集设备。然后,联邦管理中心1700可以将数据采集任务发送给对应的数据采集设备。As shown in FIG. 17 , the mobile phone 104 may have a federal management center 1700 . The federation management center 1700 can receive the data collection task sent by the sensor federation engine module 1600 in the air conditioner 101 . The federation management center 1700 can analyze the data collection task, and analyze the semantic information required by the data collection task. Then, the semantic information corresponding to the semantic information and the data collection device that provides the semantic information can be searched based on the parsed semantic information. Then, the federation management center 1700 can send the data collection task to the corresponding data collection device.
具体地,在一种可能的实现方式中,联邦管理中心1700中的任务解析模块1701可以数据采集任务(例如,所需采集的数据为用户身份和用户人数,需要实时采集,并允许多设备采集)解析成数据采集子任务1(例如,实时采集图像数据)和数据采集子任务2(例如,实时采集用户身份和人数)。任务解析模块1701可以将解析出数据采集子任务1(例如,实时采集图像数据)和数据采集子任务2(例如,实时采集用户身份和人数)发送给任务分配调度模块1702。然后,任务分配调度模块1702可以将接收到数据采集子任务1中所需语义信息和数据采集子任务2所需语义信息发送给语义搜索模块1703。Specifically, in a possible implementation, the task parsing module 1701 in the federation management center 1700 can perform data collection tasks (for example, the data to be collected is user identity and number of users, real-time collection is required, and multi-device collection is allowed ) is parsed into data collection subtask 1 (for example, collecting image data in real time) and data collection subtask 2 (for example, collecting user identities and numbers in real time). The task analysis module 1701 can send the parsed data collection subtask 1 (for example, collect image data in real time) and data collection subtask 2 (for example, collect user identities and numbers in real time) to the task assignment and scheduling module 1702 . Then, the task allocation and scheduling module 1702 may send the received semantic information required by the data collection subtask 1 and the semantic information required by the data collection subtask 2 to the semantic search module 1703 .
语义搜索模块1703可以基于数据采集子任务1中所需的语义信息、以及数据采集子任务2中所需的语义信息在传感能力管理模型1704中搜索,确定出数据采集子任务1中所需的语义信息对应的语义信息以及提供该语义信息的数据采集设备(例如,摄像头102)、以及确定出数据采集子任务2所需的语义信息对应的语义信息以及提供该语义信息的数据采集设备(例如,电视机107)。The semantic search module 1703 can search in the sensing capability management model 1704 based on the semantic information required in the data collection subtask 1 and the semantic information required in the data collection subtask 2, and determine the information required in the data collection subtask 1. The semantic information corresponding to the semantic information of the semantic information and the data acquisition device (for example, camera 102) that provides the semantic information, and the semantic information corresponding to the semantic information required for the data acquisition subtask 2 and the data acquisition device that provides the semantic information ( For example, television 107).
进一步地,在一种可能的实现方式中,语义搜索模块1703可以将数据采集子任务1对应的数据采集设备的设备信息和数据采集子任务2对饮的数据采集设备的设备信息发送给任务分配调度模块1702。Further, in a possible implementation, the semantic search module 1703 may send the device information of the data collection device corresponding to the data collection subtask 1 and the device information of the data collection device corresponding to the data collection subtask 2 to the task assignment Scheduling module 1702 .
任务分配调度模块1702可以基于数据采集子任务1对应的数据采集设备的设备信息,将数据采集子任务1发送数据采集子任务1对应的数据采集设备(例如,摄像头102)。任务分配调度模块1702可以基于数据采集子任务2对应的数据采集设备的设备信息,将数据采集子任务2发送数据采集子任务2对应的数据采集设备(例如,电视机107)。The task allocation and scheduling module 1702 may send the data collection subtask 1 to the data collection device (for example, the camera 102 ) corresponding to the data collection subtask 1 based on the device information of the data collection device corresponding to the data collection subtask 1 . The task allocation and scheduling module 1702 may send the data collection subtask 2 to the data collection device corresponding to the data collection subtask 2 (for example, the TV 107 ) based on the device information of the data collection device corresponding to the data collection subtask 2 .
如图17所示,摄像头102可以包括数据采集模块1801和数据传输接口1802。摄像头102中可以接收到手机104发送的数据采集子任务1。具体地,摄像头102中的数据采集模块1801可以接收到手机104中联邦管理中心1700发送的数据采集子任务1。数据采集模块1801可以基于该数据采集子任务1采集用户图像。数据采集模块1801可以将该用户图像发送给数据传输接口1802。数据传输接口1802可以与手机104的联邦管理中心1700建立数据传输通道。As shown in FIG. 17 , the camera 102 may include a data collection module 1801 and a data transmission interface 1802 . The camera 102 may receive the data collection subtask 1 sent by the mobile phone 104 . Specifically, the data collection module 1801 in the camera 102 may receive the data collection subtask 1 sent by the federal management center 1700 in the mobile phone 104 . The data collection module 1801 can collect user images based on the data collection subtask 1 . The data collection module 1801 may send the user image to the data transmission interface 1802 . The data transmission interface 1802 can establish a data transmission channel with the federation management center 1700 of the mobile phone 104 .
可选地,在一种可能的实现方式中,具体地,数据传输接口1802可以与手机104的联邦管理中心1700中的接口适配模块1705建立数据传输通道。数据传输接口1802可以将用户图像发送给接口适配模块1705中。接口适配模块1705可以将该用户图像发送给订阅与查询模块1706。Optionally, in a possible implementation manner, specifically, the data transmission interface 1802 may establish a data transmission channel with the interface adaptation module 1705 in the federation management center 1700 of the mobile phone 104 . The data transmission interface 1802 can send the user image to the interface adaptation module 1705 . The interface adaptation module 1705 may send the user image to the subscription and query module 1706 .
可选地,在一种可能的实现方式中,该联邦管理中心1700中包括数据分析模块(图17中未示出)。关于该数据分析模块具体可以参考上述图4中的描述。接口适配模块1705可以将用户图像发送给数据分析模块。数据分析模块可以将该用户图像转换成用户身份和用户人数,发送给订阅与查询模块1706。Optionally, in a possible implementation manner, the federation management center 1700 includes a data analysis module (not shown in FIG. 17 ). For details about the data analysis module, reference may be made to the description in FIG. 4 above. The interface adaptation module 1705 can send the user image to the data analysis module. The data analysis module can convert the user image into user identity and number of users, and send it to the subscription and query module 1706 .
如图17所示,该订阅与查询模块1706可以将该用户图像转换成用户身份和用户人数, 并将该用户身份和用户人数发送给空调101的传感联邦引擎模块1600中的数据接入模块1601。As shown in Figure 17, the subscription and query module 1706 can convert the user image into user identity and number of users, and send the user identity and number of users to the data access module in the sensing federation engine module 1600 of the air conditioner 101 1601.
如图17所示,电视机107可以接收手机104发送的数据采集子任务2。具体地,电视机107中可以包括传感联邦引擎模块1900以及数据采集模块1905。传感联邦引擎模块1900中可以包括任务解析模块1901、订阅与查询模块1902、数据分析模块1903、数据接入模块1904。As shown in FIG. 17 , the TV 107 can receive the data collection subtask 2 sent by the mobile phone 104 . Specifically, the TV 107 may include a sensor federation engine module 1900 and a data collection module 1905 . The sensor federation engine module 1900 may include a task analysis module 1901 , a subscription and query module 1902 , a data analysis module 1903 , and a data access module 1904 .
在一种可能的实现方式中,电视机107的传感联邦引擎模块1900中的任务解析模块1901可以接收到手机104发送的数据采集子任务2。该任务解析模块1901可以将数据采集子任务2解析成采集用户图像任务,并指示数据采集模块1905采集用户图像。数据采集模块1905可以将采集的用户图像发送给数据接入模块1904。数据接入模块1904可以将用户图像发送给数据分析模块1903。数据分析模块1903可以将用户图像转换成用户身份以及用户人数。数据分析模块1903可以将用户身份和用户人数发送给订阅与查询模块1902,由订阅与查询模块1902将用户身份和用户人数等数据发送给空调101。In a possible implementation manner, the task parsing module 1901 in the sensing federation engine module 1900 of the TV set 107 may receive the data collection subtask 2 sent by the mobile phone 104 . The task parsing module 1901 can parse the data collection subtask 2 into a task of collecting user images, and instruct the data collection module 1905 to collect user images. The data collection module 1905 can send the collected user images to the data access module 1904 . The data access module 1904 can send the user image to the data analysis module 1903 . The data analysis module 1903 can convert user images into user identities and user numbers. The data analysis module 1903 can send the user identity and the number of users to the subscription and query module 1902 , and the subscription and query module 1902 sends data such as the user identity and the number of users to the air conditioner 101 .
如图17所示,空调101可以接收到电视机107发送的用户身份和用户人数等数据。具体地,空调101的传感联邦引擎模块1600中的数据接入模块1601可以接收到电视机107中订阅与查询模块1902发送的用户身份和用户人数等数据。As shown in FIG. 17 , the air conditioner 101 may receive data such as user identity and number of users sent by the television 107 . Specifically, the data access module 1601 in the sensing federation engine module 1600 of the air conditioner 101 can receive data such as user identity and number of users sent by the subscription and query module 1902 in the TV set 107 .
空调101在采集到目标数据,可以将目标数据传递给上层的智能模式调节模块。空调101中的智能调节模块根据收到的结果信息智能地选择适合用户的工作模式。通过本申请实施例提供的数据采集方法,空调智能应用无需预置可提供有效信息的设备类型与信号,也无需预置能够访问目标接口的能力,通过联邦管理中心可以确定目标数据(即数据采集任务中所需的数据)对应的数据采集设备,并获取到目标数据。这样,可以大幅降低具有高阶智能功能空调的制备成本。After the air conditioner 101 collects the target data, it can transmit the target data to the upper-layer intelligent mode adjustment module. The intelligent adjustment module in the air conditioner 101 intelligently selects a working mode suitable for the user according to the received result information. Through the data acquisition method provided by the embodiment of the present application, the intelligent application of the air conditioner does not need to preset the device type and signal that can provide effective information, nor does it need to preset the ability to access the target interface, and the target data can be determined through the federal management center (i.e. data collection The data required in the task) corresponds to the data acquisition device and obtains the target data. In this way, the preparation cost of the air conditioner with high-order intelligent functions can be greatly reduced.
当手机104的联邦管理中心中的接口适配模块在接收到适配采集任务参数后,该接口适配模块可以按照参数规格要求通过目标数据采集设备的接口(例如,摄像头102的数据传输接口1802)进行数据访问。手机104的联邦管理中心并根据配置的预处理算子对返回结果参数进行处理,并通过联邦管理中心的数据订阅模块将目标数据同步给空调101的传感联邦引擎模块。空调101的传感联邦引擎模块可以将目标数据提供给空调101的上层智能应用使用。After the interface adaptation module in the federal management center of the mobile phone 104 receives the adaptation acquisition task parameters, the interface adaptation module can pass the interface of the target data acquisition device (for example, the data transmission interface 1802 of the camera 102 ) for data access. The federation management center of the mobile phone 104 processes the returned result parameters according to the configured preprocessing operator, and synchronizes the target data to the sensor federation engine module of the air conditioner 101 through the data subscription module of the federation management center. The sensor federation engine module of the air conditioner 101 can provide the target data to the upper intelligent application of the air conditioner 101 for use.
通过本申请实施例提供的数据采集方法,可以实现对不具备联邦引擎模块的电子设备(例如,摄像头102)数据访问能力的解耦。同时,通过联邦管理中心提供的算子适配能力,也降低了对空调带宽和算力的要求。Through the data collection method provided in the embodiment of the present application, the decoupling of the data access capability of the electronic device (for example, the camera 102 ) that does not have a federation engine module can be realized. At the same time, the operator adaptation capability provided by the federal management center also reduces the requirements for air-conditioning bandwidth and computing power.
在一些场景中,当手机104的联邦管理中心搜索目标数据采集设备为电视机107和摄像头102后,联邦管理中心可以向两个目标数据采集设备发起数据采集请求。接收到数据采集请求的电视机107可以进行决策,确定是否接受该数据采集任务。具体地,电视机107可以通过传感联邦引擎模块中的任务解析模块取得数据采集任务的相关参数,然后将该请求参数发送给传感联邦引擎模块中的任务分配调度模块。传感联邦引擎模块中的任务分配调度模块可以基于设备预留的联邦资源池的剩余资源情况来决策是否接收任务。In some scenarios, after the federation management center of the mobile phone 104 searches for the target data collection devices as the TV 107 and the camera 102, the federation management center can initiate a data collection request to the two target data collection devices. The television 107 that receives the data collection request can make a decision to determine whether to accept the data collection task. Specifically, the TV 107 can obtain the relevant parameters of the data collection task through the task parsing module in the sensory federation engine module, and then send the request parameters to the task allocation and scheduling module in the sensory federation engine module. The task allocation and scheduling module in the sensing federation engine module can decide whether to accept the task based on the remaining resources of the federated resource pool reserved by the device.
在本申请实施例中,数据采集设备(例如,电视机107)进行决策是否接受数据采集任务的目的是,数据采集设备接受到传感联邦中的数据采集任务不能影响数据采集设备自身功能的正常运行。尤其是对于复杂智能设备,由于设备本身计算任务种类多、计算和存储资源波动大,过多的采集任务可能会对设备运行效率较大影响。在各种可能的实施例中,数据采集设备中的任务调度模块可能采用不同的公开或私有的算法进行决策,也可能完全或部分依赖联邦资源池的资源剩余情况进行决策。本申请实施例对具体决策的方式不作限定。In the embodiment of this application, the purpose of the data collection device (for example, TV 107) making a decision whether to accept the data collection task is that the data collection device accepts the data collection task in the sensor federation without affecting the normal function of the data collection device itself. run. Especially for complex smart devices, due to the variety of computing tasks of the device itself and the fluctuation of computing and storage resources, too many collection tasks may have a great impact on the operating efficiency of the device. In various possible embodiments, the task scheduling module in the data collection device may use different public or private algorithms to make decisions, and may also rely entirely or partially on the remaining resources of the federated resource pool to make decisions. The embodiment of the present application does not limit the specific decision-making manner.
在本实施例当中,数据采集设备的传感联邦引擎中任务调度模块在接收到任务请求参数 后,会查询当前联邦资源池的剩余资源和任务队列情况,并预估新增任务需要新增的资源消耗。所述资源包括:计算资源(CPU资源)、存储资源(RAM、ROM等)以及传感器访问通道资源。例如。商用摄像头传感器一般仅支持两路信号访问,并不支持同时多路的信号访问。当剩余的资源能够满足新增资源要求时,任务调度模块决策接受任务,然后向联邦管理中心反馈并通过设备自身的操作系统服务启动相应的采集动作。当剩余的资源不足以满足新增资源要求时,例如当前电视机107的摄像头通道正在被电视机107AI健身应用占用无法启动采集,则电视机107中的传感联邦引擎模块可以将拒绝结果以及原因代码反馈给联邦管理中心。联邦管理中心可以记录任务申请结果至数据库模块,并反馈给数据需求设备(例如,空调101)。In this embodiment, after receiving the task request parameters, the task scheduling module in the sensor federation engine of the data collection device will inquire about the remaining resources and task queues of the current federated resource pool, and estimate that new tasks need to be added. LF. The resources include: computing resources (CPU resources), storage resources (RAM, ROM, etc.), and sensor access channel resources. For example. Commercial camera sensors generally only support two-channel signal access, and do not support simultaneous multi-channel signal access. When the remaining resources can meet the new resource requirements, the task scheduling module decides to accept the task, then feeds back to the federation management center and starts the corresponding collection action through the operating system service of the device itself. When the remaining resources are not enough to meet the new resource requirements, for example, the camera channel of the current TV 107 is being occupied by the AI fitness application of the TV 107 and the collection cannot be started, then the sensing federation engine module in the TV 107 can report the rejection result and the reason The code is fed back to the Federal Management Center. The federation management center can record the result of the task application to the database module, and feed it back to the data-demanding device (for example, the air conditioner 101).
在本申请实施例提供发数据方法中,当数据需求设备的任务请求失败后,联邦管理中心该可以确定传感联邦中其他能够满足数据采集任务需求的数据采集设备完成该数据采集任务。例如,当电视机107拒绝接受空调101的数据采集任务后,联邦管理中心调用能力搜索过程中符合数据采集任务的另一个数据采集设备。In the data sending method provided in the embodiment of the present application, when the task request of the data-demanding device fails, the federation management center can determine that other data collection devices in the sensor federation that can meet the data collection task requirements complete the data collection task. For example, when the TV 107 refuses to accept the data collection task of the air conditioner 101, the federal management center calls another data collection device that meets the data collection task during the capability search process.
通过本申请实施例提供的数据采集方法,可以实现保障数据采集设备资源的机制,保障了数据采集设备主体功能的稳定运行。Through the data collection method provided by the embodiment of the present application, a mechanism for guaranteeing the resources of the data collection device can be realized, and the stable operation of the main functions of the data collection device can be guaranteed.
可以理解的是,在本申请实施例中,数据采集任务不仅包括需要实时获取传感数据的任务,也包括需要非实时、长期获取传感数据的任务。It can be understood that, in the embodiment of the present application, the data acquisition tasks include not only tasks requiring real-time acquisition of sensing data, but also tasks requiring non-real-time and long-term acquisition of sensing data.
本申请中实时的数据采集任务不限于上述示例中空调实时获取身份信息、用户人数的数据采集任务。示例性地,在一些场景,一些设备可以发起实时的数据采集任务,根据采集的传感数据确定用户是否处于失温状态。具体地,用户的手机、体脂称、手表、手环、以及服务器可以组建成数据采集系统。The real-time data collection task in this application is not limited to the data collection task that the air conditioner obtains the identity information and the number of users in real time in the above example. Exemplarily, in some scenarios, some devices may initiate a real-time data collection task, and determine whether the user is in a hypothermia state according to the collected sensor data. Specifically, the user's mobile phone, body fat scale, watch, bracelet, and server can be combined into a data collection system.
其中,体脂称提供用户用体脂称测量的生理特征的传感数据,比如体重、体脂率、心率、骨骼肌量、基础代谢率、水分率、骨盐量、蛋白质、去脂体重、预测身体年龄、预测身体得分等。体脂称可以用户的生理数据传输给手机。Among them, the body fat scale provides the sensor data of the physiological characteristics measured by the user with the body fat scale, such as body weight, body fat rate, heart rate, skeletal muscle mass, basal metabolic rate, moisture rate, bone salt mass, protein, fat-free body mass, Predict body age, predict body score, etc. The body fat scale can transmit the user's physiological data to the mobile phone.
手机中可以设有用户资料登记模块,用于用户手动输入数据,比如年龄、性别、身高、生理周期等。手机还可以对接收到的智能穿戴设备采集的平时心率、血压等数据进行学习处理,得到用户预测心脏健康、睡眠质量等状况。The mobile phone may have a user profile registration module for the user to manually input data, such as age, gender, height, and menstrual cycle. The mobile phone can also learn and process the heart rate, blood pressure and other data collected by the smart wearable device, and obtain the user's prediction of heart health and sleep quality.
手环、手表等智能穿戴设备可以不间断采集用户实时生理特征的传感数据。生理数据可以包括用户平时生活、锻炼运动、和正式比赛时的生理特征,比如心率、血压、脉搏、体温、血氧饱和度、血糖浓度、惯性测量单元(Inertial Measurement Unit,IMU)信号和光电容积脉搏波法(Photoplethysmography,PPG)信号等。手环、手表上的体温传感器可以监测腕部体表温度。其中手表、手环可以利用PPG信号可以进一步地提取出用户的呼吸速率、脉搏速率、血液流速、血液温度、动脉压、硬度指数、等心血管系统有关的生理特征的传感数据。手表、手表可以利用IMU信号和PPG信号可以进一步地识别出用户寒颤程度以及判断用户步态是否出现跌跌撞撞的情况。手环和手表上还包括可以采集环境特征等传感数据的传感器,例如环境温度传感器、湿度传感器、风速传感器、海拔高度传感器、气压传感器等等。Smart wearable devices such as wristbands and watches can continuously collect sensory data of users' real-time physiological characteristics. Physiological data can include the physiological characteristics of the user's daily life, exercise, and official competition, such as heart rate, blood pressure, pulse, body temperature, blood oxygen saturation, blood sugar concentration, inertial measurement unit (Inertial Measurement Unit, IMU) signal and photoelectric volume Pulse wave method (Photoplethysmography, PPG) signal, etc. The body temperature sensor on the wristband and watch can monitor the body surface temperature of the wrist. Among them, watches and bracelets can use PPG signals to further extract sensing data related to physiological characteristics of the cardiovascular system such as the user's breathing rate, pulse rate, blood flow rate, blood temperature, arterial pressure, hardness index, and so on. Watches and watches can use IMU signals and PPG signals to further identify the user's shivering degree and determine whether the user's gait is stumbling. The wristband and watch also include sensors that can collect sensory data such as environmental characteristics, such as ambient temperature sensors, humidity sensors, wind speed sensors, altitude sensors, air pressure sensors, and so on.
在一些场景中,用户的手机可以发起数据采集任务,用户的手环、手表等穿戴设备上可以实时采集用户的生理特征的传感数据以及环境特征的传感数据,判断出用户是否处于失温状态。若判断用户处于失温状态,可以通过多种交互方式向用户进行提醒、询问是否需要报警等操作,可选的如手环发出震动、铃声、提示语音等交互方式,当用户无应答时,自动报警并发送GPS定位信息。在另一些场景中,大赛方的服务器可以发起数据采集任务,可以将数据采集任务发给参与比赛的每个用户的手机或手表、手环等穿戴设备。该数据采集任务可 以用于获取每个用户的手环、手表等穿戴设备上可以实时采集参赛者的生理特征的传感数据以及环境特征的传感数据,即基于用户的生理特征的传感数据以及环境特征的传感数据判断参赛者是否处于失温状态,若是,可以及时联系参赛者并及时提供救援。In some scenarios, the user's mobile phone can initiate a data collection task, and the user's wristband, watch and other wearable devices can collect the sensing data of the user's physiological characteristics and environmental characteristics in real time to determine whether the user is suffering from hypothermia state. If it is judged that the user is in a state of hypothermia, various interactive methods can be used to remind the user and ask whether an alarm is required. Optional interactive methods such as vibration from the bracelet, ringtones, and voice prompts are available. When the user does not respond, the user will automatically Alarm and send GPS positioning information. In other scenarios, the server of the competition party can initiate a data collection task, and can send the data collection task to the mobile phone or wearable device such as a watch or bracelet of each user participating in the competition. This data collection task can be used to obtain sensing data of the contestants’ physiological characteristics and environmental characteristics that can be collected in real time on wearable devices such as bracelets and watches of each user, that is, sensing data based on the user’s physiological characteristics And the sensor data of environmental characteristics can judge whether the contestant is in a state of hypothermia, and if so, can contact the contestant in time and provide rescue in time.
在另一些场景,数据需求设备也可以发起长期的数据采集任务,长期获取一个或多个数据采集设备采集的传感数据。In other scenarios, the data-demanding device can also initiate a long-term data collection task to obtain sensory data collected by one or more data collection devices for a long time.
示例性地,在一种可能的场景中,用户的多个设备可以组成传感联邦,并且接收指示用户的设备长期采集用户的生理特征相关的传感数据的数据采集任务。基于该数据采集任务,用户的手表或手环采集可以采集用户的在运动活动、用餐、久坐、休息等不同场景下的心率、HRV、血氧饱和度、睡眠质量等传感数据。用户的耳机或智能眼镜采集用户在休闲场景下(例如听音乐)的心率、HRV、血氧饱和度等传感数据。用户的手机可以采集用户在休闲场景(例如看视频、听音乐、玩游戏、冥想)、工作场景中的心率、HRV、血氧饱和度等传感数据。手机还可以获取用户的年龄、性别、BMI等传感数据。用户的车机可以采集用户在堵车、以及交通事故等场景下的用户对车辆的加速操作、刹车操作、转向操作等驾驶状态类的传感数据。用户的智能头环可以采集用户在冥想场景中的用户心率、HRV、脑电波等生理信号类的传感数据。用户的电脑、大屏可以采集用户状态(工作状态、休闲状态、室内运动)类的传感数据。传感联邦中的联邦管理中心(例如,手机,或者电脑、或者智能健康监护设备等等)可以根据上述用户的手表或手环、手机、耳机或智能眼镜、用户的车机、智能头环、大屏等等设备在一定时长内(例如,一天内,一周内,一个月内等等,此处不限定)采集的传感数据,确定用户的压力状态。这样,可以通过多种设备采集用户的生理特征相关的传感数据,可以更加准确、客观评估用户的压力状态。并且,还可以对识别到的高压力用户及时进行健康提醒,保障用户及时调节生活状态,避免疾病发生。另外,还可以通过用户用户的多个设备实现对用户心理压力状态的长期跟踪,以便为医生评估病人日常生活中压力状态提供量化参考,更加精确的把握病人病情变化。Exemplarily, in a possible scenario, multiple devices of the user may form a sensing federation, and receive a data collection task instructing the user's devices to collect sensory data related to the user's physiological characteristics for a long time. Based on this data collection task, the user's watch or bracelet can collect sensory data such as heart rate, HRV, blood oxygen saturation, and sleep quality in different scenarios such as sports activities, meals, sedentary, and rest. The user's earphones or smart glasses collect sensory data such as the user's heart rate, HRV, and blood oxygen saturation in leisure scenarios (such as listening to music). The user's mobile phone can collect sensory data such as heart rate, HRV, and blood oxygen saturation of the user in leisure scenes (such as watching videos, listening to music, playing games, and meditating) and work scenes. The mobile phone can also obtain sensory data such as the user's age, gender, and BMI. The user's car machine can collect sensory data such as the user's acceleration operation, brake operation, and steering operation on the vehicle in scenarios such as traffic jams and traffic accidents. The user's smart headband can collect sensory data such as the user's heart rate, HRV, brain wave and other physiological signals in the meditation scene. The user's computer and large screen can collect sensory data such as user status (working status, leisure status, indoor sports). The federal management center in the sensing federation (for example, a mobile phone, or a computer, or a smart health monitoring device, etc.) The sensory data collected by devices such as large screens within a certain period of time (for example, within a day, within a week, within a month, etc., not limited here) determines the user's stress state. In this way, sensory data related to the user's physiological characteristics can be collected through various devices, and the user's stress state can be evaluated more accurately and objectively. In addition, it can also provide timely health reminders to identified high-stress users to ensure that users can adjust their living conditions in a timely manner and avoid the occurrence of diseases. In addition, the long-term tracking of the user's psychological stress state can also be realized through multiple devices of the user user, so as to provide quantitative reference for doctors to assess the stress state of patients in daily life, and to grasp the patient's condition changes more accurately.
本申请实施例提供的数据采集系统中的电子设备(例如,数据需求设备、数据采集设备以及联邦管理中心所在的电子设备)的硬件结构可以如图18中的电子设备100所示。图18是本申请实施例提供的电子设备100的结构示意图。The hardware structure of the electronic devices in the data collection system provided by the embodiment of the present application (for example, the data demand device, the data collection device, and the electronic device where the federation management center is located) can be shown as the electronic device 100 in FIG. 18 . FIG. 18 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
下面以电子设备100为例对实施例进行具体说明。应该理解的是,电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Hereinafter, the embodiment will be specifically described by taking the electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194 and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组 合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
SIM接口可以被用于与SIM卡接口195通信,实现传送数据到SIM卡或读取SIM卡中数据的功能。The SIM interface can be used to communicate with the SIM card interface 195 to realize the function of transmitting data to the SIM card or reading data in the SIM card.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等 无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)。显示面板还可以采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD). The display panel can also use organic light-emitting diodes (organic light-emitting diodes, OLEDs), active-matrix organic light-emitting diodes or active-matrix organic light-emitting diodes (active-matrix organic light emitting diodes, AMOLEDs), flexible light-emitting diodes ( flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,颜色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组 (moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用(比如人脸识别功能,指纹识别功能、移动支付功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如人脸信息模板数据,指纹信息模板等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application required by a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.) and the like. The data storage area can store data created during use of the electronic device 100 (such as face information template data, fingerprint information template, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作, 可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸 传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
可以理解的是,本申请实施例中联邦管理中心30所在的电子设备可以包括上述电子设备100中所示的更多的或者更少的部件。数据需求设备20可以包括上述电子设备100中的所示的更多的或者更少的部件。数据采集设备也可以包括上述电子设备100中所示出的更少或更多的部件。本申请实施例对数据需求设备20,联邦管理中心30所在的电子设备,数据采集设备40的硬件结构,具体包含的部件不作限定。It can be understood that, in the embodiment of the present application, the electronic device where the federation management center 30 is located may include more or less components shown in the above-mentioned electronic device 100 . The data demanding device 20 may include more or less of the components shown in the electronic device 100 described above. The data collection device may also include fewer or more components than those shown in the electronic device 100 described above. The embodiment of the present application does not limit the hardware structure of the data demand device 20 , the electronic device where the federation management center 30 is located, and the data collection device 40 , and the specific components included therein.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the various embodiments of the application.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, depending on the context, the term "when" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting...". Similarly, depending on the context, the phrase "in determining" or "if detected (a stated condition or event)" may be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)".
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Claims (31)

  1. 一种数据采集方法,其特征在于,所述数据采集方法应用于数据采集系统,所述数据采集系统包括多个设备和联邦管理中心,所述多个设备中包括第一设备,所述方法包括:A data collection method, characterized in that the data collection method is applied to a data collection system, the data collection system includes a plurality of devices and a federation management center, the plurality of devices includes a first device, and the method includes :
    所述联邦管理中心接收所述第一设备发送的数据采集任务;The federation management center receives the data collection task sent by the first device;
    所述联邦管理中心根据数据采集任务和所述多个设备的传感能力信息,确定提供所述数据采集任务所需的传感数据的一个或多个设备;The federation management center determines one or more devices that provide the sensing data required by the data collection task according to the data collection task and the sensing capability information of the plurality of devices;
    所述联邦管理中心指示所述一个或多个设备提供所需的传感数据。The federation management center instructs the one or more devices to provide required sensory data.
  2. 根据权利要求1所述的方法,其特征在于,所述联邦管理中心部署在一个设备、或分布式地部署在数据采集系统中的多个设备中,所述设备包括电子设备、服务器。The method according to claim 1, characterized in that, the federation management center is deployed in one device, or deployed in multiple devices distributed in the data collection system, and the devices include electronic devices and servers.
  3. 根据权利要求1或2任一项所述的方法,其特征在于,所述联邦管理中心根据所述数据采集任务和所述多个设备的传感能力信息,确定提供所述数据采集任务所需的传感数据的一个或多个设备,包括:The method according to any one of claims 1 or 2, characterized in that, the federation management center determines the information needed to provide the data collection task according to the data collection task and the sensing capability information of the plurality of devices. Sensing data from one or more devices, including:
    所述联邦管理中心根据所述数据采集任务和所述多个设备的传感能力信息,确定提供所述数据采集任务所需的传感数据的一个或多个设备;The federation management center determines one or more devices that provide the sensing data required by the data collection task according to the data collection task and the sensing capability information of the plurality of devices;
    所述联邦管理中心根据所述多个设备的传感能力信息、以及所述多个设备的传感数据之间的关联关系和/或所述多个设备的设备状态,确定出提供所述数据采集任务所需的传感数据的一个或多个设备执行所述数据采集任务。The federation management center determines to provide the data according to the sensing capability information of the multiple devices, the association relationship between the sensing data of the multiple devices and/or the device status of the multiple devices One or more devices that collect sensory data required for a task perform the data collection task.
  4. 根据权利要求3所述的方法,其特征在于,所述设备状态包括所述多个设备的电量状态、佩戴状态、与所述第一设备的距离、所述多个设备中提供的传感器数据的精度中的一项或多项。The method according to claim 3, wherein the device status includes the power status of the multiple devices, the wearing status, the distance from the first device, and the sensor data provided by the multiple devices. One or more of precision.
  5. 根据权利要求4所述的方法,其特征在于,所述联邦管理中心根据所述数据采集任务和所述多个设备的传感数据,确定提供所述数据采集任务所需的传感数据的一个或多个设备,包括:The method according to claim 4, characterized in that, according to the data collection task and the sensor data of the plurality of devices, the federation management center determines one of the sensor data required for the data collection task. or multiple devices, including:
    所述联邦管理中心解析出所述数据采集任务,确定所述数据采集任务所需的传感数据包括第一传感数据和第二传感数据;The federation management center parses out the data collection task, and determines that the sensory data required for the data collection task includes first sensory data and second sensory data;
    所述联邦管理中心根据所述第一传感数据和所述第二传感数据;从所述多个设备中确定提供所述第一传感数据的第二设备和提供所述第二传感数据的第三设备;The federation management center determines, from the multiple devices, a second device that provides the first sensor data and provides the second sensor data according to the first sensor data and the second sensor data. third device for data;
    所述联邦管理中心向所述第二设备发送第一采集子任务,向所述第三设备发送第二采集子任务;所述第一采集子任务用于指示所述第二设备提供所述第一传感数据,所述第二采集子任务用于指示所述第三设备提供所述第二传感数据。The federation management center sends a first collection subtask to the second device, and sends a second collection subtask to the third device; the first collection subtask is used to instruct the second device to provide the first collection subtask. Sensing data, the second collection subtask is used to instruct the third device to provide the second sensing data.
  6. 根据权利要求5所述的方法,其特征在于,所述联邦管理中心向所述第二设备发送第一采集子任务,向所述第三设备发送第二采集子任务之后,所述方法还包括:The method according to claim 5, wherein the federal management center sends the first collection subtask to the second device, and after sending the second collection subtask to the third device, the method further includes :
    所述第二设备接受或拒绝所述第一采集子任务;The second device accepts or rejects the first acquisition subtask;
    所述第三设备接受或拒绝所述第二采集子任务。The third device accepts or rejects the second acquisition subtask.
  7. 根据权利要求6所述的方法,其特征在于,所述第二设备接受或拒绝所述第一采集子任务,包括:The method according to claim 6, wherein the second device accepting or rejecting the first acquisition subtask comprises:
    所述第二设备基于所述第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务;The second device determines to accept or reject the first collection subtask based on remaining resources in the second device;
    所述第二设备基于所述第二设备中的剩余资源,确定接受或拒绝所述第一采集子任务,包括:The second device determines to accept or reject the first acquisition subtask based on remaining resources in the second device, including:
    在所述第二设备确定所述第二设备中的剩余资源大于所述第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第一消息,所述第一消息用于指示所述第二设备接受所述第一采集子任务;所述第二设备中的剩余资源包括所述第二设备中的剩余的计算资源和存储资源;When the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the second device sends a first message to the federation management center, The first message is used to instruct the second device to accept the first collection subtask; the remaining resources in the second device include remaining computing resources and storage resources in the second device;
    在所述第二设备确定所述第二设备中的剩余资源小于所述第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第二消息,所述第二消息用于指示所述第二设备拒绝接受所述第一采集子任务。When the second device determines that the remaining resources in the second device are less than the resources to be used required by the first acquisition subtask, the second device sends a second message to the federation management center, The second message is used to instruct the second device to refuse to accept the first acquisition subtask.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述联邦管理中心指示所述一个或多个设备提供所需的传感数据,包括:The method according to any one of claims 1-7, wherein the federation management center instructs the one or more devices to provide the required sensing data, including:
    所述一个或多个设备与所述第一设备建立数据传输通道;The one or more devices establish a data transmission channel with the first device;
    所述一个或多个设备通过所述数据传输通道将所需的传感数据发送给所述第一设备。The one or more devices send the required sensing data to the first device through the data transmission channel.
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述联邦管理中心指示所述一个或多个设备提供所需的传感数据,包括:The method according to any one of claims 1-7, wherein the federation management center instructs the one or more devices to provide the required sensing data, including:
    所述联邦管理中心将一个或多个设备发送的所需的传感数据,发送给所述第一设备。The federation management center sends the required sensing data sent by one or more devices to the first device.
  10. 根据权利要求9所述的方法,其特征在于,所述数据采集任务所需的传感数据包括第一语义信息;所述联邦管理中心将一个或多个设备发送的所需的传感数据,发送给所述第一设备,包括:The method according to claim 9, wherein the sensing data required for the data collection task includes first semantic information; the federation management center sends the required sensing data to one or more devices, sent to the first device, including:
    所述联邦管理中心将一个或多个设备发送的传感器采集的原始信号或者第二语义信息,转化为第一语义信息,并将所述第一语义信息发送给所述第一设备。The federation management center converts the original signal collected by the sensor or the second semantic information sent by one or more devices into first semantic information, and sends the first semantic information to the first device.
  11. 根据权利要求7所述的方法,其特征在于,所述在所述第二设备确定所述第二设备中的剩余资源小于所述第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第二消息,所述第二消息用于指示所述第二设备拒绝接受所述第一采集子任务,包括:The method according to claim 7, wherein when the second device determines that the remaining resources in the second device are less than the resources to be used required by the first collection subtask, the The second device sends a second message to the federation management center, the second message is used to instruct the second device to refuse to accept the first acquisition subtask, including:
    所述联邦管理中心根据所述第一采集子任务和所述多个设备的传感能力信息,确定提供所述第一传感数据的第四设备。The federation management center determines a fourth device that provides the first sensing data according to the first collection subtask and the sensing capability information of the plurality of devices.
  12. 根据权利要求7所述的方法,其特征在于,所述在所述第二设备确定所述第二设备中的剩余资源大于所述第一采集子任务所需的待使用资源的情况下,所述第二设备向所述联邦管理中心发送第一消息,所述第一消息用于指示所述第二设备接受所述第一采集子任务之后,包括:The method according to claim 7, wherein when the second device determines that the remaining resources in the second device are greater than the resources to be used required by the first collection subtask, the The second device sends a first message to the federation management center, where the first message is used to instruct the second device to accept the first collection subtask, including:
    所述第二设备基于所述第一采集子任务采集所述第一传感数据;The second device collects the first sensory data based on the first collection subtask;
    所述联邦管理中心确定所述第二设备处于异常状态,所述联邦管理中心确定提供所述第 一传感数据的第四设备;所述异常状态包括所述第二设备的电池电量低于电量阈值、所述第二设备与所述联邦管理中心的连接断开、所述第二设备未处于佩戴状态、所述第二设备与电源断开中的一项或多项。The federal management center determines that the second device is in an abnormal state, and the federal management center determines that the fourth device that provides the first sensor data; the abnormal state includes that the battery power of the second device is lower than the power One or more of a threshold value, disconnection of the second device from the federal management center, disconnection of the second device from a power supply, and disconnection of the second device from a power source.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述数据采集任务携带仲裁标识,所述仲裁标识用于指示所述一个或多个设备中的第五设备拒绝接受所述数据采集任务的次数超过预设阈值;所述联邦管理中心指示所述一个或多个设备提供所需的传感数据,包括:The method according to any one of claims 1-12, wherein the data collection task carries an arbitration flag, and the arbitration flag is used to indicate that the fifth device among the one or more devices refuses to accept the The number of data collection tasks exceeds a preset threshold; the federal management center instructs the one or more devices to provide the required sensing data, including:
    所述联邦管理中心基于所述第五设备的剩余资源,指示所述第五设备提供所需的传感数据。The federation management center instructs the fifth device to provide required sensing data based on the remaining resources of the fifth device.
  14. 根据权利要求13所述的方法,其特征在于,所述联邦管理中心基于所述第五设备的剩余资源,指示所述第五设备提供所需的传感数据,包括:The method according to claim 13, wherein the federation management center instructs the fifth device to provide required sensing data based on the remaining resources of the fifth device, including:
    所述联邦管理中心向所述第五设备发送第三消息,所需第三消息用于指示所述第五设备向所述联邦管理中心发送所述第五设备中的剩余资源、以及所述第五设备评估出的执行所述数据采集任务所需的待使用资源;The federation management center sends a third message to the fifth device, and the required third message is used to instruct the fifth device to send the remaining resources in the fifth device and the fifth device to the federation management center. 5. The estimated resources to be used for performing the data collection task evaluated by the equipment;
    所述联邦管理中心接收所述第五设备发送的所述第五设备中的剩余资源、以及所述第五设备评估出的执行所述数据采集任务所需的待使用资源;The federation management center receives the remaining resources in the fifth device sent by the fifth device, and the resources to be used estimated by the fifth device required to perform the data collection task;
    在所述剩余资源大于所述所需的待使用资源的情况下,所述联邦管理中心指示所述第五设备提供所述数据采集任务所需的数据。In the case that the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide the data required by the data collection task.
  15. 根据权利要求13所述的方法,其特征在于,所述联邦管理中心基于所述第五设备的剩余资源,指示所述第五设备提供所需的传感数据,包括:The method according to claim 13, wherein the federation management center instructs the fifth device to provide required sensing data based on the remaining resources of the fifth device, including:
    所述联邦管理中心向所述第五设备发送第四消息,所需第四消息用于指示所述第五设备向所述联邦管理中心发送所述第五设备中的剩余资源;The federation management center sends a fourth message to the fifth device, and the required fourth message is used to instruct the fifth device to send the remaining resources in the fifth device to the federation management center;
    所述联邦管理中心接收所述第五设备发送的所述第五设备中的剩余资源;The federation management center receives the remaining resources in the fifth device sent by the fifth device;
    所述联邦管理中心基于所述数据采集任务,评估出所述第五设备执行所述数据采集任务所需的待使用资源;The federation management center evaluates the resources to be used required by the fifth device to perform the data collection task based on the data collection task;
    在所述剩余资源大于所述所需的待使用资源的情况下,所述联邦管理中心指示所述第五设备提供所述数据采集任务所需的数据。In the case that the remaining resources are greater than the required resources to be used, the federation management center instructs the fifth device to provide the data required by the data collection task.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述联邦管理中心接收所述第一设备发送的数据采集任务之前,所述方法还包括:The method according to any one of claims 1-15, wherein before the federation management center receives the data collection task sent by the first device, the method further includes:
    所述联邦管理中心接收到所述多个设备的传感能力信息;The federal management center receives the sensing capability information of the plurality of devices;
    所述联邦管理中心基于所述多个设备的传感能力信息和下载的第一知识图谱,推导出新的传感能力信息。The federal management center derives new sensing capability information based on the sensing capability information of the plurality of devices and the downloaded first knowledge graph.
  17. 根据权利要求16的方法,其特征在于,所述联邦管理中心接收到所述多个设备的传感能力信息,包括:The method according to claim 16, wherein the federation management center receives the sensing capability information of the plurality of devices, comprising:
    所述联邦管理中心接收到所述多个设备中第六设备加入所述数据采集系统的消息以及所述第六设备的设备型号;The federation management center receives a message that the sixth device among the plurality of devices joins the data collection system and the device model of the sixth device;
    所述联邦管理中心基于所述第六设备的设备型号,从第一服务器中获取所述第六设备的 传感能力信息;所述第一服务器中存储有不同的设备型号、以及设备型号对应的传感能力信息。The federation management center obtains the sensor capability information of the sixth device from the first server based on the device model of the sixth device; the first server stores different device models and corresponding Sensing capability information.
  18. 根据权利要求17所述的方法,其特征在于,所述联邦管理中心基于所述第六设备的设备型号,从第一服务器中获取所述第六设备的能力信息之后,所述方法还包括:The method according to claim 17, wherein after the federation management center acquires the capability information of the sixth device from the first server based on the device model of the sixth device, the method further comprises:
    所述联邦管理中心基于所述第六设备的传感能力信息,以及第二知识图谱,推导出新的传感能力信息;所述第二知识图谱包括第一知识图谱,所述第二知识图谱中包含的传感能力信息比所述第一知识图谱中包含的传感能力信息多;The federal management center derives new sensing capability information based on the sensing capability information of the sixth device and a second knowledge graph; the second knowledge graph includes a first knowledge graph, and the second knowledge graph The sensory capability information contained in is more than the sensory capability information contained in the first knowledge map;
    基于所述新的传感能力信息,更新所述联邦管理中心存储的传感能力信息。Based on the new sensing capability information, update the sensing capability information stored in the federation management center.
  19. 根据权利要求18所述的方法,其特征在于,所述联邦管理中心基于所述第六设备的传感能力信息,以及的第二知识图谱,推导出新的传感能力信息之后,所述方法还包括:The method according to claim 18, characterized in that, after the federation management center derives new sensing capability information based on the sensing capability information of the sixth device and the second knowledge map, the method Also includes:
    所述联邦管理中心确定所述第六设备退出所述数据采集系统;The federal management center determines that the sixth device exits the data collection system;
    所述联邦管理中心删除存储的所述第六设备的传感能力信息、以及删除基于所述第六设备的传感能力信息推导出的新的传感能力信息。The federation management center deletes the stored sensing capability information of the sixth device, and deletes new sensing capability information derived based on the sensing capability information of the sixth device.
  20. 根据权利要求19所述的方法,其特征在于,所述联邦管理中心确定所述第六设备退出所述数据采集系统,包括:The method according to claim 19, wherein the federal management center determines that the sixth device exits the data collection system, comprising:
    所述联邦管理中心在预设时长内未收到所述第六设备的发送的第五消息的情况下,所述联邦管理中心确定所述第六设备退出所述数据采集系统;所述第五消息用于指示所述第六设备在所述数据采集系统中。If the federation management center does not receive the fifth message sent by the sixth device within a preset time period, the federation management center determines that the sixth device exits the data collection system; the fifth The message is used to indicate that the sixth device is in the data collection system.
  21. 根据权利要求19所述的方法,其特征在于,所述联邦管理中心确定所述第六设备退出所述数据采集系统,包括:The method according to claim 19, wherein the federal management center determines that the sixth device exits the data collection system, comprising:
    所述联邦管理中心接收到所述第六设备发送的第六消息,所述第六消息用于指示所述第六设备退出所述数据采集系统中。The federation management center receives a sixth message sent by the sixth device, and the sixth message is used to instruct the sixth device to quit the data collection system.
  22. 根据权利要求1-21所述的方法,其特征在于,所述一个或多个设备中还包括第七设备,所述方法还包括:The method according to claims 1-21, wherein the one or more devices further include a seventh device, and the method further includes:
    所述联邦管理中心向第七设备发送第一指示信息,所述第一指示信息用于指示在确定所述第七设备中采集的第三传感器数据处于第一状态的情况下,所述第七设备向所述联邦管理中心发送所述第三传感器数据;The federation management center sends first indication information to the seventh device, where the first indication information is used to indicate that when the third sensor data collected by the seventh device is determined to be in the first state, the seventh The device sends the third sensor data to the federation management center;
    所述联邦管理中心接收第七设备发送的第三传感数据;The federation management center receives the third sensing data sent by the seventh device;
    所述联邦管理中心将所述第三传感数据发送给订阅所述第三传感数据的一个或多个设备。The federation management center sends the third sensing data to one or more devices subscribed to the third sensing data.
  23. 根据权利要求1-22任一项所述的方法,其特征在于,所述联邦管理中心接收所述第一设备发送的数据采集任务之后,所述方法还包括:所述联邦管理中心基于所述数据采集任务、和所述联邦管理中心存储的传感数据;The method according to any one of claims 1-22, wherein after the federation management center receives the data collection task sent by the first device, the method further comprises: the federation management center based on the Data collection tasks, and sensory data stored by the federation management center;
    所述联邦管理中心确定所述联邦管理中心存储有所述数据采集任务所需的传感数据;The federation management center determines that the federation management center stores the sensory data required for the data collection task;
    所述联邦管理中心将所述所需的传感数据发送给所述第一设备。The federal management center sends the required sensing data to the first device.
  24. 根据权利要求1-23任一项所述的方法,其特征在于,所述传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;The method according to any one of claims 1-23, wherein the sensing capability information includes sensing data in the device and the accuracy of the sensing data in the device;
    所述第一知识图谱由所述联邦管理中心基于所述多个设备的传感能力信息生成;所述第二知识图谱存储在服务器中,所述第一知识图谱包括所述多个设备的传感数据、以及所述多个设备的传感数据之间的关联关系。The first knowledge graph is generated by the federation management center based on the sensor capability information of the multiple devices; the second knowledge graph is stored in the server, and the first knowledge graph includes the passed information of the multiple devices. Sensing data, and an association relationship between the sensing data of the multiple devices.
  25. 一种数据采集方法,所述数据采集方法应用于数据采集系统,所述数据采集系统包括多个设备和联邦管理中心,所述多个设备中包括第一设备;所述方法包括:A data acquisition method, the data acquisition method is applied to a data acquisition system, the data acquisition system includes a plurality of devices and a federation management center, the plurality of devices includes a first device; the method includes:
    第一设备向所述联邦管理中心发送第一数据采集任务,所述第一数据采集任务指示在所述第一数据采集任务所需的传感数据符合第一条件的情况下,获取所述第一数据采集任务所需的传感数据;The first device sends a first data collection task to the federal management center, and the first data collection task indicates that when the sensor data required by the first data collection task meets a first condition, acquire the first data collection task. - sensory data required for data acquisition tasks;
    所述联邦管理中心基于所述数据采集任务、以及所述多个设备的传感能力信息,确定提供所述第一数据采集任务所需的传感数据的一个或多个设备;The federation management center determines one or more devices that provide the sensing data required by the first data collection task based on the data collection task and the sensing capability information of the plurality of devices;
    所述联邦管理中心向一个或多个设备发送第一指示信息,所述第一指示信息用于指示在确定所述一个或多个设备中采集的所述所需的传感器数据符合第一条件的情况下,所述一个或多个设备向所述联邦管理中心发送所述所需的传感器数据。The federation management center sends first indication information to one or more devices, where the first indication information is used to indicate that the required sensor data collected by the one or more devices meets the first condition case, said one or more devices send said required sensor data to said federation management center.
  26. 根据权利要求25所述的方法,其特征在于,所述方法还包括:The method according to claim 25, further comprising:
    第二设备向所述联邦管理中心发送第二数据采集任务,所述第二采集任务中包括采集周期参数,所述采集周期参数指示所述第二设备需要所述第四传感数据的周期;The second device sends a second data collection task to the federation management center, the second collection task includes a collection cycle parameter, and the collection cycle parameter indicates a cycle in which the second device needs the fourth sensing data;
    所述联邦管理中心基于所述第二数据采集任务、以及所述多个设备的传感能力信息,确定提供所述第四传感数据一个或多个设备;The federation management center determines one or more devices to provide the fourth sensing data based on the second data collection task and the sensing capability information of the plurality of devices;
    所述联邦管理中心指示所述一个或多个设备基于所述采集周期参数采集所述第四传感数据。The federation management center instructs the one or more devices to collect the fourth sensory data based on the collection period parameter.
  27. 根据权利要求25或26任一项所述的方法,其特征在于,所述联邦管理中心部署在一个设备、或分布式地部署在数据采集系统中的多个设备中,所述设备包括电子设备、服务器。The method according to any one of claims 25 or 26, characterized in that the federation management center is deployed in one device, or distributed in multiple devices in the data collection system, and the devices include electronic devices ,server.
  28. 根据权利要求25-27任一项所述的方法,其特征在于,所述传感能力信息包括设备中的传感数据、以及设备中的传感数据的精度;所述第一条件包括所述所需的传感器数据超过第一阈值、所述第二时刻采集所述所需的传感数据与所述第一时刻采集所述所需的传感数据的差值大于第二阈值;所述第二时刻晚于所述第一时刻。The method according to any one of claims 25-27, wherein the sensing capability information includes the sensing data in the device and the accuracy of the sensing data in the device; the first condition includes the The required sensor data exceeds a first threshold, and the difference between the required sensor data collected at the second moment and the required sensor data collected at the first moment is greater than a second threshold; the second The second moment is later than the first moment.
  29. 一种数据采集系统,其特征在于,所述数据采集系统包括第一电子设备、第二电子设备以及第三电子设备,所述第一电子设备与所述第二电子设备建立有通信连接,所述第二电子设备与所述第三电子设备建立有通信连接;所述第一电子设备、所述第二电子设备、所述第三电子设备用于执行如权利要求1-24或25-28任一项所述的方法。A data acquisition system, characterized in that the data acquisition system includes a first electronic device, a second electronic device, and a third electronic device, the first electronic device establishes a communication connection with the second electronic device, and the The second electronic device establishes a communication connection with the third electronic device; the first electronic device, the second electronic device, and the third electronic device are used to execute the method according to claims 1-24 or 25-28. any one of the methods described.
  30. 一种电子设备,其特征在于,包括一个或多个处理器、一个或多个存储器、收发器;其中,所述收发器、所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个 存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当一个或多个处理器在执行所述计算机指令时,使得所述电子设备执行如权利要求1-24或25-28任一项所述的方法。An electronic device, characterized in that it includes one or more processors, one or more memories, and a transceiver; wherein the transceiver, the one or more memories are coupled to the one or more processors , the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the functions described in claim 1- 24 or the method described in any one of 25-28.
  31. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-24或25-28任一项所述的方法。A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is made to perform the operation described in any one of claims 1-24 or 25-28. Methods.
PCT/CN2022/128453 2021-11-12 2022-10-29 Data acquisition method and system, and related device WO2023083026A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202111340157.5 2021-11-12
CN202111340157 2021-11-12
CN202111669822.5 2021-12-30
CN202111669822.5A CN116127082A (en) 2021-11-12 2021-12-30 Data acquisition method, system and related device

Publications (1)

Publication Number Publication Date
WO2023083026A1 true WO2023083026A1 (en) 2023-05-19

Family

ID=86294339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128453 WO2023083026A1 (en) 2021-11-12 2022-10-29 Data acquisition method and system, and related device

Country Status (2)

Country Link
CN (1) CN116127082A (en)
WO (1) WO2023083026A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116595338A (en) * 2023-07-18 2023-08-15 北京邮电大学 Engineering information acquisition and processing system based on Internet of things
CN117933382A (en) * 2024-03-25 2024-04-26 中国电子科技集团公司第五十四研究所 Task group construction method based on knowledge graph

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853959A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Permission control device and method
US20140344445A1 (en) * 2013-05-14 2014-11-20 Lsis Co., Ltd. Apparatus and method for data acquisition
CN111490881A (en) * 2019-01-28 2020-08-04 广东优世联合控股集团股份有限公司 Data acquisition method, server, system and readable medium
CN112784989A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Inference system, inference method, electronic device, and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853959A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Permission control device and method
US20140344445A1 (en) * 2013-05-14 2014-11-20 Lsis Co., Ltd. Apparatus and method for data acquisition
CN111490881A (en) * 2019-01-28 2020-08-04 广东优世联合控股集团股份有限公司 Data acquisition method, server, system and readable medium
CN112784989A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Inference system, inference method, electronic device, and computer storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116595338A (en) * 2023-07-18 2023-08-15 北京邮电大学 Engineering information acquisition and processing system based on Internet of things
CN116595338B (en) * 2023-07-18 2023-09-08 北京邮电大学 Engineering information acquisition and processing system based on Internet of things
CN117933382A (en) * 2024-03-25 2024-04-26 中国电子科技集团公司第五十四研究所 Task group construction method based on knowledge graph
CN117933382B (en) * 2024-03-25 2024-05-31 中国电子科技集团公司第五十四研究所 Task group construction method based on knowledge graph

Also Published As

Publication number Publication date
CN116127082A (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2023083026A1 (en) Data acquisition method and system, and related device
EP3893129A1 (en) Recommendation method based on user exercise state, and electronic device
WO2022042773A1 (en) Audio push method and audio push system
EP3989526A1 (en) Method for displaying screen-on information of application, and electronic device
WO2021036568A1 (en) Fitness-assisted method and electronic apparatus
CN110322878A (en) A kind of sound control method, electronic equipment and system
CN110222491A (en) A kind of method and a kind of electronic equipment of starting application
WO2020216098A1 (en) Method for providing forwarding service across electronic apparatuses, apparatus, and system
WO2020238890A1 (en) Information processing method and device
CN111202955A (en) Motion data processing method and electronic equipment
WO2022007720A1 (en) Wearing detection method for wearable device, apparatus, and electronic device
WO2021233161A1 (en) Family schedule fusion method and apparatus
CN110448779A (en) A kind of method and device adjusting biological rhythm
EP4369357A1 (en) Health management method and system, and electronic device
WO2022151887A1 (en) Sleep monitoring method and related apparatus
EP4224830A1 (en) Data sharing method, apparatus and system, and electronic device
WO2021244186A1 (en) User health management and control method, and electronic device
WO2022037479A1 (en) Photographing method and photographing system
WO2024098905A9 (en) Exercise data processing method, wearable device, terminal, body building device, and medium
WO2023001165A1 (en) Exercise guidance method and related apparatus
WO2022222761A1 (en) Map display method and related device
US20230402150A1 (en) Adaptive Action Evaluation Method, Electronic Device, and Storage Medium
WO2021254091A1 (en) Method for determining number of motions and terminal
WO2021147483A1 (en) Data sharing method and apparatus
CN116128050A (en) Model training method, system and related device

Legal Events

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

Ref document number: 22891822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE