Skip to content

skrishnakanth/RS232-LIN-conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RS232 to LIN Convertor

Description:

The data conversion from RS232 to LIN is very useful in case of changing the past mechanism generation to present. Those days we could find lot of communication processed by RS232 which was quite impressive on those days 😲 but not today 😃. There are so many communication available at present. The main perspective of introducing new communication is mainly for speed of data transfer and highly Encrypted data. The LIN communication is one among them. you can find complete information regarding RS232 and LIN here.

Requirements:

  1. USB - Serial Adapter.
  2. RS232 - TTL converter.
  3. LIN Tranceiver.
  4. Logic analyser.

Pre-Installation on Windows:

  1. GCC
  2. Logic analyser software (Saleae)

Procedure:

  1. Download the code from the repository.
  2. Open the file RS232-LIN
  3. Open Command prompt on /RS232-LIN and run the following command:
	$ gcc -o linsend lin-send.c argparse.c
  1. linsend.exe file will be generated on the same PATH.
  2. Open PowerShell on the same PATH and follow the command line given below:
	$ ./linsend.exe -h
  1. Run the below command to send LIN data
	$ lin-send -c COM1 -i 0x23 -d 0x12,0x96,0x34,0x45,0x00,0x00,0x00,0x00

Caution:

  • This project files are only for Window OS.

Connections:

  • white line - FT232(TX pin)--Logic analyser channel.
  • Black line - FT232(GND)--Logic analyser GND.

Demo:

About

RS232 to LIN convertion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages