CN114493645A - Data acquisition method and device and electronic equipment - Google Patents

Data acquisition method and device and electronic equipment Download PDF

Info

Publication number
CN114493645A
CN114493645A CN202011268844.6A CN202011268844A CN114493645A CN 114493645 A CN114493645 A CN 114493645A CN 202011268844 A CN202011268844 A CN 202011268844A CN 114493645 A CN114493645 A CN 114493645A
Authority
CN
China
Prior art keywords
data
washing
clothes
target user
target
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011268844.6A
Other languages
Chinese (zh)
Inventor
辛耀东
张纯锋
王正涛
柯叶翔
林炀平
宋学武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Gandao Intelligent Technology Co ltd
Qingdao Haier Drum Washing Machine Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Hangzhou Gandao Intelligent Technology Co ltd
Qingdao Haier Drum Washing Machine Co Ltd
Haier Smart Home Co Ltd
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 Hangzhou Gandao Intelligent Technology Co ltd, Qingdao Haier Drum Washing Machine Co Ltd, Haier Smart Home Co Ltd filed Critical Hangzhou Gandao Intelligent Technology Co ltd
Priority to CN202011268844.6A priority Critical patent/CN114493645A/en
Publication of CN114493645A publication Critical patent/CN114493645A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • Computing Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Control Of Washing Machine And Dryer (AREA)

Abstract

The invention provides a data acquisition method, a data acquisition device and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining a clothes data obtaining request sent by a target user terminal corresponding to a target user, obtaining target clothes data from a block chain according to the clothes data obtaining request, wherein the target clothes data comprise first washing and protecting data and clothes washing and protecting consumption data, the first washing and protecting data are collected by washing and protecting equipment corresponding to the target user in a first area and stored to the block chain, the clothes washing and protecting consumption data are obtained by terminal equipment in a second area and stored to the block chain, the first washing and protecting data and the clothes washing and protecting consumption data are sent to the target user terminal, the data related to a washing scene are rapidly obtained, the target user does not need to obtain the clothes washing and protecting consumption data from the second area, and the data obtaining efficiency is improved.

Description

