Interface LIN sensor with IMX6 processor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interface LIN sensor with IMX6 processor

696件の閲覧回数
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

ラベル(1)
1 返信

508件の閲覧回数
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 件の賞賛