Self-adaptive configuration method and device for access of separated sensor

By implanting the logo action in the sensor movement and interacting with the main control end, the problem of inconsistent timing of the sensor interface is solved, automatic recognition and adaptation of the sensor is realized, and the applicability and universality of the interface are improved.

CN118672679APending Publication Date: 2024-09-20WUHAN GUIDE SENSMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410829145.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Under the separated design, the interface timing of the sensor hardware and the main control end is inconsistent, which leads to the need for customized processing, affecting mass production and users' random plug-in, and different interfaces cannot share adaptation.

Method used

By implanting a flag action in the sensor movement, the main control terminal sends a read request, the movement recognizes and responds, and starts the corresponding access configuration, including the driver, to achieve adaptive configuration for hardware and structural differences.

Benefits of technology

It realizes the automatic identification and adaptation of different sensors, improves the space utilization and applicable scope of the main control interface, and increases the universality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672679A
    Figure CN118672679A
Patent Text Reader

Abstract

The invention discloses a self-adaptive configuration method and device for separated sensor access, and the method comprises the steps: preprocessing a sensor to form a movement capable of independently operating, and implanting a mark action corresponding to the sensor in the movement; when it is detected that the machine core is connected to a master controller, the master controller sends a reading request for reading the mark action to the machine core; when the movement monitors a reading request of the master control, the movement sends the corresponding mark action to the master control; the master controller obtains the mark action and starts corresponding access configuration according to the mark action; the access configuration at least comprises a driver. According to the method, the type of the currently accessed sensor is firstly identified by matching a strategy on software with double-end hardware, and then the problem of hardware and structural difference is solved in a manner of starting and loading a corresponding program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of monitoring technology, mainly to the field of in-cabinet monitoring technology, and specifically to a configuration method for accessing a separate sensor. Background Art

[0002] Different sensors have inconsistent hardware interfaces and timings. Under the separate design, a unified hardware interface is formed through conversion, but the timing cannot be completely unified. As a result, the access configuration of different ports needs to be customized when the main control end is connected, which is not conducive to product development. It is extremely important to ensure that users can insert different sensors into the port at will and keep the program running normally.

[0003] Generally speaking, the access position of the corresponding sensor is directly marked during hardware and structural design, and customized processing is performed on the main control end when it is connected. However, there are differentiated processing requirements in the design of software, hardware and interfaces, which is not conducive to mass production, and different interfaces cannot be shared and adapted. Summary of the invention

[0004] In order to solve the above problems, the embodiments of the present application provide an adaptive configuration method and device for separate sensor access, which first identifies the type of the currently connected sensor through software strategies in conjunction with dual-end hardware, and then starts and loads the corresponding program to solve the problems of hardware and structural differences.

[0005] In a first aspect, an embodiment of the present application provides a method for adaptively configuring separate sensor access, the method comprising:

[0006] Preprocessing the sensor to form a movement capable of independent operation, and implanting a marker action corresponding to the sensor in the movement;

[0007] When it is detected that the movement is connected to the main control, the main control sends a read request for reading the flag action to the movement;

[0008] When the movement detects a read request from the master control, the movement sends the corresponding flag action to the master control;

[0009] The master controller obtains the flag action and starts a corresponding access configuration according to the flag action; the access configuration at least includes a driver program.

[0010] Preferably, the movement includes one or more types of sensors.

[0011] Preferably, the “implanting a marking action corresponding to the sensor in the movement” specifically includes:

[0012] presetting the marking action based on the type of the sensor;

[0013] The corresponding marker action is implanted based on the type of sensor included in the movement, and the type of sensor is bound to the corresponding marker action.

[0014] Preferably, the “when detecting that the movement is connected to the main control, the main control sends a read request for reading the flag action to the movement” specifically includes:

[0015] When it is detected that the movement is connected to the main control, the calling information of the main control for the sensor is obtained; the calling information at least includes the type of the sensor to be called by the main control;

[0016] A read request is generated according to the call information, and the read request is sent to the movement connected to the main control.