Data acquisition method and device and electronic equipment
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a data acquisition method and device and electronic equipment.
Background
With the development of technology and the progress of society, more and more users are installed with washing and caring equipment in homes. When the user washes and protects clothes, the user can use the washing and protecting equipment at home to wash and care the clothes. Sometimes, however, to better wash the garments, the user will go to a laundry store to wash the garments.
At present, in order to better understand the washing and caring condition of clothes, a user needs to acquire data related to the washing and caring of the clothes, and then the user acquires the washing and caring data of the user at home from the washing and caring device at home and goes to a laundry store to acquire consumption data of the user at the laundry store.
However, when acquiring consumption data of a user in a laundry, the user needs to go to the laundry to manually acquire the consumption data, and when acquiring home care data, the user needs to acquire the consumption data from home care equipment, so that the data acquisition steps are complicated, the acquisition efficiency is low, and the user experience is low.
Disclosure of Invention
The method aims to solve the problems in the prior art, namely the problem of low data acquisition efficiency in the prior art is solved. The invention provides a data acquisition method, a data acquisition device and electronic equipment.
In a first aspect, an embodiment of the present invention provides a data acquisition method, including:
acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user;
acquiring target clothes data from a block chain according to the clothes data acquisition request; the target clothes data comprise first washing and protecting data and clothes washing and protecting consumption data, the first washing and protecting data are acquired by washing and protecting equipment corresponding to the target user in a first area and stored in the block chain, and the clothes washing and protecting consumption data are acquired by terminal equipment in a second area and stored in the block chain;
and sending the first washing and caring data and the clothing washing and caring consumption data to the target user terminal.
In one possible design, acquiring the target laundry data from the blockchain according to the laundry data acquisition request includes:
acquiring a user key sent by the target user terminal, and acquiring a standard key corresponding to the target user, wherein the standard key is a key generated according to user information of the target user;
judging whether the user key is the same as the standard key or not;
and if the target clothes data are the same as the target clothes data, acquiring the target clothes data from the block chain according to the clothes data acquisition request.
In one possible design, the target garment data further includes first garment tag data and/or second garment tag data.
In a possible design, the first clothing label data is read by a reading and writing device corresponding to the target user in the first area and is stored in the block chain; and the second clothing label data is obtained by reading and writing equipment in a second area and is stored in the block chain.
In one possible design, the method further includes:
acquiring first label data sent by reading and writing equipment in a first area; wherein the first tag data includes laundry attribute information and/or a laundry standard washing manner;
and encrypting the first label data, and storing the encrypted first label data into the block chain.
In one possible design, the method further includes:
acquiring second tag data sent by read-write equipment in a second area, and acquiring a standard key corresponding to the target user;
and encrypting the second label data by adopting the standard key, and storing the encrypted second label data into the block chain.
In one possible design, the method further includes:
performing data analysis on the target clothes data to obtain predicted washing and caring information corresponding to the target user terminal;
and controlling the washing and protecting equipment corresponding to the target user to wash according to the predicted washing and protecting information.
In a second aspect, an embodiment of the present invention provides a data acquisition apparatus, including:
the receiving and sending module is used for acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user;
the processing module is used for acquiring target clothes data from a block chain according to the clothes data acquisition request; the target clothes data comprise first washing and protecting data and clothes washing and protecting consumption data, the first washing and protecting data are acquired by washing and protecting equipment corresponding to the target user in a first area and stored in the block chain, and the clothes washing and protecting consumption data are acquired by terminal equipment in a second area and stored in the block chain;
the transceiver module is further configured to send the first washing and caring data and the clothing washing and caring consumption data to the target user terminal.
In one possible design, the processing module is further to:
acquiring a user key sent by the target user terminal, and acquiring a standard key corresponding to the target user, wherein the standard key is a key generated according to user information of the target user;
judging whether the user key is the same as the standard key or not;
and if the target clothes data are the same as the target clothes data, acquiring the target clothes data from the block chain according to the clothes data acquisition request.
In one possible design, the target garment data further includes first garment tag data and/or second garment tag data.
In a possible design, the first clothing label data is read by a reading and writing device corresponding to the target user in the first area and is stored in the block chain; and the second clothing label data is obtained by reading and writing equipment in a second area and is stored in the block chain.
In one possible design, the processing module is further to:
acquiring first label data sent by reading and writing equipment in a first area; wherein the first tag data includes laundry attribute information and/or a laundry standard washing manner;
and encrypting the first label data, and storing the encrypted first label data into the block chain.
In one possible design, the processing module is further to:
acquiring second tag data sent by the read-write equipment in a second area, and acquiring a standard key corresponding to the target user;
and encrypting the second label data by adopting the standard key, and storing the encrypted second label data into the block chain.
In one possible design, the processing module is further to:
performing data analysis on the target clothes data to obtain predicted washing and caring information corresponding to the target user terminal;
and controlling the washing and protecting equipment corresponding to the target user to wash according to the predicted washing and protecting information.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the data acquisition method as described above in the first aspect and various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the data acquisition method according to the first aspect and various possible designs of the first aspect is implemented.
As can be understood by those skilled in the art, embodiments of the present invention provide a data acquisition method, an apparatus, and an electronic device, where after acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user, target clothes data required by the target user is directly acquired from a block chain, that is, first care data and clothes care consumption data can be directly acquired from the block chain, where the first care data represents care data of the target user in a first area (e.g., a home), the clothes care consumption data represents consumption data of the target user in a second area (e.g., a laundry), and the first care data and the clothes care consumption data are sent to the target user, so that the target user can quickly acquire data related to clothes care without the target user going to the laundry to go to the laundry for clothes care consumption data in the laundry, the washing and protecting data of the user at home from the washing and protecting equipment at home is not needed, so that the data acquisition efficiency is improved, the first washing and protecting data are acquired by the washing and protecting equipment in the first region and are directly stored to the block chain, the clothes washing and protecting consumption data are acquired by the terminal equipment in the second region and are directly stored to the block chain, the chaining from the data source is realized, and the true reliability of the data is ensured.
Drawings
Preferred embodiments of a data acquisition method, apparatus, and electronic device according to the present invention are described below with reference to the accompanying drawings. The attached drawings are as follows:
fig. 1 is a schematic scene diagram of a data acquisition method according to an embodiment of the present invention;
fig. 2 is a first schematic flow chart of a data acquisition method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart diagram of a data acquisition method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The existing laundry scenes comprise a household scene and a store scene, when a user washes and protects clothes at home and at a store, the data storage places are different, and when the user washes the clothes at the store, corresponding consumption data are stored in the store. When a user needs to acquire data related to a laundry scene, acquiring related laundry care data from the laundry care equipment at home to acquire the laundry care data related to the laundry scene at home, and acquiring consumption data related to the laundry care data from a laundry store to acquire the laundry care consumption data related to the laundry scene at the laundry store. However, when acquiring consumption data related to a laundry scene of a store, a user needs to go to the laundry to manually acquire the consumption data, and when acquiring wash and care data related to a laundry scene of a home, the user needs to acquire the consumption data from the home wash and care equipment, so that the data acquisition steps are complicated, the acquisition efficiency is low, and the user experience is low.
Therefore, in order to solve the above problems, the technical idea of the present invention is that after acquiring the washing and caring data, the washing and caring device in the first area (i.e. home) stores the washing and caring data in the blockchain in an encrypted manner through the physical chain No. 1, and after acquiring the laundry and caring consumption data, the read/write device in the second area (i.e. laundry) stores the laundry and caring consumption data in the blockchain in an encrypted manner. After receiving a clothes data acquisition request sent by a user, acquiring corresponding washing and protecting data and clothes consumption data from the block chain, and sending the washing and protecting data and the clothes consumption data to the user, so that the user can quickly acquire data related to a washing scene, the quick acquisition of the data is realized, and the data acquisition efficiency is improved.
The following describes preferred technical solutions of the data acquisition method, apparatus and electronic device according to the present invention with reference to the above drawings.
Fig. 1 is a scene schematic diagram of a data acquisition method according to an embodiment of the present invention, and as shown in fig. 1, when a user needs to acquire data related to a laundry scene, a laundry data acquisition request is sent to an electronic device 102 through a user terminal 101, so that the electronic device 102 acquires data related to the laundry scene, that is, target laundry data, from a block chain and sends the target laundry data to the user terminal 101.
The user terminal 101 may be a mobile terminal (e.g., a mobile device having a shooting function, such as a smart phone, a palm computer, a tablet computer, and a wearable electronic device), a computer device (e.g., a desktop computer, a notebook computer, an all-in-one machine, a smart home device, and the like), and the like
The electronic device 102 may be a server, a computer device, or the like, and specifically may be a device that builds a block chain platform.
Fig. 2 is a first schematic flow chart of a data acquisition method according to an embodiment of the present invention, where an execution main body of the embodiment may be the electronic device in the embodiment shown in fig. 1, and the embodiment is not limited herein. As shown in fig. 2, the method includes:
s201, acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user.
In this embodiment, when a target user needs to acquire laundry data related to a home laundry scenario and consumption data related to a shop laundry scenario, a related operation is input on a target user terminal, so that the target user terminal generates a laundry data acquisition request and sends the laundry data acquisition request to an electronic device, so that the electronic device acquires the laundry data required by the target user by using the laundry data acquisition request.
S202, target clothes data are obtained from the block chain according to the clothes data obtaining request, wherein the target clothes data comprise first washing and caring data and clothes washing and caring consumption data, the first washing and caring data are obtained by washing and caring equipment corresponding to a target user in a first area and stored in the block chain, and the clothes washing and caring consumption data are obtained by terminal equipment in a second area and stored in the block chain.
In this embodiment, after receiving a clothes data acquisition request sent by a target user terminal corresponding to a target user, indicating that the user needs to acquire clothes data related to a laundry scene, the electronic device acquires target clothes data corresponding to the clothes data acquisition request from a block chain storing the clothes data of multiple users, that is, acquires the target clothes data corresponding to the target user.
The target laundry data comprises first washing and caring data corresponding to a target user and related to a household laundry scene and clothing washing and caring consumption data corresponding to the target user and related to a shop laundry scene. The first washing and protecting data is acquired by washing and protecting equipment corresponding to a target user in the first area and stored in the block chain, namely when the target user uses the washing and protecting equipment in the first area (namely, home) to wash clothes, the washing and protecting equipment acquires corresponding washing and protecting data and uses the corresponding washing and protecting data as first washing and protecting data, and then the first washing and protecting data is stored in the block chain to realize uplink processing of the first washing and protecting data.
Correspondingly, the clothing washing and caring consumption data is acquired by the terminal device in the second area and stored in the block chain, that is, when the target user uses the washing and caring device in the second area (i.e., a laundry store) to wash clothing, the terminal device acquires the consumption data corresponding to the target user and stores the consumption data in the block chain.
The first washing and protecting device corresponding to the target user represents the washing and protecting device bound with the target user. The first washing and protecting device comprises a washing machine, an intelligent wardrobe, a dryer and other devices for processing clothes. The first wash care data includes data related to washing laundry, including soaking data (e.g., laundry soaking time, water consumption for soaking, etc.), washing data (e.g., laundry washing pattern, time, water consumption, etc.), rinsing data (e.g., laundry rinsing time, water consumption, etc.), laundry dehydration (e.g., laundry dehydration time, rotation speed, etc.). The first washing care data further comprises data related to the care of the laundry, including care mode, care time, etc.
The terminal device includes a user information reading and writing device, which is used to read user information and store the user information and reading time (i.e. consumption time) into the block chain after reading the user information. Correspondingly, the clothing care consumption data comprises user information and consumption time corresponding to the user information.
Further, optionally, the user information reading and writing device includes a Radio Frequency Identification (RFID) reading and writing gun, a channel machine, and the like.
In addition, optionally, the user information includes a user identifier (for example, an identifier such as a user number, a user phone number, an identification number, a name, etc.), and may also include other information related to the user, for example, a user work address, etc.
Optionally, the terminal device may further include a washing and caring device, which is used to collect washing and caring data. Correspondingly, the clothing care consumption data further comprises second care data, when a user washes clothing in a second area (namely a laundry store), the clothing is washed by the care equipment in the second area, the care equipment acquires the care data and uses the care data as the second care data, and then the second care data is stored in the block chain, so that the uplink of the clothing care consumption data is realized.
Wherein the second care data includes data related to washing laundry, including soaking data (e.g., laundry soaking time, water consumption for soaking, etc.), washing data (e.g., laundry washing pattern, time, water consumption, etc.), rinsing data (e.g., laundry rinsing time, water consumption, etc.), laundry dehydration (e.g., laundry dehydration time, rotation speed, etc.). The first washing care data further comprises data related to the care of the laundry, including care mode, care time, etc.
For convenience of description, the washing and caring equipment in the first area is used as the first washing and caring equipment, and the washing and caring equipment in the second area is used as the second washing and caring equipment.
In addition, optionally, the laundry care consumption data further comprises a consumption frequency of the target user in the second area, i.e. in a laundry store, e.g. how often the laundry is to be washed.
In addition, optionally, when the terminal equipment stores the clothes washing and caring consumption data to the block chain, direct chaining is performed on the basis of the object chain module 1 installed by the terminal equipment. Correspondingly, the first washing and protecting equipment carries out direct chain linking based on the object chain No. 1 module installed by the first washing and protecting equipment when the first washing data is saved to the block chain.
Further, optionally, before the first washing and protecting device stores the first washing and protecting data in the block chain, the first key may be obtained first, so that the first key is used to encrypt the first washing and protecting data, and the encrypted first washing and protecting data is stored in the block chain.
Correspondingly, before the clothes washing and protecting consumption data are stored in the block chain, the terminal equipment can obtain a standard key corresponding to the target user, so that the clothes washing and protecting consumption data are encrypted by using the standard key, and the encrypted clothes washing and protecting consumption data are stored in the block chain.
The first key may be a key corresponding to the first washing and protecting device, or may also be a standard key corresponding to a target user corresponding to the first washing and protecting device, where the standard key is a key generated according to user information (e.g., a user identifier) of the target user. In addition, the first key may be a public key, a private key, or a symmetric key, which is not limited herein.
In this embodiment, in order to ensure the security of data storage, before the laundry care consumption data and the first laundry care data are stored in the block chain, the laundry care consumption data and the first laundry care data need to be encrypted, and then the encrypted laundry care consumption data and the first laundry care data are linked up, so that the data security is ensured, and the data is prevented from being tampered.
In this embodiment, the physical chain No. 1 is a block chain technology, has complete hardware expansion capability, has functions of IoT device digital identity authentication, privacy protection, data storage, data tracing and the like, and can efficiently enable various devices to realize trusted collection and privacy protection of data, so that the terminal device and the first washing and protecting device can directly store the data into the block chain.
In any embodiment, optionally, the target laundry data further comprises the first laundry label data and/or the second laundry label data and the second washing care data.
Specifically, the first laundry label data includes laundry attribute information and/or a laundry standard washing manner. When the target user washes clothes in the first area, the reading and writing device in the first area reads the label (for example, a tag hanging and a tag washing) on the clothes to obtain the data on the label, and the data is used as the first label data.
Wherein, the tag can be an RFID tag, and the read-write device in the first area can include an RFID reader, a first washing and protecting device and the like which can be a tag on the clothes. The clothes attribute information comprises information such as clothes material, standard washing and protecting modes and the like, and the clothes standard washing and protecting mode represents the optimal mode for washing and protecting clothes, so that a user can be guided to correctly wash and maintain the clothes.
Specifically, the second laundry label data also includes laundry attribute information and/or a laundry standard care manner. When the target user washes the clothes in the second area, the reading and writing equipment in the second area reads the labels (such as the hanging labels and the washing labels) of the clothes to obtain the data on the labels, and the data are used as the second label data.
In addition, optionally, the read-write device in the second area may also include a device that can identify a tag on the clothing, such as an RFID reading device, a second washing device, and the like.
Further, optionally, after reading the first clothing label data, the reading and writing device in the first area may directly perform the chaining processing on the first clothing label data, that is, the first clothing label data is read by the reading and writing device corresponding to the target user in the first area and is stored in the block chain. Correspondingly, after reading the second clothing label data, the reading and writing equipment in the second area can also directly perform chain winding processing on the second clothing label data, namely the second clothing label data is read by the reading and writing equipment in the second area and is stored in the block chain.
In addition, optionally, after reading the first clothing label data, the reading and writing device in the first area may send the first clothing label data to the electronic device, so that the electronic device performs uplink processing on the first clothing label data, and the specific process includes: and acquiring first label data sent by the read-write equipment in the first area. And encrypting the first label data, and storing the encrypted first label data into the block chain.
Specifically, after reading tag data of clothes, namely first clothes tag data, the reading and writing device corresponding to the target user in the first area sends the tag data to the electronic device, the electronic device encrypts the first clothes tag data and stores the encrypted first tag data into the block chain, so that the first tag data can be directly obtained from the block chain when the target user needs to obtain the first tag data subsequently.
In addition, optionally, after reading the second clothing label data, the reading and writing device in the second area may send the second clothing label data to the electronic device, so that the electronic device performs uplink processing on the second clothing label data, and the specific process includes: and acquiring second tag data sent by the read-write equipment in the second area, and acquiring a standard key corresponding to the target user. And encrypting the second label data by adopting a standard key, and storing the encrypted second label data into the block chain.
Specifically, after receiving second clothing label data corresponding to a target user sent by the read-write device in the second area, the electronic device obtains a standard key corresponding to the target user, the standard key is generated according to user information of the target user, then the standard key is used for encrypting the second clothing label data, and the encrypted second clothing label data is subjected to chaining processing, so that data security is guaranteed, and data tampering is avoided.
It can be understood that when the read-write device/the washing device in the first area and the read-write device/the washing device in the second area store data in the block chain, the data and the user information are stored in an associated manner, so that a subsequent user can obtain related data according to the user information. For example, when the user a goes to the second area to wash the laundry, the washing device in the second area obtains corresponding washing data when washing the laundry, and stores the washing data in the block chain together with the user information of the user a.
S203, sending the first washing and caring data and the clothing washing and caring consumption data to a target user terminal.
In this embodiment, after obtaining the first washing and caring data and the clothing washing and caring consumption data, that is, after obtaining the washing and caring data of the target user when washing and caring clothing at home and/or the consumption data of the target user in a laundry store, the electronic device sends the first washing and caring data and the clothing washing and caring consumption data to the target user terminal, that is, sends the data related to the laundry scene to the target user terminal, so that the target user corresponding to the target user terminal can know the required data.
In addition, optionally, when the target clothes data includes other data, the data is also transmitted to the target user terminal, that is, all data included in the target clothes data needs to be transmitted to the target user terminal. For example, the target laundry data further includes first laundry tag data and second laundry tag data, and the first laundry tag data and the second laundry tag data are also transmitted to the target user terminal.
In addition, before the target clothes data is sent to the target user terminal, that is, after the target clothes data is acquired from the block chain, if the target clothes data is encrypted, the target clothes data needs to be decrypted, and then the decrypted target clothes data is sent to the target user terminal.
In this embodiment, the first washing and protecting device encrypts the acquired first washing and protecting data in the process of washing and protecting the clothes, and directly stores the encrypted first washing and protecting data in the block chain, so that chaining from a data source is realized, and the real reliability of the first washing and protecting data in the block chain is ensured. Similarly, after the terminal equipment in the second area obtains the clothes washing and caring consumption data, the clothes washing and caring consumption data are encrypted and directly stored in the block chain. The chain is linked from the data source, and the real reliability of the clothes washing and protecting consumption data in the block chain is ensured.
In this embodiment, through the physical chain No. 1, data obtained by the relevant washing and protecting equipment and the reading and writing equipment of the user in different washing scenes are encrypted and linked up, so that decentralization, safety, reliability and traceability of the data are ensured.
As can be seen from the above description, after the request for obtaining the clothes data sent by the target user terminal corresponding to the target user is obtained, the target clothes data required by the target user is directly obtained from the block chain, that is, the first washing and caring data and the clothes washing and caring consumption data can be directly obtained from the block chain, where the first washing and caring data represents the washing and caring data generated when the target user uses the washing and caring device in the first area to wash and care the clothes, that is, represents the data related to the home washing scene. The clothing washing and caring consumption data represent consumption data generated when a target user washes and caring clothing in a second area, namely data related to a door shop washing scene are represented, the first washing and caring data and the clothing washing and caring consumption data are sent to the target user, so that the target user can quickly obtain the data related to clothing washing and caring, the target user does not need to go to a laundry to go to the clothing washing and caring consumption data in the laundry, the user does not need to go from home washing and caring equipment to home washing and caring data, the first washing and caring data are obtained by the washing and caring equipment in the first area and are directly stored in a block chain, the clothing washing and caring consumption data are obtained by terminal equipment in the second area and are directly stored in the block chain, chain linking is achieved from a data source, and the real reliability of the data is guaranteed.
Fig. 3 is a schematic flow diagram of a second data acquisition method according to an embodiment of the present invention, in this embodiment, on the basis of the embodiment of fig. 2, after acquiring a clothing data acquisition request sent by a target user, the identity of the target user needs to be verified to determine whether the target user can acquire target clothing data corresponding to the target user. This process will be described in detail below with reference to a specific embodiment. As shown in fig. 3, the method includes:
s301, acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user.
S302, a user key sent by a target user terminal is obtained, and a standard key corresponding to the target user is obtained, wherein the standard key is a key generated according to user information of the target user.
In this embodiment, a user key sent by a target user terminal is obtained, and a standard key corresponding to a target user is obtained, where the standard key is a key generated according to a specific tag of the target user, that is, user information (e.g., a user identifier), and has uniqueness.
The user key may be sent by the target user terminal alone, or may be sent by adding the user key to the clothing data acquisition request when the clothing data acquisition request is sent, that is, the clothing data acquisition request carries the user key, and here, the user key is not limited.
In addition, optionally, the clothing data acquisition request may further include user information of the target user, and accordingly, when the standard key corresponding to the target user is acquired, the clothing data acquisition request may be acquired according to the user information.
S303, judging whether the user key is the same as the standard key.
And S304, if the target clothes data are the same, acquiring the target clothes data from the block chain according to the clothes data acquisition request.
In this embodiment, the user key is compared with the standard key, and if the user key and the standard key are the same, it is indicated that the user key sent by the target user terminal is the standard key corresponding to the target user, and if the identity authentication of the target user is successful, the target clothing data may be acquired from the block chain according to the clothing data acquisition request.
In addition, optionally, after the target clothing data is obtained from the block chain, the relevant data (for example, data obtained by the device in the second area) in the target clothing data may be decrypted by using the standard key, so as to realize decryption of the data.
In addition, the user key may be used for identity authentication only when acquiring data acquired by the device in the second area from the blockchain, for example, laundry care consumption data, and the data acquired by the device in the second area, that is, laundry care consumption data, may be acquired only when the authentication is successful.
And S305, transmitting the target clothes data to the target user terminal.
In this embodiment, after the target clothes data is acquired from the block chain, the target clothes data is sent to the target user terminal, so that the target user can acquire the target clothes data quickly, and the target clothes data can be acquired quickly.
And S306, if the difference is not the same, stopping acquiring the target clothes data from the block chain according to the clothes data acquisition request.
In this embodiment, the user key is compared with the standard key, and if the user key and the standard key are different, it indicates that the user key sent by the target user terminal is not the standard key corresponding to the target user, and the identity authentication of the target user fails, the target clothing data cannot be acquired from the block chain, that is, the acquisition of the target clothing data from the block chain according to the clothing data acquisition request is stopped, so as to ensure the security of the data and avoid the erroneous transmission of the data.
In addition, optionally, when it is determined that the user key is different from the standard key, key error prompt information may be sent to the target user terminal, so that the target user confirms whether the user key is sent incorrectly.
In any embodiment, optionally, after the target clothes data is obtained, data analysis may be performed on the target clothes data to obtain predicted washing and caring information corresponding to the target user terminal, that is, predicted washing and caring information corresponding to the target user is obtained, and the washing and caring equipment corresponding to the target user is controlled to wash according to the predicted washing and caring information.
The predicted washing care information comprises predicted washing modes corresponding to different materials and/or other information related to washed clothes. The predicted care information may also include predicted care patterns corresponding to different materials and/or other information related to care of the laundry.
In this embodiment, after a clothing data acquisition request sent by a target user is acquired, the identity of the target user is authenticated according to a user key sent by the target user, that is, after it is determined that the user key is the same as a standard key corresponding to the target user, it indicates that the identity authentication of the target user is successful, the required target clothing data can be continuously acquired from the block chain according to the clothing data acquisition request, and after it is determined that the user key is different from the standard key corresponding to the target user, it indicates that the identity authentication of the target user fails, the required target clothing data is not acquired from the block chain, so that only a user who owns the key can query own consumption data, that is, the target clothing data, thereby avoiding information leakage of the user, ensuring privacy of the user, and ensuring security of data acquisition.
Fig. 4 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present invention, and as shown in fig. 4, the data acquisition apparatus 40 may include: a transceiver module 401 and a processing module 402.
The transceiver module 401 is configured to acquire a clothing data acquisition request sent by a target user terminal corresponding to a target user.
A processing module 402, configured to obtain target laundry data from the blockchain according to the laundry data obtaining request. The target clothes data comprise first washing and caring data and clothes washing and caring consumption data, the first washing and caring data are acquired by washing and caring equipment corresponding to a target user in a first area and stored in a block chain, and the clothes washing and caring consumption data are acquired by terminal equipment in a second area and stored in the block chain.
The transceiver module 401 is further configured to send the first washing and caring data and the clothing washing and caring consumption data to the target user terminal.
Optionally, the target laundry data further includes first laundry tag data and/or second laundry tag data.
Further, optionally, the first clothing label data is read by a read-write device corresponding to the target user in the first area and is stored in the block chain. The second clothing label data is read by the reading and writing equipment in the second area and is stored in the block chain.
In addition, optionally, the processing module 402 is further configured to:
and acquiring first label data sent by the read-write equipment in the first area. Wherein the first tag data includes laundry attribute information and/or a laundry standard washing manner.
And encrypting the first label data, and storing the encrypted first label data into the block chain.
In addition, optionally, the processing module 402 is further configured to:
and acquiring second tag data sent by the read-write equipment in the second area, and acquiring a standard key corresponding to the target user.
And encrypting the second label data by adopting a standard key, and storing the encrypted second label data into the block chain.
In another embodiment of the present invention, on the basis of the embodiment shown in fig. 4, the processing module 402 is further configured to:
and acquiring a user key sent by the target user terminal and acquiring a standard key corresponding to the target user, wherein the standard key is a key generated according to the user information of the target user.
And judging whether the user key is the same as the standard key or not.
And if the target clothes data are the same, acquiring the target clothes data from the block chain according to the clothes data acquisition request.
If not, stopping acquiring the target clothes data from the block chain according to the clothes data acquisition request
In any embodiment, optionally, the processing module 402 is further configured to:
and carrying out data analysis on the target clothes data to obtain the predicted washing and caring information corresponding to the target user terminal.
And controlling the washing and protecting equipment corresponding to the target user to wash according to the predicted washing and protecting information.
For detailed functional description of each module in this embodiment, reference is made to the description of the embodiment of the method, and the detailed description is not provided herein.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device 50 provided in the present embodiment includes: at least one processor 501 and memory 502. The electronic device 50 further comprises a communication component 503. The processor 501, the memory 502, and the communication unit 503 are connected by a bus 504.
In particular implementations, the at least one processor 501 executes computer-executable instructions stored in the memory 502 to cause the at least one processor 501 to perform a data acquisition method as performed by the above bucket recommendation device.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
Another embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the data acquisition method in the above method embodiment is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is apparent to those skilled in the art that the scope of the present invention is not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (10)

