- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content