[0017] Preferably, the “when the movement detects the read request of the main control, the movement sends the corresponding flag action to the main control” specifically includes:

[0018] After the movement is connected to the main control, the movement monitors the read request of the main control in real time;

[0019] When the movement detects a read request from the master control, it extracts the call information in the read request and outputs the type of the called sensor;

[0020] A corresponding flag action is sent to the master control according to the type of the called sensor.

[0021] Preferably, it also includes a call form for presetting the access configuration of each type of sensor, specifically including:

[0022] Obtaining access configurations of various types of sensors, and binding the access configurations to the types of corresponding sensors to generate the call form;

[0023] When the type of the sensor is obtained, the access configuration of the sensor is queried and called according to the calling form; the access configuration at least includes a driver program corresponding to the sensor.

[0024] Preferably, the “the master controller obtains the flag action, and starts the corresponding access configuration according to the flag action” specifically includes:

[0025] The main control obtains the flag action, and queries and outputs a corresponding sensor type based on the flag action;

[0026] The calling form is queried according to the type of the sensor to obtain the corresponding access configuration, and the access configuration is started or loaded.

[0027] In a second aspect, an embodiment of the present application provides an adaptive configuration device for separate sensor access, the device comprising:

[0028] Implantation module: pre-process the sensor to form a movement that can operate independently, and implant the marker action corresponding to the sensor in the movement;

[0029] Reading module: When the movement is detected to be connected to the main control, the main control sends a read request for the read flag action to the movement;

[0030] Monitoring module: When the movement detects the read request of the main control, the movement sends the corresponding flag action to the main control;

[0031] Loading module: The main control obtains the flag action and starts the corresponding access configuration according to the flag action; the access configuration at least includes the driver program.

[0032] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect or any possible implementation manner of the first aspect.

[0034] The beneficial effects of the present invention are:

[0035] The present invention is an adaptive configuration method and device for separate sensor access. Through automatic recognition technology, it can bring consistent design to the hardware and structure of the interaction between different sensors and the main control, so that any sensor after preprocessing can be docked and inserted, and automatically adapt to the corresponding startup program to complete the sensor access adaptation.

[0036] The present invention converts the structural differences in access of various sensors into adaptation of the startup program, solves the adaptation problem of multiple sensor accesses of the main control under limited interfaces, and not only improves the space utilization of the main control interface end, but also increases the scope of application and universality. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of a flow chart of an adaptive configuration method for separate sensor access provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of the structure of an adaptive configuration device for separate sensor access provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of a scenario of separate sensor access provided in an embodiment of the present application;

[0042] Figure 5 This is an adaptive flow chart of the sensor access to the main control provided in the embodiment of the present application. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0044] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0045] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0046] See also Figure 1 , Figure 1 : is a flow chart of an adaptive configuration method for separate sensor access provided in an embodiment of the present application. In an embodiment of the present application, the method includes:

[0047] S101, pre-processing the sensor to form a movement capable of operating independently, and implanting a marker action corresponding to the sensor in the movement.

[0048] The executors of the present application may be the movement and the main control. The movement includes one or more sensors. Data is transmitted between the sensor and the main control via a connecting line, and a type identification interaction behavior is established between the movement end and the main control end, so that the sensor connected to the main control can be identified by the main control end, and the corresponding driver program, configuration data, etc. can be loaded and started.

[0049] In this application, the movement can be integrated with multiple sensors and have data interaction functions, so that the movement can record the mark actions of multiple sensors and respond to the reading requests of the main control end to achieve adaptive access to the sensors. There is no need to set up multiple different forms of interfaces on the main control end to adapt to different sensors.

[0050] In an embodiment of the present application, the movement can operate independently, and the connection between the movement and the main control may be only for data interaction. Software program instructions can be preset or recorded in the movement so that after the movement is connected to the main control, it can first identify the type, load and start the corresponding driver and configuration data on the main control side, so as to adapt to one or more types of sensors carried by the movement.

[0051] In the embodiment of the present application, a marker action corresponding to the sensor is implanted in the movement, specifically including:

