CN114490454A - Self-adaptive driving method and device for serial port of equipment and serial port equipment - Google Patents

Self-adaptive driving method and device for serial port of equipment and serial port equipment Download PDF

Info

Publication number
CN114490454A
CN114490454A CN202111647151.2A CN202111647151A CN114490454A CN 114490454 A CN114490454 A CN 114490454A CN 202111647151 A CN202111647151 A CN 202111647151A CN 114490454 A CN114490454 A CN 114490454A
Authority
CN
China
Prior art keywords
serial port
slave
configuration information
slave device
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111647151.2A
Other languages
Chinese (zh)
Other versions
CN114490454B (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.)
Guangzhou Hedong Technology Co ltd
Original Assignee
Guangzhou Hedong Technology 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 Guangzhou Hedong Technology Co ltd filed Critical Guangzhou Hedong Technology Co ltd
Priority to CN202111647151.2A priority Critical patent/CN114490454B/en
Publication of CN114490454A publication Critical patent/CN114490454A/en
Application granted granted Critical
Publication of CN114490454B publication Critical patent/CN114490454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a self-adaptive driving method for a serial port of equipment, which comprises the following steps: the master device circularly detects according to the number of all serial ports of the master device to obtain serial port numbers corresponding to the serial ports; circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number, wherein the detection command comprises the slave equipment type and the slave equipment type state return; acquiring starting configuration information according to the detection command, wherein the starting configuration information comprises a slave device type and a serial port number of the master device corresponding to the slave device; judging whether the serial port number in the starting configuration information is connected with the slave equipment or not; if so, calling the corresponding drive to start according to the type of the slave equipment so as to connect the slave equipment from the serial port. According to the method and the device, the serial port number is obtained to determine the starting configuration information of the slave device, the master device can be determined to drive the slave device according to the starting configuration information of the slave device, and the problem that the connection between the master device and the slave device is not intelligent enough is solved.

Description