1. A method of data acquisition, comprising:
acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user;
acquiring target clothes data from a block chain according to the clothes data acquisition request; the target clothes data comprise first washing and protecting data and clothes washing and protecting consumption data, the first washing and protecting data are acquired by washing and protecting equipment corresponding to the target user in a first area and stored in the block chain, and the clothes washing and protecting consumption data are acquired by terminal equipment in a second area and stored in the block chain;
and sending the first washing and caring data and the clothing washing and caring consumption data to the target user terminal.
2. The method of claim 1, wherein obtaining target laundry data from a blockchain according to the laundry data obtaining request comprises:
acquiring a user key sent by the target user terminal, and acquiring a standard key corresponding to the target user, wherein the standard key is a key generated according to user information of the target user;
judging whether the user key is the same as the standard key or not;
and if the target clothes data are the same as the target clothes data, acquiring the target clothes data from the block chain according to the clothes data acquisition request.
3. The method of claim 1, wherein the target garment data further comprises first garment tag data and/or second garment tag data.
4. The method according to claim 3, wherein the first clothing label data is read by a reading and writing device corresponding to the target user in the first area and is stored in the block chain; and the second clothing label data is obtained by reading and writing equipment in a second area and is stored in the block chain.
5. The method of claim 3, further comprising:
acquiring first label data sent by reading and writing equipment in a first area; wherein the first tag data includes laundry attribute information and/or a laundry standard washing manner;
and encrypting the first label data, and storing the encrypted first label data into the block chain.
6. The method of claim 3, further comprising:
acquiring second tag data sent by read-write equipment in a second area, and acquiring a standard key corresponding to the target user;
and encrypting the second label data by adopting the standard key, and storing the encrypted second label data into the block chain.
7. The method of any of claims 1 to 6, further comprising:
performing data analysis on the target clothes data to obtain predicted washing and caring information corresponding to the target user terminal;
and controlling the washing and protecting equipment corresponding to the target user to wash according to the predicted washing and protecting information.
8. A data acquisition apparatus, comprising:
the receiving and sending module is used for acquiring a clothes data acquisition request sent by a target user terminal corresponding to a target user;
the processing module is used for acquiring target clothes data from a block chain according to the clothes data acquisition request; the target clothes data comprise first washing and protecting data and clothes washing and protecting consumption data, the first washing and protecting data are acquired by washing and protecting equipment corresponding to the target user in a first area and stored in the block chain, and the clothes washing and protecting consumption data are acquired by terminal equipment in a second area and stored in the block chain;
the transceiver module is further configured to send the first washing and caring data and the clothing washing and caring consumption data to the target user terminal.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the data acquisition method of any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the data acquisition method of any one of claims 1 to 7.
CN202011268844.6A 2020-11-13 2020-11-13 Data acquisition method and device and electronic equipment Pending CN114493645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011268844.6A CN114493645A (en) 2020-11-13 2020-11-13 Data acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011268844.6A CN114493645A (en) 2020-11-13 2020-11-13 Data acquisition method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114493645A true CN114493645A (en) 2022-05-13

