CN112988322A - Analog hardware driving method and device - Google Patents

Analog hardware driving method and device Download PDF

Info

Publication number
CN112988322A
CN112988322A CN201911305150.2A CN201911305150A CN112988322A CN 112988322 A CN112988322 A CN 112988322A CN 201911305150 A CN201911305150 A CN 201911305150A CN 112988322 A CN112988322 A CN 112988322A
Authority
CN
China
Prior art keywords
virtual
information
configuration
object management
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911305150.2A
Other languages
Chinese (zh)
Inventor
张祥保
李久龄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201911305150.2A priority Critical patent/CN112988322A/en
Publication of CN112988322A publication Critical patent/CN112988322A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for driving analog hardware. Wherein, the method comprises the following steps: creating virtual equipment in a virtual equipment layer; writing the configuration information into the configuration layer according to the virtual equipment; acquiring operation information, and matching the operation information with configuration information to generate a matching result; and executing the operation information at the virtual equipment layer according to the matching result. The invention solves the technical problem that the prior art can not design the virtual drive from the software level when testing in the hardware testing field so as to achieve the effect of simulating and testing hardware equipment, namely, the technical problem that the test work can not be carried out by separating from the real hardware equipment.

Description

Analog hardware driving method and device
Technical Field
The invention relates to the field of hardware testing, in particular to a method and a device for simulating hardware driving.
Background
With the continuous development of automation and intelligence technologies, technicians in various fields begin to use various automation or intelligence methods to solve technical problems in the related fields. At present, with the development of package express delivery terminal business, various internet of things intelligent devices are continuously released, and for daily testers and developers, the testers and the developers have strong dependence on hardware support. However, the cost of testing and developing related hardware is very high, and resources of the related hardware are scarce and are not easy to be taken at any time, so that a technician cannot design a virtual drive from a software level when testing in the field of hardware testing to achieve the effect of simulating and testing hardware equipment, namely, cannot support the separation from real hardware equipment to perform testing work.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for simulating hardware driving, which at least solve the technical problem that a technician cannot design a virtual driver from a software level when testing in the field of hardware testing so as to achieve the effect of simulating and testing hardware equipment, namely cannot support the separation from real hardware equipment for testing work.
According to an aspect of an embodiment of the present invention, there is provided an analog hardware driving method, including: creating virtual equipment in a virtual equipment layer; writing the configuration information into the configuration layer according to the virtual equipment; acquiring operation information, and matching the operation information with configuration information to generate a matching result; and executing the operation information at the virtual equipment layer according to the matching result.
Optionally, before writing the configuration information into the configuration layer according to the virtual device, the method further includes: receiving broadcast information, wherein the broadcast information comprises: pushing tasks, sending broadcasts and setting operation of a service end configuration center; analyzing the broadcast information; and writing the configuration information of the virtual equipment into a configuration layer according to the analyzed broadcast information.
Optionally, after writing the configuration information into the configuration layer according to the virtual device, the method further includes: and adding the configuration information written by the configuration layer into a virtual device configuration queue.
Optionally, the obtaining operation information includes: acquiring operation information of a service application end, wherein the operation information comprises: opening the door and delivering goods; and sending the operation information to a driving service layer.
Optionally, matching the operation information with the configuration information, and generating a matching result includes: sending the operation information to a configuration layer, and matching the operation information with configuration information of virtual equipment in the configuration layer; if the configuration information of the virtual equipment contains abnormal information relative to the operation information, generating an abnormal matching result; and if the configuration information of the virtual equipment does not have abnormal information relative to the operation information, generating a normal matching result.
Optionally, according to the matching result, executing the operation information at the virtual device layer includes: and if the matching result is a normal matching result, the virtual equipment layer executes the operation information on the virtual equipment.
Optionally, after executing the operation information at the virtual device layer according to the matching result, the method further includes: receiving end broadcast information, wherein the end broadcast information comprises: the task ends the configuration operation of the broadcast and service end configuration center; analyzing the broadcast ending information, and sending the broadcast ending information to the virtual equipment; and according to the analyzed broadcast ending information, the virtual equipment is operated to end the task.
Optionally, after executing, in the virtual device layer, the operation content corresponding to the operation information according to the matching result, the method further includes: and displaying the executed operation content in the interactive interface of the entity equipment corresponding to the virtual equipment.
Optionally, before the step of creating a virtual device by the virtual device layer, the method further includes: and determining the virtual device as the debugged device.
Optionally, before the step of determining that the virtual device is a debugged device, the method further includes: judging whether entity equipment corresponding to the virtual equipment exists or not; when judging that the entity equipment exists, providing the entity equipment and the virtual equipment as candidate debugged equipment; and determining the virtual equipment as debugged equipment according to the input instruction.
Optionally, after executing, in the virtual device layer, the operation content corresponding to the operation information according to the matching result, the method further includes: and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual equipment. According to another aspect of the embodiments of the present invention, there is also provided a driving method for a simulated logistics object management apparatus, including: creating a virtual logistics object management device in a virtual equipment layer; writing configuration information of the logistics object management device into a configuration layer according to the virtual logistics object management device; acquiring operation information aiming at the virtual logistics object management device, matching the operation information of the logistics object management device with configuration information of the logistics object management device, and generating a matching result; and executing the operation information of the logistics object management device at the virtual device layer according to the matching result.
Optionally, before writing the configuration information of the logistics object management apparatus into the configuration layer according to the virtual logistics object management apparatus, the method further includes: receiving broadcast information, wherein the broadcast information comprises: pushing tasks, sending broadcasts and setting operation of a service end configuration center; analyzing the broadcast information; and writing the configuration information of the virtual logistics object management device into the configuration layer according to the analyzed broadcast information.
Optionally, after writing the configuration information of the logistics object management apparatus into the configuration layer according to the virtual logistics object management apparatus, the method further includes: and adding the configuration information of the physical distribution object management device into which the configuration layer is written into the virtual physical distribution object management device configuration queue.
Optionally, the obtaining operation information for the virtual logistics object management apparatus includes: acquiring operation information of a control end of a logistics object management device; and transmitting the operation information of the logistics object management device to a driving service layer.
Optionally, matching the operation information of the logistics object management apparatus with the configuration information of the logistics object management apparatus, and generating a matching result includes: sending the operation information of the logistics object management device to a configuration layer, and matching the operation information of the logistics object management device with the configuration of the virtual logistics object management device in the configuration layer; if the configuration information of the virtual logistics object management device contains abnormal information relative to the operation information of the logistics object management device, generating an abnormal matching result; and if the configuration information of the virtual logistics object management device does not contain abnormal information relative to the operation information of the logistics object management device, generating a normal matching result.
Optionally, according to the matching result, executing, at the virtual device layer, the operation information of the logistics object management device includes: and if the matching result is a normal matching result, the virtual device layer executes the operation information of the logistics object management device on the virtual logistics object management device.
Optionally, after executing, according to the matching result, the operation content corresponding to the operation information in the virtual logistics object management device layer, the method further includes: and displaying the executed operation content in an interactive interface of the entity equipment corresponding to the virtual logistics object management device.
Optionally, before the step of creating the virtual logistics object management device by the virtual logistics object management device layer, the method further includes: and determining that the virtual logistics object management device is debugged equipment.
Optionally, before the step of determining that the virtual logistics object management apparatus is the debugged equipment, the method further includes: judging whether entity equipment corresponding to the virtual logistics object management device exists or not; when the existence of the entity equipment is judged, the entity equipment and the virtual logistics object management device are provided as candidate debugged equipment; and determining the virtual logistics object management device as debugged equipment according to the input instruction.
Optionally, after executing, according to the matching result, the operation content corresponding to the operation information in the virtual logistics object management device layer, the method further includes: and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual logistics object management device.
According to another aspect of the embodiments of the present invention, there is also provided an analog hardware driving apparatus applied to a virtual device, including: the creating module is used for creating virtual equipment in a virtual equipment layer; the writing module is used for writing the configuration information into the configuration layer according to the virtual equipment; the device comprises an acquisition module and a matching module, wherein the acquisition module is used for acquiring operation information, and the matching module is used for matching the operation information with configuration information to generate a matching result; and the execution module is used for executing the operation information in the virtual equipment layer according to the matching result.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, which includes a stored program, wherein the program controls a device in which the non-volatile storage medium is located to execute the method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a processor and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform the method.
In the embodiment of the invention, the purpose of executing the virtual equipment test by separating from hardware is achieved by adopting a mode of creating the virtual equipment on a virtual equipment layer, writing the configuration information of the virtual equipment into a configuration layer and acquiring the operation information, matching the operation information with the configuration information and executing the operation information on the virtual equipment layer according to the matching result, and the technical problem that the virtual drive which cannot be designed from a software layer when the technical personnel tests in the hardware test field can be solved so as to achieve the effect of simulating and testing the hardware equipment, namely the technical problem that the test work of separating from the real hardware equipment can not be supported is solved. The virtual drive is set from the software layer in the hardware testing process, the effect of simulating and testing hardware equipment is achieved, and the hardware cost is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram illustrating an exemplary method for simulating hardware drivers according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a driving method of a simulation logistics object management apparatus according to an embodiment of the invention;
FIG. 3 is a flow chart of a method of simulating hardware drivers according to an embodiment of the invention;
FIG. 4 is a flow chart of yet another method of simulating hardware drivers according to an embodiment of the invention;
fig. 5 is a flowchart of a driving method of a simulation logistics object management apparatus according to an embodiment of the invention;
FIG. 6 is a block diagram of an analog hardware driver according to an embodiment of the present invention;
fig. 7 schematically shows a block diagram of a terminal device for performing the method according to the invention;
fig. 8 schematically shows a memory unit for holding or carrying program code implementing the method according to the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of simulating hardware drivers, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
Fig. 1 is a schematic diagram of a method for simulating hardware driving according to an embodiment of the present invention, and as shown in fig. 1, it can be seen that an operator sends an operation information instruction by operating an operation interface of a virtual device, the operation information instruction achieves the purpose of executing the operation information through a matching process with configuration information, and an operation result is returned to the operation interface of the virtual device.
Fig. 3 is a flowchart of a method for simulating hardware driving according to an embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
step S302, creating a virtual device in a virtual device layer.
In the mock test, the structure of a mock test system may be divided into a plurality of layers for a user. Such as a virtual device layer and a configuration layer. The virtual device layer is used for creating a virtual device, and relevant parameters of the virtual device can be written into the virtual device layer. The configuration layer is used for writing configuration information.
Specifically, the virtual device layer may be a layer of virtual devices required by an operator in a configuration structure of a mock test, where the mock test is a test method created for testing by using a virtual object for some objects that are not easily constructed or easily obtained in the test process. Therefore, creating the virtual device in the virtual device layer is equivalent to providing an operable test subject for an operator, for example, the subject may be a package self-service cabinet, and when the operator sets the virtual device in the virtual device layer as the package self-service cabinet through the mock, the mock test system may call the relevant setting and parameter of the package self-service cabinet and continue to prompt the operator to perform further configuration work.
It should be noted that, the device creation performed in the virtual device layer may be to create a device model pre-stored in the storage space, or to create a new model defined by an operator, and the embodiment of the present invention is not specifically limited herein, however, no matter which creation method is adopted by the operator, the subsequent configuration parameter operation should be continued, so as to ensure normal operation and accurate feedback of the virtual device in the mock test.
Optionally, as shown in S312 in fig. 4, after executing the operation content corresponding to the operation information in the virtual device layer according to the matching result, the method further includes: and displaying the executed operation content in the interactive interface of the entity equipment corresponding to the virtual equipment.
Specifically, specific parameters and configuration of the virtual device can be set by an operator through an interactive interface, the interactive interface can be a touch liquid crystal screen and visually displays various information which needs to be triggered and is triggered by the operator, and the interactive interface can also be used for displaying the working condition of the virtual self-service cabinet.
It should be noted that the interactive interface may be displayed on a screen of the physical device, the display mode is a real-color 32-bit display screen in a windows interface style, and when an operator debugs to which physical device through the virtual device, the interactive interface displays a condition of which physical device, so that the operator can intuitively operate and investigate the debugged device.
Optionally, as in S300a to S300c in fig. 4, before the step of creating the virtual device by the virtual device layer, the method further includes: and determining the virtual device as the debugged device.
Optionally, before the step of determining that the virtual device is a debugged device, the method further includes: judging whether entity equipment corresponding to the virtual equipment exists or not; when judging that the entity equipment exists, providing the entity equipment and the virtual equipment as candidate debugged equipment; and determining the virtual equipment as debugged equipment according to the input instruction.
Specifically, the simulated hardware detection system can detect the current equipment condition, that is, when an operator accesses the entity equipment, the system allows the operator to select an operation object, so that the operator can select the virtual equipment to perform a test of separating from the hardware, can directly select the entity equipment to perform a test according to the actual requirements of an application scene, and even can select a mode of combining the virtual equipment and the entity equipment to perform a test, thereby increasing the flexibility of the test process.
For example, when the system detects that the entity self-service cabinet exists, an operator can select an operation mode through system prompt, that is, directly operate the self-service cabinet, so that the operator can detect opening and closing of a drawer and related functions of the self-service cabinet to be tested, and the system can display a test process to the operator through an interactive interface.
For example, when an entity self-service cabinet exists, the method of the embodiment of the present invention may also be used for debugging, specifically, the method is used for debugging in combination with the self-service cabinet and the simulation development board of the embodiment, when the self-service cabinet needs to be tested, an operator does not need to operate from the entity of the self-service cabinet, only needs to input preset test information and configuration into the development board, and the development board may control the self-service cabinet to perform related test operations, that is, operate the entity self-service cabinet and the virtual device at the same time.
Step S304, writing the configuration information of the virtual device into a configuration layer.
Specifically, the virtual device created according to the foregoing steps belongs to a specific preset virtual device category, and on the basis of the preset category, specific parameters and configurations of the device need to be written by an operator, for example, the preset category includes a self-service cabinet, and the specific parameters and configurations include: size of self-service cabinet, several groups, etc. The configuration layer of the mock test system is a layer which is specially used for storing and calling relevant configuration information written by an operator for virtual equipment, so that the configuration layer is a layer with a storage function. For example, when the virtual device created by the operator is a parcel self-service cabinet, the parcel self-service cabinet itself has different parcel cabinet doors, that is, the parcel cabinet may include a plurality of parcel drawers with different sizes for storing parcels dispatched by express delivery personnel, so when the operator wishes to perform mock test on the parcel self-service cabinet, the operator needs to write specific parcel drawer parameters in the parcel self-service cabinet created in the above steps into mock configuration information, for example, a 45cm cube parcel drawer which can be 5 × 5 is uniformly distributed on the front side of the parcel self-service cabinet. The parameters are written into a configuration layer of the test system through the mock test system, the configuration layer stores the parameter information and synchronizes the created parcel self-service cabinet with the configuration information in real time according to the parameter information, namely, a parcel drawer of the parcel self-service cabinet is set to be a 45cm square parcel drawer of 5X5, so that an operator can call and test the parcel drawer in the subsequent steps.
Optionally, before writing the configuration information into the configuration layer according to the virtual device, the method further includes: receiving broadcast information, wherein the broadcast information comprises: pushing tasks, broadcast sent, and setting operation of a service end (e.g., internet of things terminal device) configuration center; analyzing the broadcast information; and writing the configuration information of the virtual equipment into a configuration layer according to the analyzed broadcast information.
Specifically, the received broadcast information may be a test task pushed by an operator at a remote end, or a broadcast (task) sent by the operator or an operating system, where the broadcast content may be a request for writing configuration information into a virtual device by the mock test system, or may be a request for setting on a configuration interface of the virtual device by the operator, where the setting behavior constitutes request information for writing related configuration information into a configuration layer.
After receiving the broadcast information, the mock testing system analyzes the received broadcast information, and writes configuration information into the virtual equipment according to the content in the information obtained after analysis. For example, after the broadcast information a is received, the mock testing system may perform parsing according to a preset rule, where the parsed configuration information is "a 45cm cube parcel drawer that configures a parcel self-service cabinet as a 5 × 5 parcel and is uniformly distributed on the front side of the parcel self-service cabinet", and then the mock testing system may write the configuration situation into a configuration layer, and simultaneously set the virtual device to the situation described by the configuration information.
It should be noted that, the parsing rule of the broadcast information may be to use a TOTP algorithm to decrypt or encrypt the key and the key, and through the parsing step of the broadcast information, not only the transmission length of the data may be shortened, but also the security of the data transmission may be increased, so that the whole mock test system is performed in a certain closed data environment.
Optionally, after writing the configuration information into the configuration layer according to the virtual device, the method further includes: and adding the written configuration information into a virtual device configuration queue.
Specifically, after the mock test system writes configuration information sent by an operator or an external system into the configuration layer, the configuration information needs to be sent to the virtual device side, so that the virtual device and the configuration information are synchronized, that is, the virtual device can be changed in time according to the operation of the operator, so as to meet the requirement of the whole test task.
It should be noted that the configuration queue of the virtual device is a first-in first-out data structure, and it can allocate the configuration to be executed by the virtual device, so that the whole configuration process conforms to the operation sequence of the operator, i.e. the first configured information is processed first, and then the configured information is processed, which ensures that the virtual device is updated strictly according to the instruction of the operator, and avoids the situation of configuration information confusion.
Step S306, acquiring operation information.
Specifically, the operation information is an operation instruction when the operator specifically executes the mock test, and the whole test process can be completed only through a plurality of operation instructions of the operator.
The Mock testing system attempts to activate one cabinet door in the parcel self-service cabinet according to the operation of an operator on the virtual equipment operation interface, for example, the operator touches the screen with hands, so that the cabinet door is changed from a closed state to an open state, and then the virtual equipment operation interface touch screen transmits the operation information to the inside of the Mock system when receiving the relevant operation of the operator, so that the operation information can be processed and executed in the subsequent steps.
It should be noted that the operation information of the operator may be obtained through a touch sensing device of the virtual device operation interface, or the operation of the operator may be recognized and obtained through modes and approaches such as voice obtaining, light and shadow gesture obtaining, and the like. The embodiment of the present invention does not specifically limit the acquisition manner.
Optionally, the obtaining operation information includes: acquiring operation information of a service application end, wherein the operation information comprises: opening the door and delivering goods;
after obtaining the operation information, the virtual device may send the operation information to the driver service layer.
Specifically, the operation of the virtual device operation interface by the operator is equivalent to the operation of a business application terminal (e.g., an internet of things terminal device app), and the operation may be opening a door or shipping, where opening the door means that the virtual device having a drawer or a cabinet door changes the state of the door from closed to open, and shipping means that the cabinet door originally storing goods is opened to perform shipping operation.
In addition, after the operation information of the operator is acquired, the mock test system sends the operation information to a driving service layer of the system, wherein the driving service layer has a data transfer processing function and can distribute data streams, and the distribution direction can be preset so as to meet the requirement of the whole test task.
For example, an operator opens a door of one of the doors of the parcel self-service cabinet, and the operation information is recognized by the mock test system and sent to the driving service layer for further analysis and processing of the operation in subsequent steps.
And step S308, matching the operation information with the configuration information to generate a matching result.
Specifically, after the operation information is sent to the drive service layer according to the above steps, the mock testing system matches the operation information of the operator with the configuration information of the virtual device stored in the configuration layer, and generates a matching result, where the matching function is to check whether the operation information conforms to the configuration condition of the current virtual device, eliminate abnormal conditions such as misoperation and contradictory operation, and ensure normal operation of the mock testing process.
Optionally, matching the operation information with the configuration information, and generating a matching result includes: sending the operation information to a configuration layer, and matching the operation information with configuration information of virtual equipment in the configuration layer; if the configuration information of the virtual equipment contains abnormal information relative to the operation information, generating an abnormal matching result; and if the configuration information of the virtual equipment does not have abnormal information relative to the operation information, generating a normal matching result.
Specifically, the operation information of the operator is sent to a configuration layer of the mock testing system by a driving service layer, and is matched through the configuration information of the virtual device stored in the configuration layer, that is, whether the operation information is abnormal, overtime or other conditions that the virtual device cannot be executed for testing exist in the configuration information is checked, if the operation information is abnormal, an abnormal matching result is generated, otherwise, if the operation information is not abnormal, a normal matching result is generated.
For example, an operator operates a 30cm cube door in a parcel self-service cabinet to open a door, a mock test system sends the door opening operation to a configuration layer, and the configuration layer calls configuration information of the parcel self-service cabinet stored in the layer, wherein the configuration information is that "the 45cm cube parcel drawer is allocated to the cabinet door of the parcel self-service cabinet by 5 × 5", so that the cabinet door which the operator needs to open is found not to accord with the recorded cabinet door distribution condition of the parcel self-service cabinet in the configuration through matching of the mock test system, and the matching result generated by the mock test system is an abnormal matching result according to feedback of the configuration layer.
For another example, an operator operates a 30cm cube door in a parcel self-service cabinet to open a door, the mock test system sends the door opening operation to the configuration layer, and the configuration layer calls the configuration information of the parcel self-service cabinet stored in the layer, wherein the configuration information is that "the 30cm cube parcel drawer is allocated to the door of the parcel self-service cabinet by 5 × 5", so that the door which the operator needs to open is found to be in accordance with the recorded distribution condition of the doors of the parcel self-service cabinet in the configuration through matching of the mock test system, and the matching result generated by the mock test system is a normal matching result according to feedback of the configuration layer.
Step S310, according to the matching result, executing the operation information in the virtual device layer.
Optionally, according to the matching result, executing the operation information at the virtual device layer includes: and if the matching result is a normal matching result, the virtual equipment layer executes the operation information on the virtual equipment.
Specifically, when the matching information generated by the mock test system in the above steps is normal, it indicates that the virtual device has the test operation that needs to be performed by the operator, and then the mock test system executes the operation information sent by the virtual device by the operator through the virtual device layer, that is, the virtual device completes the operation information instruction that the operator tries to perform on the virtual device.
Optionally, after executing the operation information at the virtual device layer according to the matching result, the method further includes: receiving end broadcast information, wherein the end broadcast information comprises: the task ends the configuration operation of the broadcast and service end configuration center; analyzing the broadcast ending information, and sending the broadcast ending information to the virtual equipment; and according to the analyzed broadcast ending information, the virtual equipment is operated to end the task.
Specifically, when the mock test system receives the broadcast termination information, which corresponds to the reception of the broadcast information in the previous step in the embodiment of the present invention, the mock test system closes the use of the virtual device, that is, closes the entire test task, and restores all configurations to the default according to the termination instruction in the broadcast information.
It should be noted that an operator may set the mock test system according to the needs of an actual situation, so that even when the mock test system receives a task ending instruction, the mock test system only closes the running state of the virtual device, and does not change the configuration of other configuration layers, so as to facilitate the next test task.
Optionally, as shown in S314 in fig. 4, after executing, in the virtual device layer, the operation content corresponding to the operation information according to the matching result, the method further includes: and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual equipment.
Specifically, the simulation hardware testing system sends a prompt message to the entity device through the virtual device to guide an operator on site to perform related operations, the entity device may be a self-service cabinet to be tested, and the prompt message may be maintenance information, operation information such as daily startup and shutdown, configuration update information, and other instruction data information. In addition, the entity device may be any device other than the self-service cabinet, such as an intercom, a signal transceiver, and the like, for calling an operator to operate before the self-service cabinet, and is not particularly limited herein.
For example, the self-service cabinet according to the embodiment of the present invention may further remotely arrange field personnel to be responsible for field self-service cabinet management through the simulation system, for example, the development board sends a remote personnel auxiliary repair instruction, so that a remote worker may perform corresponding repair work at the remote self-service cabinet after receiving the instruction, and the development board may perform a development function and a test function on the remote self-service cabinet, and data communication thereof is achieved through an LORA remote communication protocol, so that the self-service cabinet may be remotely operated to perform development, test, related repair work, and the like through the above manner.
Example two
Fig. 2 is a schematic diagram of a method for simulating a driving of a logistics object management apparatus according to an embodiment of the invention, and as shown in fig. 2, the invention can also perform a simulated hardware-driven operation on the logistics object management apparatus. The operating information command of the logistics object management device is matched with the configuration information of the logistics object management device through a matching process, so that the purpose of executing the operating information of the logistics object management device is achieved, and the operating result is returned to the operating interface of the virtual logistics object management device.
Fig. 5 is a flowchart of a driving method for a simulation logistics object management apparatus according to an embodiment of the invention, and as shown in fig. 5, according to another aspect of the embodiment of the invention, there is also provided a driving method for a simulation logistics object management apparatus, including:
step S402 is to create a virtual logistics object management apparatus in the virtual device layer.
Specifically, the virtual device layer may be a layer of virtual logistics object management devices required by an operator for management in a configuration structure of a mock test, where the mock test is a test method created by using a virtual object for testing some objects which are not easy to construct or easily obtained in the test process. Therefore, creating the virtual logistics object management device in the virtual device layer is equivalent to providing an operable test subject for an operator, for example, the subject may be a logistics object management device, and when the operator sets the virtual logistics object management device in the virtual device layer as the logistics object management device through mock, the mock test system will call the relevant settings and parameters of the logistics object management device and continue to prompt the operator to perform further configuration work.
It should be noted that, the creating of the logistics object management device at the virtual device layer may be creating an equipment model stored in a storage space in advance, or creating a new model defined by an operator, and the embodiment of the present invention is not specifically limited herein, however, no matter which creating method is adopted by the operator, the subsequent configuration parameter work should be continued, so as to ensure normal operation and accurate feedback of the logistics object management device in the mock test.
Optionally, after executing, according to the matching result, the operation content corresponding to the operation information in the virtual logistics object management device layer, the method further includes: and displaying the executed operation content in an interactive interface of the entity equipment corresponding to the virtual logistics object management device.
Specifically, specific parameters and configuration of the virtual logistics object management device can be set by an operator through an interactive interface, the interactive interface can be a touch liquid crystal screen and visually displays various information which needs to be triggered and is triggered by the operator, and the interactive interface can also be used for displaying the working condition of the virtual self-service cabinet.
It should be noted that the interactive interface may be displayed on a screen of the physical device, the display mode is a real-color 32-bit display screen in a windows interface style, and when an operator debugs to which physical device through the virtual logistics object management apparatus, the interactive interface displays a condition of which physical device, so that the operator can intuitively operate and investigate the debugged device.
Optionally, before the step of creating the virtual logistics object management device by the virtual logistics object management device layer, the method further includes: and determining that the virtual logistics object management device is debugged equipment.
Optionally, before the step of determining that the virtual logistics object management apparatus is the debugged equipment, the method further includes: judging whether entity equipment corresponding to the virtual logistics object management device exists or not; when the existence of the entity equipment is judged, the entity equipment and the virtual logistics object management device are provided as candidate debugged equipment; and determining the virtual logistics object management device as debugged equipment according to the input instruction.
Specifically, the simulation hardware detection system can detect the current equipment condition, that is, when an operator accesses the entity equipment, the system allows the operator to select an operation object, so that the operator can select the virtual logistics object management device to perform a test of separating from the hardware, can directly select the entity equipment to perform a test, and even can select a mode of combining the virtual logistics object management device and the entity equipment to perform a test together according to the actual needs of an application scene, thereby increasing the flexibility of the test process.
For example, when the system detects that the entity self-service cabinet exists, an operator can select an operation mode through system prompt, that is, directly operate the self-service cabinet, so that the operator can detect opening and closing of a drawer and related functions of the self-service cabinet to be tested, and the system can display a test process to the operator through an interactive interface.
For example, when an entity self-service cabinet exists, the method of the embodiment of the present invention may also be used for debugging, specifically, the method is used for debugging in combination with the self-service cabinet and the simulation development board of the embodiment, when the self-service cabinet needs to be tested, an operator does not need to operate from the entity of the self-service cabinet, only needs to input preset test information and configuration into the development board, and the development board may control the self-service cabinet to perform related test operations, that is, operate the entity self-service cabinet and the virtual logistics object management device at the same time, and the operator may see the operation condition of the self-service cabinet through the interactive interface of the development board, and may also see and compare the operation condition of the entity of the self-service cabinet, so as to achieve more accurate judgment of the accuracy and stability of the test of the self-service cabinet.
Step S404 writes the configuration information of the physical distribution object management apparatus into the configuration layer according to the virtual physical distribution object management apparatus.
Specifically, the virtual logistics object management device created according to the foregoing steps is a model of a virtual logistics object management device, wherein specific parameters and configuration of the logistics object management device need to be written by an operator, and a configuration layer of the mock test system is a layer that is dedicated to storing and calling related configuration information written by the operator for the virtual logistics object management device, and thus the configuration layer is a layer having a storage function.
For example, when the virtual logistics object management apparatus created by the operator is a self-service cabinet, since the self-service cabinet itself has different working modes, that is, may have a plurality of working modes with different efficiencies and paths, when the operator wishes to perform a mock test on the self-service cabinet, it is necessary to write specific working mode parameters in the self-service cabinet created in the above steps into mock configuration information, where the parameters are written into a configuration layer of the test system through the mock test system, and the configuration layer stores the parameter information and synchronizes the created self-service cabinet with the configuration information in real time according to the parameter information, so that the operator calls and tests in subsequent steps.
Optionally, before writing the configuration information into the configuration layer according to the virtual logistics object management apparatus, the method further includes: receiving broadcast information, wherein the broadcast information comprises: pushing tasks, sending broadcasts and setting operation of a service end configuration center; analyzing the broadcast information; and writing the configuration information of the virtual logistics object management device into the configuration layer according to the analyzed broadcast information.
Specifically, the received broadcast information may be a test task pushed by an operator at a remote end, or a broadcast (task) sent by the operator or an operating system, where the broadcast content may be a write-in job requesting the mock test system to perform configuration information on the virtual device, or may be a setting performed by the operator on a configuration interface of the virtual logistics object management apparatus, and the setting behavior constitutes request information for writing related configuration information into the configuration layer.
After receiving the broadcast information, the mock test system analyzes the received broadcast information, and writes configuration information into the virtual logistics object management device according to the content in the information obtained after analysis. For example, after the broadcast information a is received, the mock test system may analyze according to a preset rule, and the analyzed configuration information is "open all doors", so the mock test system may write the configuration situation into the configuration layer, and set the virtual logistics object management device to the situation described by the configuration information.
It should be noted that, the parsing rule of the broadcast information may be to use a TOTP algorithm to decrypt or encrypt the key and the key, and through the parsing step of the broadcast information, not only the transmission length of the data may be shortened, but also the security of the data transmission may be increased, so that the whole mock test system is performed in a certain closed data environment.
Optionally, after writing the configuration information into the configuration layer according to the virtual logistics object management apparatus, the method further includes: and adding the written configuration information into a configuration queue of the virtual logistics object management device.
Specifically, after the mock test system writes configuration information sent by an operator or an external system into the configuration layer, the configuration information needs to be sent to the virtual logistics object management device, so that the virtual logistics object management device and the configuration information are synchronized, that is, the virtual logistics object management device can change in time according to the operation of the operator, so as to meet the requirement of the whole test task.
It should be noted that the configuration queue of the virtual logistics object management device is a first-in first-out data structure, and it can allocate the configuration to be executed by the virtual logistics object management device, so that the whole configuration process conforms to the operation sequence of the operator, i.e. the first configured information is processed first, and then the configured information is processed, which ensures that the virtual logistics object management device is updated strictly according to the instruction of the operator, and avoids the situation of configuration information confusion.
Step S406, operation information for the virtual logistics object management apparatus is acquired.
Specifically, the operation information is an operation instruction when the operator specifically executes the mock test, and the whole test process can be completed only through a plurality of operation instructions of the operator. The Mock test system attempts to activate a certain working mode of the logistics object management device according to the operation of an operator on the virtual logistics object management device operation interface, for example, the operator touches the screen with a hand, so that the virtual logistics object management device operation interface touch screen transmits the operation information to the inside of the Mock system when receiving the operation related to the operator, so that the operation information can be processed and executed in the following steps.
It should be noted that the operation information of the operator may be obtained through a touch sensing device of the virtual logistics object management device operation interface, or the operation of the operator may be recognized and obtained through voice obtaining, light and shadow gesture obtaining, and other manners and ways. The embodiment of the present invention does not specifically limit the acquisition manner.
Optionally, the obtaining operation information for the virtual logistics object management apparatus includes: acquiring operation information of a control end of a logistics object management device; and transmitting the operation information of the logistics object management device to a driving service layer.
Specifically, the operation of the operator on the operation interface of the virtual logistics object management device is equivalent to the operation on the service application side, and the operation may be to change the working mode of the logistics object management device, where the working mode refers to how the logistics object management device works under a certain condition, and execute a certain working program to achieve certain working effects.
In addition, after the operation information of the operating personnel on the logistics object management device is acquired, the mock test system sends the operation information to a driving service layer of the system, wherein the driving service layer has a data transfer processing function and can distribute data streams, and the distribution direction can be preset so as to meet the requirement of the whole test task.
For example, an operator activates a certain working mode of the self-service cabinet, and the operation information is recognized by the mock testing system and sent to the driving service layer for further analysis and processing of the operation in subsequent steps.
Step S408 is to match the operation information of the physical distribution object management apparatus with the configuration information of the physical distribution object management apparatus, and generate a matching result.
Specifically, after the operation information of the logistics object management device is sent to the drive service layer in the above steps, the mock test system matches the operation information of the logistics object management device with the configuration information of the virtual logistics object management device stored in the configuration layer by an operator, and generates a matching result, where the matching function is to check whether the operation information conforms to the configuration condition of the current virtual device, eliminate abnormal conditions such as misoperation and contradictory operation, and ensure normal operation of the mock test process.
Optionally, matching the operation information of the logistics object management apparatus with the configuration information of the logistics object management apparatus, and generating a matching result includes: sending the operation information of the logistics object management device to a configuration layer, and matching the operation information of the logistics object management device with the configuration of the virtual logistics object management device in the configuration layer; if the configuration information of the virtual logistics object management device contains abnormal information relative to the operation information of the logistics object management device, generating an abnormal matching result; and if the configuration information of the virtual logistics object management device does not contain abnormal information relative to the operation information of the logistics object management device, generating a normal matching result.
Specifically, the operator sends the operation information of the logistics object management device to the configuration layer of the mock test system by the driven service layer, and performs matching through the configuration information of the virtual logistics object management device stored in the configuration layer, that is, checks whether the operation information of the logistics object management device is abnormal, overtime or other conditions that the virtual device cannot be executed to test for the configuration information, if abnormal conditions exist, generates an abnormal matching result, otherwise, if abnormal conditions do not exist, generates a normal matching result.
And step S410, executing the operation information of the logistics object management device on the virtual device layer according to the matching result.
Optionally, according to the matching result, executing, at the virtual device layer, the operation information of the logistics object management device includes: and if the matching result is a normal matching result, the virtual device layer executes the operation information of the logistics object management device on the virtual logistics object management device.
Specifically, when the matching information generated by the mock test system in the above steps is normal, it indicates that the virtual logistics object management apparatus has the test operation that the operator needs to perform, and then the mock test system executes the operation information that the virtual equipment performing operator sends to the logistics object management apparatus through the virtual apparatus layer, that is, the virtual logistics object management apparatus completes the operation information instruction that the operator tries to perform to the virtual logistics object management apparatus.
According to an embodiment of the present invention, after executing the operation information at the virtual device layer according to the matching result, the method may further include: receiving end broadcast information, wherein the end broadcast information comprises: the task ends the configuration operation of the broadcast and service end configuration center; analyzing the broadcast ending information, and sending the broadcast ending information to the virtual equipment; and according to the analyzed broadcast ending information, the virtual equipment is operated to end the task.
Specifically, when the mock test system receives the end broadcast information, corresponding to the reception of the broadcast information in the previous step in the embodiment of the present invention, the mock test system closes the use of the virtual logistics object management device according to the end instruction in the broadcast information, that is, closes the entire test task, and restores all configurations to the default.
It should be noted that an operator may set the mock test system according to the needs of an actual situation, so that even when the mock test system receives a task ending instruction, the mock test system only closes the running state of the virtual logistics object management device, and does not change the configuration of other configuration layers, so as to facilitate the next test task.
Optionally, after executing, according to the matching result, the operation content corresponding to the operation information in the virtual logistics object management device layer, the method further includes: and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual logistics object management device.
Specifically, the simulation hardware testing system sends a prompt message to an entity device through the virtual logistics object management device, so as to guide an operator on site to perform related operations, the entity device may be a self-service cabinet to be tested, and the prompt message may be maintenance information, operation information such as daily startup and shutdown, configuration update information, and other instruction data information. In addition, the entity device may be any device other than the self-service cabinet, such as an intercom, a signal transceiver, and the like, for calling an operator to operate before the self-service cabinet, and is not particularly limited herein.
For example, the self-service cabinet according to the embodiment of the present invention may further remotely arrange field personnel to be responsible for field self-service cabinet management through the simulation system, for example, the development board sends a remote personnel auxiliary repair instruction, so that a remote worker may perform corresponding repair work at the remote self-service cabinet after receiving the instruction, and the development board may perform a development function and a test function on the remote self-service cabinet, and data communication thereof is achieved through an LORA remote communication protocol, so that the self-service cabinet may be remotely operated to perform development, test, related repair work, and the like through the above manner.
EXAMPLE III
Fig. 6 is a block diagram of an analog hardware driving apparatus according to an embodiment of the present invention, as shown in fig. 6, including:
a creation module 50 for creating a virtual device at a virtual device layer;
a writing module 52, configured to write the configuration information into the configuration layer according to the virtual device;
an acquisition module 54 for acquiring operation information, an
The matching module 56 is used for matching the operation information with the configuration information to generate a matching result;
and the execution module 58 is used for executing the operation information at the virtual equipment layer according to the matching result.
Since the first embodiment has already described the specific implementation content of each module in the apparatus in the first embodiment of the present invention, further description is not repeated here.
By the embodiment, the problem that the existing technical personnel cannot design the virtual drive from a software level when testing in the field of hardware testing is solved, so that the effect of simulating and testing hardware equipment is achieved, namely, the virtual drive cannot support the separation from real hardware equipment for testing work
Example four
Fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. As shown in fig. 7, the terminal device may include an input device 70, a processor 71, an output device 72, a memory 73, and at least one communication bus 74. The communication bus 74 is used to enable communication connections between the elements. The memory 73 may comprise a high speed RAM memory, and may also include a non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiment.
Alternatively, the processor 71 may be implemented by, for example, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and the processor 71 is coupled to the input device 70 and the output device 72 through a wired or wireless connection.
Alternatively, the input device 70 may include a variety of input devices, such as at least one of a user-oriented user interface, a device-oriented device interface, a software-programmable interface, a camera, and a sensor. Optionally, the device interface facing the device may be a wired interface for data transmission between devices, or may be a hardware plug-in interface (e.g., a USB interface, a serial port, etc.) for data transmission between devices; optionally, the user-facing user interface may be, for example, a user-facing control key, a voice input device for receiving voice input, and a touch sensing device (e.g., a touch screen with a touch sensing function, a touch pad, etc.) for receiving user touch input; optionally, the programmable interface of the software may be, for example, an entry for a user to edit or modify a program, such as an input pin interface or an input interface of a chip; an audio input device such as a microphone may receive voice data. The output device 72 may include a display, a sound, or other output device.
In this embodiment, the processor of the terminal device includes a module for executing the functions of the modules of the data processing apparatus in each device, and specific functions and technical effects may refer to the foregoing embodiments, which are not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a terminal device according to another embodiment of the present application. FIG. 8 is a specific embodiment of FIG. 7 in an implementation. As shown in fig. 8, the terminal device of the present embodiment includes a processor 71 and a memory 72.
The processor 71 executes the computer program code stored in the memory 72 to implement the analog hardware driving method of fig. 1 to 6 in the above embodiment.
The memory 72 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, such as messages, pictures, videos, and so forth. The memory 72 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Optionally, the processor 71 is provided in the processing assembly 70. The terminal device may further include: a communication component 73, a power component 74, a multimedia component 75, an audio component 76, an input/output interface 77 and/or a sensor component 78. The specific components included in the terminal device are set according to actual requirements, which is not limited in this embodiment.
The processing component 70 generally controls the overall operation of the terminal device. The processing component 70 may include one or more processors 71 to execute instructions to perform all or a portion of the steps of the methods of fig. 3-5 described above. Further, the processing component 70 may include one or more modules that facilitate interaction between the processing component 70 and other components. For example, the processing component 70 may include a multimedia module to facilitate interaction between the multimedia component 75 and the processing component 70.
The power supply component 74 provides power to the various components of the terminal device. The power components 74 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal device.
The multimedia component 75 includes a display screen that provides an output interface between the terminal device and the user. In some embodiments, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 76 is configured to output and/or input audio signals. For example, the audio component 76 may include a Microphone (MIC) configured to receive external audio signals when the terminal device is in an operational mode, such as a voice recognition mode. The received audio signal may further be stored in the memory 72 or transmitted via the communication component 73. In some embodiments, audio assembly 76 also includes a speaker for outputting audio signals.
The input/output interface 77 provides an interface between the processing component 70 and peripheral interface modules, which may be click wheels, buttons, etc. These buttons may include, but are not limited to: a volume button, a start button, and a lock button.
The sensor assembly 78 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, the sensor assembly 78 may detect the open/closed status of the terminal device, the relative positioning of the assemblies, the presence or absence of user contact with the terminal device. The sensor assembly 78 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the terminal device. In some embodiments, the sensor assembly 78 may also include a camera or the like.
The communication component 73 is configured to facilitate wired or wireless communication between the terminal device and other devices. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one embodiment, the terminal device may include a SIM card slot for inserting a SIM card therein, so that the terminal device can log on to a GPRS network and establish communication with the server via the internet.
An embodiment of the present application provides a terminal device, including: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the terminal device to perform a method as described in one or more of the embodiments of the application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is given to the analog hardware driving method and apparatus provided in the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (24)

