CN115174705A - Protocol conversion method and device for in-vehicle communication interface and consumer electronics communication interface - Google Patents

Protocol conversion method and device for in-vehicle communication interface and consumer electronics communication interface Download PDF

Info

Publication number
CN115174705A
CN115174705A CN202210749583.2A CN202210749583A CN115174705A CN 115174705 A CN115174705 A CN 115174705A CN 202210749583 A CN202210749583 A CN 202210749583A CN 115174705 A CN115174705 A CN 115174705A
Authority
CN
China
Prior art keywords
uart
lin
communication interface
consumer electronics
base
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
CN202210749583.2A
Other languages
Chinese (zh)
Other versions
CN115174705B (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.)
Zhiji Automobile Technology Co Ltd
Original Assignee
Zhiji Automobile 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 Zhiji Automobile Technology Co Ltd filed Critical Zhiji Automobile Technology Co Ltd
Priority to CN202210749583.2A priority Critical patent/CN115174705B/en
Publication of CN115174705A publication Critical patent/CN115174705A/en
Application granted granted Critical
Publication of CN115174705B publication Critical patent/CN115174705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a method and equipment for converting protocols of an in-vehicle communication interface and a consumer electronics communication interface, wherein a plurality of magnetic suction bases for converting the communication interface can be arranged in an automobile cabin, so that on one hand, consumer electronics products in an automobile can be freely installed by an automobile owner and fixed through magnetic suction; on the other hand, the protocol conversion between the in-vehicle communication interface and the consumer electronics communication interface can be realized. In the invention, a Control instruction is sent by a Body Control Module (BCM) and transmitted to a magnetic suction base through an LIN (low-cost serial communication network) line in a vehicle, an LIN transceiver in the magnetic suction base converts an LIN signal into a UART (Universal Asynchronous Receiver/Transmitter) signal of consumer electronics, and the UART signal is received by a contact type UART interface and transmitted to a Central Processing Unit (CPU) of consumer electronics, so that the BCM can directly Control and monitor the consumer electronics.

Description

