完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,伙计们,我想问一些关于CY8CPLC10 PLC调制解调器的问题:1。本地地址和源地址有什么区别?由于本地地址是由主机控制器(或硬件引脚)设置的地址,所以当发送数据时,源地址应该与第一个地址相同。2。什么是最简单的方法来找到所有的主动(和未知的)奴隶连接到电力线假设有一个主地址从属模块和一些从属模块,每一个具有独特的本地地址?最好的问候…罗伯特
以上来自于百度翻译 以下为原文 Hi Guys, I'd like to ask some questions regarding CY8CPLC10 PLC modem: 1. What's the difference between the Local Address and Source Address? As the Local Address is the address set by the host controller (or hardware pins) it seems that the Source Address should be the same value as the first one when sending data? 2. What's the simplest way to find all the active (and unknown to the master) slave connected to the power line assuming that there are one master addressing slave modules and some slave modules, each with unique local address? Best regards... Robert |
|
相关推荐
4个回答
|
|
读取AN52478本地地址似乎是特定节点的逻辑地址。
源地址是向主机发送消息的地址。 HTTP://www. CyPress?COM/?RID=37956 AN52478 问候,Dana。 以上来自于百度翻译 以下为原文 Reading AN52478 local address seems to be logical address of the specific node. Source address is the address from which a message was sent to master. http://www.cypress.com/?rID=37956 AN52478 Regards, Dana. |
|
|
|
嗨,Dana,
是的,你是对的……但是我知道。我只是想知道它们是否应该是一样的。显然,您发送数据的源地址应该是发送数据的节点的本地地址。那么,他们为什么给出了两个地址?第二个问题呢?我应该将数据发送到地址(本地)0x00到0xFF的节点,并等待答案,以检查它们是否存在?这要花很多时间。有最简单的方法吗?最好的问候…罗伯特 以上来自于百度翻译 以下为原文 Hi Dana, Yes, you're right...but I knew about it. I'm just still wondering if they should be the same. It seems to be clear that the source address you send the data from should be the local address of the node that sent the data. So, for what reasons did they gave both addresses? What about the second questions? Should I send data to nodes from address (local) 0x00 to 0xFF and wait for the answer in order to check if they exist? It would take a lot of time. Is there a simplest way? Best regards...Robert |
|
|
|
当你查看你的Windows操作系统时,你会发现它是这样工作的:有一个请求,并且在给定的时间限制内,所有的网络设备都必须回答。扫描所有可能的地址并等待答案需要一些时间,但是当您保存结果并仅在上电或用户请求时检查(用户通常知道网络什么时候变)按钮或您设计的任何内容。在上电之后,只需检查已经知道的设备,它们是否仍然存在,将加快三个初始化阶段。这些信息在断电后保存到EEPROM或程序到Flash中。
最后,当需要舒适性时,可以使用主机空闲时扫描连接的新设备的时间。这将需要一些时间,直到那些被认可,但这样你可以检测到网络的变化。 鲍勃 以上来自于百度翻译 以下为原文 When you look at your windows OS, you will see that it works exactly that way: There is a request and within a given time-limit all network devices have to answer. Scanning all possible addresses and waiting for an answer takes some time but when you save the results and check only at power-up or at a user request (Users usually know when the net has changed) with a button or whatever you design. After a power-up just checking for the already known devices whether they are still there will speed up the3 initialization phase. To have informations survive a power-off store them into eeprom or program into flash. Lastly, when comfort is required, you may use times when your master is idle to scan for new devices connected. That will take some time until those get recognized but that way you can detect network changes. Bob |
|
|
|
真的没有别的办法吗?我假设在PLCYM模式寄存器(0x05)中的位“杂乱掩码”应该被清除来做这件事吗?这意味着,如果目的地地址不匹配其本地地址,那么从属器会丢弃所有RX消息,并且不会响应主控器。因此,我应该等待设置StasuStxxNoApACK或StasuStxxNoYRESP位吗?它将持续大约256×0.5秒(没有ACK)或256×1.5秒(没有响应)。最好的问候…罗伯特
以上来自于百度翻译 以下为原文 Isn't really no other way to do this? I assume that bit "Promiscuous_MASK" in the PLC_Mode Register (0x05)should be cleared to do this? This means that the Slave Drops all the RX Messages if Destination Address does not match its Local Address and will not respond the Master? So, this way I should wait for the Status_TX_NO_ACK or Status_TX_NO_RESP bits being set? It would last about 256*0.5 seconds (for No ACK) or 256*1.5 seconds (for No RESPONSE). Best regards...Robert |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3671 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1788 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
572浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
424浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
438浏览 2评论
386浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
916浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 11:36 , Processed in 1.016430 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号