CN109977068B - Inter-board communication method and device and circulating machine core - Google Patents

Inter-board communication method and device and circulating machine core Download PDF

Info

Publication number
CN109977068B
CN109977068B CN201910104320.4A CN201910104320A CN109977068B CN 109977068 B CN109977068 B CN 109977068B CN 201910104320 A CN201910104320 A CN 201910104320A CN 109977068 B CN109977068 B CN 109977068B
Authority
CN
China
Prior art keywords
time slot
module
control module
motion
communication frame
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.)
Active
Application number
CN201910104320.4A
Other languages
Chinese (zh)
Other versions
CN109977068A (en
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.)
GRG Banking Equipment Co Ltd
Original Assignee
GRG Banking Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GRG Banking Equipment Co Ltd filed Critical GRG Banking Equipment Co Ltd
Priority to CN201910104320.4A priority Critical patent/CN109977068B/en
Publication of CN109977068A publication Critical patent/CN109977068A/en
Application granted granted Critical
Publication of CN109977068B publication Critical patent/CN109977068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to an inter-board communication method and device and a circulating machine core. The inter-board communication method comprises the following steps: when the master control module completes handshake and time slot synchronization in a first time slot of a communication frame and receives a control instruction transmitted by the master control module in a second time slot of the communication frame, a motion state control signal is transmitted to the motion module in a third time slot of the communication frame based on the control instruction; and when the working state information of the motion module is acquired in the fourth time slot of the communication frame, processing the working state information in the fifth time slot of the communication frame to obtain a processing result, and transmitting the processing result to the main control module. The method and the device solve the problem that only open-loop control can be performed or closed-loop control can be realized by adding an additional feedback loop when the inter-board communication is realized based on an asynchronous simplex mode, so that the stability of the inter-board communication is improved; meanwhile, the problems of high cost and the like caused by adopting duplex communication are avoided, so that the communication cost between the boards is reduced.

Description