Protocol conversion method and device for in-vehicle communication interface and consumer electronics communication interface
Technical Field
The invention relates to a method and equipment for converting protocols of an in-vehicle communication interface and a consumer electronics communication interface.
Background
At present, the communication protocol in the automobile is LIN, and the communication protocol supported by the consumer electronics is UART, so that the BCM cannot directly control and monitor the consumer electronics.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a protocol conversion method and equipment for an in-vehicle communication interface and a consumer electronics communication interface.
In order to realize the purpose, the invention adopts the following technical scheme:
a protocol conversion method for an in-vehicle communication interface and a consumer electronics communication interface is characterized by comprising the following steps:
arranging a magnetic suction base for signal conversion in the vehicle, connecting the magnetic suction base with a vehicle body controller through an LIN (local interconnect network) line, and attaching a contact of the magnetic suction base with a contact of a consumer electronic product;
the vehicle body controller sends an LIN control instruction of the consumer electronic product to an LIN transceiver of the magnetic base through an LIN line in the vehicle;
the LIN transceiver of the magnetic base converts the LIN control instruction into a UART control instruction, and the LIN transceiver of the magnetic base transmits the UART control instruction to a UART interface of a consumer electronic product through a contact of the magnetic base and a contact of the consumer electronic product which are attached;
the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the UART control instruction.
Further, in the protocol conversion method between the in-vehicle communication interface and the consumer electronics communication interface, after the magnetic base for signal conversion is arranged in the vehicle, the method further includes:
and attracting the consumer electronic product to the magnetic suction base.
Further, in the above method for converting a protocol between an in-vehicle communication interface and a consumer electronics communication interface, after the UART interface sends a control command to a central computing unit of a consumer electronics product based on the UART control command, the method further includes:
the central computing unit sends a feedback signal to the UART interface;
the UART interface sends the feedback signal in the UART format to the LIN transceiver of the magnetic base through the contact of the consumer electronic product and the contact of the magnetic base which are attached;
the LIN transceiver of the magnetic base converts the feedback signal in the UART format into the feedback signal in the LIN format and sends the feedback signal in the LIN format to the automobile body controller through the LIN line.
Further, in the protocol conversion method between the in-vehicle communication interface and the consumer electronics communication interface, the in-vehicle controller sends the LIN control command of the consumer electronics product to the LIN transceiver of the magnetic base through the LIN line in the vehicle,
the LIN control instruction comprises: a synchronization signal in LIN format, an identifier of a consumer electronics product and a control signal;
the LIN transceiver of base is inhaled to magnetism converts LIN control command into UART control command, includes:
and after the LIN transceiver of the magnetic base keeps signal transmission and reception synchronization with the vehicle body controller based on the synchronization signal, the LIN transceiver converts the identifier and the control signal of the consumer electronic product in the LIN format into a corresponding UART control instruction.
Further, in the above method for converting protocols between the in-vehicle communication interface and the consumer electronics communication interface, the LIN transceiver of the magnetic base converts the LIN control command into the UART control command, and the LIN transceiver of the magnetic base transmits the UART control command to the UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product, which are attached to each other, the method includes:
the LIN transceiver of the magnetic base converts the LIN control command into an identifier and a control signal of the consumer electronic product in UART format, and the control signal in UART format comprises: the LIN transceiver of the magnetic base transmits UART control instructions to a corresponding UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product which are attached;
the UART interface sends a control instruction to a central computing unit of a consumer electronics product based on the UART control instruction, and the UART interface comprises:
the UART interface checks whether the data segment is disturbed based on the checksum segment,
if not, the UART interface sends a control instruction to a central computing unit of the consumer electronic product based on the data segment.
According to another aspect of the present invention, there is also provided an in-vehicle communication interface and consumer electronics communication interface protocol conversion device, including:
the LIN transceiver of the magnetic attraction base converts LIN control instructions into UART control instructions, and the LIN transceiver of the magnetic attraction base transmits the UART control instructions to UART interfaces of consumer electronic products through the contact of the magnetic attraction base and the contact of the consumer electronic products which are attached;
the contact of the consumer electronic product is attached to the contact of the magnetic attraction base, a UART interface and a central computing unit are arranged in the consumer electronic product, and the UART interface sends a control instruction to the central computing unit of the consumer electronic product based on the UART control instruction;
the magnetic attraction base is connected with the vehicle body controller through an LIN line, and the vehicle body controller sends LIN control instructions of consumer electronics to an LIN transceiver of the magnetic attraction base through the LIN line in the vehicle.
Furthermore, the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device are characterized in that the consumer electronics product is adsorbed on the magnetic base.
Further, the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device are configured, where the central computing unit is configured to send a feedback signal to the UART interface;
the UART interface is used for sending a feedback signal in a UART format to the LIN transceiver of the magnetic suction base through the contact of the attached consumer electronics product and the contact of the magnetic suction base;
and the LIN transceiver of the magnetic base is used for converting the feedback signal in the UART format into the feedback signal in the LIN format and transmitting the feedback signal in the LIN format to the automobile body controller through the LIN line.
Further, the LIN control command includes, for the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device: a synchronization signal in LIN format, an identifier of a consumer electronics product and a control signal;
and the LIN transceiver of the magnetic base is used for converting the identifier and the control signal of the consumer electronic product in the LIN format into a corresponding UART control instruction after keeping the signal transmission and reception synchronization with the vehicle body controller based on the synchronization signal.
Further, the protocol conversion device for the in-vehicle communication interface and the consumer electronics communication interface, and the LIN transceiver magnetically attached to the base are configured to convert the LIN control command into an identifier and a control signal of a consumer electronics product in UART format, where the UART format control signal includes: the LIN transceiver of the magnetic base transmits UART control instructions to a corresponding UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product which are attached;
and the UART interface is used for verifying whether the data segment is interfered or not based on the checksum segment, and if not, the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the data segment.
In summary, some magnetic suction bases for communication interface conversion can be arranged in the automobile cabin, so that on one hand, consumer electronic products in the automobile can be freely installed by an automobile owner and fixed through magnetic suction; on the other hand, the protocol conversion between the in-vehicle communication interface and the consumer electronics communication interface can be realized.
In the invention, a Control instruction is sent by a Body Controller (BCM) and transmitted to a magnetic attraction base through an LIN (local interconnect network) line in a vehicle, an LIN transceiver in the magnetic attraction base converts an LIN signal into a UART (Universal Asynchronous Receiver/Transmitter) signal of consumer electronics, and the UART signal is received by a contact type UART interface and transmitted to a Central Processing Unit (CPU) of the consumer electronics, so that the BCM can directly Control and monitor the consumer electronics.
Drawings
FIG. 1 is a schematic diagram of an in-vehicle communication interface and a protocol conversion device of a consumer electronic communication interface according to an embodiment of the present invention;
fig. 2 is a flowchart of a protocol conversion method for an in-vehicle communication interface and a consumer electronics communication interface according to an embodiment of the present invention.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1 and 2, the present invention relates to a protocol conversion method for an in-vehicle communication interface and a consumer electronics communication interface, comprising:
step S1, arranging a magnetic suction base for signal conversion in a vehicle, connecting the magnetic suction base with a vehicle body controller through a LIN line, and attaching contacts of the magnetic suction base with contacts of consumer electronics;
s2, the vehicle body controller sends an LIN control instruction of the consumer electronic product to an LIN transceiver of the magnetic base through an LIN line in the vehicle;
s3, the LIN transceiver of the magnetic base converts the LIN control instruction into a UART control instruction, and the LIN transceiver of the magnetic base transmits the UART control instruction to a UART interface of the consumer electronic product through a contact of the magnetic base and a contact of the consumer electronic product which are attached to each other;
and S4, the UART interface sends a control instruction to a central computing unit of the consumer electronic product based on the UART control instruction.
One development direction of the intelligent cabin of the automobile is an intelligent third space, which belongs to the range of human activities except for being distributed in a first space (living space) and a second space (working space). Since it is an intelligent third space, there are naturally diversified demands, such as an on-vehicle refrigerator, a microphone, a projector, a wireless charger for a mobile phone, and more scientific and technical hardware having both on-vehicle power supply capability and portability.
Some magnetic suction bases for communication interface conversion can be arranged in the automobile cabin, so that on one hand, consumer electronic products in the automobile can be freely installed by an automobile owner and fixed through magnetic suction; on the other hand, the protocol conversion between the in-vehicle communication interface and the consumer electronics communication interface can be realized.
In the invention, a Control instruction is sent by a Body Controller (BCM) and transmitted to a magnetic attraction base through an LIN (local interconnect network) line in a vehicle, an LIN transceiver in the magnetic attraction base converts an LIN signal into a UART (Universal Asynchronous Receiver/Transmitter) signal of consumer electronics, and the UART signal is received by a contact type UART interface and transmitted to a Central Processing Unit (CPU) of the consumer electronics, so that the BCM can directly Control and monitor the consumer electronics.
In an embodiment of the method for converting a protocol between an in-vehicle communication interface and a consumer electronics communication interface of the present invention, step S1 is that after a magnetic base for signal conversion is disposed in a vehicle, the method further includes:
and attracting the consumer electronic product to the magnetic suction base.
Here, magnetism is inhaled the base shape and is square or cuboid, can arrange in front instrument desk, well passageway, trunk, door etc. position by the level. This magnetism is inhaled base body and is had magnetic attraction, and consumer electronics is close to and can be attracted and fix its surface, guarantees consumer electronics's convenient fixed and inhale the reliable laminating of the contact of base with magnetism.
As shown in fig. 1, in an embodiment of the method for converting protocols between an in-vehicle communication interface and a consumer electronics communication interface according to the present invention, step S4 is that after the UART interface sends a control instruction to a central computing unit of a consumer electronics product based on the UART control instruction, the method further includes:
s5, the central computing unit sends a feedback signal to the UART interface;
s6, the UART interface sends a feedback signal in a UART format to the LIN transceiver of the magnetic base through the contact of the attached consumer electronic product and the contact of the magnetic base;
and S7, the LIN transceiver of the magnetic base converts the feedback signal in the UART format into the feedback signal in the LIN format and sends the feedback signal in the LIN format to the automobile body controller through an LIN line.
The feedback signal in the UART format is transmitted to the UART interface through the central computing unit, then the LIN transceiver of the magnetic base converts the feedback signal in the UART format into the feedback signal in the LIN format, and the LIN-format feedback signal is transmitted to the automobile body controller through the LIN line, so that the automobile body controller can control consumer electronics more reliably.
In one embodiment of the protocol conversion method for the in-vehicle communication interface and the consumer electronics communication interface, step S2, the in-vehicle controller sends an LIN control command of the consumer electronics product to an LIN transceiver of the magnetic base through an in-vehicle LIN line,
the LIN control instruction comprises: a synchronization signal in LIN format, an identifier of the consumer electronic product and a control signal;
step S3, the LIN transceiver of the magnetic base converts the LIN control instruction into a UART control instruction, and the method comprises the following steps:
and after the LIN transceiver of the magnetic base keeps signal transmission and reception synchronization with the vehicle body controller based on the synchronization signal, the LIN transceiver converts the identifier and the control signal of the consumer electronic product in the LIN format into a corresponding UART control instruction.
Here, a LIN transceiver of the body controller BCM transmits a LIN control command, which contains a synchronization signal, a signal identifier ID signal and a control signal. The synchronous signal is used for enabling the BCM and the magnetic base signal to keep sending and receiving synchronization, the signal identifier ID signal is used for identifying different consumer electronics products, if the signal identifier ID of the charger is 01, the signal identifier ID of the vehicle-mounted refrigerator is 02, and the signal identifier ID of the microphone is 03, so that accurate and efficient conversion of the control signal is achieved.
In an embodiment of the method for converting protocols of an in-vehicle communication interface and a consumer electronics communication interface, in step S3, the LIN transceiver of the magnetic base converts the LIN control instruction into a UART control instruction, and the LIN transceiver of the magnetic base transmits the UART control instruction to the UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product, which are attached together, the method includes:
the LIN transceiver of the magnetic base converts LIN control instructions into identifiers and control signals of the consumer electronics products in UART format, and the control signals in UART format comprise: the LIN transceiver of the magnetic base transmits UART control instructions to a corresponding UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product which are attached;
step S4, the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the UART control instruction, and the method comprises the following steps:
the UART interface checks whether the data section is disturbed based on the checksum section,
if not, the UART interface sends a control instruction to a central computing unit of the consumer electronic product based on the data segment.
Here, the UART format control signal includes: the data segment is an actual control signal, such as a wireless charging switch signal, and the on is 0x01 and the off is 0x00. The UART interface can verify whether the data section is interfered or not based on the checksum section, if not, the UART interface sends the data section to a central computing unit of the consumer electronics product based on the checksum section, thereby ensuring the reliability of control signal transmission, and the central computing unit of the follow-up consumer electronics product can control and monitor the consumer electronics product based on the control instruction.
As shown in fig. 1 and 2, according to another aspect of the present invention, there is also provided an in-vehicle communication interface and consumer electronics communication interface protocol conversion apparatus, including:
the LIN transceiver of the magnetic base converts LIN control instructions into UART control instructions, and the LIN transceiver of the magnetic base transmits the UART control instructions to UART interfaces of consumer electronic products through contacts of the magnetic base and contacts of the consumer electronic products which are attached;
the contact of the consumer electronic product is attached to the contact of the magnetic suction base, a UART interface and a central computing unit are arranged in the consumer electronic product, and the UART interface sends a control instruction to the central computing unit of the consumer electronic product based on the UART control instruction;
the vehicle body controller sends LIN control instructions of the consumer electronic products to an LIN transceiver of the magnetic suction base through an LIN line in a vehicle.
One development direction of the intelligent cabin of the automobile is an intelligent third space, which belongs to the places where the range of activities of people is distributed except for a first space (living space) and a second space (working space). Since it is an intelligent third space, there are naturally diversified demands, such as an on-vehicle refrigerator, a microphone, a projector, a wireless charger for a mobile phone, and more scientific and technical hardware having both on-vehicle power supply capability and portability.
Some magnetic suction bases for communication interface conversion can be arranged in the automobile cabin, so that on one hand, consumer electronic products in the automobile can be freely installed by an automobile owner and fixed through magnetic suction; on the other hand, the protocol conversion between the in-vehicle communication interface and the consumer electronics communication interface can be realized.
In the invention, a control instruction is sent by a Body Control Module (BCM) and transmitted to a magnetic suction base through a Local Interconnect Network (LIN) line in a vehicle, a LIN transceiver in the magnetic suction base converts a LIN signal into a UART signal of consumer electronics, and the UART signal is received by a contact type UART interface and transmitted to a Central Processing Unit (CPU) of consumer electronics, so that the BCM can directly control and monitor the consumer electronics.
Furthermore, the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device are attached to the magnetic suction base.
Here, base shape is for square or cuboid to magnetism is inhaled, can arrange in front instrument desk, well passageway, trunk, door equipotential. This base body is inhaled to magnetism has magnetic attraction, and consumer electronics is close to and can be attracted and fix its surface, guarantees consumer electronics's convenient fixed and with the reliable laminating of the contact of magnetism base.
As shown in fig. 1, further, the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device are configured, where the central computing unit is configured to send a feedback signal to the UART interface;
the UART interface is used for sending a feedback signal in a UART format to the LIN transceiver of the magnetic suction base through the contact of the attached consumer electronics product and the contact of the magnetic suction base;
and the LIN transceiver of the magnetic base is used for converting the feedback signal in the UART format into the feedback signal in the LIN format and transmitting the feedback signal in the LIN format to the automobile body controller through the LIN line.
The feedback signal in the UART format is transmitted to the UART interface through the central computing unit, then the LIN transceiver of the magnetic base converts the feedback signal in the UART format into the feedback signal in the LIN format, and the LIN-format feedback signal is transmitted to the automobile body controller through the LIN line, so that the automobile body controller can control consumer electronics more reliably.
Further, the LIN control command includes, for the in-vehicle communication interface and the consumer electronics communication interface protocol conversion device: a synchronization signal in LIN format, an identifier of the consumer electronic product and a control signal;
and the LIN transceiver of the magnetic base is used for converting the identifier and the control signal of the consumer electronic product in the LIN format into a corresponding UART control instruction after keeping the signal transmission and reception synchronization with the vehicle body controller based on the synchronization signal.
Here, a LIN transceiver of the body controller BCM transmits a LIN control command, which contains a synchronization signal, a signal identifier ID signal, and a control signal. The synchronous signal is used for enabling the BCM and the magnetic base to keep sending and receiving synchronization, the signal identifier ID signal is used for identifying different consumer electronics products, if the signal identifier ID of the charger is 01, the signal identifier ID of the vehicle-mounted refrigerator is 02, and the signal identifier ID of the microphone is 03, so that accurate and efficient conversion of the control signal is achieved.
Further, the protocol conversion device for the in-vehicle communication interface and the consumer electronics communication interface, the LIN transceiver magnetically attached to the base, and configured to convert the LIN control command into an identifier and a control signal of a consumer electronics product in UART format, where the control signal in UART format includes: the LIN transceiver of the magnetic base transmits UART control instructions to a corresponding UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product which are attached;
and the UART interface is used for verifying whether the data segment is interfered or not based on the checksum segment, and if not, the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the data segment.
Here, the UART format control signal includes: the data segment is an actual control signal, such as a wireless charging switch signal, and the on is 0x01 and the off is 0x00. The UART interface can verify whether the data section is interfered or not based on the checksum section, if not, the UART interface sends the data section to a central computing unit of the consumer electronic product based on the data section, thereby ensuring the reliability of control signal transmission, and the central computing unit of the subsequent consumer electronic product can control and monitor the consumer electronic product based on a control instruction.
The method of the invention may be integrated in a specific control device.
The control device of the present invention may be a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of the method as in the above method embodiments.
The control apparatus of the present invention may be an application distribution platform for distributing a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of the method as in the above method embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The various systems and elements of the invention, if implemented as software functional elements, may be stored in a computer accessible memory. With this understanding, part or all of the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several requests to enable one or more computer devices (such as a personal computer, a server, or a network device, and may specifically be a processor in the computer device) to execute part or all of the steps of the above methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that all or a portion of the steps of the various illustrated embodiments of the invention may be performed by associated hardware as instructed by a computer program, which may be stored centrally or distributed on one or more computer devices, such as a readable storage medium. The computer device includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable rewritable Read-Only Memory (EEPROM), a compact disc Read-Only Memory (CD-ROM) or other optical disc Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
It should be understood by those skilled in the art that the above embodiments are only for illustrating the present invention and are not to be used as a limitation of the present invention, and that changes and modifications to the above described embodiments are within the scope of the claims of the present invention as long as they are within the spirit and scope of the present invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A protocol conversion method for an in-vehicle communication interface and a consumer electronics communication interface is characterized by comprising the following steps:
arranging a magnetic suction base for signal conversion in the vehicle, connecting the magnetic suction base with a vehicle body controller through an LIN line, and attaching a contact of the magnetic suction base with a contact of a consumer electronic product;
the vehicle body controller sends an LIN control instruction of the consumer electronics to an LIN transceiver of the magnetic base through an LIN line in the vehicle;
the LIN transceiver of the magnetic base converts the LIN control instruction into a UART control instruction, and the LIN transceiver of the magnetic base transmits the UART control instruction to a UART interface of a consumer electronic product through a contact of the magnetic base and a contact of the consumer electronic product which are attached;
the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the UART control instruction.
2. The method for protocol conversion between an in-vehicle communication interface and a consumer electronics communication interface of claim 1, further comprising, after disposing a magnetically-attached signal conversion base in the vehicle:
and adsorbing the consumer electronic product on the magnetic suction base.
3. The method for converting the protocol between the in-vehicle communication interface and the consumer electronic communication interface of claim 1, wherein the UART interface sends the control command to the central computing unit of the consumer electronic product based on the UART control command, and further comprising:
the central computing unit sends a feedback signal to the UART interface;
the UART interface sends a feedback signal in a UART format to the LIN transceiver of the magnetic base through the contact of the consumer electronic product and the contact of the magnetic base which are attached;
the LIN transceiver of the magnetic base converts the feedback signal in the UART format into the feedback signal in the LIN format and sends the feedback signal in the LIN format to the automobile body controller through the LIN line.
4. The protocol conversion method for an in-vehicle communication interface and a consumer electronics communication interface according to claim 1, wherein the in-vehicle controller sends LIN control commands of consumer electronics products to the LIN transceiver of the magnetic base through an LIN line in the vehicle,
the LIN control instruction comprises: a synchronization signal in LIN format, an identifier of the consumer electronic product and a control signal;
the LIN transceiver of base is inhaled to magnetism converts LIN control command into UART control command, includes:
and after the LIN transceiver of the magnetic base keeps signal transmission and reception synchronization with the vehicle body controller based on the synchronization signal, the LIN transceiver converts the identifier and the control signal of the consumer electronic product in the LIN format into a corresponding UART control instruction.
5. The method for converting protocol between in-vehicle communication interface and consumer electronics communication interface of claim 1, wherein the LIN transceiver of the magnetic base converts the LIN control command into the UART control command, and the LIN transceiver of the magnetic base transmits the UART control command to the UART interface of the consumer electronics product through the contact of the magnetic base and the contact of the consumer electronics product, which are attached together, comprising:
the LIN transceiver of the magnetic base converts the LIN control command into an identifier and a control signal of the consumer electronic product in UART format, and the control signal in UART format comprises: the LIN transceiver magnetically attracts an identifier of a consumer electronic product based on a UART format, and sends a UART control instruction to a UART interface of the corresponding consumer electronic product through a contact of the magnetically attracted base and a contact of the consumer electronic product which are attached to each other;
the UART interface sends a control instruction to a central computing unit of a consumer electronics product based on the UART control instruction, and the UART interface comprises:
the UART interface checks whether the data segment is disturbed based on the checksum segment,
and if the data segment is not interfered, the UART interface sends a control instruction to a central computing unit of the consumer electronic product based on the data segment.
6. An in-vehicle communication interface and consumer electronics communication interface protocol conversion device, comprising:
the LIN transceiver of the magnetic attraction base converts LIN control instructions into UART control instructions, and the LIN transceiver of the magnetic attraction base transmits the UART control instructions to UART interfaces of consumer electronic products through the contact of the magnetic attraction base and the contact of the consumer electronic products which are attached;
the contact of the consumer electronic product is attached to the contact of the magnetic attraction base, a UART interface and a central computing unit are arranged in the consumer electronic product, and the UART interface sends a control instruction to the central computing unit of the consumer electronic product based on the UART control instruction;
the vehicle body controller sends LIN control instructions of the consumer electronic products to an LIN transceiver of the magnetic suction base through an LIN line in a vehicle.
7. The in-vehicle communication interface and consumer electronics communication interface protocol conversion device of claim 6, wherein the consumer electronics product is attached to the magnetic base.
8. The in-vehicle communication interface and consumer electronics communication interface protocol conversion device of claim 6, wherein the central computing unit is configured to send a feedback signal to the UART interface;
the UART interface is used for sending feedback signals in a UART format to the LIN transceiver of the magnetic suction base through the contact of the consumer electronic product and the contact of the magnetic suction base which are attached to each other;
and the LIN transceiver of the magnetic base is used for converting the feedback signal in the UART format into the feedback signal in the LIN format and transmitting the feedback signal in the LIN format to the automobile body controller through the LIN line.
9. The in-vehicle communication interface and consumer electronics communication interface protocol conversion device of claim 6, wherein said LIN control instructions comprise: a synchronization signal in LIN format, an identifier of the consumer electronic product and a control signal;
the LIN transceiver of the magnetic base is used for converting identifiers and control signals of the consumer electronics products in the LIN format into corresponding UART control instructions after keeping signal transmission and receiving synchronization with the vehicle body controller based on the synchronization signals.
10. The in-vehicle communication interface and consumer electronics interface protocol conversion device of claim 6, wherein the LIN transceiver of the magnetic base is configured to convert the LIN control commands into UART-formatted consumer electronics identifiers and control signals, the UART-formatted control signals comprising: the LIN transceiver magnetically attracts an identifier of a consumer electronic product based on a UART format, and sends a UART control instruction to a UART interface of the corresponding consumer electronic product through a contact of the magnetically attracted base and a contact of the consumer electronic product which are attached to each other;
and the UART interface is used for verifying whether the data segment is interfered or not based on the checksum segment, and if not, the UART interface sends a control instruction to a central computing unit of the consumer electronics product based on the data segment.
CN202210749583.2A 2022-06-29 2022-06-29 Method and equipment for converting protocols of communication interface in vehicle and consumer electronics communication interface Active CN115174705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210749583.2A CN115174705B (en) 2022-06-29 2022-06-29 Method and equipment for converting protocols of communication interface in vehicle and consumer electronics communication interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210749583.2A CN115174705B (en) 2022-06-29 2022-06-29 Method and equipment for converting protocols of communication interface in vehicle and consumer electronics communication interface