Self-adaptive driving method and device for serial port of equipment and serial port equipment
Technical Field
The invention relates to the technical field of data communication, in particular to a method and a device for self-adaptive driving of a serial port of equipment and serial port equipment.
Background
At present, serial port control is a convenient and efficient control mode, and is widely applied to multi-host communication and man-machine control interfaces.
At present, different devices need to be connected in a butt joint mode through serial ports, and the configuration of various devices is different. Under the condition that the master device has a plurality of serial ports, the slave device can only be connected to the serial port of the fixed master device, or the serial port is selected through a control interface of the master device. And the master device does not know the functional parameters of the slave device and can only pass the configuration of the software level. Making the connection of the master and slave devices less intelligent and automated.
Disclosure of Invention
Based on this, an object of the present invention is to provide a method and an apparatus for device serial port adaptive driving, and a serial device, in which a serial number of a master device itself is obtained to determine a serial number corresponding to a slave device and start configuration information of the slave device, and the master device can be determined to selectively drive the slave device according to the start configuration information of the slave device, so as to solve the problem that connection between the master device and the slave device is not intelligent and automatic enough.
According to a first aspect of some embodiments of the present application, there is provided a method for device serial port adaptive driving, applied to a serial port master device, the method including the following steps:
carrying out cycle detection on all serial ports of the serial port detector to obtain serial port numbers corresponding to the serial ports;
circularly issuing a detection command to each serial port connected slave device according to the corresponding serial port number, wherein the detection command comprises the type of the slave device;
acquiring starting configuration information of each slave device according to information returned by the slave device, wherein the starting configuration information comprises the type of the slave device and the serial port number of the master device connected with the slave device;
judging whether the serial port appointed by the main equipment is connected with the slave equipment or not;
if yes, calling the corresponding drive to start according to the serial port number and the slave device type in the starting configuration information so as to connect the slave device from the serial port.
Further, the serial port number is circularly detected according to all the serial port numbers of the serial ports, and each serial port number is obtained; also comprises the following steps:
and starting a serial port self-adaption program.
Further, the acquiring the startup configuration information according to the detection command further includes the following steps:
detecting whether reply information of the slave equipment is received;
if the reply information does not exist, the master device circularly issues a detection command to the connected slave device according to the corresponding serial port number;
and if the reply information exists, storing or caching the reply information to a system to form starting configuration information.
Further, after the start configuration information is acquired, the method further includes the following steps:
receiving a start request of the start-designated slave device;
and reading the starting configuration information of the corresponding slave equipment according to the starting request.
According to a second aspect of some embodiments of the present application, there is provided an apparatus for device serial port adaptive driving, including:
the serial port number acquisition module is used for circularly detecting all the serial ports of the serial port number acquisition module to obtain the serial port number corresponding to each serial port;
the detection command issuing module is used for circularly issuing a detection command to each serial port connected slave device according to the corresponding serial port number, wherein the detection command comprises the type of the slave device;
a starting configuration information obtaining module, configured to obtain starting configuration information of each slave device according to information returned by the slave device, where the starting configuration information includes a slave device type and a serial port number of the master device connected to the slave device;
the slave equipment determining module is used for judging whether the serial port specified by the master equipment is connected with the slave equipment or not;
and the slave equipment starting module is used for calling the corresponding drive to start according to the serial port number and the slave equipment type in the starting configuration information if the serial port number exists, so as to connect the slave equipment from the serial port.
Further, the starting module is used for starting the serial port self-adaption program.
Further, a reply information determination unit for detecting whether a reply information of the slave device is received;
the cyclic detection unit is used for circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number if the reply information does not exist;
and the starting configuration information determining unit is used for storing or caching the reply information to a system to form starting configuration information if the reply information exists.
Further, a starting request receiving module, configured to receive a starting request for starting the specified slave device;
and the starting configuration information reading module is used for reading the starting configuration information of the corresponding slave equipment according to the starting request.
According to a third aspect of some embodiments of the present application, there is provided a serial device comprising:
at least one memory and at least one processor;
the memory for storing one or more programs;
when executed by the at least one processor, the one or more programs cause the at least one processor to implement the steps of a method for device serial port adaptive driving according to any of the first aspect.
According to a fourth aspect of some embodiments of the present application, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to any one of the first aspect.
The application provides a method, a device, a terminal and a storage medium for self-adaptive driving of a serial port of equipment. Firstly, the main device determines the serial number of the main device, determines the type corresponding to the slave device according to the serial number, and further determines the starting configuration information of the slave device through the detection command, and the main device further determines the connection information and the corresponding serial number of the slave device according to the starting configuration information, so that the main device can intelligently and adaptively drive the slave device, and the problem that the connection between the main device and the slave device is not intelligent and automatic is solved.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic step diagram of a method for adaptively driving a serial port of a device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus serial port adaptive driver according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of an apparatus for a method for device serial port adaptive driving according to an embodiment of the present invention.
Reference numerals: 210. color screen; 220. a base; 221. an audio base; 222. a light-adjusting base; 223. a relay base.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another similar human body, and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes an associative relationship with a human body, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the context of the associated human is an "or" relationship.
Under the condition that the existing master equipment has a plurality of serial ports, the slave equipment can only be connected to the serial port of the fixed master equipment, or the serial port is selected through a control interface of the master equipment. And the master device does not know the functional parameters of the slave device and can only pass the configuration of the software level. Making the connection of the master and slave devices less intelligent and automated.
In view of the foregoing technical problems, an embodiment of the present invention provides a method for adaptively driving a serial port of a device, which is applied to a serial port master device, and is shown in fig. 1, which is a schematic step diagram of the method for adaptively driving the serial port of the device according to the embodiment of the present invention.
In step S101, all serial ports of the serial port are cyclically detected, and a serial port number corresponding to each serial port is obtained.
The serial interface is called a serial port for short, and is also called a serial communication interface or a serial communication interface (generally referred to as COM interface), and is an extended interface adopting a serial communication mode. Serial Interface (Serial Interface) refers to data transmission sequentially bit by bit, and is characterized by simple communication line and capability of realizing bidirectional communication by only one pair of transmission lines. The master device typically has multiple serial ports for communicating with different slave devices. The cycle detection means that the main device inquires each serial port in turn according to the number of the serial ports per se to obtain the serial port number corresponding to each serial port.
In step S102, a detection command is cyclically issued to each serial-connected slave device according to the corresponding serial number, where the detection command includes a slave device type.
The slave type status return indicates whether the slave device transmits its own type information to the master device to allow the master device to determine the type of the slave device. The master device issues detection commands to each serial port in sequence, so that whether each serial port is connected with the slave device or not is determined, and if the serial port is connected with the slave device, the slave device sends the device type of the slave device to the master device.
In step S103, according to the information returned by the slave device, start configuration information of each slave device is obtained, where the start configuration information includes a slave device type and a serial number of the master device to which the slave device is connected.
The start configuration information indicates the specific attribute information of the slave device and the specific serial number corresponding to the slave device, which are acquired by the master device, so that the master device can determine how to drive the slave device according to the specific attribute information of the slave device and the serial number corresponding to the slave device.
In a preferred embodiment, acquiring the startup configuration information according to the detection command further includes the following steps:
whether a reply message of the slave device is received or not is detected.
And if the reply information does not exist, circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number.
And if the reply information exists, storing or caching the reply information to a system to form starting configuration information.
The reply information indicates the type information to which the slave device belongs, which is transmitted from the slave device to the master device. After the master device issues the detection command, the slave device needs to respond, that is, the response is determined by detecting whether the reply message is received. If the reply information is not received, it indicates that the device is not communicated with the serial port number, and the master device needs to issue a detection command to the next serial port in sequence to determine the type of the slave device. If the main device receives the reply information, the main device indicates that the device is communicated with the serial port, the main device receives the type information of the slave device, and stores the type information and the serial port number correspondingly connected with the slave device together to form starting configuration information for the main device to start the slave device.
In step S104, it is determined whether the serial port specified by the master device has a slave device connected thereto.
In step S105, if there is a serial port number in the start configuration information and a slave device type, a corresponding driver is called to start, so as to connect the slave device from the serial port.
After the start configuration information of a certain slave device is acquired, whether the slave device corresponding to the slave device is connected or not can be determined according to the serial port number, and if the slave device is connected, the slave device and the master device can communicate through the serial port. The master device invokes the drive of the slave device to start the slave device.
According to the serial port self-adaptive driving method, the serial port and the serial port number corresponding to the serial port are sequentially determined through the master device, and then whether the slave device is connected to each serial port number or not and the type of the connected slave device are determined. And further determining and storing the slave equipment and the corresponding serial port number to form starting configuration information. When the master device starts the slave device, the slave device can be started according to the acquired starting configuration information, so that the master device drives the slave device more intelligently, and the slave device and the fixed serial port number do not need to be fixed artificially.
In a specific embodiment, before each corresponding serial port number is obtained according to the number cycle detection of all the serial ports of the serial port, the method further comprises the following steps:
and starting a serial port self-adaption program.
The self-adapting program is used for enabling the main device to implement the steps. After the main device is powered on, the serial port self-adaption program is started first, and therefore starting configuration information of the slave device is obtained quickly.
In order that the master device may obtain the startup configuration information of a plurality of slave devices, and in order that the master device can quickly start a required slave device after obtaining the startup configuration information, in a preferred embodiment, after obtaining the startup configuration information, the method further includes the following steps:
an initiation request to initiate a designated slave device is received.
And reading the starting configuration information of the corresponding slave equipment according to the starting request.
The appointed slave device indicates the slave device which needs the master device to provide the function, the slave device sends a starting request to the master device, and the master device reads the starting configuration information of the slave device according to the starting request, so that the information can be transmitted to the device through the serial port number corresponding to the device.
In one specific embodiment corresponding to the above method, as shown in fig. 2, the master device is a color screen 210, and the slave device is a base 220 corresponding to the color screen. The color screen 210 has three serial ports, the serial port numbers of which are serial port 1, serial port 2 and serial port 3 respectively. Three functional positions are provided on the base, specifically KNX (audio), Zigbee (adjust luminance) and Buspro (relay). These three functional position all can correspond and connect above-mentioned serial port number, for example the base of adjusting luminance, can connect serial ports 1, also can connect serial ports 2 or serial ports 3.
When the color screen 210 is powered on, the serial port self-adaption program is started, the number of all the serial ports of the color screen 210 is circularly detected, and the color screen 210 is determined to have 3 serial ports, namely a serial port 1, a serial port 2 and a serial port 3. And circularly issuing a detection command to the serial port 1, the serial port 2 and the serial port 3, and determining whether a response exists. If serial port 1 is found to have a response, and the response is that the type of the cradle 220 is the dimming cradle 222, the program records that serial port 1 has the dimming cradle 222 according to the response. And stores or buffers the reply message to the system to obtain the start configuration information of the dimming base 222. Other functional positions can be obtained similarly, for example, the start configuration information of the serial port 2 with the audio base 221 and the start configuration information of the serial port 3 with the relay base 223 are obtained. When the color screen 210 is started, if the function requirement of the base 220 is audio, the serial port number corresponding to the color screen 210 can be determined to be the serial port 2 according to the starting configuration information of the audio base 221, and the color screen 210 determines whether the serial port 2 responds and if the serial port 2 responds to the audio base 221, the color screen 210 starts the audio function.
Corresponding to the foregoing method for adaptively driving a device serial port, an embodiment of the present invention further provides a device for adaptively driving a device serial port, as shown in fig. 3, where fig. 3 is a schematic block diagram of the device for adaptively driving a device serial port according to the present invention, and the device 300 includes:
the serial port number acquisition module 301 is configured to perform cycle detection on all serial ports of the serial port number acquisition module to obtain a serial port number corresponding to each serial port.
A detection command issuing module 302, configured to issue a detection command to each serial-connected slave device in a cycle according to the corresponding serial number, where the detection command includes a slave device type.
A starting configuration information obtaining module 303, configured to obtain starting configuration information of each slave device according to information returned by the slave device, where the starting configuration information includes a slave device type and a serial number of the master device to which the slave device is connected.
A slave device determining module 304, configured to determine whether a slave device is connected to the serial port specified by the master device.
And the slave device starting module 305 is configured to, if the slave device is connected to the slave device, invoke the corresponding driver to start according to the serial port number and the slave device type in the start configuration information, so as to connect the slave device from the serial port.
In an alternative embodiment, the start configuration information obtaining module 303 includes:
and the reply information determining unit is used for detecting whether the reply information of the slave equipment is received.
And the cycle detection unit is used for circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number if the reply information does not exist.
And the starting configuration information determining unit is used for storing or caching the reply information to a system to form starting configuration information if the reply information exists.
In an alternative embodiment, the apparatus 300 further comprises:
and the starting module is used for starting the serial port self-adaption program.
In an alternative embodiment, the apparatus 300 further comprises:
and the starting request receiving module is used for receiving a starting request of the starting appointed slave device.
And the starting configuration information reading module is used for reading the starting configuration information of the corresponding slave equipment according to the starting request.
Corresponding to the foregoing method for adaptively driving a device serial port, an embodiment of the present application further provides a serial device, including:
at least one memory and at least one processor;
the memory for storing one or more programs;
when executed by the at least one processor, the one or more programs cause the at least one processor to implement the steps of a method for device serial port adaptive driving as described in any of the above embodiments.
In particular, the terminal may be a mobile terminal (e.g., a tablet computer) having 4G or 5G communication capabilities, a wearable device (e.g., a smart watch, a sports bracelet, smart glasses), a smart car-mounted device, and the like.
Corresponding to the method for adaptive driving of a serial port of a device described above, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method described in any of the above embodiments.
The application provides a device serial port self-adaptive driving method, a device, a terminal and a storage medium. Firstly, the main device determines the serial number of the main device, determines the type corresponding to the slave device according to the serial number, and further determines the starting configuration information of the slave device through the detection command, and the main device further determines the connection information and the corresponding serial number of the slave device according to the starting configuration information, so that the main device can intelligently and adaptively drive the slave device, and the problem that the connection between the main device and the slave device is not intelligent and automatic is solved.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (10)