[0052] presetting the marking action based on the type of the sensor;

[0053] The corresponding marker action is implanted based on the type of sensor included in the movement, and the type of sensor is bound to the corresponding marker action.

[0054] In the present application, the movement may include multiple sensors, each sensor is provided with a corresponding marking action, which may specifically be a type identification, an identification signal, etc., and based on the uniqueness of the type, the sensor can be identified first when connected to the main control, thereby loading and starting the corresponding driver program, configuration data, etc. according to the type.

[0055] In this application, the movement is a sensor or multiple sensors that can work independently, independent of the main control, and the main control performs data processing and makes alarm judgments based on preset alarm conditions. The sensor detection data is preprocessed at the movement end, such as format conversion; the main control performs data processing, such as infrared imaging, image recognition, etc. Specifically, the movement can be a card machine for power monitoring, such as a card machine equipped with an ASIC chip. A sensor is configured on the card machine, and the sensor detection data is transmitted to the main control via the card machine, and the main control performs data processing. No warning processing is performed on the detection data at the card machine end.

[0056] In the database of the master control end, the mark action can be bound to the type of sensor. When the mark action is obtained, the type of sensor can be obtained according to the mapping relationship, thereby providing a basis for the master control to adapt to the connected sensor.

[0057] It is understandable that the detection data of different sensors are in different forms and have different data structures. When analyzing on the main control end, it should be based on the type of sensor rather than blindly. In the configuration method of the present application, after the movement is connected to the main control, the type of sensor can be identified, which can effectively distinguish the type of sensor, thereby solving the problem and automatically adapting the analysis program or processing method for the detection data of the movement.

[0058] S102: When it is detected that the movement is connected to the main control, the main control sends a read request for a read mark action to the movement.

[0059] In the embodiment of the present application, an interactive channel is established between the movement and the main control through a connecting line. After the main control is powered on, the main control end can identify the type of the connected movement to determine the type of sensor. For the movement end, the movement may be equipped with a variety of sensors, but not all of them need to be called by the main control end. The call requirements of the main control may be a few sensors or all sensors; at this time, for the movement, the uncalled sensors can be shut down or in standby mode, and the main control end does not need to identify the types of these uncalled sensors all the time; according to the use requirements, it can be identified when calling or identified and suspended when the movement is first connected.

[0060] In one possible implementation mode, the identification during calling is taken as an example for explanation. Based on this situation, step S102 specifically includes:

[0061] When it is detected that the movement is connected to the main control, the calling information of the main control for the sensor is obtained; the calling information at least includes the type of the sensor to be called by the main control;

[0062] A read request is generated according to the call information, and the read request is sent to the movement connected to the main control.

[0063] In this application, the type of sensors required by the master control in each operation stage may change. For example, visible light sensors are used during the day, and infrared sensors can be added at night. When the demand changes, the calling information of the master control also changes synchronously. It can be changed, supplemented, or reduced based on preset environmental conditions and working conditions. On the premise of obtaining valid detection data, the number of sensors used can be optimized to achieve energy conservation and emission reduction.

[0064] In an embodiment of the present application, a read request is sent by the master control to the connected movement, and the movement selectively performs a feedback response mark action according to the sensor type contained in the read request. In this case, the data contained in the read request is relatively complex, and identification information needs to be customized for each type of sensor.

[0065] In another embodiment, the movement can be identified when it is first connected, and only the driver and configuration data corresponding to the called sensor are loaded and started. The flag action of the sensor that has not been called is suspended and the loading and starting are not executed temporarily.

[0066] In this identification method, the data contained in the read request is simple and can be a unified trigger signal. When the movement receives the trigger signal, it can respond to feedback the corresponding mark action.

[0067] S103: When the movement detects the read request of the main control, the movement sends a corresponding flag action to the main control.

[0068] In an embodiment of the present application, after the movement is powered on or connected to the main control, the read request from the main control end can be monitored in real time to facilitate a quick response and complete the type identification of the sensor.