Publications (2)

Publication Number Publication Date
CN115174705A true CN115174705A (en) 2022-10-11
CN115174705B CN115174705B (en) 2023-08-15

Family

ID=83489758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210749583.2A Active CN115174705B (en) 2022-06-29 2022-06-29 Method and equipment for converting protocols of communication interface in vehicle and consumer electronics communication interface

Country Status (1)

Country Link
CN (1) CN115174705B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030095038A1 (en) * 2001-10-05 2003-05-22 Case Corporation Remote vehicle diagnostic system
CN1780247A (en) * 2004-11-26 2006-05-31 浙江中科正方电子技术有限公司 Vehicle body CAN bus controlling system
CN201134028Y (en) * 2007-12-25 2008-10-15 上海通用汽车有限公司 Vehicle mounted remote diagnostic control device and information system
CN203271413U (en) * 2013-05-03 2013-11-06 天津五洲元通实业股份有限公司 Intelligent automobile window switch based on LIN bus interface
CN105763550A (en) * 2016-03-11 2016-07-13 张海涛 Protocol conversion method and device based on vehicle network
CN106184069A (en) * 2016-07-07 2016-12-07 苏州大学 Automotive electronics micro-controller communications method based on CAN LIN network
CN208707674U (en) * 2018-07-05 2019-04-05 深圳市路畅科技股份有限公司 A kind of converter and test macro based on LIN agreement
CN210120567U (en) * 2019-08-15 2020-02-28 北京汽车股份有限公司 Vehicle-mounted composite gateway and vehicle
US20200245234A1 (en) * 2016-05-24 2020-07-30 Kabushiki Kaisha Toshiba Vehicle-mounted gateway apparatus and vehicle-mounted gateway system
CN112181882A (en) * 2020-09-23 2021-01-05 深圳市领峰电动智能科技有限公司 Signal conversion method and device, electronic equipment and storage medium
CN112498227A (en) * 2020-12-18 2021-03-16 马瑞利汽车零部件(芜湖)有限公司 Automobile dynamic lamp control system and automobile
CN114039808A (en) * 2021-11-08 2022-02-11 深圳驰越科技有限公司 CAN-based multi-channel CAN/LIN/SENT forwarding protocol

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030095038A1 (en) * 2001-10-05 2003-05-22 Case Corporation Remote vehicle diagnostic system
CN1780247A (en) * 2004-11-26 2006-05-31 浙江中科正方电子技术有限公司 Vehicle body CAN bus controlling system
CN201134028Y (en) * 2007-12-25 2008-10-15 上海通用汽车有限公司 Vehicle mounted remote diagnostic control device and information system
CN203271413U (en) * 2013-05-03 2013-11-06 天津五洲元通实业股份有限公司 Intelligent automobile window switch based on LIN bus interface
CN105763550A (en) * 2016-03-11 2016-07-13 张海涛 Protocol conversion method and device based on vehicle network
US20200245234A1 (en) * 2016-05-24 2020-07-30 Kabushiki Kaisha Toshiba Vehicle-mounted gateway apparatus and vehicle-mounted gateway system
CN106184069A (en) * 2016-07-07 2016-12-07 苏州大学 Automotive electronics micro-controller communications method based on CAN LIN network
CN208707674U (en) * 2018-07-05 2019-04-05 深圳市路畅科技股份有限公司 A kind of converter and test macro based on LIN agreement
CN210120567U (en) * 2019-08-15 2020-02-28 北京汽车股份有限公司 Vehicle-mounted composite gateway and vehicle
CN112181882A (en) * 2020-09-23 2021-01-05 深圳市领峰电动智能科技有限公司 Signal conversion method and device, electronic equipment and storage medium
CN112498227A (en) * 2020-12-18 2021-03-16 马瑞利汽车零部件(芜湖)有限公司 Automobile dynamic lamp control system and automobile
CN114039808A (en) * 2021-11-08 2022-02-11 深圳驰越科技有限公司 CAN-based multi-channel CAN/LIN/SENT forwarding protocol

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHIPING LOU: ""The Design of Vehicle GPS Terminal Based on S3C44B0X"", 《2008 INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS SYMPOSIA》 *
秦学磊: ""汽车LIN总线网络通信的研究及上位机设计"", 《中国优秀硕士学位论文全文数据库 工程科技辑》 *