1. A simulation hardware driving method is applied to a simulation hardware driving system and comprises the following steps:
creating virtual equipment in a virtual equipment layer;
writing the configuration information of the virtual equipment into a configuration layer;
obtaining operation information for the virtual device, an
Matching the operation information with the configuration information to generate a matching result;
and executing the operation content corresponding to the operation information on the virtual equipment layer according to the matching result.
2. The method of claim 1, wherein prior to writing configuration information for the virtual device to a configuration layer, the method further comprises:
receiving broadcast information, wherein the broadcast information comprises: pushing tasks, sending broadcasts and setting operation of a service end configuration center;
analyzing the broadcast information; and
and writing the configuration information of the virtual equipment into the configuration layer according to the analyzed broadcast information.
3. The method of claim 1, wherein after writing configuration information of the virtual device to a configuration layer, the method further comprises:
and adding the configuration information written into the configuration layer into a virtual device configuration queue.
4. The method according to claim 1, wherein in the step of acquiring operation information for the virtual device, the operation information includes door opening operation information or shipment operation information; the steps include:
and sending the door opening operation information or the shipment operation information to a driving service layer.
5. The method of claim 1, wherein matching the operational information with the configuration information, and generating a matching result comprises:
sending the operation information to a configuration layer, and matching the operation information with the configuration information of the virtual equipment in the configuration layer;
when judging that the configuration information of the virtual equipment has abnormal information relative to the operation information, generating an abnormal matching result;
and when judging that the configuration information of the virtual equipment does not have abnormal information relative to the operation information, generating a normal matching result.
6. The method according to claim 1 or 5, wherein executing, at the virtual device layer, the operation content corresponding to the operation information according to the matching result comprises:
and when the matching result is judged to be a normal matching result, the virtual equipment layer executes the operation information on the virtual equipment.
7. The method according to claim 1, wherein after executing the operation content corresponding to the operation information at the virtual device layer according to the matching result, the method further comprises:
receiving end broadcast information, wherein the end broadcast information comprises: the task ends the configuration operation of the broadcast and service end configuration center;
analyzing the broadcast ending information and sending the broadcast ending information to virtual equipment;
and according to the analyzed broadcast ending information, the virtual equipment is operated to end the task.
8. The method according to claim 1, wherein after executing the operation content corresponding to the operation information at the virtual device layer according to the matching result, the method further comprises:
and displaying the executed operation content in an interactive interface of the entity equipment corresponding to the virtual equipment.
9. The method of claim 1, wherein prior to the step of creating a virtual appliance at the virtual appliance layer, the method further comprises:
and determining the virtual device as the debugged device.
10. The method of claim 9, wherein before the step of determining that the virtual device is a debuggee device, the method further comprises:
judging whether entity equipment corresponding to the virtual equipment exists or not;
when the entity equipment is judged to exist, the entity equipment and the virtual equipment are provided as candidate debugged equipment;
and determining the virtual equipment as debugged equipment according to the input instruction.
11. The method according to claim 1, wherein after executing the operation content corresponding to the operation information at the virtual device layer according to the matching result, the method further comprises:
and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual equipment.
12. A drive method of a simulation logistics object management device is applied to a simulation hardware drive system and comprises the following steps:
creating a virtual logistics object management device in a virtual equipment layer;
writing the configuration information of the virtual logistics object management device into a configuration layer;
acquiring operation information for the virtual logistics object management apparatus, an
Matching the operation information with the configuration information to generate a matching result;
and executing the operation content corresponding to the operation information on the virtual equipment layer according to the matching result.
13. The method according to claim 12, wherein before writing configuration information of the virtual logistics object management apparatus to a configuration layer, the method further comprises:
receiving broadcast information, wherein the broadcast information comprises: pushing tasks, sending broadcasts and setting operation of a service end configuration center;
analyzing the broadcast information; and
and writing the configuration information of the virtual logistics object management device into the configuration layer according to the analyzed broadcast information.
14. The method according to claim 12, wherein after writing configuration information of the virtual logistics object management apparatus into a configuration layer, the method further comprises:
and adding the configuration information written into the configuration layer into a configuration queue of the virtual logistics object management device.
15. The method according to claim 12, wherein the step of acquiring operation information for the virtual logistics object management apparatus, the operation information including door opening operation information or shipment operation information, comprises:
and sending the door opening operation information or the shipment operation information to a driving service layer.
16. The method of claim 12, wherein matching the operational information with the configuration information, and generating a matching result comprises:
sending the operation information of the logistics object management device to a configuration layer, and matching the operation information of the logistics object management device with the configuration information of the virtual logistics object management device in the configuration layer;
if the configuration information of the virtual logistics object management device contains abnormal information relative to the operation information of the logistics object management device, generating an abnormal matching result;
and if the configuration information of the virtual logistics object management device does not contain abnormal information relative to the operation information of the logistics object management device, generating a normal matching result.
17. The method according to claim 12 or 16, wherein executing, at the virtual device layer, the operation content corresponding to the operation information according to the matching result comprises:
and executing the operation information of the logistics object management device on the virtual logistics object management device when the matching result is judged to be a normal matching result.
18. The method according to claim 12, wherein after executing the operation content corresponding to the operation information at the virtual logistics object management apparatus layer according to the matching result, the method further comprises:
and displaying the executed operation content in an interactive interface of the entity equipment corresponding to the virtual logistics object management device.
19. The method of claim 12, wherein before the step of creating a virtual logistics object management device at the virtual logistics object management device layer, the method further comprises:
and determining that the virtual logistics object management device is debugged equipment.
20. The method of claim 19, wherein before the step of determining that the virtual logistics object management apparatus is a debugged device, the method further comprises:
judging whether entity equipment corresponding to the virtual logistics object management device exists or not;
when the entity equipment is judged to exist, the entity equipment and the virtual logistics object management device are provided as candidate debugged equipment;
and determining the virtual logistics object management device as debugged equipment according to the input instruction.
21. The method according to claim 12, wherein after executing the operation content corresponding to the operation information at the virtual logistics object management apparatus layer according to the matching result, the method further comprises:
and sending the prompt information corresponding to the operation content to the entity equipment corresponding to the virtual logistics object management device.
22. A simulation hardware driving device applied to virtual equipment comprises:
the creating module is used for creating virtual equipment in a virtual equipment layer;
a write-in module, configured to write configuration information of the virtual device into a configuration layer;
an acquisition module for acquiring operation information for the virtual device, an
The matching module is used for matching the operation information with the configuration information to generate a matching result;
and the execution module is used for executing the operation content corresponding to the operation information on the virtual equipment layer according to the matching result.
23. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the non-volatile storage medium is located to perform the method of any of claims 1 to 21.
24. An electronic device comprising a processor and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform the method of any one of claims 1 to 21.
CN201911305150.2A 2019-12-17 2019-12-17 Analog hardware driving method and device Pending CN112988322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911305150.2A CN112988322A (en) 2019-12-17 2019-12-17 Analog hardware driving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911305150.2A CN112988322A (en) 2019-12-17 2019-12-17 Analog hardware driving method and device

Publications (1)

Publication Number Publication Date
CN112988322A true CN112988322A (en) 2021-06-18

Family

ID=76343720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911305150.2A Pending CN112988322A (en) 2019-12-17 2019-12-17 Analog hardware driving method and device

Country Status (1)

Country Link
CN (1) CN112988322A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020033224A (en) * 2000-10-30 2002-05-06 구자홍 Method for software pre-test using device emulator
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN106850347A (en) * 2017-01-25 2017-06-13 迈普通信技术股份有限公司 Longitudinal direction virtualization method of testing and device
CN107153568A (en) * 2016-03-04 2017-09-12 施耐德电气美国股份有限公司 System and method for operating virtual electric power environment
CN107195131A (en) * 2017-04-13 2017-09-22 深圳怡化电脑股份有限公司 A kind of method and device of analog hardware equipment
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN110032454A (en) * 2018-01-12 2019-07-19 北京京东尚科信息技术有限公司 Remote invocation method, system and relevant device and computer readable storage medium
CN110287076A (en) * 2018-03-19 2019-09-27 北京兆易创新科技股份有限公司 A kind of method for testing memory and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020033224A (en) * 2000-10-30 2002-05-06 구자홍 Method for software pre-test using device emulator
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN107153568A (en) * 2016-03-04 2017-09-12 施耐德电气美国股份有限公司 System and method for operating virtual electric power environment
CN106850347A (en) * 2017-01-25 2017-06-13 迈普通信技术股份有限公司 Longitudinal direction virtualization method of testing and device
CN107195131A (en) * 2017-04-13 2017-09-22 深圳怡化电脑股份有限公司 A kind of method and device of analog hardware equipment
CN110032454A (en) * 2018-01-12 2019-07-19 北京京东尚科信息技术有限公司 Remote invocation method, system and relevant device and computer readable storage medium
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN110287076A (en) * 2018-03-19 2019-09-27 北京兆易创新科技股份有限公司 A kind of method for testing memory and device

