Detection method, device, storage medium and electronic device
By detecting hardware signals in traditional Chinese and Western medicine health testing equipment and establishing wireless networks and private links, the dynamic management sub-detection unit solves the problems of data interference, tampering and difficult management in the split structure, and improves data security and equipment utilization.
Patent Information
- Application Number
- CN202111091949.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-17
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-09-17
AI Technical Summary
There are problems such as data interference, tampering and difficulty in managing the split structure of traditional Chinese and Western medicine health testing equipment.
By detecting the hardware signal between the sub-detection unit and the host, if the hardware signal is in a signalless state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host. The private link is used to detect the sub-detection unit to obtain the detection results.
It realizes a sub-detection unit that dynamically manages, trustworthy use, and data tamper-proof is used during splitting, improving data security and utilization of split detection equipment.
Smart Images

Figure CN113963769B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detection technology, and in particular to a detection method, a detection device, a storage medium and an electronic device. Background Art
[0002] The demand for health management in enterprises has gradually increased, and a new demand has been raised to build a health service system for employees. We systematically pay attention to and improve the health of employees from multiple perspectives, both physically and mentally, and provide full-process and full-scenario medical and health management services for employees.
[0003] The integrated Chinese and Western medicine machine is a device that uses bioelectric signals to perform Chinese medicine diagnosis and testing and issue health reports, including meridians, prescription recommendations, Chinese medicine health care, music conditioning, and other content.
[0004] In actual business, there are situations such as inaccurate data leading to deviations in user test reports and inability to fully utilize hardware investment. The reason is that in the implementation of the split structure of Chinese and Western medicine health testing equipment, there are problems such as data interference, tampering, and difficulty in management. Summary of the invention
[0005] In view of the above problems, a detection method, a detection device, a storage medium and an electronic device are proposed to solve the problems of data interference, tampering and difficult management in the split structure implementation of the detection device.
[0006] According to one aspect of the present invention, a detection method is provided, which is applied to a detachable detection device, wherein the detachable detection device includes a host and at least one sub-detection unit, including:
[0007] detecting a hardware signal between the sub-detection unit and the host;
[0008] If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host;
[0009] Using the private link, the host controls the sub-detection unit to perform detection and obtain the detection result.
[0010] Optionally, if the hardware signal is in a no-signal state, adding the sub-detection unit to a wireless network established by the host and accessing a private link created by the host comprises:
[0011] The host establishes the wireless network and creates the private link;
[0012] The host adds the identifier of the at least one sub-detection unit to the admission list of the private link;
[0013] The sub-detection unit is connected to the wireless network established by the host according to a preset password;
[0014] The sub-detection unit accesses the private chain according to the preset hardware certificate and key.
[0015] Optionally, the method further comprises:
[0016] When the host detects that the hardware signals between the host and all the sub-detection units are in a signal state, the private link is deleted and the wireless network is closed.
[0017] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0018] The host publishes a split device management smart contract to the private chain;
[0019] After the sub-detection unit accesses the private chain according to the preset hardware certificate and key, the method further includes:
[0020] After the sub-detection unit receives the network heartbeat signal of the private chain, the network address and device type of the sub-detection unit are registered in the state variables of the split device management smart contract.
[0021] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0022] The host publishes a detection smart contract to the private chain;
[0023] The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including:
[0024] When the detection is started, the sub-detection unit is triggered to perform detection according to the detection smart contract.
[0025] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0026] The host publishes the test report smart contract to the private chain;
[0027] The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including:
[0028] The detection report smart contract is called to save the detection result of the sub-detection unit in the distributed ledger of the private chain.
[0029] Optionally, if the hardware signal is in a no-signal state, adding the sub-detection unit to a wireless network established by the host and accessing a private link created by the host further comprises:
[0030] If the sub-detection unit is not the first one to access the private chain, before accessing the private chain created by the host, the sub-detection unit is allowed to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host.
[0031] Optionally, the separable detection device has joined an existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain, and the private chain created by the host is a subchain joined to the detection alliance chain;
[0032] After adding the sub-detection unit to the wireless network established by the host and accessing the private link created by the host if the hardware signal is in a no-signal state, the method further includes:
[0033] The sub-detection unit synchronizes the distributed ledger of the detection alliance chain;
[0034] After the host controls the sub-detection unit to perform detection by using the private link and obtains the detection result, the method further includes:
[0035] The host calls the test report generation smart contract, summarizes the test results, generates a test report, and saves the test report to the distributed ledger of the test alliance chain.
[0036] According to another aspect of the present invention, a detection device is provided, which is applied to a detachable detection device, wherein the detachable detection device includes a host and at least one sub-detection unit, including:
[0037] A signal detection module, used for detecting a hardware signal between the sub-detection unit and the host;
[0038] A private link access module, used to add the sub-detection unit to the wireless network established by the host and access the private link created by the host if the hardware signal is in a no-signal state;
[0039] The detection module is used to use the private chain, and the host controls the sub-detection unit to perform detection to obtain a detection result.
[0040] Optionally, the private link access module includes:
[0041] A private link creation submodule, used for the host to establish the wireless network and create the private link;
[0042] An identification adding submodule, configured to add, by the host, an identification of the at least one sub-detection unit to an admission list of the private chain;
[0043] A network connection submodule, configured for the sub-detection unit to connect to a wireless network established by the host according to a preset password;
[0044] The private chain access submodule is used for the sub-detection unit to access the private chain according to the preset hardware certificate and key.
[0045] Optionally, the device further comprises:
[0046] The private link deletion module is used to delete the private link and close the wireless network when the host detects that the hardware signals between the host and all the sub-detection units are in a signal state.
[0047] Optionally, the device further comprises:
[0048] A contract publishing module, configured to publish a split device management smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0049] A registration module is used to register the network address and device type of the sub-detection unit in the state variables of the split device management smart contract after the sub-detection unit accesses the private chain according to the preset hardware certificate and key and after the sub-detection unit receives the network heartbeat signal of the private chain.
[0050] Optionally, the device further comprises:
[0051] A contract publishing module, configured to publish a detection smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0052] The detection module comprises:
[0053] The detection trigger submodule is used to trigger the sub-detection unit to perform detection according to the detection smart contract after the detection is started.
[0054] Optionally, the device further comprises:
[0055] A contract publishing module, configured to publish a detection report smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0056] The detection module comprises:
[0057] The result saving submodule is used to call the detection report smart contract and save the detection result of the sub-detection unit in the distributed ledger of the private chain.
[0058] Optionally, the private link access module further includes:
[0059] The access permission submodule is used to allow the sub-detection unit to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host before accessing the private chain created by the host if the sub-detection unit is not the first to access the private chain.
[0060] Optionally, the separable detection device has joined an existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain, and the private chain created by the host is a subchain joined to the detection alliance chain;
[0061] The device also includes:
[0062] A ledger synchronization module, configured to synchronize the distributed ledger of the detection alliance chain by the sub-detection unit after the sub-detection unit joins the wireless network established by the host and accesses the private chain created by the host if the hardware signal is in a no-signal state;
[0063] The report saving module is used to call the detection report generation smart contract by the host after the detection result is obtained by the host using the private chain to control the sub-detection unit to perform detection, summarize the detection results, generate a detection report, and save the detection report in the distributed ledger of the detection alliance chain.
[0064] According to another aspect of the present invention, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is executed, a device where the storage medium is located is controlled to execute one or more methods as described above.
[0065] According to another aspect of the present invention, an electronic device is provided, comprising: a memory, a processor, and executable instructions stored in the memory and executable in the processor, wherein the processor implements one or more of the above methods when executing the executable instructions.
[0066] To summarize, according to an embodiment of the present invention, by detecting the hardware signal between the sub-detection unit and the host, if the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host. By using the private link, the host controls the sub-detection unit to perform detection to obtain the detection result, so that the detachable detection device can dynamically establish a private link between the host and the sub-detection unit according to the hardware signal when the device is split, and use the private link to realize dynamic management, trusted use, and data tamper-proofing of the sub-detection unit, thereby improving the security of the data and the utilization rate of the split detection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0068] Figure 1 is a flow chart of a detection method according to Embodiment 1 of the present invention;
[0069] Figure 2 It is a schematic diagram of host mode and split mode;
[0070] Figure 3 is a flow chart of a detection method according to Embodiment 2 of the present invention;
[0071] Figure 4 It is a schematic diagram of the network architecture in split mode;
[0072] Figure 5 is a structural block diagram of a detection device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0073] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0074] Embodiment 1
[0075] Reference Figure 1 , shows a flow chart of a detection method in Embodiment 1 of the present invention, which is applied to a detachable detection device, wherein the detachable detection device includes a host and at least one sub-detection unit, and specifically may include:
[0076] Step 101: Detect a hardware signal between a sub-detection unit and the host.
[0077] In an embodiment of the present invention, the separable detection device is a separable detection device, for example, a separable Chinese and Western medicine health detection device, or a product quality detection device, or any other applicable separable detection device, which is not limited by the embodiment of the present invention. The separable detection device includes a host and at least one sub-detection unit. For example, the sub-detection unit of the Chinese and Western medicine health detection device includes a blood pressure monitor, a blood oximeter, a facial recognition device, and the like.
[0078] In the embodiment of the present invention, the detachable detection device has two modes, host mode and split mode. The host mode is that the host and the sub-detection unit are connected together through hardware and transmit data through hardware signals. The split mode is that the host and the sub-detection unit are disconnected from the hardware and transmit data through wireless signals. For example, Figure 2 The schematic diagram of the host mode and split mode shown in the figure shows that the host mode is in the form of an overall host, and the sub-detection unit is directly connected to the host only through the serial port. The sub-detection unit shares the host network. The sub-detection unit can adopt a lock-type pluggable design. After the sub-detection unit is unplugged, the network, battery, login program, etc. of the sub-detection unit are automatically activated. After entering the split mode, the sub-detection unit will be connected to the network in the form of a private alliance chain network.
[0079] In an embodiment of the present invention, the host detects hardware signals between each sub-detection unit. For example, in the host mode, the host uses a serial port to connect to the sub-detection unit. If the corresponding serial ports have signal data and the hardware signal is in a signal state, it is determined that the sub-detection unit is connected to the host. If the hardware signal of a serial port is in a no-signal state, the determination mode is switched to the split mode. In the host mode, the host calls the detection data of the sub-detection unit through the serial port, integrates the detection results, and generates a health detection report.
[0080] Step 102: If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host.
[0081] In an embodiment of the present invention, the host detects that the hardware signal corresponding to a sub-detection unit is in a no-signal state. For example, when a sub-detection unit is unplugged from the host, the sub-detection unit corresponding to the serial port has no signal data for 1 second, and the split mode of the Chinese and Western medicine health detection device is activated.
[0082] In an embodiment of the present invention, the specific implementation methods of adding the sub-detection unit to the wireless network established by the host and accessing the private chain created by the host may include multiple methods. For example, the host establishes the wireless network and creates the private chain, the host adds the identification of at least one sub-detection unit to the access list of the private chain, the sub-detection unit connects to the wireless network established by the host according to a preset password, and the sub-detection unit accesses the private chain according to a preset hardware certificate and key. For another example, if the sub-detection unit is not the first to access the private chain, before accessing the private chain created by the host, according to the prompt of the host, after performing corresponding operations on the sub-detection unit, the sub-detection unit is allowed to access the private chain created by the host.
[0083] The wireless network includes but is not limited to a Bluetooth network, or any other applicable wireless network, which is not limited in the embodiment of the present invention. For example, both the host and the sub-detection unit have Bluetooth modules, and in the split mode, the Bluetooth module is activated to establish a Bluetooth connection.
[0084] A private blockchain is a blockchain where write access is restricted to a single organization. Read access is either open to the public or arbitrarily restricted. Applications include database management, auditing, and even a company, and while public auditability is desirable in some cases, public readability is not necessary in many cases. A private blockchain can be faster than any other blockchain, approaching the speed of a regular database that is not a blockchain. This is because even a small number of nodes can be trusted, and not every node is required to verify a transaction. Better privacy A private blockchain allows the privacy policy of data on that blockchain to be exactly the same as in another database; no need to deal with access rights and use all the old tricks, but at least the data is not publicly available to anyone with an internet connection.
[0085] Step 103, using the private link, the host controls the sub-detection unit to perform detection and obtain a detection result.
[0086] In the embodiment of the present invention, by using the private link, the data transmission between the host and the sub-detection unit will not be interfered with or tampered with. By using the private link, the host can transmit control instructions to the sub-detection unit, and the sub-detection unit can return the detection results to the host.
[0087] In an embodiment of the present invention, using the private chain, the host controls the sub-detection unit to perform detection, and a specific implementation method for obtaining the detection result may include triggering the sub-detection unit to perform detection according to the detection smart contract in the private chain after the detection is started. Using the private chain, the host controls the sub-detection unit to perform detection, and a specific implementation method for obtaining the detection result may include calling the detection report smart contract in the private chain to save the detection result of the sub-detection unit to the distributed ledger of the private chain.
[0088] To summarize, according to an embodiment of the present invention, by detecting the hardware signal between the sub-detection unit and the host, if the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host. By using the private link, the host controls the sub-detection unit to perform detection to obtain the detection result, so that the detachable detection device can dynamically establish a private link between the host and the sub-detection unit according to the hardware signal when the device is split, and use the private link to realize dynamic management, trusted use, and data tamper-proofing of the sub-detection unit, thereby improving the security of the data and the utilization rate of the split detection device.
[0089] Embodiment 2
[0090] Reference Figure 3 , shows a flow chart of a detection method in Embodiment 2 of the present invention, which is applied to a detachable detection device, wherein the detachable detection device includes a host and at least one sub-detection unit, and specifically may include:
[0091] Step 201: Detect a hardware signal between a sub-detection unit and the host.
[0092] In the embodiment of the present invention, the specific implementation method can refer to the description in the aforementioned embodiment and will not be further described here.
[0093] Step 202: The host establishes the wireless network and creates the private link.
[0094] In an embodiment of the present invention, the host establishes a wireless network. For example, the host activates the Bluetooth module and transmits the Bluetooth network to the outside. Then the host creates a private chain. For example, the host creates a private chain, the private chain id is the host number, the host is the governance party of the private chain, and the private chain uses the device number and certificate as the access mechanism.
[0095] Step 203: The host adds the identifier of the at least one sub-detection unit to the admission list of the private link.
[0096] In an embodiment of the present invention, the host manages an admission list of a private link. After the private link is deployed in a wireless network, the private link is initialized, and the identifier of at least one sub-detection unit is added to the admission list of the private link. For example, the host deploys the private link in a Bluetooth network, then initializes the private link, and adds the number of the sub-detection unit to the admission list of the private link.
[0097] Step 204: The sub-detection unit connects to the wireless network established by the host according to a preset password.
[0098] In an embodiment of the present invention, the sub-detection unit searches for a wireless network established by the host and connects to the wireless network according to a preset password. For example, the sub-detection unit activates the Bluetooth module and automatically searches for a Bluetooth network with a host number. It connects to the Bluetooth network transmitted by the host according to the preset password.
[0099] Step 205: The sub-detection unit accesses the private chain according to the preset hardware certificate and key.
[0100] In the embodiment of the present invention, the sub-detection unit then accesses the private chain created by the host according to the preset hardware certificate and password. Among them, the hardware certificate is an important basis for identity authentication and identification in the blockchain. According to the hardware certificate and password, the identity of the sub-detection unit can be confirmed to be legitimate, and access to the private chain can be allowed.
[0101] Step 206, using the private link, the host controls the sub-detection unit to perform detection and obtain a detection result.
[0102] In the embodiment of the present invention, the specific implementation method can refer to the description in the aforementioned embodiment and will not be further described here.
[0103] In an embodiment of the present invention, optionally, after the host establishes the wireless network and creates the private chain, the method further includes: the host publishes a split device management smart contract to the private chain; after the sub-detection unit accesses the private chain according to a preset hardware certificate and key, the method further includes: after the sub-detection unit receives a network heartbeat signal of the private chain, registering the network address and device type of the sub-detection unit into the state variables of the split device management smart contract.
[0104] Smart contracts are automatically executed programs built on the blockchain system. When the start conditions of the smart contract are triggered, it is implemented according to the pre-set terms and is not affected by external human factors. On the blockchain system, although the smart contract is a preset program for automatic execution, in fact, each transaction generated by the smart contract still needs to be authenticated by consensus, which maintains the decentralization of transaction records to a certain extent, but also greatly reduces the execution efficiency of smart contracts on the blockchain. Among them, the state variable is the value permanently stored in the contract storage.
[0105] Among them, the split device management smart contract is used to manage the sub-detection unit. The heartbeat signal is a method of sending a small data packet to the other party of the interconnection at regular intervals, and judging whether the communication link between the two parties of the interconnection has been disconnected by the other party's reply. For example, after the host creates a private chain, the split device management smart contract is deployed, and the address is 0x2. After the sub-detection unit receives the network heartbeat signal of the private chain, it registers its own network address and device type in the state variable of the split device management smart contract at the address 0x2.
[0106] In an embodiment of the present invention, optionally, if the sub-detection unit is not the first to access the private chain, before accessing the private chain created by the host, the sub-detection unit is operated accordingly according to the prompt of the host, and the sub-detection unit is allowed to access the private chain created by the host. For example, if other sub-detection units want to access this private chain after the first sub-detection unit, they need to connect to the Bluetooth network and perform certain actions, such as shaking up and down, placing the thumb on the detection electrode, etc., and operate according to the prompt of the host to access the private chain, and register their own network address and device type in the state variable of the split device management smart contract at the 0x2 address.
[0107] In an embodiment of the present invention, optionally, after the host establishes the wireless network and creates the private chain, the method further includes: the host publishes a detection smart contract to the private chain; using the private chain, the host controls the sub-detection unit to perform detection, and obtaining the detection result includes: when the detection is started, triggering the sub-detection unit to perform detection according to the detection smart contract.
[0108] The detection smart contract is used to control the sub-detection unit to perform detection. For example, after the host creates a private chain, it deploys the Chinese and Western medicine health detection smart contract, and the contract address is 0x1. When the Chinese and Western medicine health detection is started, the Chinese and Western medicine health detection smart contract will call the smart contract in sequence according to the process to trigger the detection circuit of the sub-detection unit. After the detection circuit of the sub-detection unit is activated, the sub-detection unit will flash the prompt light. The host plays a prompt sound. The user uses his hand or arm to collect biological data according to different operations, and the collection results are integrated according to the hexadecimal float array. The host can also activate the detection process smart contract in sequence to ensure that the detection sequence is accurate and the detection results are not missing.
[0109] In an embodiment of the present invention, optionally, after the host establishes the wireless network and creates the private chain, the method further includes: the host publishes a detection report smart contract to the private chain; using the private chain, the host controls the sub-detection unit to perform detection, and obtaining the detection result includes: calling the detection report smart contract and saving the detection result of the sub-detection unit to the distributed ledger of the private chain.
[0110] The test report smart contract is used to save the test results to the distributed ledger of the private chain. For example, after the host creates a private chain, it deploys the health test report smart contract with the address 0x3. The health test report smart contract is called to save the test results to the distributed ledger encoded for this test. Among them, the distributed ledger of the private chain is also called a shared ledger, which is a database that can be shared, copied and synchronized among the network members of the private chain.
[0111] In an embodiment of the present invention, optionally, the detachable detection device has joined an existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain, and the private chain created by the host is a sub-chain joined to the detection alliance chain; after the sub-detection unit is added to the wireless network established by the host and connected to the private chain created by the host if the hardware signal is in a no-signal state, the method further includes: the sub-detection unit synchronizes the distributed ledger of the detection alliance chain; after the host controls the sub-detection unit to perform detection using the private chain and obtains the detection result, the method further includes: the host calls a detection report generation smart contract, summarizes the detection result, generates a detection report, and saves the detection report to the distributed ledger of the detection alliance chain.
[0112] The degree of openness and decentralization of the consortium chain is limited. Its participants are screened in advance or directly designated, and the read permission of the database may be public or limited to the participants of the system like the write permission. Transactions only need to be verified by a few trusted high-computing nodes without the need for full network confirmation. If there is a problem, the consortium chain can be quickly repaired through manual intervention and allows the use of consensus algorithms to reduce block time, thereby completing transactions faster. If necessary, the community or company running the private blockchain can easily modify the rules of the blockchain, restore transactions, modify balances, etc.
[0113] Among them, the detection alliance chain is an alliance chain established for multiple detection devices. For example, in the host mode, the Chinese and Western medicine health detection equipment acts as a node, configures the alliance chain certificate, joins the existing detection alliance chain, and synchronizes the distributed ledger of the detection alliance chain. And it uses itself as an intermediary to connect the Bluetooth network established by the detection alliance chain and the host.
[0114] Among them, the blockchain connected to the detection alliance chain is understood as a subchain of the detection alliance chain. In the embodiment of the present invention, the private chain created by the host can be used as a subchain to join the detection alliance chain, and data exchange is achieved between the detection alliance chain and the private chain. After the sub-detection unit is connected to the private chain, the distributed ledger of the detection alliance chain is synchronized. For example, Figure 4 The schematic diagram of the network architecture in the split mode shown in the figure shows that multiple devices are in a detection alliance chain, among which device 3 is a Chinese and Western medicine health detection device, and device 3 is in a private chain with a blood pressure monitor, a blood oximeter, a facial recognition device, etc.
[0115] Among them, the test report generation smart contract is used to feed back the test data in the private chain to the host, which summarizes all the test results, generates a test report, and saves the test report to the distributed ledger of the test alliance chain.
[0116] For example, the host finally calls the Chinese and Western medicine test report production smart contract. The contract will use the test code as the key value, obtain the latest data of each report item from the health test report smart contract 0x3, and finally summarize it into a Chinese and Western medicine health test report data, and save this Chinese and Western medicine health test report to the distributed ledger of the testing alliance chain.
[0117] Step 207: When the host detects that the hardware signals between the host and all the sub-detection units are in a signal state, the private link is deleted and the wireless network is closed.
[0118] In an embodiment of the present invention, after all sub-detection units are plugged back into the host's interface, the host determines that all hardware signals are in a signal state, deletes the private link, and shuts down the wireless network, thereby dynamically deleting the private link and completing the integration of the separable detection device.
[0119] In summary, according to an embodiment of the present invention, by detecting the hardware signal between the sub-detection unit and the host, the host establishes the wireless network and creates the private link, the host adds the identifier of at least one sub-detection unit to the access list of the private link, the sub-detection unit connects to the wireless network established by the host according to a preset password, the sub-detection unit accesses the private link according to a preset hardware certificate and key, and the host controls the sub-detection unit to perform detection using the private link to obtain a detection result. When the host detects that the hardware signal between the host and all the sub-detection units is in a signal state, the private link is deleted and the wireless network is closed, so that the separable detection device can dynamically establish a private link between the host and the sub-detection unit according to the hardware signal when the two are separated, and dynamically delete the private link according to the hardware signal when the two are combined, and use the private link to realize dynamic management, trusted use, and data tamper-proofing of the sub-detection unit, thereby improving the security of the data and the utilization rate of the split detection device.
[0120] Embodiment 3
[0121] Reference Figure 5 , shows a structural block diagram of a detection device in the third embodiment of the present invention, which is applied to a detachable detection device, wherein the detachable detection device includes a host and at least one sub-detection unit, and specifically may include:
[0122] A signal detection module 301, used to detect a hardware signal between a sub-detection unit and the host;
[0123] A private link access module 302, configured to add the sub-detection unit to the wireless network established by the host and access the private link created by the host if the hardware signal is in a no-signal state;
[0124] The detection module 303 is used to use the private link, and the host controls the sub-detection unit to perform detection to obtain a detection result.
[0125] Optionally, the private link access module includes:
[0126] A private link creation submodule, used for the host to establish the wireless network and create the private link;
[0127] An identification adding submodule, configured to add, by the host, an identification of the at least one sub-detection unit to an admission list of the private chain;
[0128] A network connection submodule, configured for the sub-detection unit to connect to a wireless network established by the host according to a preset password;
[0129] The private chain access submodule is used for the sub-detection unit to access the private chain according to the preset hardware certificate and key.
[0130] Optionally, the device further comprises:
[0131] The private link deletion module is used to delete the private link and close the wireless network when the host detects that the hardware signals between the host and all the sub-detection units are in a signal state.
[0132] Optionally, the device further comprises:
[0133] A contract publishing module, configured to publish a split device management smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0134] A registration module is used to register the network address and device type of the sub-detection unit in the state variables of the split device management smart contract after the sub-detection unit accesses the private chain according to the preset hardware certificate and key and after the sub-detection unit receives the network heartbeat signal of the private chain.
[0135] Optionally, the device further comprises:
[0136] A contract publishing module, configured to publish a detection smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0137] The detection module comprises:
[0138] The detection trigger submodule is used to trigger the sub-detection unit to perform detection according to the detection smart contract after the detection is started.
[0139] Optionally, the device further comprises:
[0140] A contract publishing module, configured to publish a detection report smart contract to the private chain by the host after the host establishes the wireless network and creates the private chain;
[0141] The detection module comprises:
[0142] The result saving submodule is used to call the detection report smart contract and save the detection result of the sub-detection unit in the distributed ledger of the private chain.
[0143] Optionally, the private link access module further includes:
[0144] The access permission submodule is used to allow the sub-detection unit to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host before accessing the private chain created by the host if the sub-detection unit is not the first to access the private chain.
[0145] Optionally, the separable detection device has joined an existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain, and the private chain created by the host is a subchain joined to the detection alliance chain;
[0146] The device also includes:
[0147] A ledger synchronization module, configured to synchronize the distributed ledger of the detection alliance chain by the sub-detection unit after the sub-detection unit joins the wireless network established by the host and accesses the private chain created by the host if the hardware signal is in a no-signal state;
[0148] The report saving module is used to call the detection report generation smart contract by the host after the detection result is obtained by the host using the private chain to control the sub-detection unit to perform detection, summarize the detection results, generate a detection report, and save the detection report in the distributed ledger of the detection alliance chain.
[0149] To summarize, according to an embodiment of the present invention, by detecting the hardware signal between the sub-detection unit and the host, if the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host. By using the private link, the host controls the sub-detection unit to perform detection to obtain the detection result, so that the detachable detection device can dynamically establish a private link between the host and the sub-detection unit according to the hardware signal when the device is split, and use the private link to realize dynamic management, trusted use, and data tamper-proofing of the sub-detection unit, thereby improving the security of the data and the utilization rate of the split detection device.
[0150] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0151] In an embodiment of the present disclosure, the detection network generating device includes a processor and a memory, and the above modules and sub-modules are stored in the memory as program units, and the processor executes the above program units stored in the memory to implement corresponding functions.
[0152] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, which receive market data and instruction data reported by multiple trading systems, match the instruction data reported by the multiple trading systems according to preset matching rules, obtain matched instruction data, generate detection results of the matched instruction data according to the market data and the matched instruction data, and send the detection results to the trading clients corresponding to the multiple trading systems, so that the multiple trading clients can process the instruction data according to the detection results, so that the instruction data of multiple trading systems are detected by means of a detection server independent of the trading system, avoiding the unfairness of transactions caused by the artificial influence of one party adjusting indicators such as system time, effectively ensuring fair transactions between the two parties, reducing regulatory risks, and reducing the time wasted by traders in manual communication during the transaction process, thereby improving the accuracy and efficiency of transactions.
[0153] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0154] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the detection method is implemented.
[0155] An embodiment of the present invention provides a processor, which is used to run a program, wherein the detection method is executed when the program is running.
[0156] An embodiment of the present invention provides an electronic device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:
[0157] detecting a hardware signal between the sub-detection unit and the host;
[0158] If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host;
[0159] Using the private link, the host controls the sub-detection unit to perform detection and obtain the detection result.
[0160] Optionally, if the hardware signal is in a no-signal state, adding the sub-detection unit to a wireless network established by the host and accessing a private link created by the host comprises:
[0161] The host establishes the wireless network and creates the private link;
[0162] The host adds the identifier of the at least one sub-detection unit to the admission list of the private link;
[0163] The sub-detection unit is connected to the wireless network established by the host according to a preset password;
[0164] The sub-detection unit accesses the private chain according to the preset hardware certificate and key.
[0165] Optionally, the method further comprises:
[0166] When the host detects that the hardware signals between the host and all the sub-detection units are in a signal state, the private link is deleted and the wireless network is closed.
[0167] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0168] The host publishes a split device management smart contract to the private chain;
[0169] After the sub-detection unit accesses the private chain according to the preset hardware certificate and key, the method further includes:
[0170] After the sub-detection unit receives the network heartbeat signal of the private chain, the network address and device type of the sub-detection unit are registered in the state variables of the split device management smart contract.
[0171] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0172] The host publishes a detection smart contract to the private chain;
[0173] The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including:
[0174] When the detection is started, the sub-detection unit is triggered to perform detection according to the detection smart contract.
[0175] Optionally, after the host establishes the wireless network and creates the private link, the method further includes:
[0176] The host publishes the test report smart contract to the private chain;
[0177] The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including:
[0178] The detection report smart contract is called to save the detection result of the sub-detection unit in the distributed ledger of the private chain.
[0179] Optionally, if the hardware signal is in a no-signal state, adding the sub-detection unit to a wireless network established by the host and accessing a private link created by the host further comprises:
[0180] If the sub-detection unit is not the first one to access the private chain, before accessing the private chain created by the host, the sub-detection unit is allowed to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host.
[0181] Optionally, the separable detection device has joined an existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain, and the private chain created by the host is a subchain joined to the detection alliance chain;
[0182] After adding the sub-detection unit to the wireless network established by the host and accessing the private link created by the host if the hardware signal is in a no-signal state, the method further includes:
[0183] The sub-detection unit synchronizes the distributed ledger of the detection alliance chain;
[0184] After the host controls the sub-detection unit to perform detection by using the private link and obtains the detection result, the method further includes:
[0185] The host calls the test report generation smart contract, summarizes the test results, generates a test report, and saves the test report to the distributed ledger of the test alliance chain.
[0186] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0187] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0190] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0191] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0192] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0194] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0195] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0197] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A detection method, characterized in that: Applied to a detachable detection device, the detachable detection device comprises a host and at least one sub-detection unit, including: detecting a hardware signal between the sub-detection unit and the host; If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host and connected to the private link created by the host; Using the private link, the host controls the sub-detection unit to perform detection and obtain a detection result; If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host, and accesses the private link created by the host, further comprising: If the sub-detection unit is not the first one to access the private chain, before accessing the private chain created by the host, the sub-detection unit is allowed to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host; The separable detection device has joined the existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain. The private chain created by the host is a subchain joined to the detection alliance chain; After adding the sub-detection unit to the wireless network established by the host and accessing the private link created by the host if the hardware signal is in a no-signal state, the method further includes: The sub-detection unit synchronizes the distributed ledger of the detection alliance chain; After the host controls the sub-detection unit to perform detection by using the private link and obtains the detection result, the method further includes: The host calls the test report generation smart contract, summarizes the test results, generates a test report, and saves the test report to the distributed ledger of the test alliance chain.
2. The method according to claim 1, characterized in that If the hardware signal is in a no-signal state, adding the sub-detection unit to the wireless network established by the host and accessing the private link created by the host includes: The host establishes the wireless network and creates the private link; The host adds the identifier of the at least one sub-detection unit to the admission list of the private link; The sub-detection unit is connected to the wireless network established by the host according to a preset password; The sub-detection unit accesses the private chain according to the preset hardware certificate and key.
3. The method according to claim 2, characterized in that The method further comprises: When the host detects that the hardware signals between the host and all the sub-detection units are in a signal state, the private link is deleted and the wireless network is closed.
4. The method according to claim 2, characterized in that: After the host establishes the wireless network and creates the private link, the method further includes: The host publishes a split device management smart contract to the private chain; After the sub-detection unit accesses the private chain according to the preset hardware certificate and key, the method further includes: After the sub-detection unit receives the network heartbeat signal of the private chain, the network address and device type of the sub-detection unit are registered in the state variables of the split device management smart contract.
5. The method according to claim 2, characterized in that: After the host establishes the wireless network and creates the private link, the method further includes: The host publishes a detection smart contract to the private chain; The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including: When the detection is started, the sub-detection unit is triggered to perform detection according to the detection smart contract.
6. The method according to claim 2, characterized in that After the host establishes the wireless network and creates the private link, the method further includes: The host publishes the test report smart contract to the private chain; The host controls the sub-detection unit to perform detection by using the private link, and obtains the detection result, including: The detection report smart contract is called to save the detection result of the sub-detection unit in the distributed ledger of the private chain.
7. A detection device, characterized in that: Applied to a detachable detection device, the detachable detection device comprises a host and at least one sub-detection unit, including: A signal detection module, used for detecting a hardware signal between the sub-detection unit and the host; A private link access module, used to add the sub-detection unit to the wireless network established by the host and access the private link created by the host if the hardware signal is in a no-signal state; A detection module, used to use the private chain, and the host controls the sub-detection unit to perform detection and obtain a detection result; If the hardware signal is in a no-signal state, the sub-detection unit is added to the wireless network established by the host, and accesses the private link created by the host, further comprising: If the sub-detection unit is not the first one to access the private chain, before accessing the private chain created by the host, the sub-detection unit is allowed to access the private chain created by the host after performing corresponding operations on the sub-detection unit according to the prompt of the host; The separable detection device has joined the existing detection alliance chain and synchronized the distributed ledger of the detection alliance chain. The private chain created by the host is a subchain joined to the detection alliance chain; The device also includes: A ledger synchronization module, configured to synchronize the distributed ledger of the detection alliance chain by the sub-detection unit after the sub-detection unit joins the wireless network established by the host and accesses the private chain created by the host if the hardware signal is in a no-signal state; The report saving module is used to call the detection report generation smart contract by the host after the detection result is obtained by the host using the private chain to control the sub-detection unit to perform detection, summarize the detection results, generate a detection report, and save the detection report in the distributed ledger of the detection alliance chain.
8. An electronic device comprising: A memory, a processor, and executable instructions stored in the memory and executable in the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the executable instructions.
Citation Information
Patent Citations
Distributed medical detection service platform and system, and terminal thereof
CN109102890A
Blockchain-embedded secure digital camera system to verify audiovisual authenticity
US20210194699A1