[0069] In one possible implementation, step S103 specifically includes:

[0070] After the movement is connected to the main control, the movement monitors the read request of the main control in real time;

[0071] When the movement detects a read request from the master control, it extracts the call information in the read request and outputs the type of the called sensor;

[0072] A corresponding flag action is sent to the master control according to the type of the called sensor.

[0073] In this application, identification during calling is used as an example for explanation. The calling information includes the type of sensor. After the movement obtains the read request, the type information of the sensor can be extracted from it. The movement end can send a flag action to the main control according to the type of sensor that the main control needs to call, and load the driver and configuration data required to start the corresponding sensor on the main control end.

[0074] It is understandable that after different movements are connected to the main control, the sensors carried on the movements may be the same or different. During adaptation, sensors of the same type can share one add-on for data processing, while sensors of different types can use multiple add-ons alternately or in parallel.

[0075] S104: The master controller obtains the flag action and starts the corresponding access configuration according to the flag action.

[0076] In this application, different sensors have different access configurations such as drivers and configuration data. When accessing the main control end, different add-ons are required. In order to facilitate the correspondence between sensors and access configurations, this application also creates a call form, with the sensor type as the search item and the access configuration corresponding to the type as the target item. The sensor type is input and the corresponding access configuration is output.

[0077] The call forms for presetting various types of sensor access configurations include:

[0078] Obtaining access configurations of various types of sensors, and binding the access configurations to the types of corresponding sensors to generate the call form;

[0079] When the type of the sensor is obtained, the access configuration of the sensor is queried and called according to the calling form; the access configuration at least includes a driver program corresponding to the sensor.

[0080] In this application, the calling form is retrieved by sensor type, but the identification information obtained by the main control end is the mark action. The mark action is unique for each type of sensor and can establish a single mapping relationship with the sensor type. When the main control obtains the mark action, it can directly obtain the sensor type information based on the correlation between the sensor type and the mark action, and then retrieve and output the corresponding access configuration in the calling form.

[0081] In one possible implementation, step S104 specifically includes:

[0082] The main control obtains the flag action, and queries and outputs a corresponding sensor type based on the flag action;

[0083] The calling form is queried according to the type of the sensor to obtain the corresponding access configuration, and the access configuration is started or loaded.

[0084] In this application, the sensor type represented by the flag action is unique. When the main control obtains the flag action, it can know the corresponding sensor type and obtain the access configuration by calling the form, so as to directly start or load the corresponding access configuration.

[0085] It is understandable that after the main control end starts the access configuration of the sensor, it can execute subsequent processing procedures according to the detection data, such as temperature monitoring, image imaging, etc., to realize the effectiveness of the detection data of the movement.

[0086] Based on the above method steps, please refer to Figure 4 , Figure 5 , Figure 4A schematic diagram of a separate sensor connected to a main control provided in the present application, wherein separate sensors 0, 1, 2, and 3 may be multiple movements, or may be multiple sensors carried in multiple movements. Figure 5 After a sensor is connected to the main control, when the main control is powered on, the interactive identification process between the main control and the sensor is sent. The sensor flag is the action of sending a flag to the main control. The flag action can be designed according to the actual situation and can be a characteristic identification code, number, etc. When the main control end obtains the flag action, it can start the corresponding intervention configuration to realize the automatic adaptation of the sensor without improving or optimizing the transmission structure and docking interface.

[0087] The following will be combined with the attached Figure 2 , the adaptive configuration device for separate sensor access provided by the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 The self-adaptive configuration device of the separated sensor access shown is used to execute the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0088] See also Figure 2 , Figure 2 Schematic diagram of a structure of an adaptive configuration device for separate sensor access provided by an embodiment of the present application. Figure 2 As shown, the device comprises:

[0089] Implantation module 201: pre-processing the sensor to form a movement capable of independent operation, and implanting a marker action corresponding to the sensor in the movement;

[0090] Reading module 202: When the movement is detected to be connected to the main control, the main control sends a read request for a read flag action to the movement;

