完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我在工作中遇到了一个问题,我想了解一个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. Initially, 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? |
|
相关推荐
1个回答
|
|
你好,我有几个问题。1)奴隶使用波特率?请确保将主节点配置为与从AS相同的波特率。2)提供包含LDF文件3中所有PID值的PID表,我假设节点是从节点。3A)如果它是奴隶,我们是否期望奴隶只能接收或将数据回复给主人?3b)如果从属器只接收,主机需要在PID上发送与LDF文件3C中定义的匹配的数字数据库,如果从机响应,则主机只需要发送PID值,并等待从数据库进行响应。4)使用什么工具作为主机?节点?
以上来自于百度翻译 以下为原文 Hello, I've got a couple questions. 1 ) What baud rate is used for the slave ? Make sure you configure master node as the same baud rate as slave. 2 ) Provide the PID table that contains all of the PID values in the ldf file 3 ) I assume the node is a slave node ? 3a) If it is a slave, do we expect the slave to only receive or will it respond data back to master? 3b) if the slave is only receiving, master need to send the number databyte following PID that matches the what is defined in ldf file 3c) If the slave is responding, the master only need to send the PID value and wait for the slave to respond with databyte. 4 ) What LIN tool are you using as MASTER node? |
|
|
|
只有小组成员才能发言,加入小组>>
5208 浏览 9 评论
2017 浏览 8 评论
1943 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3189 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2244 浏览 5 评论
758浏览 1评论
645浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
563浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
657浏览 0评论
556浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-9 17:31 , Processed in 1.052834 second(s), Total 45, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号