大家好,我在工作中遇到了一个问题,我想了解一个LIN版本1.3 LDF文件。首先,我必须说,我没有太多的经验,林,虽然我已经读了很多关于它,我从来没有开发任何东西。我收到了一个设备,在工厂预先配置,它与LIN协议
通信,我必须把它显示给客户机。为了激活它,我正在尝试许多解决方案,其中我正在用PIC16F86进行一个应用,我已经实现了一个发送和接收LIN帧的软件。我们没有一个LDF工具来制作一个C代码,并且由于PU公司的购买需要很长的时间。蒸馏过程。此外,它只会用于一个小的演示,太昂贵了。我尝试发送一个帧到设备,读取LDF并填充值(PID和数据字段),没有得到任何响应。我相信设备并没有承认它的框架。所以,我想提出一些问题,如果有人知道他们的答案,我会很感激你的帮助。1我应该如何填写PID字段?2我必须对整个调度器进行编码,就像它在LDF中描述的那样来发送所有帧吗?我在LIN规范中了解到,调度器只在主机中编码,从属器不包含调度器,它只对总线上的帧进行应答。3.当它被写入设备规格时,它是工厂编程的,是否意味着我不必用I帧发送帧。新配置,对吧?
以上来自于百度翻译
以下为原文
Hello guys,
I am facing a problem in my job, I am trying to understand a LIN version 1.3 LDF file. Ini
tially, I must say that I don't have much experience with LIN, although I have read a lot about it, I have never developed anything. I received a device, preconfigured on Factory, that communicates with LIN protocol, and I have to show it to a client. In order to activate it, I am trying many solutions and among them I am working on an application with PIC16F886, which I have already implemented a software to send and receive LIN frames.
We do not have a LDF tool that makes a C code, and its purchasing would take a long time due to the company purchasing process. Besides, it would be too expensive only for a small presentation.
I tried to send a frame to the device, reading the LDF and filling the values (PID and data fields) and did not get any response. I believe the device did not acknowledge the frame as its on. So, I would like to make some questions, and if somebody knows their answers, I would appreciate your help.
1-How should I fill the PID field?
2-Do I have to code the whole scheduler as it is described in its LDF to send all frames? I understood in the LIN specification that the scheduler is only coded in the master, the slave does not contain the scheduler, it only answers to the frames on the bus.
3-As it is written on the device’s specification, it is factory programed, does it mean that I do not have to send frames with initial configurations, right?
0