1. A method for self-adaptive driving of a serial port of equipment is characterized by being applied to a serial port master device and comprising the following steps:
performing cycle detection on all serial ports of the device to obtain serial port numbers corresponding to the serial ports;
circularly issuing a detection command to each serial port connected slave device according to the corresponding serial port number, wherein the detection command comprises the type of the slave device;
acquiring starting configuration information of each slave device according to information returned by the slave device, wherein the starting configuration information comprises the type of the slave device and the serial port number of the master device connected with the slave device;
judging whether the serial port appointed by the main equipment is connected with the slave equipment or not;
if yes, calling the corresponding drive to start according to the serial port number and the slave device type in the starting configuration information so as to connect the slave device from the serial port.
2. The method for self-adaptively driving the serial port of the equipment according to claim 1, wherein before each corresponding serial port number is obtained according to the cycle detection of all the serial ports of the equipment, the method further comprises the following steps:
and starting a serial port self-adaption program.
3. The method for adaptively driving the serial port of the device according to claim 1, wherein the step of acquiring the start-up configuration information according to the detection command further comprises the steps of:
detecting whether reply information of the slave equipment is received;
if the reply information does not exist, circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number;
and if the reply information exists, storing or caching the reply information to a system to form starting configuration information.
4. The method of claim 3, wherein after the start-up configuration information is obtained, the method further comprises the following steps:
receiving a start request for starting the designated slave device;
and reading the starting configuration information of the corresponding slave equipment according to the starting request.
5. The device for self-adaptively driving the serial port of the equipment is characterized by comprising the following components:
the serial port number acquisition module is used for circularly detecting all the serial ports of the serial port number acquisition module to obtain the serial port number corresponding to each serial port;
the detection command issuing module is used for circularly issuing a detection command to each serial port connected slave device according to the corresponding serial port number, wherein the detection command comprises the type of the slave device;
a starting configuration information obtaining module, configured to obtain starting configuration information of each slave device according to information returned by the slave device, where the starting configuration information includes a slave device type and a serial port number of the master device to which the slave device is connected;
the slave equipment determining module is used for judging whether the serial port specified by the master equipment is connected with the slave equipment or not;
and the slave equipment starting module is used for calling the corresponding drive to start according to the serial port number and the slave equipment type in the starting configuration information if the serial port number exists, so as to connect the slave equipment from the serial port.
6. The device for adaptively driving the serial port of the equipment according to claim 5, further comprising:
and the starting module is used for starting the serial port self-adaption program.
7. The device for adaptively driving the serial port of the equipment according to claim 5, further comprising:
a reply information determination unit for detecting whether a reply information of the slave device is received;
the cyclic detection unit is used for circularly issuing a detection command to the connected slave equipment according to the corresponding serial port number if the reply information does not exist;
and the starting configuration information determining unit is used for storing or caching the reply information to a system to form starting configuration information if the reply information exists.
8. The apparatus for driving the serial port adaptively according to claim 7, further comprising:
a starting request receiving module, configured to receive a starting request for starting the specified slave device;
and the starting configuration information reading module is used for reading the starting configuration information of the corresponding slave equipment according to the starting request.
9. A serial device, comprising:
at least one memory and at least one processor;
the memory for storing one or more programs;
when executed by the at least one processor, the one or more programs cause the at least one processor to perform the steps of a method for device serial port adaptive driving as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program, characterized in that:
the computer program when executed by a processor implementing the steps of the method according to any one of claims 1 to 4.
CN202111647151.2A 2021-12-29 2021-12-29 Method and device for self-adaptive driving of equipment serial port and serial port equipment Active CN114490454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111647151.2A CN114490454B (en) 2021-12-29 2021-12-29 Method and device for self-adaptive driving of equipment serial port and serial port equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111647151.2A CN114490454B (en) 2021-12-29 2021-12-29 Method and device for self-adaptive driving of equipment serial port and serial port equipment