Inter-board communication method and device and circulating machine core
Technical Field
The present application relates to the field of communications, and in particular, to an inter-board communication method, an inter-board communication device, and a cycle core.
Background
With the increasingly diversified functions of communication equipment, in order to meet the requirements of the equipment complexity brought by the functions and configurability and expandability, most of the existing equipment adopts a mode that a master control module and a slave control module work cooperatively, and sends control signals to the slave control module through the master control module, so that the slave control module is utilized to control the operation of the equipment. In the implementation process, the master control module and the slave control module need to transmit signals and data through an inter-board communication method.
At present, the inter-board communication method is based on asynchronous duplex, synchronous duplex or asynchronous simplex to realize the control of the master control module to the slave control module. However, in the implementation process, the inventor finds that at least the following problems exist in the conventional technology: when the communication between the boards is realized based on the duplex communication, the realization mode is complex and more hardware resources are occupied; when the inter-board communication is realized based on the asynchronous simplex mode, only open-loop control can be performed, or closed-loop control can be realized by adding an additional feedback loop, namely the existing inter-board communication method has the problems of poor stability and high cost.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, and a cycle core for inter-board communication with good stability and low cost.
In order to achieve the above object, in one aspect, an embodiment of the present application provides an inter-board communication method implemented from the perspective of a slave control module, including the following steps:
when the master control module completes handshake and time slot synchronization in a first time slot of a communication frame and receives a control instruction transmitted by the master control module in a second time slot of the communication frame, a motion state control signal is transmitted to the motion module in a third time slot of the communication frame based on the control instruction; the motion state control signal is used for indicating the motion module to adjust the working state;
and when the working state information of the motion module is acquired in the fourth time slot of the communication frame, processing the working state information in the fifth time slot of the communication frame to obtain a processing result, and transmitting the processing result to the main control module.
In one embodiment, the method further comprises the following steps:
the communication frame is divided into a first time slot, a second time slot, a third time slot, a fourth time slot, and a fifth time slot.
In one embodiment, the step of acquiring the operating state information of the motion module in the fourth time slot of the communication frame includes:
receiving the working state information transmitted by the feedback module in a fourth time slot;
the step of processing the working status information in the fifth time slot of the communication frame to obtain a processing result and transmitting the processing result to the main control module comprises the following steps:
framing is carried out based on the working state information to obtain a data frame;
and transmitting the data frame to the main control module.
In one embodiment, the operating state information includes the number of banknotes in the moving module, the position of each banknote, and operating data of the moving parts.
On the other hand, an embodiment of the present application further provides an inter-board communication method implemented from the perspective of a master control module, including the following steps:
when the slave control module completes handshake and time slot synchronization in a first time slot of a communication frame, transmitting a control instruction to the slave control module in a second time slot of the communication frame; the control instruction is used for indicating the slave control module to transmit the motion state control signal to the motion module in a third time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state;
receiving a processing result transmitted by the slave control module; the processing result is obtained from the working state information of the motion module, which is processed by the control module in the fifth time slot of the communication frame and acquired in the fourth time slot of the communication frame.
In one aspect, an embodiment of the present application provides an inter-board communication device implemented from a slave control module perspective, including:
the motion state control signal transmission module is used for transmitting a motion state control signal to the motion module in a third time slot of the communication frame based on the control instruction when the handshake and the time slot synchronization are completed in a first time slot of the communication frame and the control instruction transmitted by the main control module is received in a second time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state;
and the processing result transmission module is used for processing the working state information in the fifth time slot of the communication frame to obtain a processing result when the working state information of the motion module is acquired in the fourth time slot of the communication frame, and transmitting the processing result to the main control module.
In one aspect, an embodiment of the present application provides an inter-board communication device implemented from a perspective of a main control module, including:
the control instruction transmission module is used for transmitting a control instruction to the slave control module in a second time slot of the communication frame when the slave control module completes handshake and time slot synchronization in a first time slot of the communication frame;
and the processing result receiving module is used for receiving the processing result transmitted by the slave control module.
On the other hand, the embodiment of the application provides a circulating machine core, which comprises a master control module, a slave control module and a motion module; the master control module is connected with the slave control module, and the slave control module is connected with the motion module;
the slave control module is used for executing the steps of the inter-board communication method implemented by any slave control module;
the master control module is used for any one of the steps of the inter-board communication method implemented by the slave master control module;
the motion module is used for adjusting the working state according to the motion state control signal.
In one embodiment, the system further comprises a feedback module connected with the slave control module;
the feedback module is used for acquiring the working state information and transmitting the working state information to the slave control module in the fourth time slot of the communication frame.
In one embodiment, the motion module includes a moving part; the moving part is connected with the slave control module;
the moving part is used for adjusting the working state based on the moving state control signal.
One of the above technical solutions has the following advantages and beneficial effects:
the single communication link is adopted for communication, corresponding tasks are completed in different time slots of a communication frame, control signals can be transmitted, feedback information can be received, closed-loop control can be realized without adding an additional feedback loop, and the problem that only open-loop control can be performed or closed-loop control can be realized by adding an additional feedback loop when communication between boards is realized based on an asynchronous simplex mode is solved, so that the stability of communication between boards is improved, and the real-time performance of communication between boards is ensured; meanwhile, the simplex communication method is used for the inter-board communication, so that the problems of high cost and the like caused by the adoption of duplex communication are solved, and the inter-board communication cost is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a block diagram of a cycle core based on a conventional asynchronous simplex interplate communication method;
FIG. 2 is a first schematic flow chart diagram of a method of inter-board communication from the perspective of a slave control module in one embodiment;
FIG. 3 is a second schematic flow chart diagram of a method of inter-board communication from the perspective of a slave control module in one embodiment;
FIG. 4 is a diagram of a data frame format in one embodiment;
FIG. 5 is a third schematic flow chart diagram illustrating a method of inter-board communication from the perspective of a slave control module in one embodiment;
FIG. 6 is a schematic diagram of the movement path of a banknote in one embodiment;
FIG. 7 is a schematic flow chart diagram illustrating an inter-board communication method implemented from the perspective of a master control module in one embodiment;
FIG. 8 is a block diagram of an inter-board communication device implemented from the perspective of a slave control module in one embodiment;
FIG. 9 is a block diagram of an inter-board communication device implemented from the perspective of a host module in one embodiment;
figure 10 is a first schematic block diagram of a cycle core in one embodiment;
figure 11 is a second schematic block diagram of the cycle core of one embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are shown in the drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element and be integral therewith, or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
At present, inter-board communication is generally realized in an asynchronous or synchronous manner, so that a master control mechanism can control a slave control module, wherein the inter-board communication can be divided into four types: asynchronous duplex inter-board communication, synchronous simplex inter-board communication, and asynchronous simplex inter-board communication.
Specifically, the asynchronous duplex inter-board communication uses two independent link channels, wherein one link channel is used for transmitting, and the other link channel is used for receiving. The master control module sends a control instruction to the slave control module through the sending link of the master control module so as to realize the control of the slave control module, and receives the execution result and the feedback information returned by the slave control module through the receiving link of the master control module. And the master control mechanism adjusts the control strategy according to the received execution result and the feedback information and transmits a corresponding control instruction to the slave control module, so that closed-loop control is realized.
However, when the asynchronous duplex inter-board communication is used for communication, because two independent link channels need to be established, the cost is high, the inter-board control is asynchronous, and a certain delay exists in the control.
The synchronous duplex inter-board communication also adopts two independent link channels, wherein one link channel is used for transmitting, the other link channel is used for receiving, and meanwhile, a clock synchronization signal is also needed for carrying out communication time slot synchronization on the master control module and the slave control module. After the time slots between the boards are synchronized, the main control module receives the execution result and the feedback information returned by the slave control module through the receiving link of the main control module, and sends a control instruction to the slave control module through the sending link of the main control module according to the received execution result and the feedback information, so that closed-loop control is realized.
However, when the synchronous duplex board is used for communication, because a synchronous clock is needed and two independent link channels are established, and the communication time slots of the master control module and the slave control module are synchronously processed according to the clock synchronization signal, the implementation is complex and the cost is high.
The synchronous simplex interplate communication adopts a single communication link for communication, and needs a clock synchronization signal to carry out communication time slot synchronization on the master control module and the slave control module. After the time slots between the boards are synchronized, the master control module sends a control instruction to the slave control module through the single communication link, and the slave control module executes the control instruction according to the instruction of the control instruction. However, the slave control module cannot return the execution result and the feedback information to the master control module, so that the master control module realizes synchronous open-loop control on the slave control module when the communication is performed by the synchronous simplex inter-board communication method.
However, when communication is performed by using communication between the synchronous simplex boards, synchronous processing of communication time slots of the master control module and the slave control module by a synchronous clock is required, and only open-loop control can be realized, and the stability of control cannot be guaranteed.
The asynchronous simplex interplate communication adopts a single communication link for communication, wherein the master control module sends a control instruction to the slave control module through the single communication link, and cannot receive an execution result and feedback information returned by the slave control module, so that the master control module realizes open-loop control on the slave control module when the communication is carried out through the asynchronous simplex interplate communication method. When asynchronous simplex interplate communication is used for communication, the master control module cannot realize closed-loop control on the slave control module and cannot ensure the stability of control when an additional feedback loop is not added due to the adoption of a single communication channel.
In order to ensure the stability of control, an additional feedback loop is needed to return the execution result and feedback information of the slave control module so as to realize closed-loop control.
As shown in fig. 1, fig. 1 is a block diagram of a cycle core based on a traditional asynchronous simplex interplate communication method, and includes a master control module, a slave control module, a motion detection module, and a banknote information detection module. Specifically, the master control module transmits a control instruction to the slave control module, and the slave control module controls the motion module according to the received control instruction. The motion detection module comprising the sensor and the communication module is arranged on the motion module to detect the motion information of the motion module and transmit the motion information to the main control module through the feedback link 1, and specifically, the motion information may include the motion state and the motion position information of the motion module detected by the photoelectric position sensor and the code disc. In addition, by adding a banknote information detection module, the banknote identification state and the banknote counting information are detected and transmitted to the slave board mechanism, and the slave control module returns to the master control module through a feedback link 2 (communication link). And the master control module transmits a control adjustment instruction to the slave control module according to the received feedback information, so that closed-loop control is realized.
However, when the feedback information is returned by setting an additional feedback loop, a certain delay exists, and the real-time performance cannot be guaranteed.
In summary, if a duplex communication mode is used for inter-board communication, more hardware resources are occupied, the implementation is complex, and the cost is high; if a simplex communication mode is used for communication between boards, although the realization is simple and the cost is low, the stability cannot be ensured. The method and the device can improve the communication stability between the boards and reduce the cost.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 2, there is provided a method of inter-board communication from the perspective of a slave control module, comprising the steps of:
step S202, when the master control module completes handshake and time slot synchronization in the first time slot of the communication frame and receives the control command transmitted by the master control module in the second time slot of the communication frame, the master control module transmits a motion state control signal to the motion module in the third time slot of the communication frame based on the control command.
The motion state control signal is used for indicating the motion module to adjust the working state; the first time slot, the second time slot and the third time slot may all be of different lengths.
Specifically, the slave control module and the master control module can establish communication parameters by completing handshaking in a first time slot of a communication frame and performing communication time slot synchronization by using a clock synchronization signal, and can receive a control instruction sent by the master control module in a second time slot of the communication frame. And the slave control module analyzes the control instruction in the third time slot of the communication frame, and sends a motion state control signal to the motion module based on the analysis result so as to enable the motion module to adjust the working state of the motion module and move according to the indication of the analysis result.
Furthermore, by completing tasks corresponding to the time slots in the first time slot, the second time slot and the third time slot, the communication link can be multiplexed when communication is performed through a single communication link, and the slave control module can transmit or receive information in different time slots and realize transceiving by using the single communication link.
Step S204, when the working state information of the motion module is acquired in the fourth time slot of the communication frame, the working state information is processed in the fifth time slot of the communication frame to obtain a processing result, and the processing result is transmitted to the main control module.
The fourth time slot and the fifth time slot can be different in length; and the first time slot, the second time slot, the third time slot, the fourth time slot and the fifth time slot all have different lengths.
Specifically, the slave control module sends a motion state control signal to the motion module in the third time slot of the communication frame, so that the motion module adjusts the working state of the motion module, after the motion module adjusts the motion module, the working state information of the motion module can be acquired in the fourth time slot of the communication frame, the working state information is packaged and encapsulated in the fifth time slot of the communication frame, and the processing result is transmitted to the master control module through the communication link.
Furthermore, the working state information is transmitted from the slave control module to the master control module, so that the master control module can know the working state of the motion module, and the control strategy can be adjusted in time according to the working state of the motion module. The slave control module can receive a corresponding control instruction transmitted by the master control module in the second time slot of the next communication frame, and instruct the motion module to adjust the working state through the motion state control signal so as to accord with the adjusted control strategy, thereby realizing that the working state information returns to the master control module through the slave control module, and the master control module adjusts according to the controlled output (namely the working state information) so as to realize closed-loop control.
In a specific embodiment, the method further comprises the steps of:
the communication frame is divided into a first time slot, a second time slot, a third time slot, a fourth time slot, and a fifth time slot.
Specifically, the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot may have different lengths, that is, the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot may be time slots with different lengths, respectively. In practical applications, the length of each timeslot can be configured according to design requirements and practical situations, so as to improve the efficiency of inter-board communication.
Further, the communication interval may be 1 millisecond, i.e., the time interval from the end of the last communication frame to the start of the current communication frame may be 1 millisecond. It should be noted that the time interval between communication frames can be configured according to design requirements and practical situations.
In the inter-board communication method, the single communication link is adopted for communication, corresponding tasks are completed in different time slots of a communication frame, control signals can be transmitted, feedback information can be received, closed-loop control can be realized without adding an additional feedback loop, and the problem that only open-loop control can be performed or closed-loop control can be realized by adding an additional feedback loop when the inter-board communication is realized based on an asynchronous simplex mode is solved, so that the stability of the inter-board communication is improved, and the real-time performance of the inter-board communication is ensured; meanwhile, the simplex communication method is used for the inter-board communication, so that the problems of high cost and the like caused by the adoption of duplex communication are solved, and the inter-board communication cost is reduced.
In one embodiment, as shown in fig. 3, there is provided a method of inter-board communication from the perspective of a slave control module, comprising the steps of:
step S302, when the master control module completes handshake and time slot synchronization in the first time slot of the communication frame and receives the control command transmitted by the master control module in the second time slot of the communication frame, the master control module transmits a motion state control signal to the motion module in the third time slot of the communication frame based on the control command.
The motion state control signal is used for indicating the motion module to adjust the working state; the first time slot, the second time slot and the third time slot can be different in length; the motion module can comprise a plurality of motion parts; the moving part may be a stepper motor.
Specifically, the slave control module and the master control module can establish communication parameters by completing handshaking in a first time slot of a communication frame and performing communication time slot synchronization by using a clock synchronization signal, and can receive a control instruction sent by the master control module in a second time slot of the communication frame. And the slave control module analyzes the control instruction in the third time slot of the communication frame, and sends a motion state control signal to the motion module based on the analysis result so as to enable the motion module to adjust the working state of the motion module and move according to the indication of the analysis result.
Step S304, in the fourth time slot, receiving the working state information transmitted by the feedback module.
In a particular embodiment, the operating status information includes the number of banknotes in the moving module, the position of each banknote, and the operating data of the moving parts.
The feedback module can comprise an infrared sensor and a photoelectric position sensor; the motion module can control the motion track of the bank note; the position of each banknote may include position information of the banknote in the motion module, and position information of the banknote in each track (i.e. channel); the operating data of the moving part may reflect the operating state of the moving part.
Specifically, the motion state of the banknote in the channel and the motion track of the banknote can be acquired through the infrared sensor, wherein the motion state of the banknote in the channel can comprise the number of banknotes in the motion module and the position of each banknote. Through the photoelectric position sensor, the working data of the stepping motor can be obtained, wherein the working data of the stepping motor can comprise the rotating speed of the stepping motor and the working state of the stepping motor. The slave control module receives the working state information transmitted by the feedback module, so that the working parameters (such as the rotating speed) of the stepping motor and whether the stepping motor is in the working state can be known.
It should be noted that the working data of the moving component is not limited to only include the rotation speed of the stepping motor (i.e., the moving component) and the working state of the stepping motor, and the parameters can be increased or decreased according to the requirement of the practical application, so that the working data can more accurately reflect the actual working condition of the moving component.
And step S306, framing is carried out based on the working state information to obtain a data frame.
The format of the data frame may be as shown in fig. 4, and includes a frame header, the number of banknotes in the motion module, the position of each banknote, information obtained by the photoelectric position sensor (i.e. the operating data of the stepping motor), and a frame end.
Specifically, the slave control module performs data packing processing on the received working state information according to a frame format shown in fig. 4, and the number of banknotes in the motion module, the position of each banknote, and information acquired by the photoelectric position sensor are included in the content of the data frame. Wherein the communication interval is 1 millisecond.
Step S308, the data frame is transmitted to the main control module.
Specifically, the data frame may be transmitted to the master control module through the communication link.
In the following, a specific example is described, as shown in fig. 5, which provides an inter-plate communication method and is described in conjunction with the running track of the bills shown in fig. 6; the inter-board communication method comprises the following steps:
step S502, the master control module sends a command indicating that the bills enter the second bill storage device to the slave control module in the first time slot of the communication frame.
Wherein, the motion module can include motion spare part and bank note storage device.
And step S504, the slave control module analyzes the control command and transmits a motion state control command to the motion module so as to control the first stepping motor, the second stepping motor and the third stepping motor in the motion module to work.
Specifically, when the first stepping motor works according to the instruction of the slave control module, the banknotes can move in the channel S101 and enter the first banknote storage device; when the second stepping motor works according to the instruction of the slave control module, the banknotes can move in the channel S102 and enter the second banknote storage device; when the third step motor works according to the instruction of the slave control module, the bank notes can move in the channel S103 and enter a third bank note storage device; the fourth stepper motor, when operated as instructed by the slave module, enables the banknote to move in the path S104 and into a fourth banknote storage device (not shown in figure 6).
In step S506, the feedback module detects the working state information of the motion module and feeds back the working state information to the slave control module.
The working state information can comprise the number of banknotes in the motion module, the position of each banknote and working data of the stepping motor; the feedback module may include an infrared sensor and an electro-optical position sensor.
Specifically, the motion state of the banknote in the channel and the motion track of the banknote can be acquired through the infrared sensor, wherein the motion state of the banknote in the channel can comprise the number of banknotes in the motion module and the position of each banknote. By detecting the position of each banknote in the motion module, it can be known whether a banknote has entered the second banknote storage device or whether it has stayed in the channel S101 or the channel S102.
Through the photoelectric position sensor, the working data of the stepping motor can be obtained, wherein the working data of the stepping motor can comprise the rotating speed of the stepping motor and the working state of the stepping motor. The slave control module receives the working state information transmitted by the feedback module, so that the working parameters (such as rotating speed) of the stepping motor and whether the stepping motor is in a working state can be known, and the number of banknotes in the motion module and the positions of the banknotes can be known at the same time.
And step S508, the slave control module packs the working state information fed back by the feedback module to obtain a data frame, and sends the data frame to the master control module every 1 millisecond.
The data frame format can be as shown in fig. 4, and includes a frame header, the number of banknotes in the motion module, the position of each banknote, information (i.e., working data of the stepping motor) obtained by the photoelectric position sensor, and a frame end; the slave control module may perform data packing according to the data frame format described in fig. 4.
Step S510, the main control module determines that the stepping motor in the motion module is in a normal motion state according to the received data frame, and performs adjustment.
Specifically, the position of each banknote is obtained from the data frame, and whether each stepping motor is in a normal working state or not is judged according to the position information of the banknote. For example, when a banknote enters the third banknote storage device, it is determined that the first stepping motor, the second stepping motor, and the third stepping motor in the motion module are in a normal operating state; when the bills stay in the passage S102, it is judged that the first stepping motor and the second stepping motor in the movement module are in a normal operating state, and the third stepping motor is not in normal movement. The master control module adjusts the control strategy and transmits the corresponding control instruction to the slave control module.
According to the inter-board communication method, the working state information transmitted by the feedback module is received, and data transmission is performed by using the data frame, so that the reliability of data is improved, and the main control module can control based on the working state information with high accuracy.
In one embodiment, as shown in fig. 7, there is provided an inter-board communication method implemented from the perspective of a master control module, including the steps of:
step 702, when the slave module completes handshake and time slot synchronization in the first time slot of the communication frame, the slave module transmits a control command to the slave module in the second time slot of the communication frame.
The control instruction is used for indicating the slave control module to transmit a motion state control signal to the motion module in a third time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state.
Specifically, the master control module initiates a communication time slot synchronization and handshake request to the slave control module in a first time slot of a communication frame, and sends a control command to the slave control module in a second time slot of the communication frame after the time slot synchronization and handshake response. The control command may be determined according to the working state information acquired in the previous communication frame.
Step 704, receiving the processing result transmitted from the slave control module.
The processing result is obtained from the working state information of the motion module, which is processed by the control module in the fifth time slot of the communication frame and acquired in the fourth time slot of the communication frame.
Specifically, the main control module receives and processes the processing result to obtain the working state information of the motion module, that is, the number of the banknotes in the motion module, the positions of the banknotes, and the working data of the moving parts can be known. The master control module can obtain the motion state of the motion module according to the number of the bank notes in the motion module and the positions of the bank notes, adjust the control strategy based on the motion state of the motion module, and transmit corresponding control instructions to the slave control module. The motion state of the motion module can be used to indicate whether the moving parts in the motion module can bring each banknote to a preset position.
In the inter-board communication method, the processing result transmitted by the slave control module is received, and the master control module can adjust the control strategy according to the working state information so as to realize closed-loop control.
In one embodiment, a method of inter-board communication implemented from the perspective of a feedback module is provided, comprising the steps of:
and transmitting the working state information to the slave control module in the fourth time slot of the communication frame.
The feedback module can comprise an infrared sensor and a photoelectric position sensor; the operating state information may include the number of banknotes in the motion module, the position of each banknote, and the operating data of the stepping motor.
Specifically, the feedback module can acquire the motion state of the banknote in the channel and the motion track of the banknote through the infrared sensor, wherein the motion state of the banknote in the channel can comprise the number of banknotes in the motion module and the position of each banknote. In addition, the feedback module can obtain the working data of the stepping motor through the photoelectric position sensor. The operating data of the stepping motor may include the rotation speed of the stepping motor and the operating state of the stepping motor. And in the fourth time slot of the communication frame, the feedback module transmits the working state information to the slave control module.
In the inter-board communication method, the feedback module transmits the working state information acquired by the sensor to the slave control module, so that the output of the controlled (namely, the motion module) is returned to the slave control module, and further closed-loop control is realized.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided an inter-board communication device implemented from the perspective of a slave control module, comprising:
a motion state control signal transmission module 810, configured to transmit a motion state control signal to the motion module in a third time slot of the communication frame based on the control instruction when the handshake and the time slot synchronization are completed in the first time slot of the communication frame with the master control module and the control instruction transmitted by the master control module is received in the second time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state;
and a processing result transmitting module 820, configured to, when the working status information of the motion module is obtained in the fourth time slot of the communication frame, process the working status information in the fifth time slot of the communication frame to obtain a processing result, and transmit the processing result to the main control module.
In a specific embodiment, the method further comprises the following steps:
and the communication frame dividing module is used for dividing the communication frame into a first time slot, a second time slot, a third time slot, a fourth time slot and a fifth time slot.
In a specific embodiment, the processing result transmission module includes:
the working state information receiving unit is used for receiving the working state information transmitted by the feedback module in the fourth time slot;
the processing result transmission module further includes:
the framing unit is used for framing based on the working state information to obtain a data frame;
and the data frame transmission unit is used for transmitting the data frame to the main control module.
In one embodiment, as shown in fig. 9, there is provided an inter-board communication apparatus implemented from a perspective of a main control module, including:
a control instruction transmission module 910, configured to transmit a control instruction to the slave module in a second time slot of the communication frame when the slave module completes handshake and time slot synchronization in the first time slot of the communication frame;
a processing result receiving module 920, configured to receive the processing result transmitted by the slave control module.
In one embodiment, there is provided an inter-board communication device implemented from the perspective of a feedback module, comprising:
and the working state information transmission module is used for transmitting the working state information to the slave control module in the fourth time slot of the communication frame.
For specific limitations of the inter-board communication device, reference may be made to the above limitations of the inter-board communication method, which are not described herein again. The modules in the inter-board communication device may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 10, there is provided a cycle core comprising a master control module, a slave control module, and a motion module; the master control module is connected with the slave control module, and the slave control module is connected with the motion module;
the slave control module is used for executing the steps of any one of the board-to-board communication methods implemented from the perspective of the slave control module;
the main control module is used for executing the steps of any inter-board communication method implemented from the perspective of the main control module;
the motion module is used for adjusting the working state according to the motion state control signal.
In a specific embodiment, as shown in fig. 11, the system further comprises a feedback module connected to the slave control module;
the feedback module is used for acquiring the working state information and transmitting the working state information to the slave control module in the fourth time slot of the communication frame.
In a particular embodiment, the motion module includes a motion component; the moving part is connected with the slave control module;
the moving part is used for adjusting the working state based on the moving state control signal.
Wherein, the moving part can be a stepping motor.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the working state information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an inter-board communication method.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the embodiments of the above-mentioned inter-board communication method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An inter-board communication method, comprising the steps of:
when handshake and time slot synchronization are completed in a first time slot of a communication frame with a main control module and a control instruction transmitted by the main control module is received in a second time slot of the communication frame, a motion state control signal is transmitted to a motion module in a third time slot of the communication frame based on the control instruction; the motion state control signal is used for indicating the motion module to adjust the working state;
when the working state information of the motion module is acquired in the fourth time slot of the communication frame, processing the working state information in the fifth time slot of the communication frame to obtain a processing result, and transmitting the processing result to the main control module;
wherein the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot are different time slots of the same communication frame.
2. The method of claim 1, further comprising the steps of:
dividing the communication frame into the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot.
3. The inter-board communication method according to claim 1, wherein the step of acquiring the operating state information of the motion module in a fourth time slot of the communication frame includes:
receiving the working state information transmitted by a feedback module in the fourth time slot;
processing the working state information in a fifth time slot of the communication frame to obtain a processing result, and transmitting the processing result to the main control module, wherein the processing result comprises the following steps:
framing is carried out based on the working state information to obtain a data frame;
and transmitting the data frame to the main control module.
4. A method of communicating between plates according to any of claims 1 to 3, wherein said operational status information includes the number of banknotes in said moving module, the position of each of said banknotes, and operational data of moving parts.
5. An inter-board communication method, comprising the steps of:
when the slave control module completes handshake and time slot synchronization in a first time slot of a communication frame, transmitting a control instruction to the slave control module in a second time slot of the communication frame; the control instruction is used for instructing the slave control module to transmit a motion state control signal to a motion module in a third time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state;
receiving a processing result transmitted by the slave control module; the processing result is obtained by the slave control module processing in the fifth time slot of the communication frame, and the working state information of the motion module acquired in the fourth time slot of the communication frame;
wherein the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot are different time slots of the same communication frame.
6. An inter-board communication device, comprising:
the motion state control signal transmission module is used for transmitting a motion state control signal to the motion module in a third time slot of a communication frame based on a control instruction when the motion state control signal transmission module completes handshake and time slot synchronization with a master control module in a first time slot of the communication frame and receives the control instruction transmitted by the master control module in a second time slot of the communication frame; the motion state control signal is used for indicating the motion module to adjust the working state;
a processing result transmission module, configured to, when the working state information of the motion module is obtained in a fourth time slot of the communication frame, process the working state information in a fifth time slot of the communication frame to obtain a processing result, and transmit the processing result to the main control module;
wherein the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot are different time slots of the same communication frame.
7. An inter-board communication device, comprising:
the control instruction transmission module is used for transmitting a control instruction to the slave control module in a second time slot of the communication frame when the slave control module completes handshake and time slot synchronization in a first time slot of the communication frame;
the processing result receiving module is used for receiving the processing result transmitted by the slave control module; wherein the first time slot, the second time slot, the third time slot, the fourth time slot, and the fifth time slot are different time slots of the same communication frame.
8. A cycle core is characterized by comprising a master control module, a slave control module and a motion module; the master control module is connected with the slave control module, and the slave control module is connected with the motion module;
the slave control module is used for executing the steps of the inter-board communication method of any one of claims 1 to 4;
the main control module is used for executing the steps of the inter-board communication method of claim 5;
the motion module is used for adjusting the working state according to the motion state control signal.
9. The cyclical movement of claim 8, further comprising a feedback module coupled to the slave module;
the feedback module is used for acquiring the working state information and transmitting the working state information to the slave control module in a fourth time slot of the communication frame.
10. The cyclical movement of claim 8, wherein the motion module comprises a motion component; the moving part is connected with the slave control module;
the motion part is used for adjusting the working state based on the motion state control signal.
CN201910104320.4A 2019-02-01 2019-02-01 Inter-board communication method and device and circulating machine core Active CN109977068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910104320.4A CN109977068B (en) 2019-02-01 2019-02-01 Inter-board communication method and device and circulating machine core

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910104320.4A CN109977068B (en) 2019-02-01 2019-02-01 Inter-board communication method and device and circulating machine core