Family

ID=81490383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011268844.6A Pending CN114493645A (en) 2020-11-13 2020-11-13 Data acquisition method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114493645A (en)

Similar Documents

Publication Publication Date Title
US8364952B2 (en) Methods and system for a key recovery plan
JP5060620B2 (en) Mobile communication device and method for disabling applications
EP1505470A2 (en) Terminal application generation apparatus and application authentication method
JP6585072B2 (en) Safe reading of data into non-volatile memory or secure elements
WO2013155562A1 (en) Nfc card lock
CN108460875A (en) A kind of entrance guard authentication method and device based on dynamic two-dimension code
CN106663017B (en) Method, terminal, data routing method and device for realizing host card simulation
US20160191527A1 (en) Method for Operating a Security Element
JP6923582B2 (en) Information processing equipment, information processing methods, and programs
KR20130142864A (en) Method for issuing mobile credit card in portable terminal using credit card and credit card for the same
CN101896916A (en) Interaction between secured and unsecured environments
CN111191252A (en) Encryption and decryption method and device for smart card operating system and storage medium
CN111339502A (en) Starting method, system, equipment and medium for kernel in FPGA
JP2009182970A (en) Protection method of mobile telephone type electrical communication terminal
CN100569015C (en) A kind of portable terminal using method and mobile terminal system
CN107437997B (en) Radio frequency communication device and method
Roland et al. Comparison of the usability and security of NFC's different operating modes in mobile devices.
US10242175B2 (en) Method and system for authentication of a storage device
CN114493645A (en) Data acquisition method and device and electronic equipment
JP2004503860A (en) Data processing method and apparatus for execution of protected instructions
CN106506163A (en) ROM packet processing methods and device
JP6318868B2 (en) Authentication system and portable communication terminal
KR102099739B1 (en) How to manage secure elements
US20110078455A1 (en) Communication device, communication method, information processing device, information processing method, program, and communication system
JP2012141754A (en) Ic chip, processing method in ic chip, processing program for ic chip, and portable terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination