WO2017154166A1 - Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données - Google Patents

Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données Download PDF

Info

Publication number
WO2017154166A1
WO2017154166A1 PCT/JP2016/057558 JP2016057558W WO2017154166A1 WO 2017154166 A1 WO2017154166 A1 WO 2017154166A1 JP 2016057558 W JP2016057558 W JP 2016057558W WO 2017154166 A1 WO2017154166 A1 WO 2017154166A1
Authority
WO
WIPO (PCT)
Prior art keywords
script
control
data processing
data
command
Prior art date
Application number
PCT/JP2016/057558
Other languages
English (en)
Japanese (ja)
Inventor
鈴木貴久
山下浩一郎
栗原康志
Original Assignee
富士通株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 富士通株式会社 filed Critical 富士通株式会社
Priority to PCT/JP2016/057558 priority Critical patent/WO2017154166A1/fr
Priority to JP2018503941A priority patent/JP6587031B2/ja
Priority to TW105136400A priority patent/TWI631442B/zh
Publication of WO2017154166A1 publication Critical patent/WO2017154166A1/fr

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/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Definitions

  • This case relates to a control device, a data processing device, a control system, a control method, a data processing method, a control program, and a data processing program.
  • a technique for transmitting measurement results of sensor devices to a personal computer, a smartphone, a cloud server, or the like by wireless communication is known.
  • the device that has received the measurement result displays the measurement result and performs data processing.
  • Such a sensor device is connected to a control microcomputer via a general-purpose interface such as I2C (Inter-Integrated Circuit) or SPI (Serial Parallel Interface).
  • the microcomputer controls the sensor device by a program called a device driver. For example, when a sensor device mounted on a sensor device is added or changed, the device driver needs to be updated according to the sensor device.
  • the device driver can be updated easily without the need for a development environment or special tools. can do.
  • the microcomputer control process can be limited to data read / write to the sensor device, and other processes can be assigned to the personal computer. .
  • the load of control processing of the microcomputer is reduced, but on the other hand, since communication between the personal computer and the sensor device is frequently performed, the load of communication processing increases, communication congestion, processing delay. Increase in power consumption.
  • this problem exists not only in the control apparatus of a sensor apparatus but in the control apparatus of another apparatus.
  • the present case has been made in view of the above problems, and a control device, a data processing device, a control system, a control method, a data processing method, a control program, and a data processing program in which the load of control processing and communication processing is reduced.
  • the purpose is to provide.
  • control device In the control device connected to the control target device, the control device described in this specification executes a storage unit that stores a script including a command for accessing the control target device, executes the script, and acquires the execution result And a transmission unit that transmits the execution result to a data processing device that performs data processing of the execution result.
  • the data processing device described in the present specification receives a script execution result including a command for accessing the control target device from the control device in a data processing device communicating with the control device connected to the control target device.
  • a receiving unit; and a data processing unit that performs data processing of the execution result are a script execution result including a command for accessing the control target device from the control device in a data processing device communicating with the control device connected to the control target device.
  • the control system described in the present specification includes a control device connected to a control target device and a data processing device that communicates with the control device, and the control device includes a command for accessing the control target device.
  • a storage unit that stores a script; a control unit that executes the script and acquires the execution result; and a transmission unit that transmits the execution result to a data processing device that performs data processing of the execution result.
  • the data processing device includes a receiving unit that receives the execution result of the script from the control device, and a data processing unit that performs data processing of the execution result.
  • the control method described in this specification includes a step of executing a script including a command for accessing a connection target control target device, a step of acquiring the execution result, and a data processing device that performs data processing of the execution result. And a step of transmitting the execution result by a computer.
  • the data processing method described in this specification performs a step of receiving a script execution result including a command for accessing the control target device from a control device connected to the control target device, and performs data processing of the execution result.
  • the process is a method executed by a computer.
  • the control program described in this specification executes a script including a command for accessing a connection target control target apparatus, acquires the execution result, and executes the data processing of the execution result in the data processing apparatus.
  • a program that causes a computer to execute processing Is a program that causes a computer to execute processing.
  • a data processing program described in this specification receives a script execution result including a command for accessing the control target device from a control device connected to the control target device, and performs data processing of the execution result Is a program that causes a computer to execute.
  • the load of control processing and communication processing can be reduced.
  • FIG. 1 is a configuration diagram illustrating an example of a control system.
  • the control system includes a personal computer (PC: “Personal Computer”) 3 that is an example of a data processing device and a sensor device 4.
  • the sensor device 4 includes a control unit 1 that is an example of a control device, and a sensor unit 2 that is an example of the control target device.
  • the sensor unit 2 on which the sensor device 20 is mounted is exemplified as the control target device of the control unit 1, but the present invention is not limited to this and may be a device for other purposes.
  • the sensor device 20 include, but are not limited to, a temperature / humidity meter, a barometer, a nine-axis accelerometer, and the like.
  • the PC 3 and the control unit 1 perform wireless communication using, for example, a wireless LAN (Local Area Network), but are not limited thereto, and may perform wired communication via a LAN cable or the like.
  • the control unit 1 is, for example, a microcomputer, and is connected to the sensor unit 2 via a cable 9. Data input / output is performed between the control unit 1 and the sensor unit 2 via a bus, for example, in accordance with an I2C interface.
  • FIG. 1 shows the flow of operations of the PC 3 and the control unit 1.
  • the PC 3 transmits a script describing the device driver of the sensor device 20 to the control unit 1 (reference SQ1). If a script is used, the device driver can be easily updated regardless of the type of microcomputer without requiring a development environment or special tools.
  • the script may be created by the user using the PC 3, or may be created by another device and stored in the PC 3.
  • the script is composed of, for example, a command sequence to which an index (# 1, # 2, # 3,...) Is assigned, a write data sequence, and a processing data sequence, as indicated by a symbol d.
  • the index is represented by a number that increases with time.
  • command CMDs in index units are arranged.
  • index-based write data W_DT is arranged
  • index-unit processed data P_DT is arranged.
  • the command CMD indicates processing executed by the control unit 1 for the sensor device 20.
  • the write data W_DT data is data written to the sensor device 20.
  • the processing data P_DT is data for processing the data read from the sensor device 20 and checking the flag.
  • the command string includes, for example, a command CMD for accessing the sensor device 20.
  • processing executed by the command string for example, data writing to and reading from the sensor device 20, processing after reading data from the sensor device 20, processing and writing to the sensor device 20 (hereinafter referred to as “ReadModifyWrite processing”) ) And standby processing.
  • the ReadModifyWrite process is used, for example, to change settings such as the operation mode and measurement range of the sensor device 20.
  • the standby process is used when the sensor device 20 is instructed to start measurement and waits until measurement data can be read out.
  • the waiting process includes a process of waiting for a time corresponding to the sensor device 20, repeating a flag check until a specific flag of the sensor device 20 is set, and repeating the request until a permission response to a data read request is obtained. included. That is, the standby process is realized by a command CMD that waits for a response from the sensor device 20.
  • commands CMD are used for the above processing.
  • the command CMD indicating the writing of data to the sensor device 20, reading, processing of the read data and flag check, waiting for a specified time, branch processing, conditional branch processing, and script execution end are used.
  • a command CMD that makes script execution more efficient, or a command CMD necessary for the standard of the sensor device 20 may be used.
  • control unit 1 When the control unit 1 receives a script from the PC 3, it stores it in the ROM. When a predetermined event occurs, the control unit 1 executes a script (see symbol SQ2). Thereby, data is input and output between the control unit 1 and the sensor device 20.
  • the control unit 1 acquires measurement data from the sensor device 20 as a script execution result (reference SQ3) and transmits it to the PC 3 (reference SQ4).
  • the PC 3 performs data processing such as conversion and correction of the measurement data (reference SQ5).
  • the PC 3 displays or analyzes the processed data on a display or the like using a predetermined application (reference SQ6).
  • the transmission of the script to the control unit 1 and the data processing of the measurement data are performed by the same PC 3, but may be performed by different PCs 3. Moreover, it replaces with PC3 and a smart phone and a server may be used so that it may mention later.
  • control unit 1 stores and executes a script including a command for accessing the sensor device 20, and transmits measurement data to the PC 3 as the execution result.
  • the PC 3 performs data processing such as measurement data conversion and correction.
  • control unit 1 since the control unit 1 does not need to perform data processing of measurement data, the control processing executed by the script is limited, and the script is simplified. Therefore, the control unit 1 reduces the load of control processing.
  • the PC 3 receives measurement data from the control unit 1 and performs data processing, but access to the sensor device 20 is performed by the control unit 1 that executes a script. For this reason, since it is not necessary for the PC 3 to transmit data write and read commands to the sensor device 20 to the control unit 1, the frequency of communication between the PC 3 and the control unit 1 is lower than when command transmission is performed. Reduced. Therefore, the control unit 1 reduces the load of communication processing with the PC 3.
  • the control unit 1 can effectively reduce the load of the communication process with the PC 3.
  • FIG. 2 is a configuration diagram illustrating an example of the control unit 1.
  • the control unit 1 includes a CPU (Central Processing Unit) 10, a ROM (Read Only Memory) 11, a RAM (Random Access Memory) 12, a communication module 14, and a hardware interface (hardware INF) unit 15.
  • the CPU 10 is connected to the ROM 11, the RAM 12, the communication module 14, and the hardware INF unit 15 via the bus 19 so that signals can be input and output with each other.
  • the communication module 14 is a wireless LAN card, for example, and performs wireless communication by linking with the PC 3.
  • the hardware INF unit 15 is connected to the sensor device 20 via a cable and inputs / outputs data to / from the sensor device 20.
  • the ROM 11 stores a program for driving the CPU 10.
  • the RAM 12 functions as a working memory for the CPU 10.
  • the ROM 11 is an example of a storage unit, and stores a control program 110, a script processing program 111, a communication driver 112, and a script 113.
  • the control program 110, the script processing program 111, and the communication driver 112 are an example of a control program that executes a control method of the sensor device 20.
  • the control program 110 controls the operation of the control unit 1.
  • the script processing program 111 interprets and processes the script 113 in the ROM 11 into a binary code.
  • the communication driver 112 controls communication by the communication module 14.
  • the script 113 is transmitted from the PC 3.
  • the communication processing unit 100 corresponds to the communication driver 112 in the ROM 11
  • the script processing unit 102 corresponds to the script processing program 111 in the ROM 11.
  • the control unit 103 corresponds to the control program 110 in the ROM 11.
  • the script processing unit 102 and the communication processing unit 100 operate under the control of the control unit 103.
  • the communication processing unit 100 When the communication processing unit 100 receives the script 113 from the PC 3 via the communication module 14, the communication processing unit 100 transfers the script 113 to the control unit 103.
  • the control unit 103 stores the script 113 in the ROM 11.
  • the script 113 in the ROM 11 is stored in an area corresponding to the type.
  • Reference numeral 113 a indicates the configuration of the storage area of the script 113 in the ROM 11.
  • the storage area of the script 113 is divided into an initialization script storage area in which an initialization script is stored, a storage area in which a sensing script is stored, and an arbitrary execution script storage area in which an arbitrary execution script is stored.
  • a set of the command CMD, the write data W_DT, and the process data P_DT shown in FIG. 1 is written.
  • the initialization script executes initial setting of the sensor device 20 when the sensor device 4 is activated.
  • the start of the initialization script storage area is set to offset address + 0xAA in the ROM 11. Therefore, when executing the initialization script, the script processing unit 102 starts reading the script 113 from the offset address + 0xAA.
  • the sensing script instructs the sensor device 20 to perform measurement and acquires measurement data from the sensor device 20.
  • the top of the sensing script storage area is set to offset address + 0xBB in the ROM 11. Therefore, the script processing unit 102 starts reading the script 113 from the offset address + 0xBB when executing the sensing script.
  • the arbitrary execution script is executed at an arbitrary timing based on an instruction from the PC 3.
  • Examples of the process executed by the arbitrary execution script include a calibration process for acquiring correction information unique to the sensor device 20, but the process is not limited to this.
  • the head of the arbitrary execution script storage area is set to the offset address in ROM 11 + 0xCC. Therefore, the script processing unit 102 starts reading the script 113 from the offset address + 0xCC when executing the arbitrary execution script.
  • the script 113 is stored in the storage area in the ROM 11 for each type according to its use. Therefore, when transmitting the script 113, the PC 3 designates the type of the script 113 via the API to the control unit 1.
  • FIG. 3 shows an example of an API command.
  • the API command “SendScript” is used to transmit the script 113 from the PC 3 to the control unit 1.
  • the arguments of “SendScript” include category, type, size, and data.
  • the category specifies the type of script 113 to be transmitted among the initialization script, sensing script, and arbitrary execution script.
  • the arbitrary execution script is not limited to one type, and there may be a plurality of types.
  • the type specifies a transmission target among the command CMD, the write data W_DT, and the processing data P_DT.
  • the size indicates the size of the data, and the data is any one of command CMD, write data W_DT, and processing data P_DT.
  • the API command “RunScript” instructs execution of an arbitrary execution script.
  • the type of arbitrary execution script to be executed can be specified by the identification information.
  • control unit 103 identifies the type of the script 113 received from the PC 3 by the API command, and stores the script 113 in the storage area in the ROM 11 corresponding to the type.
  • control unit 103 instructs the script processing unit 102 to execute the script 113 to be executed.
  • the script processing unit 102 When the script processing unit 102 receives an instruction to execute the script 113, the script processing unit 102 reads the script 113 from the corresponding storage area in the ROM 11, interprets it as a binary code, and executes it. In the case of a sensing script, the script processing unit 102 writes and reads data to and from the sensor device 20 via the hardware INF unit 15.
  • the sensing script includes not only a read / write command but also a standby process command and a ReadModifyWrite process command as described above.
  • the script processing unit 102 executes the sensing script, measurement data is input from the sensor device 20 via the hardware INF unit 15 as the execution result.
  • the script processing unit 102 secures a reading buffer 120 in the RAM 12 for storing data such as measurement data read from the sensor device 20.
  • the control unit 103 reads out the data stored in the reading buffer 120 and outputs it to the communication processing unit 100.
  • the communication processing unit 100 transmits data to the PC 3 via the communication module 14.
  • the size of the read buffer 120 may be set by the script processing unit 102 calculating the necessary amount and adding it to the script information, or the control unit 103 reserves a predetermined maximum capacity in the RAM 12. May be. When securing the read buffer 120 for the maximum capacity, the control unit 103 stops the execution of the script 113 or discards the data when data exceeding the maximum capacity is read.
  • control unit 103 secures a work area 121, an index data area 122, and an auxiliary data area 123 in the RAM 12.
  • the work area 121 is a work area when the script 113 is executed
  • the index data area 122 is a data storage area indicating a command index
  • the auxiliary data area 123 is an auxiliary data storage area when executing the command. It is.
  • the control unit 103 executes the sensing script by the script processing unit 102, reads the measurement data as the execution result, and acquires it from the buffer 120.
  • the communication processing unit 100 is an example of a transmission unit, and transmits measurement data to the PC 3.
  • FIG. 4 is a configuration diagram illustrating an example of the PC 3.
  • the PC 3 includes a CPU 30, a ROM 31, a RAM 32, an HDD (Hard Disk Drive) 33, a communication module 34, an input device 35, and an output device 36.
  • the CPU 30 is connected to a ROM 31, a RAM 32, an HDD 33, a communication module 34, an input device 35, and an output device 36 via a bus 39 so that signals can be input and output with each other.
  • the ROM 31 stores a program that drives the CPU 30.
  • the program includes a data processing program for executing a data processing method for performing data processing of measurement data of the sensor device 4 in addition to an OS (Operating System) for operating the PC 3.
  • the RAM 32 functions as a working memory for the CPU 30.
  • the communication module 34 is a wireless LAN card, for example, and performs wireless communication by linking with the control unit 1.
  • the input device 35 is a device for inputting information to the PC 3. Examples of the input device 35 include a keyboard, a mouse, and a touch panel. The input device 35 outputs the input information to the CPU 30 via the bus 39.
  • the output device 36 is a device that outputs information of the PC 3. Examples of the output device 36 include a display, a touch panel, and a printer. The output device 36 acquires information from the CPU 30 via the bus 39 and outputs the information.
  • the HDD 33 stores a script 330, calibration data 331, and measurement data 332.
  • the management unit 300 manages the sensor device 4.
  • the communication processing unit 301, the data processing unit 302, and the APL unit 303 operate under the control of the management unit 300.
  • the communication processing unit 301 controls the communication module 34.
  • the communication processing unit 301 performs communication with the control unit 1 of the sensor device 4 in accordance with an instruction from the management unit 300.
  • the management unit 300 reads out the script 330 stored in the HDD 33 and transmits it to the control unit 1 prior to execution of the script.
  • the communication processing unit 301 transmits, for example, a script 330 to the control unit 1 via the communication module 34 as an example of a transmission unit.
  • the transmission of the script 330 is performed by an API command such as “SendScript” shown in FIG.
  • the management unit 300 instructs the control unit 1 to execute various scripts.
  • the execution instruction is issued by an API command such as “RunScript” shown in FIG.
  • the management unit 300 instructs execution of an arbitrary execution script and a sensing script. Note that the initialization script is executed when the control unit 1 is started, regardless of the instruction of the management unit 300.
  • the arbitrary execution script is used for calibration processing, for example.
  • the management unit 300 instructs execution of an arbitrary execution script for calibration processing
  • the management unit 300 acquires calibration data 331 from the control unit 1 as an execution result.
  • the calibration data 331 includes a correction coefficient of the sensor device 20 and the like.
  • the management unit 300 stores the acquired calibration data 331 stored in the HDD 33.
  • the management unit 300 instructs the execution of the sensing script after the execution of the arbitrary execution script. Thereby, the management unit 300 acquires the measurement data 332 from the control unit 1 and stores it in the HDD 33 as the execution result of the sensing script. At this time, the communication processing unit 301 receives the measurement data 332 from the control unit 1 via the communication module 34 as an example of a receiving unit. The management unit 300 instructs the data processing unit 302 to process measurement data.
  • the data processing unit 302 reads the measurement data 332 from the HDD 33 and processes it according to the instruction of the management unit 300. Examples of data processing include, but are not limited to, conversion processing and correction processing of measurement data 332. For example, the data processing unit 302 performs data processing based on calibration data 331 stored in the HDD 33. After completing the data processing of the measurement data 332, the management unit 300 instructs the APL unit 303 to perform the processing.
  • the APL unit 303 analyzes and displays the measurement data 332 data processed by the data processing unit 302. When displaying the measurement data 332, the APL unit 303 outputs the measurement data 332 to the output device 36 in a predetermined format.
  • the data processing unit 302 performs data processing on the measurement data 332 received from the control unit 1. For this reason, the control unit 1 saves the data processing load of the measurement data. Further, since the PC 3 does not individually instruct the control unit 1 to access the sensor device 20, that is, to execute data write and read commands, the load of communication processing between the PC 3 and the control unit 1 is reduced. The This prevents communication congestion, processing delay, increase in power consumption, and the like between the PC 3 and the control unit 1.
  • the PC 3 transmits the script 330 to the control unit 1 as well as data processing. For this reason, it is not necessary to provide a device for transmitting the script 330 separately from the PC 3 for data processing, and the scale of the control system can be reduced.
  • FIG. 5 is a flowchart showing an example of the control program 110.
  • the control program 110 is executed when the control unit 1 is activated.
  • the control unit 103 initializes the communication module 14 (step St1). Next, the control unit 103 refers to the offset address + 0xAA in the ROM 11 and determines whether or not the initialization script has been stored (step St2). When the initialization script has been stored (Yes in step St2), the control unit 103 executes the initialization script (step St3). When the initialization script is not stored (No in step St2), the control unit 103 executes the process in the next step St4.
  • control unit 103 connects to the PC 3 through the communication module 14 (step St4).
  • control unit 103 determines whether a script is received from the PC 3 (step St5).
  • the control unit 103 stores the script in the ROM 11 (step St10). If the script has not been received (No in step St5), the process in step St6 is executed next.
  • control unit 103 executes standby processing in preparation for the occurrence of an event (step St6).
  • the event is, for example, a sensing script or arbitrary execution script execution instruction from the PC 3 or a script reception.
  • the control unit 1 may periodically and spontaneously generate an execution event.
  • the control unit 103 When the control unit 103 receives a sensing script execution instruction, that is, when a sensing event occurs (Yes in step St7), the control unit 103 refers to the offset address + 0xBB in the ROM 11 to determine whether or not the sensing script has been stored. (Step St8). When the sensing script has been stored (Yes in step St8), the control unit 103 executes the sensing script (step St9). When the sensing script is not stored (No in step St8), the control unit 103 executes the process in step St5 again.
  • step St7 the control unit 103 determines whether or not an arbitrary execution event has occurred (step St11).
  • the arbitrary execution event is, for example, an instruction to execute an arbitrary execution script for calibration processing from the PC 3. If an arbitrary execution event has not occurred (No in step St11), the process in step St5 is executed again.
  • step St11 When the arbitrary execution event occurs (Yes in step St11), the control unit 103 refers to the offset address + 0xCC in the ROM 11 and determines whether the arbitrary execution script has been stored (step St12). When the arbitrary execution script has been stored (Yes in step St12), the control unit 103 executes the arbitrary execution script (step St13). Thereafter, the process of step St5 is executed again. When the arbitrary execution script is not stored (No in Step St12), the control unit 103 executes the process in Step St5 again. In this way, the control program 110 operates.
  • FIG. 6 is a flowchart showing an example of the script processing program 111.
  • the script processing program 111 is executed at the time of startup or when the above event occurs.
  • step St23 If the acquired command CMD is not an end command (No in step St23), the script processing unit 102 executes the command CMD (step St24). Next, the script processing unit 102 determines whether or not the acquired command CMD is a branch command (step St25).
  • step St25 If the acquired command CMD is a branch command (Yes in step St25), the script processing unit 102 adds 1 to the variable i (step St26). Thereafter, the process of step St22 is executed again.
  • step St25 If the acquired command CMD is not a branch command (No in step St25), the script processing unit 102 executes the process in step St22 again. In this way, the script processing program 111 is executed.
  • FIG. 7 is a sequence diagram showing an example of the startup process.
  • the PC 3 is activated (reference SQ101), and the control unit 1 is activated (reference SQ201).
  • the control unit 1 cannot execute the initialization script.
  • the PC 3 and the control unit 1 are connected by the respective communication modules 14 and 34.
  • the management unit 300 of the PC 3 reads the script stored in the HDD 33 and transmits it to the control unit 1 by the communication processing unit 301 (reference SQ102).
  • the control unit 1 receives the script and stores it in the ROM 11 (reference SQ202).
  • the control unit 1 identifies the script type from the argument “category” of the “SendScript” command, and stores the script in the storage area in the ROM 11 according to the script type.
  • the PC 3 instructs the control unit 1 to restart (reference SQ103).
  • the control unit 1 is restarted in response to the restart instruction (reference SQ203).
  • control unit 103 of the control unit 1 executes an initialization script by the script processing unit 102 (reference SQ204). Even when a plurality of sensor devices 20 are provided in the sensor device 4, the plurality of sensor devices 20 are initialized by one initialization script. The initialization script is automatically executed when the control unit 1 is activated.
  • the script processing unit 102 issues a read command to the sensor device 20 (reference numeral SC1).
  • the sensor device 20 reads data in response to the read command (reference SQ301).
  • the script processing unit 102 acquires data input from the control unit 1 (reference numeral SC2).
  • the script processing unit 102 changes the content (for example, flag setting) of the read data (reference SC3).
  • the script processing unit 102 issues a write command to the sensor device 20 (reference numeral SC4).
  • the script processing unit 102 outputs the changed data to the sensor device 20 (reference SC5).
  • the sensor device 20 writes data input from the script processing unit 102 (reference SQ302).
  • the script processing unit 102 issues an end command (reference SC6).
  • Control unit 1 connects to PC 3 after executing the initialization script. In this way, the startup process is executed.
  • FIG. 8 is a sequence diagram showing an example of the calibration process.
  • the management unit 300 of the PC 3 instructs the control unit 1 to perform a calibration process (reference SQ111).
  • a correction coefficient obtained from a calibration result at the time of shipment is written. For this reason, the PC 3 acquires a correction coefficient in advance for the correction process of the measurement data.
  • Control unit 1 is executing an event standby process (reference SQ211), and receives an instruction for a calibration process from PC 3, and detects an arbitrary execution event (reference SQ212). Next, the control unit 103 of the control unit 1 executes an arbitrary execution script by the script processing unit 102 (reference SQ213).
  • the sensor device 20 that is an execution target of the arbitrary execution script can be specified by an ID or the like.
  • the script processing unit 102 issues a correction coefficient request command to the sensor device 20 (reference SC11).
  • the sensor device 20 reads the correction coefficient in response to the correction coefficient request command (reference SQ311).
  • the script processing unit 102 receives a correction coefficient from the sensor device 20 (reference numeral SC12).
  • the script processing unit 102 issues an end command (reference SC13).
  • control unit 1 transmits a correction coefficient to the PC 3 as an execution result of the arbitrary execution script (reference SQ214). Thereafter, the control unit 1 performs an event standby process (reference SQ215).
  • the management unit 300 of the PC 3 receives the correction coefficient from the control unit 1 (reference SQ112). Next, the management unit 300 stores the correction coefficient as calibration data 331 in the HDD 33 (reference SQ113). In this way, the calibration process is executed.
  • FIG. 9 is a sequence diagram illustrating an example of a measurement process. After executing the calibration process, the management unit 300 of the PC 3 instructs the control unit 1 to perform the measurement process (reference SQ121).
  • control unit 1 When the control unit 1 is executing an event standby process (reference SQ221) and receives an instruction for a measurement process from the PC 3, it detects a sensing event (reference SQ222). Next, the control unit 103 of the control unit 1 executes a sensing script by the script processing unit 102 (reference SQ223).
  • the sensor device 20 that is the execution target of the sensing script can be specified by an ID or the like.
  • the script processing unit 102 issues a measurement open command for instructing the sensor device 20 to start measurement (reference SC21).
  • the sensor device 20 performs measurement in response to the measurement start command (reference SQ321).
  • the script processing unit 102 waits for a predetermined time (for example, 10 (ms)) after issuing the measurement start command (reference SC22). This standby time is determined based on the time until the measurement data of the sensor device 20 can be read.
  • a predetermined time for example, 10 (ms)
  • the script processing unit 102 issues a measurement data request command to the sensor device 20 (reference SC23).
  • the sensor device 20 reads the measurement data in response to the measurement data request command (reference SQ321).
  • the sensor device 20 reads the measurement data # 1 and # 2 and outputs them to the control unit 1.
  • the script processing unit 102 receives the measurement data # 1 (reference SC24) and the measurement data # 2 (reference SC25). Next, the script processing unit 102 issues an end command (reference numeral SC26).
  • control unit 103 stores the measurement data # 1 and # 2 in the read buffer 120 in the RAM 12 (reference SQ223a). That is, the control unit 103 acquires the measurement data # 1 and # 2 using the sensing script as an execution result.
  • the control unit 1 transmits the measurement data # 1 and # 2 in the RAM 12 to the PC 3 by the communication module 14 (reference SQ224). Thereafter, the control unit 103 of the control unit 1 performs event standby processing (reference SQ225).
  • the PC 3 receives the measurement data # 1 and # 2 from the control unit 1 through the communication module 34 (reference SQ122). Next, the PC 3 performs data processing of the measurement data # 1 and # 2 by the data processing unit 302 (reference SQ123). In this way, the measurement process is executed.
  • control unit 1 executes a sensing script including a command for accessing the sensor device 20, and acquires measurement data # 1 and # 2 as the execution result.
  • the PC 3 receives the measurement data # 1 and # 2, and performs reception processing of the measurement data # 1 and # 2.
  • FIG. 10 is a sequence diagram showing a comparative example of measurement processing.
  • the PC 3 transmits a measurement start command to the control unit 1 (reference SQ121a).
  • the control unit 1 transfers a measurement start command to the sensor device 20.
  • the sensor device 20 performs measurement in response to the measurement start command (reference SQ321a).
  • the PC 3 waits for a predetermined time after issuing the measurement start command, and transmits a measurement data request command for the sensor device 20 to the control unit 1 (reference SQ122a).
  • the control unit 1 transfers the measurement data request command to the sensor device 20.
  • the sensor device 20 reads the measurement data # 1 and # 2 in response to the measurement data request command (reference SQ322a).
  • the sensor device 20 outputs measurement data # 1 and # 2 to the control unit 1.
  • control unit 1 transmits measurement data # 1 and # 2 to the PC 3.
  • the PC 3 receives the measurement data # 1 and # 2 from the control unit 1 (reference SQ123a).
  • the PC 3 performs data processing of the measurement data # 1 and # 2 (reference SQ124a).
  • the PC 3 individually transmits a measurement start command and a measurement data request command to the control unit 1. For this reason, the communication frequency of PC3 and the control unit 1 increases from the case of an Example.
  • the PC 3 transmits the measurement start command and transmits the measurement data request command 10 (ms) later. Even so, there is no guarantee that the transmission interval of the measurement start command and the measurement data request command to the sensor device 20 will be 10 (ms).
  • the sensor device 20 may transition to an unexpected state that cannot be recovered if the process proceeds without performing a communication error handling process. I can think. Such a state transition may also occur when commands are executed in an order different from the original order due to communication delay.
  • control unit 1 returns a response each time it receives a command from the PC 3, the command is surely executed in a predetermined sequence, so that the state transition as described above can be prevented.
  • the communication frequency increases due to the reply of the response, but also the communication error and delay of the response itself must be taken into account, so that the sequence becomes complicated.
  • the PC 3 since the PC 3 only transmits a script execution instruction to the control unit 1 and receives only the measurement data from the control unit 1, even if a communication error occurs, the instruction and the measurement data Is not received, and the control of the sensor device 20 itself is not affected. Furthermore, even if the instruction or measurement data is not received due to a communication error, it can be reliably received by the retransmission process.
  • wired communication via a cable is performed between the control unit 1 and the sensor device 20, compared with communication between the PC 3 and the control unit 1, it is a short-range communication and a communication speed is also slow. The effects of communication error, power consumption, and delay are extremely small.
  • the load of communication processing can be reduced as compared with the example of FIG.
  • FIG. 11 is a sequence diagram showing another example of the measurement process.
  • processes that are the same as those in FIG. 9 are given the same reference numerals, and descriptions thereof are omitted.
  • control unit 1 When the control unit 1 is waiting for an event (reference SQ221) and receives an instruction to start measurement from the PC 3, it starts a measurement cycle timer (reference SQ221a).
  • the measurement cycle timer is formed in the control unit 103, for example, and counts a predetermined measurement cycle.
  • the control unit 103 detects the arrival of the measurement cycle as an event.
  • control unit 1 When the control unit 1 detects the event of the arrival of the measurement period (reference SQ221b), it executes the sensing script (reference SQ223). The processing content of the sensing script is as described above.
  • the control unit 1 stores the measurement data # 1 and # 2 in the RAM 12 (reference SQ223a) and transmits it to the PC 3 (reference SQ224).
  • the PC 3 receives the measurement data # 1 and # 2 (reference SQ122) and performs data processing (reference SQ123).
  • the arrival event of the measurement period is detected every period T of the measurement period. For this reason, the control unit 1 can repeatedly execute the measurement process after the period T without receiving an instruction from the PC 3. For this reason, the load of communication processing between the PC 3 and the control unit 1 is reduced.
  • the PC 3 transmits a script to the control unit 1 and receives measurement data from the control unit 1, but the present invention is not limited to this.
  • FIG. 12 is a block diagram showing another example of the control system.
  • the control system includes a server 60, a gateway device 7, and a sensor device 4.
  • the server 60 is another example of the data processing apparatus, and is connected to a network NW such as the Internet.
  • the gateway device 7 is connected to the sensor device 4 via wireless communication, and is connected to the network NW.
  • the gateway device 7 relays communication between the server 60 and the sensor device 4.
  • the server 60 has the same function as the PC 3 described above.
  • the server 60 communicates with the sensor device 4 via the network NW. That is, the server 60 transmits a script to the control unit 1, receives measurement data from the control unit 1, and processes the data.
  • the server 60 includes a cloud server, but is not limited to this.
  • the network NW is the Internet
  • the PC 3 has an Internet connection function, and can be used for relaying communication instead of the gateway device 7.
  • a device that transmits a script to the control unit 1 and a device that receives measurement data from the control unit 1 and processes the data may be provided separately.
  • FIG. 13 is a block diagram showing another example of the control system.
  • the same reference numerals are given to configurations common to FIG. 12, and description thereof is omitted.
  • the control system includes a server 61, a gateway device 7, a sensor device 4, and a PC 3a.
  • the server 61 is another example of the data processing apparatus, and is connected to a network NW such as the Internet.
  • NW such as the Internet.
  • the sensor device 4 communicates wirelessly with the gateway device 7 or the PC 3a.
  • the PC 3a transmits a script to the control unit 1 of the sensor device 4 in the same manner as the PC 3 described above.
  • the control unit 1 stores the script received from the PC 3a
  • the sensor device 4 switches the communication partner of the wireless communication from the PC 3a to the gateway device 7 by an arbitrary method.
  • the server 61 instructs the sensor device 4 to execute a script via the network NW.
  • the control unit 1 executes the script
  • the sensor device 4 transmits measurement data to the server 61 as the execution result.
  • the server 61 is a data processing device and performs data processing of measurement data.
  • This configuration allows script creation and measurement data processing at different locations.
  • processing functions described above can be realized by a computer.
  • a program describing the processing contents of the functions that the processing apparatus should have is provided.
  • the program describing the processing contents can be recorded on a computer-readable recording medium (except for a carrier wave).
  • the program When the program is distributed, for example, it is sold in the form of a portable recording medium such as a DVD (Digital Versatile Disc) or CD-ROM (Compact Disc Read Only Memory) on which the program is recorded. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
  • a portable recording medium such as a DVD (Digital Versatile Disc) or CD-ROM (Compact Disc Read Only Memory) on which the program is recorded. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.
  • the computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Debugging And Monitoring (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

L'invention concerne un dispositif de commande connecté à un dispositif devant être commandé, le dispositif de commande comprenant : une unité de stockage stockant un script qui inclut des commandes pour accéder au dispositif devant être commandé ; une unité de commande qui exécute un script et acquiert le résultat d'exécution ; et une unité de transmission qui transmet le résultat d'exécution à un dispositif de traitement de données qui effectue un traitement de données sur le résultat d'exécution.
PCT/JP2016/057558 2016-03-10 2016-03-10 Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données WO2017154166A1 (fr)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2016/057558 WO2017154166A1 (fr) 2016-03-10 2016-03-10 Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données
JP2018503941A JP6587031B2 (ja) 2016-03-10 2016-03-10 制御装置、データ処理装置、制御システム、制御方法、データ処理方法、制御プログラム、及びデータ処理プログラム
TW105136400A TWI631442B (zh) 2016-03-10 2016-11-09 控制裝置、資料處理裝置、控制系統、控制方法、資料處理方法、控制程式及資料處理程式

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/057558 WO2017154166A1 (fr) 2016-03-10 2016-03-10 Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données

Publications (1)

Publication Number Publication Date
WO2017154166A1 true WO2017154166A1 (fr) 2017-09-14

Family

ID=59789232

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/057558 WO2017154166A1 (fr) 2016-03-10 2016-03-10 Dispositif de commande, dispositif de traitement de données, système de commande, procédé de commande, procédé de traitement de données, programme de commande et programme de traitement de données

Country Status (3)

Country Link
JP (1) JP6587031B2 (fr)
TW (1) TWI631442B (fr)
WO (1) WO2017154166A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019244751A1 (fr) * 2018-06-19 2019-12-26 Jig-Saw株式会社 Procédé de commande de dispositif, appareil de commande, et système
JP2021157751A (ja) * 2020-03-30 2021-10-07 ブラザー工業株式会社 制御装置及び端末の制御方法、制御装置、プログラム、及び記憶媒体
GB2616069A (en) * 2022-02-28 2023-08-30 Vodafone Group Services Ltd A method and device for reading data from a sensor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002082703A (ja) * 2000-09-07 2002-03-22 Ryosuke Hosoya 媒体搬送系を持つ機器、およびその制御方法ならびに装置
JP2005130033A (ja) * 2003-10-21 2005-05-19 Ipsquare Inc 監視システム、制御装置、及び撮像装置
JP2006344017A (ja) * 2005-06-09 2006-12-21 Hitachi Ltd センサネットワークシステム及びセンサネットワークのデータ処理方法
JP2009260778A (ja) * 2008-04-18 2009-11-05 Hitachi High-Tech Control Systems Corp センサネットワーク用ゲートウェイ、及びセンサネットワークシステム
JP2010527473A (ja) * 2007-05-02 2010-08-12 シナプス ワイヤレス,インコーポレーテッド センサネットワークのノードの作用を動的に構成するシステムおよび方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200416508A (en) * 2003-02-25 2004-09-01 Chung Shan Inst Of Science A real-time control system using web technology to implement Computer Numerical Controller and method thereof
WO2015162793A1 (fr) * 2014-04-25 2015-10-29 三菱電機株式会社 Contrôleur logique programmable

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002082703A (ja) * 2000-09-07 2002-03-22 Ryosuke Hosoya 媒体搬送系を持つ機器、およびその制御方法ならびに装置
JP2005130033A (ja) * 2003-10-21 2005-05-19 Ipsquare Inc 監視システム、制御装置、及び撮像装置
JP2006344017A (ja) * 2005-06-09 2006-12-21 Hitachi Ltd センサネットワークシステム及びセンサネットワークのデータ処理方法
JP2010527473A (ja) * 2007-05-02 2010-08-12 シナプス ワイヤレス,インコーポレーテッド センサネットワークのノードの作用を動的に構成するシステムおよび方法
JP2009260778A (ja) * 2008-04-18 2009-11-05 Hitachi High-Tech Control Systems Corp センサネットワーク用ゲートウェイ、及びセンサネットワークシステム

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019244751A1 (fr) * 2018-06-19 2019-12-26 Jig-Saw株式会社 Procédé de commande de dispositif, appareil de commande, et système
JP2019219873A (ja) * 2018-06-19 2019-12-26 Jig−Saw株式会社 機器の制御方法、制御装置及びシステム
CN112470117A (zh) * 2018-06-19 2021-03-09 基索股份有限公司 设备的控制方法、控制装置及系统
US11928453B2 (en) 2018-06-19 2024-03-12 Jig-Saw Inc. Control method, control device, and system
JP2021157751A (ja) * 2020-03-30 2021-10-07 ブラザー工業株式会社 制御装置及び端末の制御方法、制御装置、プログラム、及び記憶媒体
GB2616069A (en) * 2022-02-28 2023-08-30 Vodafone Group Services Ltd A method and device for reading data from a sensor
WO2023161655A1 (fr) * 2022-02-28 2023-08-31 Vodafone Group Services Limited Procédé et dispositif de lecture de données à partir d'un capteur
GB2616069B (en) * 2022-02-28 2024-06-05 Vodafone Group Services Ltd A method and device for reading data from a sensor

Also Published As

Publication number Publication date
JP6587031B2 (ja) 2019-10-09
TW201732477A (zh) 2017-09-16
JPWO2017154166A1 (ja) 2018-10-04
TWI631442B (zh) 2018-08-01

Similar Documents

Publication Publication Date Title
EP3276481B1 (fr) Procédé, terminal, serveur et système de mise en oeuvre de stockage en réseau par mémoire non volatile express (nvme)
JP4669088B1 (ja) 試験装置、試験方法およびプログラム
JP4600518B2 (ja) 情報処理装置、情報処理システム、および情報処理方法、並びにコンピュータ・プログラム
JP6587031B2 (ja) 制御装置、データ処理装置、制御システム、制御方法、データ処理方法、制御プログラム、及びデータ処理プログラム
JP6250842B2 (ja) Usbオーバーipを用いた、別のデバイスとの非usbセンサの共有
CN103823447A (zh) 半导体设备的上下位机的通信方法和通信系统
CN109992556A (zh) 一种i2c驱动方法和装置
US20060184708A1 (en) Host controller device and method
CN111475432B (zh) 一种从机启动控制装置、单总线系统及其控制方法
JP6240136B2 (ja) Plcシステム及びその動作方法
JP4809166B2 (ja) リモートi/oを構成する計算機システム及びi/oデータ転送方法
US20190095359A1 (en) Peripheral device controlling device, operation method thereof, and operation method of peripheral device controlling device driver
JP6035715B2 (ja) コンピュータシステム、情報処理システム、仮想メディア方法、および、プログラム
JP4218034B2 (ja) データ通信システムおよびデータ通信方法、データ通信プログラム
JP2011070259A (ja) データ転送装置及びデータ転送方法
TWI452471B (zh) 用於通用序列匯流排裝置的全雙工控制器與其方法
CN113127399B (zh) 一种通用串列汇流排装置以及存取方法
JP2005085023A (ja) 情報処理システム、リーダライタ及び情報処理方法
KR101985890B1 (ko) 데이터 저장 기능이 포함된 네트워크 인터페이스 컨트롤러 및 그것을 포함하는 컴퓨팅 장치
JP2000132507A (ja) Scsiプロトコルにおけるコマンド処理方法およびそれに用いる装置
JP4813823B2 (ja) テストシステム及びテスト方法
JP2008299747A (ja) Usbホストシステム及び転送データの転送方法
CN101599003A (zh) 以工作元为数据处理和传送单元的方法及架构
JP6359192B2 (ja) 二重化プロセス制御装置
JP4716929B2 (ja) プログラムデバッグ支援処理装置及び通信用アダプタ並びにプログラムデバッグ支援処理プログラム

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2018503941

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16893495

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893495

Country of ref document: EP

Kind code of ref document: A1