CN113608782A - Control console design method capable of being redirected to CAN bus - Google Patents

Control console design method capable of being redirected to CAN bus Download PDF

Info

Publication number
CN113608782A
CN113608782A CN202110692852.1A CN202110692852A CN113608782A CN 113608782 A CN113608782 A CN 113608782A CN 202110692852 A CN202110692852 A CN 202110692852A CN 113608782 A CN113608782 A CN 113608782A
Authority
CN
China
Prior art keywords
bus
data
function
class
console
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.)
Granted
Application number
CN202110692852.1A
Other languages
Chinese (zh)
Other versions
CN113608782B (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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202110692852.1A priority Critical patent/CN113608782B/en
Publication of CN113608782A publication Critical patent/CN113608782A/en
Application granted granted Critical
Publication of CN113608782B publication Critical patent/CN113608782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

A design method of a control console capable of being redirected to a CAN bus comprises the following steps of firstly designing a bus driving layer base class in an upper computer, wherein the bus driving layer base class comprises three pure virtual functions: a bus data sending function, a bus data receiving function and a bus control function; designing an inheritance class of CAN bus equipment, and instantiating three pure virtual functions; designing a printing output class to output console information; designing a system monitoring class, analyzing the received data, and performing data matching and response through a console function; when the system is initialized, the console is configured, and the printout class and the system monitoring class are respectively bound with the CAN bus; then, a console is designed to interact with an upper computer, a display part of the interactive system interacts with a printing output class, and an output part interacts with a system monitoring class. The invention carries out console interaction through the CAN bus in a system without a serial port, and CAN completely print system printing information in the original application program to the CAN bus under the condition of not modifying bottom layer codes.

Description

Control console design method capable of being redirected to CAN bus
Technical Field
The invention belongs to the field of computer control, and relates to a design method of a console capable of being redirected to a CAN bus.
Background
The console belongs to important debugging and monitoring equipment in a computer control system, interaction through the console belongs to a common man-machine interaction method, and the console can help a user to locate faults, monitor the state of the system, acquire system information and the like. The console device can print information in the running process of the system in real time, respond to instructions input by a user and feed back information required by the user.
The standard console equipment physical bus is a serial port, the serial port has the advantages of low cost, simple communication, easy configuration and the like, and the transmitted data is not limited by the number of bytes. The bottom layer of the standard operating system finishes the mapping from the printf of the standard output function to the fputc function, can directly print the debugging information to the console for output through a serial port, and is very convenient to debug. However, for a device without a serial port, such as a system in which a serial port is widely replaced by a CAN bus, since the bottom layer of a standard operating system does not support other interfaces, a console device cannot be used, a printf function CAN only print debugging information into a software development environment IDE, and for an offline device which is separated from the software development environment, debugging cannot be performed according to software process information, so that device debugging is very difficult.
Disclosure of Invention
The technical problem solved by the invention is as follows: the defects of the prior art are overcome, and a design method of a console capable of being redirected to a CAN bus is provided.
The technical scheme of the invention is as follows:
in a first aspect, the present invention provides a console design method capable of being redirected to a CAN bus, the method comprising the steps of:
step one, the following design is carried out in a control console:
s1, designing a bus driving layer base class, wherein the bus driving layer base class is a physical bus operation base class and comprises three pure virtual functions: a bus data sending function, a bus data receiving function and a bus control function;
s2, designing a CAN bus device inheritance class which inherits a bus driving layer base class and instantiates a bus data sending function, a bus data receiving function and a bus control function under a CAN bus respectively;
s3, designing a printout class, redirecting a standard output function printf in the C standard library to a bus data sending function in the CAN bus equipment inheritance class, and outputting console information;
s4, designing a system monitoring class, starting a CAN bus receiving monitoring task in the system monitoring class, analyzing a frame of complete data received by a bus data receiving function, and performing data matching and response through a console function;
s5, configuring the console when the system is initialized, setting baud rate, opening the CAN bus, binding the printout class with the CAN bus, and binding the system monitoring class with the CAN bus;
and step two, designing an interactive system of the console and the upper computer, wherein the interactive system is divided into a display part and an output part, the display part is interacted with a printing output class, and the output part is interacted with a system monitoring class.
In S1, the bus data sending function is configured to refer to the address of the data to be sent and the length of the data to be sent;
the bus data receiving function is characterized by storing addresses for receiving data, and the return value is the length of the received data;
the bus control function performs bus function control including function setting of opening the bus, closing the bus, and the bus.
In S2, the method of instantiating the bus data sending function, the bus data receiving function, and the bus control function under the CAN bus is as follows:
(1) instantiating a bus data sending function under a CAN bus to realize a CAN bus data bottom layer sending function;
when the CAN bus is instantiated, setting the number of bytes of buffer S of the CAN bus transmission buffer area to be N, periodically inquiring whether the buffer area is empty, and sequentially transmitting all data of the transmission buffer area if the buffer area is not empty;
(2) instantiating a bus data receiving function under a CAN bus to realize CAN bus data bottom layer receiving;
when the CAN bus receives data, the data is stored in a receiving buffer area, a receiving processing task is established and started in a bus data receiving function, the data in the receiving buffer area is periodically taken out and analyzed in the receiving processing task, when a Hex value is 0x0d, the data is a complete instruction, and the data is transmitted to the upper layer of the system through a message queue of the bus data receiving function;
(3) the instantiation of the bus control function under the CAN bus is carried out, and the operation method of the CAN equipment is configured according to the CAN bus controller, thereby realizing the following functions: firstly, starting an equipment function, initializing and setting a value of a register in a CAN bus controller, starting CAN equipment, and configuring interruption; secondly, equipment functions are closed, the values of all registers in the CAN bus controller are restored to initial values, CAN equipment is closed, and interruption is closed; and setting a baud rate and matching a communication rate.
The implementation manner of the S3 is as follows:
designing a printing output class;
the printout class calls a standard output function printf in the C standard library, the standard output function printf calls characters in the C standard library and outputs the characters to a stream function fputc, the fputc function is reconstructed in the printout class, and the content to be printed in the fputc is sent to a CAN bus sending buffer area BuffeRS of the instantiated bus data sending function in the step two through a message queue;
the CAN bus equipment inherits the bus data sending function block in the class to wait for the data in the buffer S, the data is output through the CAN bus in the CAN bus sending task after being received, and at the moment, the prisf is used for debugging and outputting the control console, and the log information CAN be printed out on the CAN terminal equipment.
The implementation manner of the S4 is as follows:
(4.1) starting a CAN bus receiving and monitoring task in a system monitoring class, wherein the CAN bus receiving and monitoring task uses a bus data receiving function block in a CAN bus device inheritance class to wait for data received by a CAN bus;
(4.2) when the bus data receiving function receives a frame of data, the CAN bus receiving monitoring task judges the last byte, if the last byte is a non-carriage return character, the frame of data is received wrongly, and an error prompt is directly output through the CAN bus; if the last byte is the carriage return symbol \ n ', splitting the received frame according to the space character \ t', and putting the split character into a temporary buffer area BuffTemp;
(4.3) the CAN bus receiving monitoring task calculates the byte Count of the requested command according to the data in the temporary buffer area BuffTemp, and transmits the byte Count and the initial address of the temporary buffer area BuffTemp into a console function;
and (4.4) matching and responding to the instruction by the console function.
The step (4.4) is realized as follows: the two parameters of the console function are respectively an integer variable parameter number and a character type secondary pointer variable parameter list, matching is carried out through the integer variable parameter number and a character string of each parameter, response is carried out after all matching is successful, the console function calls an information display function during response, and the information display function prints and outputs information by using a bus data sending function.
In the second step, the first step is carried out,
the display part splices all CAN data frames into a CAN data packet and converts all bytes into ASCII codes for display;
the output part converts ASCII code input by a user into 16-system code, performs data sub-packaging by using at most 8 bytes per packet, sequentially transmits each packet of data to the CAN bus, and finally transmits the last packet of data with the number less than or equal to 8 bytes and other packets of data with the number of 8 bytes.
The output part converts ASCII codes input by a user into a 16-system code, and outputs the ASCII codes after processing, wherein the ASCII codes input by the user comprise space \ n and carriage return \ r.
In a second aspect, the present invention provides a terminal device, comprising:
a memory for storing instructions for execution by at least one processor;
a processor for executing instructions stored in a memory to implement the method of the first aspect.
In a third aspect, the present invention provides a computer readable storage medium storing computer instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a design method of a control console capable of being redirected to a CAN bus, which CAN be used for carrying out control console interaction through the CAN bus in a system without a serial port. And meanwhile, the printf function of the C standard library is redirected to the CAN bus, the codes based on the serial port console debugging equipment are transplanted to the environment based on the CAN bus console debugging equipment, and all system printing information in the original application program CAN be printed to the CAN bus under the condition that bottom layer codes are not modified.
Drawings
FIG. 1 is a flow chart of a method of designing a console that is re-orientable to a CAN bus;
fig. 2 is a connection diagram of the upper computer and the console through a CAN bus.
Detailed Description
The invention is further elucidated with reference to the drawing.
As shown in FIG. 1, the method comprises the following steps:
s1, a bus driving layer Base class is realized in the console, namely, the Base class Base _ Device of the physical bus operation comprises three pure virtual functions of the bus operation: a bus data sending function DataSend, a bus data receiving function DataRecv, and a bus control function IoCtrl. The functions of the bus driving layer base class are pure virtual functions, and the functions do not need to be instantiated.
(1) A bus data sending function DataSend, wherein the function is shaped as the address of data to be sent and the length of the data to be sent;
(2) a bus data receiving function DataRecv, which is a function that takes a parameter of an address where received data is stored, and returns a value of the length (in bytes) of the received data;
(3) and the bus control function IoCtrl performs bus function control, including the function setting of opening the bus, closing the bus and the bus.
S2, designing a CAN bus Device inheritance class in the console, wherein the inheritance class inherits the Base class Base _ Device of the bus driving layer designed in S1, the CAN bus Device inheritance class is set to DEV _ CANn, subscript n identifies the number of CAN devices, and instantiating a bus data sending function DataSend, a bus data receiving function DataRecv and a bus control function IoCtrl in S1 under a CAN bus respectively.
(1) The CAN bus is instantiated for a bus data sending function DataSend, the CAN bus data bottom layer sending function is realized, the number of bytes of a CAN bus sending buffer zone buffer is set to be N, the bottom layer sending mechanism is used for periodically inquiring whether the buffer zone is empty, if the buffer zone is not empty, all data in the buffer zone are sequentially written into a sending register in a CAN bus register (due to the limitation of the CAN bus, each writing is not more than 8 bytes), the CAN bus register is enabled to send, and data are sent.
(2) Instantiating a CAN bus for a bus data receiving function DataRecv to realize CAN bus data bottom reception, setting the number of bytes of buffer R of bottom data receiving buffer area as M, configuring CAN bus interrupt, when the CAN bus receives data, taking out the data in a receiving register in a CAN bus register and storing the data in the receiving buffer area, starting a receiving processing task in a receiving task function, periodically taking out and analyzing the data in the receiving buffer area in the task, when a Hex value of 0x0d is received (corresponding to a character being \ n), the data is a complete instruction, and the data is transmitted to the upper layer of a system through a message queue of the DataRecv function.
(3) The CAN bus is instantiated for a bus control function IoCtrl, and according to an operation method for configuring CAN equipment by a CAN bus controller, the following functions of opening the equipment, initializing values of all registers in the CAN bus controller, opening the CAN equipment and interrupting the configuration are realized. And secondly, the function of the equipment is closed, the values of all registers in the CAN bus controller are restored to initial values, the CAN equipment is closed, and the interruption is closed. And setting a baud rate and matching a communication rate.
S3: the printout class is designed in the console. And redirecting the standard output function prinf in the C standard library to a bus data sending function DataSend in the inheritance class of the CAN bus equipment in S2 to output the information of the console.
The printout class calls a standard output function printf in the C standard library, the standard output function printf calls an fputc function in the C standard library, the fputc function in the C standard library is reconstructed in the printout class, and the content to be printed in the fputc is sent to a CAN bus sending buffer area buffer S of the instantiated bus data sending function in the step two through a message queue;
the CAN bus equipment inherits the bus data sending function block in the class to wait for the data in the buffer S, the CAN bus is output in the CAN bus sending task after receiving the data, and the control console debugging output is carried out by using the prinf, so that the log information CAN be printed out on the CAN terminal equipment.
And S4, designing a system monitoring class in the console, and analyzing the data received by the bus data receiving function DataRecv in the CAN bus device inheritance class in S2.
(1) And starting a CAN bus receiving monitoring task in the system monitoring class, wherein the task uses a data receiving function DataRecv block in the CAN bus equipment inheritance class to wait for the data received by the CAN bus.
(2) When a frame of data is received, the last byte is judged, if the last byte is a non-carriage return character ("\ n"), the frame of data is received in error, and an error prompt is directly output through a CAN bus.
(3) If the last byte is the carriage return character ("\ n"), the received frame is split according to the space character ("\ t"), and the split character is put into a temporary buffer area BuffTemp.
(4) And calculating the byte Count of the requested command according to the data in the temporary buffer. The byte Count and the first address of the temporary buffer are sent to the Console function Console ().
(5) The Console function Console () matches and responds to the instructions. The two parameters of the function are integer variable parameter number ArgC and parameter list ArgV, the corresponding examples in (4) are byte number Count and temporary buffer area buffer Temp, matching is carried out through the variable number and the character strings of the corresponding parameters, and the corresponding display function is called. For example, system information is acquired, the number of parameters is designed to be 3, the contents of the parameters are "get", "system" and "info", respectively, and after the corresponding matching is successful, a system information display function DisplayInfo () is called, and the DisplayInfo () function prints and outputs the system information by using a bus data sending function DataSend.
S5: when the system is initialized, the parameters of the console are configured, the bus type is configured into a CAN bus, and the port number of the bus is configured (if a multi-channel CAN controller is provided, the multi-channel port is provided). And configuring the used baud rate (supporting 125k, 250k, 400k, 500k, 800k and 1M) by using the bus control function IoCtrl in the S2 and opening the CAN bus, wherein after the CAN bus is successfully opened, the printout class designed in the S3 is bound with the configured bus, and at the moment, printf printing is used in the system and is output through the console. The CAN bus is bound to the system monitoring class designed in S4, at which point the system waits to receive console commands.
And S6, realizing the design of the interactive system between the console and the upper computer in the upper computer, and dividing the interactive system into an upper computer display part and an upper computer output part. And the upper computer display part interacts with the system printing class in the S3, and the upper computer output part interacts with the S4 system interaction class.
(1) The upper computer display part splices each CAN data frame (8 bytes at most) into a CAN data packet, and converts all the bytes into ASCII codes for display.
(2) The upper computer output part converts ASCII codes input by a user into 16 systems (including space \ n and carriage return \ r), data subpackages are carried out by 8 bytes at most in each packet (8 bytes at most in each packet of the CAN bus), each packet of data is sequentially sent to the CAN bus, the last packet of data is less than or equal to 8 bytes, and other packet of data are 8 bytes.
Fig. 2 is a connection diagram of the upper computer and the console through a CAN bus.
The invention provides a design method of a control console capable of being redirected to a CAN bus, which is simple in use mode and CAN carry out control console interaction through the CAN bus in a system without a serial port. And meanwhile, the printf function of the C standard library is redirected to the CAN bus, the code based on the serial port debugging equipment is transplanted to the environment based on the CAN bus debugging equipment, and the system printing information in the original application program CAN be completely printed to the CAN bus under the condition of not modifying the bottom layer code. The control console based on the CAN bus and the control console based on the serial port have the same functions, the invention belongs to the function extension of the bottom layer of a standard operating system, and the debugging efficiency of equipment with the CAN bus but without the serial port is improved.
The present invention provides a terminal device, including: a memory for storing instructions for execution by at least one processor; a processor for executing instructions stored in the memory to implement the method shown in fig. 1.
The present invention provides a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method shown in fig. 1.
Those skilled in the art will appreciate that the details not described in the present specification are well known.

Claims (10)

1. A method for designing a console capable of being redirected to a CAN bus, the method comprising the steps of:
step one, the following design is carried out in a control console:
s1, designing a bus driving layer base class, wherein the bus driving layer base class is a physical bus operation base class and comprises three pure virtual functions: a bus data sending function, a bus data receiving function and a bus control function;
s2, designing a CAN bus device inheritance class which inherits a bus driving layer base class and instantiates a bus data sending function, a bus data receiving function and a bus control function under a CAN bus respectively;
s3, designing a printout class, redirecting a standard output function printf in the C standard library to a bus data sending function in the CAN bus equipment inheritance class, and outputting console information;
s4, designing a system monitoring class, starting a CAN bus receiving monitoring task in the system monitoring class, analyzing a frame of complete data received by a bus data receiving function, and performing data matching and response through a console function;
s5, configuring the console when the system is initialized, setting baud rate, opening the CAN bus, binding the printout class with the CAN bus, and binding the system monitoring class with the CAN bus;
and step two, designing an interactive system of the console and the upper computer, wherein the interactive system is divided into a display part and an output part, the display part is interacted with a printing output class, and the output part is interacted with a system monitoring class.
2. The design method of console capable of being redirected to CAN bus according to claim 1, wherein in S1, the bus data transmission function is configured to refer to the address of the data to be transmitted and the length of the data to be transmitted;
the bus data receiving function is characterized by storing addresses for receiving data, and the return value is the length of the received data;
the bus control function performs bus function control including function setting of opening the bus, closing the bus, and the bus.
3. The method of claim 1, wherein in S2, the under-CAN-bus instantiation of the bus data sending function, the bus data receiving function, and the bus control function is as follows:
(1) instantiating a bus data sending function under a CAN bus to realize a CAN bus data bottom layer sending function;
when the CAN bus is instantiated, setting the number of bytes of buffer S of the CAN bus transmission buffer area to be N, periodically inquiring whether the buffer area is empty, and sequentially transmitting all data of the transmission buffer area if the buffer area is not empty;
(2) instantiating a bus data receiving function under a CAN bus to realize CAN bus data bottom layer receiving;
when the CAN bus receives data, the data is stored in a receiving buffer area, a receiving processing task is established and started in a bus data receiving function, the data in the receiving buffer area is periodically taken out and analyzed in the receiving processing task, when a Hex value is 0x0d, the data is a complete instruction, and the data is transmitted to the upper layer of the system through a message queue of the bus data receiving function;
(3) the instantiation of the bus control function under the CAN bus is carried out, and the operation method of the CAN equipment is configured according to the CAN bus controller, thereby realizing the following functions: firstly, starting an equipment function, initializing and setting a value of a register in a CAN bus controller, starting CAN equipment, and configuring interruption; secondly, equipment functions are closed, the values of all registers in the CAN bus controller are restored to initial values, CAN equipment is closed, and interruption is closed; and setting a baud rate and matching a communication rate.
4. The method of claim 2, wherein the step S3 is implemented as follows:
designing a printing output class;
the printout class calls a standard output function printf in the C standard library, the standard output function printf calls characters in the C standard library and outputs the characters to a stream function fputc, the fputc function is reconstructed in the printout class, and the content to be printed in the fputc is sent to a CAN bus sending buffer area BuffeRS of the instantiated bus data sending function in the step two through a message queue;
the CAN bus equipment inherits the bus data sending function block in the class to wait for the data in the buffer S, the data is output through the CAN bus in the CAN bus sending task after being received, and at the moment, the prisf is used for debugging and outputting the control console, and the log information CAN be printed out on the CAN terminal equipment.
5. The method of claim 1, wherein the step S4 is implemented as follows:
(4.1) starting a CAN bus receiving and monitoring task in a system monitoring class, wherein the CAN bus receiving and monitoring task uses a bus data receiving function block in a CAN bus device inheritance class to wait for data received by a CAN bus;
(4.2) when the bus data receiving function receives a frame of data, the CAN bus receiving monitoring task judges the last byte, if the last byte is a non-carriage return character, the frame of data is received wrongly, and an error prompt is directly output through the CAN bus; if the last byte is the carriage return symbol \ n ', splitting the received frame according to the space character \ t', and putting the split character into a temporary buffer area BuffTemp;
(4.3) the CAN bus receiving monitoring task calculates the byte Count of the requested command according to the data in the temporary buffer area BuffTemp, and transmits the byte Count and the initial address of the temporary buffer area BuffTemp into a console function;
and (4.4) matching and responding to the instruction by the console function.
6. A design method of a console capable of being redirected to a CAN bus according to claim 5, characterized in that the step (4.4) is realized as follows: the two parameters of the console function are respectively an integer variable parameter number and a character type secondary pointer variable parameter list, matching is carried out through the integer variable parameter number and a character string of each parameter, response is carried out after all matching is successful, the console function calls an information display function during response, and the information display function prints and outputs information by using a bus data sending function.
7. The method of claim 1, wherein in step two,
the display part splices all CAN data frames into a CAN data packet and converts all bytes into ASCII codes for display;
the output part converts ASCII code input by a user into 16-system code, performs data sub-packaging by using at most 8 bytes per packet, sequentially transmits each packet of data to the CAN bus, and finally transmits the last packet of data with the number less than or equal to 8 bytes and other packets of data with the number of 8 bytes.
8. The method as claimed in claim 7, wherein the output part converts the user-input ASCII code into 16-ary code, and outputs the converted code after processing, wherein the user-input ASCII code includes space \ n and carriage return \ r.
9. A terminal device, comprising:
a memory for storing instructions for execution by at least one processor;
a processor for executing instructions stored in a memory to perform the method of any one of claims 1-8.
10. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-8.
CN202110692852.1A 2021-06-22 2021-06-22 Control console design method capable of redirecting CAN bus Active CN113608782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110692852.1A CN113608782B (en) 2021-06-22 2021-06-22 Control console design method capable of redirecting CAN bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110692852.1A CN113608782B (en) 2021-06-22 2021-06-22 Control console design method capable of redirecting CAN bus

Publications (2)

Publication Number Publication Date
CN113608782A true CN113608782A (en) 2021-11-05
CN113608782B CN113608782B (en) 2023-08-01

Family

ID=78336708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110692852.1A Active CN113608782B (en) 2021-06-22 2021-06-22 Control console design method capable of redirecting CAN bus

Country Status (1)

Country Link
CN (1) CN113608782B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109009131A (en) * 2018-07-02 2018-12-18 广州华夏汇海科技有限公司 Electronics vital capacity measuring device and lung capacity tests system based on Internet of Things
CN109814816A (en) * 2019-01-28 2019-05-28 先勒动力控制技术(上海)有限公司 Increase the system and method for print log in CAN bus
US20190317791A1 (en) * 2016-10-20 2019-10-17 Nr Electric Co., Ltd Running method for embedded type virtual device and system
CN110780858A (en) * 2019-10-28 2020-02-11 天津津航计算技术研究所 Software layering architecture based on embedded operating system
CN111030904A (en) * 2019-11-22 2020-04-17 天津津航计算技术研究所 Multi-path CAN bus message real-time processing method under multi-level communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190317791A1 (en) * 2016-10-20 2019-10-17 Nr Electric Co., Ltd Running method for embedded type virtual device and system
CN109009131A (en) * 2018-07-02 2018-12-18 广州华夏汇海科技有限公司 Electronics vital capacity measuring device and lung capacity tests system based on Internet of Things
CN109814816A (en) * 2019-01-28 2019-05-28 先勒动力控制技术(上海)有限公司 Increase the system and method for print log in CAN bus
CN110780858A (en) * 2019-10-28 2020-02-11 天津津航计算技术研究所 Software layering architecture based on embedded operating system
CN111030904A (en) * 2019-11-22 2020-04-17 天津津航计算技术研究所 Multi-path CAN bus message real-time processing method under multi-level communication

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LEON0820: "stm32系列单片机之printf重定向", HTTPS://BLOG.51CTO.COM/LEON0820/1440146 *
UMANG GAJERA: "How to Retarget/Redirect printf & scanf to UART in KEIL", HTTP://WWW.OCFREAKS.COM/RETARGET-REDIRECT-PRINTF-SCANF-UART-KEIL/ *
王毅: "巧用 PC 机的打印机接口实现并行通讯", 计算机时代, pages 36 - 37 *

Also Published As

Publication number Publication date
CN113608782B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
US6256659B1 (en) System and method for performing hybrid preemptive and cooperative multi-tasking in a computer system
US7437738B2 (en) Method, system, and program for interfacing with a network adaptor supporting a plurality of devices
US6295518B1 (en) System and method for emulating telecommunications network devices
JPH066406A (en) Apparatus and method for realizing protocol
US20040057434A1 (en) Multi-data receive processing according to a data communication protocol
JPS62503000A (en) Computer test equipment and method
US20010011215A1 (en) Network device simulation system and method
US6185521B1 (en) System and method for emulating mainframe channel programs by open systems computer systems
CN116755844B (en) Data processing method, device and equipment of simulation engine and storage medium
US5974532A (en) System and method for generating responses for inputs using a hybrid state engine table
CN103092676A (en) Analog input output method, device and system of virtual machine cluster
CN113691458A (en) Network packet processing method and device, electronic equipment and storage medium
CN115344245A (en) Method for accelerating execution of comparison function and system for accelerating execution of comparison function
CN113608782A (en) Control console design method capable of being redirected to CAN bus
US7296187B1 (en) Hardware debug device having script-based host interface
CN107357853B (en) Method and device for operating REDIS console and computer system
CN116126690A (en) Debugging method and system for lightweight embedded system
CN112306633B (en) System and method for acquiring different virtualized resources
US7013467B1 (en) System and method for managing computer system resources using command control vectors
US8244518B2 (en) Input/output processor (IOP) based zSeries emulation
CN115098402B (en) Debugging method and debugging device
CN109606333B (en) Multisystem motorcycle diagnostic instrument based on boot loader
WO2023082609A1 (en) Data processing method and related device
CN113176928B (en) Running method and device of heterogeneous virtual machine
KR101231054B1 (en) Parser Accelerator having hardware engine and method

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