Similar Documents

Publication Publication Date Title
US8041437B2 (en) System and method for virtual control of laboratory equipment
KR101027971B1 (en) Mobile communication terminal capable of testing application and method thereof
CN109960642B (en) Automatic test method and device
CN104331373A (en) Monkey test system and method
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
Wang et al. Automatic Android GUI traversal with high coverage
CN112783756A (en) Automatic test method, terminal, system and storage medium
CN108845924B (en) Control response area display control method, electronic device, and storage medium
CN106815150B (en) Server-side interface test system and method
CN110888781B (en) Application blockage detection method and detection device
CN110321278B (en) System testing method and device, computer equipment and storage medium
KR20150003651A (en) Computing system and control method thereof
CN107894935A (en) OPS computer module detection process method, apparatus and electronic equipment
KR101792864B1 (en) System and Method for verifying application
CN100382043C (en) Device and method for internal storage monitoring
CN112416751A (en) Processing method and device for interface automation test and storage medium
CN112988322A (en) Analog hardware driving method and device
CN115951973A (en) Model processing method and device, terminal device and storage medium
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN111382416B (en) Application program operation identification method and device, terminal equipment and storage medium
CN114745257A (en) Data frame debugging method, device, equipment and storage medium
CN104079453B (en) The enumeration methodology and device of commissioning device
CN106155863A (en) Terminal anticipatory behavior control method and terminal
CN106792193A (en) A kind of repair system and restorative procedure based on Android TVs
CN111831497A (en) Equipment simulation method and device, storage medium and simulation terminal

Legal Events

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