Publications (2)

Publication Number Publication Date
CN109977068A CN109977068A (en) 2019-07-05
CN109977068B true CN109977068B (en) 2021-06-08

Family

ID=67076876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910104320.4A Active CN109977068B (en) 2019-02-01 2019-02-01 Inter-board communication method and device and circulating machine core

Country Status (1)

Country Link
CN (1) CN109977068B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126479A (en) * 2021-03-23 2021-07-16 广东芬尼克兹节能设备有限公司 Coordination control method of double-master-control-board circuit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000039064A (en) * 1998-12-10 2000-07-05 서평원 Apparatus for controlling communication between processors in small remote switch system
CN100459547C (en) * 2006-08-09 2009-02-04 华为技术有限公司 Communication system and method between serial boards
CN102957601A (en) * 2011-08-23 2013-03-06 中兴通讯股份有限公司 Communication method and communication device of boards
US9344326B2 (en) * 2011-10-28 2016-05-17 Nec Corporation Communication relay apparatus, active system switching method, and communication relay control board
CN106604410B (en) * 2017-02-20 2020-03-27 中国电子科技集团公司第二十九研究所 Method for realizing wireless self-organizing network establishment based on conflict detection and competition mode

Also Published As

Publication number Publication date
CN109977068A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN105024777B (en) Servo-driver synchronous method based on EtherCAT real-time ethernets
US6430218B1 (en) Communication control apparatus
CN109977068B (en) Inter-board communication method and device and circulating machine core
CN111107248B (en) Multi-channel video acquisition synchronization system and method and acquisition controller
CN112598895A (en) System and method for preventing multi-channel conflict during electric energy meter verification
CN110995537B (en) Multi-chip closed-loop communication delay calculation method, communication synchronization method and communication system
CN106625674A (en) Command processing method for robot and robot
CN111866020B (en) Communication card and communication method
CN110968119B (en) Control method and device for double-shaft synchronization
KR102046510B1 (en) Computer unit for a control device and operating method for the same
US11703832B2 (en) Production system, communication method, and information storage medium
CN102385912A (en) Host controller for setting sampling phase, semiconductor device and method
CN116017670A (en) Wireless network node synchronization method, system, equipment and readable storage medium
US8453003B2 (en) Communication method
CN100530106C (en) Method for implementing kernel of multi-machine fault-tolerant system
KR102199072B1 (en) Method for controlling time information based serial communication and apparatus for the same
US20070189296A1 (en) Data transmission circuit and method for controlling the data transmission circuit
JP2550076B2 (en) Multiple system controller
CN114449016B (en) Method, device, equipment and storage medium for controlling equipment of Internet of things
CN109960552A (en) A kind of web interface differentiation rendering method and device
CN115201561B (en) Electric energy meter data transmission system, control method and electric energy meter
CN113519153B (en) Image acquisition method, image acquisition device, control device, computer equipment, readable storage medium, image acquisition equipment and remote driving system
CN118017934A (en) Method and related equipment for synchronizing IV curve scanning start time of combiner box
FI83467C (en) processor System
CN115589422A (en) Communication method, device, equipment and storage medium based on interface multiplexing

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
GR01 Patent grant
GR01 Patent grant