Interface LIN sensor with IMX6 processor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interface LIN sensor with IMX6 processor

828 Views
sanketparekh
Contributor II

Hi,

Greetings,

I have custom board with IMX6 processor. I have used kernel version Linux mainboard-abo 4.1.15-2.0.0-ga+yocto+g9acd8e8 #5 SMP PREEMPT Thu Feb 22 17:24:04 IST 2018 armv7l armv7l armv7l GNU/Linux.

I have faced issue like, Our custom board have one USB hub. Hub have one UP stream and four down stream ports.

On two down stream port USB to UART converter is connected. So on that UART interface our LIN chip is connected.

So when i connect a master board with slave device, then i got the data in kernel sllin driver at master board. But i didn't get data at application layer of LIN sensor. So i have used ioctl's like TIOGETD to read the data from kernel driver to user space application. But system shows error like "Inappropriate ioctl for device".

So please give me some suggestion related to ioctl's.

Thank you,

Sanket

Labels (1)
1 Reply

640 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Sanket,

     On your system, you are using UART To LIN Bridge, and the bridge will be in charge of converting protocol between UART and LIN, so for you application, you need to operate UART  device to communite with LIN sensor.

Have a nice day!

Best Regards,

TIC Weidong

0 Kudos
Reply