Publications (2)

Publication Number Publication Date
CN114490454A true CN114490454A (en) 2022-05-13
CN114490454B CN114490454B (en) 2023-07-18

Family

ID=81497364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111647151.2A Active CN114490454B (en) 2021-12-29 2021-12-29 Method and device for self-adaptive driving of equipment serial port and serial port equipment

Country Status (1)

Country Link
CN (1) CN114490454B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174264A1 (en) * 2001-05-17 2002-11-21 David Fuller System and method for obtaining driver software and documentation for a detected hardware and software configuration
CN101068404A (en) * 2006-09-26 2007-11-07 中兴通讯股份有限公司 Slave module controlling system and method in double-mode mobile terminal
CN102857397A (en) * 2012-10-09 2013-01-02 南京国电南自电网自动化有限公司 Multi-master asynchronous duplex differential bus and communication method
CN104811359A (en) * 2015-04-10 2015-07-29 深圳市元征科技股份有限公司 Serial port communication method and terminal
CN106708769A (en) * 2015-07-16 2017-05-24 北京谊安医疗***股份有限公司 Adaptive serial interface circuit
CN107967229A (en) * 2017-12-22 2018-04-27 安徽博微长安电子有限公司 A kind of serial ports automatic identifying method, system and computer-readable recording medium
CN109634878A (en) * 2018-12-07 2019-04-16 用友网络科技股份有限公司 Monitoring method, monitoring device, server, terminal and readable storage medium storing program for executing
CN111865745A (en) * 2020-06-12 2020-10-30 深圳拓邦股份有限公司 Non-delay polling method and system for automatically identifying slave equipment
CN112235370A (en) * 2020-09-29 2021-01-15 卧安科技(深圳)有限公司 Equipment information synchronization method, synchronization device, main equipment and storage medium
CN113127286A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Data acquisition method and device for multi-serial port communication, intelligent terminal and storage medium
CN113419983A (en) * 2021-08-24 2021-09-21 武汉迈威通信股份有限公司 Serial server and implementation method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174264A1 (en) * 2001-05-17 2002-11-21 David Fuller System and method for obtaining driver software and documentation for a detected hardware and software configuration
CN101068404A (en) * 2006-09-26 2007-11-07 中兴通讯股份有限公司 Slave module controlling system and method in double-mode mobile terminal
CN102857397A (en) * 2012-10-09 2013-01-02 南京国电南自电网自动化有限公司 Multi-master asynchronous duplex differential bus and communication method
CN104811359A (en) * 2015-04-10 2015-07-29 深圳市元征科技股份有限公司 Serial port communication method and terminal
CN106708769A (en) * 2015-07-16 2017-05-24 北京谊安医疗***股份有限公司 Adaptive serial interface circuit
CN107967229A (en) * 2017-12-22 2018-04-27 安徽博微长安电子有限公司 A kind of serial ports automatic identifying method, system and computer-readable recording medium
CN109634878A (en) * 2018-12-07 2019-04-16 用友网络科技股份有限公司 Monitoring method, monitoring device, server, terminal and readable storage medium storing program for executing
CN113127286A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Data acquisition method and device for multi-serial port communication, intelligent terminal and storage medium
CN111865745A (en) * 2020-06-12 2020-10-30 深圳拓邦股份有限公司 Non-delay polling method and system for automatically identifying slave equipment
CN112235370A (en) * 2020-09-29 2021-01-15 卧安科技(深圳)有限公司 Equipment information synchronization method, synchronization device, main equipment and storage medium
CN113419983A (en) * 2021-08-24 2021-09-21 武汉迈威通信股份有限公司 Serial server and implementation method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐政权;徐志京;: "SPCP多线程串口通信软件设计", 信息技术, no. 11, pages 13 - 15 *

