Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] Algorithm Required- Home automation

Status
Not open for further replies.

sundar-edaboard

Junior Member level 1
Joined
Sep 5, 2013
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Bahrain
Activity points
131
Hi,

We are developing home automation products switches/control plate modules, Relay modules, Dimmer modules, Curtain Control modules, RGB light Control modules, etc. are connected in the single RS485 Communication.

We have to develop GUI and firmware for the following requirement:
1. We have to scan all the devices connected in the RS485 bus using the GUI. Each device has to send the respond with the details, sothat the GUI will update what are the devices are connected. Then selecting the scanned devices configure one by one.

Guide me what are the bytes to send and receive the responding data while sent the "Scan all modules" command. Please suggest me or provide any documents to refer.
 

Thanks,

But the limitation of length is too less in CAN.
 

[device index][command index][data lenght][data][crc]
Each device will respond on [search devices] command after [device index] * transmitt delay. So, each slave device will occupie their time slot.
Data received flag can be taken from MODBUS protocol - after 1.5 byte time after last byte received. One 8-bit timer will be needed.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top