[0091] Monitoring module 203: When the movement detects the read request of the main control, the movement sends a corresponding flag action to the main control;

[0092] Loading module 204: The main control obtains the flag action and starts the corresponding access configuration according to the flag action; the access configuration at least includes the driver program.

[0093] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0094] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0095] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0096] The communication bus 302 is used to realize the connection and communication between these components.

[0097] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0098] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0099] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, and it can be implemented separately through a chip.

[0100] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be optionally at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0101] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call the adaptive configuration application for the separated sensor access stored in the memory 305, and specifically perform the following operations:

[0102] Pre-process the sensor to form a movement capable of independent operation, and implant the signature action corresponding to the sensor in the movement;

[0103] When it is detected that the movement is connected to the main control, the main control sends a read request for the read flag action to the movement;

[0104] When the movement detects the master control's read request, the movement sends the corresponding flag action to the master control;

[0105] The master controller obtains the flag action and starts the corresponding access configuration according to the flag action; the access configuration at least includes a driver program.

[0106] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0107] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0108] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0109] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which 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 service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0110] 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.

[0111] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0113] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0114] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. An adaptive configuration method for separate sensor access, characterized in that: The configuration method comprises: Preprocessing the sensor to form a movement capable of independent operation, and implanting a marker action corresponding to the sensor in the movement; When it is detected that the movement is connected to the main control, the main control sends a read request for reading the flag action to the movement; When the movement detects a read request from the master control, the movement sends the corresponding flag action to the master control; The master controller obtains the flag action and starts a corresponding access configuration according to the flag action; the access configuration at least includes a driver program.

2. The configuration method according to claim 1, characterized in that: The movement includes one or more types of sensors.

3. The configuration method according to claim 2, characterized in that: The "implanting a marking action corresponding to the sensor in the movement" specifically includes: presetting the marking action based on the type of the sensor; The corresponding marker action is implanted based on the type of sensor included in the movement, and the type of sensor is bound to the corresponding marker action.

4. The configuration method according to claim 3, characterized in that: The “when detecting that the movement is connected to the main control, the main control sends a read request for reading the flag action to the movement” specifically includes: When it is detected that the movement is connected to the main control, the calling information of the main control for the sensor is obtained; the calling information at least includes the type of the sensor to be called by the main control; A read request is generated according to the call information, and the read request is sent to the movement connected to the main control.

5. The configuration method according to claim 4, characterized in that: The “when the movement detects the read request of the main control, the movement sends the corresponding flag action to the main control” specifically includes: After the movement is connected to the main control, the movement monitors the read request of the main control in real time; When the movement detects a read request from the master control, it extracts the call information in the read request and outputs the type of the called sensor; A corresponding flag action is sent to the master control according to the type of the called sensor.

6. The configuration method according to claim 5, characterized in that: It also includes call forms for presetting the access configuration of various types of sensors, including: Obtaining access configurations of various types of sensors, and binding the access configurations to the types of corresponding sensors to generate the call form; When the type of the sensor is obtained, the access configuration of the sensor is queried and called according to the calling form; the access configuration at least includes a driver program corresponding to the sensor.

7. The configuration method according to claim 6, characterized in that: The “the master controller obtains the flag action, and starts the corresponding access configuration according to the flag action” specifically includes: The main control obtains the flag action, and queries and outputs a corresponding sensor type based on the flag action; The calling form is queried according to the type of the sensor to obtain the corresponding access configuration, and the access configuration is started or loaded.

8. An adaptive configuration device for separate sensor access, characterized in that: include: Implantation module: pre-process the sensor to form a movement that can operate independently, and implant the marker action corresponding to the sensor in the movement; Reading module: When the movement is detected to be connected to the main control, the main control sends a read request for the read flag action to the movement; Monitoring module: When the movement detects the read request of the main control, the movement sends the corresponding flag action to the main control; Loading module: The main control obtains the flag action and starts the corresponding access configuration according to the flag action; the access configuration at least includes the driver program.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the configuration method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the configuration method according to any one of claims 1 to 7 are implemented.