Also Published As

Publication number Publication date
CN115174705B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
US10693969B2 (en) Electronic device using logical channels for communication
US10970951B2 (en) Data management method, apparatus, device, system and storage medium for smart lock
CN1905536B (en) Tele-information processing system using home network system and its controlling method
CN103425494A (en) Information interaction system of vehicle-mounted terminal and smart mobile terminal
US20170155720A1 (en) Electronic device and method for controlling a transport device thereof
CN103814546A (en) Mobile terminal, image display device mounted on vehicle and data processing method using the same
US20180139596A1 (en) NFC-Based Communication Method and Apparatus
EP3247048B1 (en) System and method for embedded operating system achieving bluetooth slave device function
CN112291364B (en) Message pushing processing method and device
US9948732B2 (en) Method for providing status messaging service in electronic device and the electronic device thereof
KR20200144759A (en) Method for establishing bluetooth communication connection and electronic device thereof
CN114710524B (en) Data interaction method, device and equipment of in-vehicle local area network and storage medium
CN112055251A (en) Media data playing method, device, equipment and storage medium
CN111107524A (en) Bluetooth connection method, system and vehicle-mounted terminal
CN111462872A (en) Vaccination reservation system based on block chain traceability technology
US20210194679A1 (en) Electronic device sharing key with external electronic device and operating method for electronic device
CN115174705A (en) Protocol conversion method and device for in-vehicle communication interface and consumer electronics communication interface
US20230154500A1 (en) Electronic device, and method of synchronizing video data and audio data by using same
CN107872472A (en) A kind of method and system interacted by web interface with vehicle device
CN114793227B (en) Vehicle-mounted software downloading method, electronic equipment and computer readable storage medium
CN102970311A (en) Vehicle-mounted communication method and device based on media oriented system transport (MOST)
CN115827030A (en) Method and device for upgrading USB firmware of vehicle and vehicle
CN102904593A (en) Device for realizing wireless communication by using built-in integrated communication module
CN100405290C (en) Method for transmitting control command
KR101901329B1 (en) Communication system

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