Also Published As

Publication number Publication date
CN114490454B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN110266569B (en) IO-LINK port expansion device and method
CN103731809A (en) Data transmitting method, data receiving method and equipment
WO2016008077A1 (en) Method and apparatus for interconnecting intelligent terminal and vehicle terminal
CN111756858B (en) Remote development processing system, method and device for embedded equipment
CN108696852A (en) Connection method of Bluetooth device, system, readable storage medium storing program for executing and bluetooth equipment
CN100524275C (en) Principal controller pin multiplex circuit and control method thereof
CN114490454A (en) Self-adaptive driving method and device for serial port of equipment and serial port equipment
CN107465620B (en) General data router and communication method thereof
CN111984581B (en) Linux-based SPI bus master-slave device communication system, method and device
EP1391827A1 (en) Transmission apparatus and tramsmission method
EP1727050A1 (en) A method for embedded protocol selection, for instance in flash interfaces, related interface and computer program product
CN210324188U (en) Integrated circuit bus IIC master-slave competition automatic switching equipment and system thereof
JP2000293485A (en) Communication interface
CN109542812A (en) Data communication control method, device and terminal device
CN107656887A (en) The control device and method of peripheral bus
CN101281510A (en) Double-I2C bus setting method and double I2C bus system
CN115480645A (en) Head-mounted display device control method and device, electronic device and storage medium
CN100420219C (en) Method and system for realizing communication between nodes
CN108536637B (en) Communication system and method for transmitter conditioning chip
CN206908614U (en) CAN communication polarity control circuit and system and multi-connected air conditioning system
CN115708076A (en) Communication method, device, server and storage medium for single bus
CN112788658A (en) Data sharing method of communication equipment, communication equipment and storage medium
CN110319537A (en) Control method, host and the air-conditioning system of the bus communication of air-conditioning
CN109150241A (en) Communication means and device between a kind of single-chip microcontroller
CN112769666B (en) PLC inter-station communication 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