mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Add files via upload
This commit is contained in:
parent
e0c8951cd7
commit
69c945fef4
@ -1,43 +1,43 @@
|
||||
// To configure FDRS:
|
||||
|
||||
// Uncomment the code corresponding to the unit you are configuring,
|
||||
// then uncomment the code corresponding to the unit you would like
|
||||
// to be previous and/or next in the line of communication.
|
||||
|
||||
// Each device in the system has a unique, one-byte address which
|
||||
// is assigned to the last digit of its MAC address at startup.
|
||||
|
||||
// Each device is configured to know what the previous and/or next
|
||||
// device in the line of communication is.
|
||||
|
||||
// The terminal is considered the "first" device, which can be addressed
|
||||
// to a relay or the gateway.
|
||||
|
||||
// Each relay receives data from its pre-programmed "PREV_MAC" device and
|
||||
// sends the packet verbatim to the address corresponding to "NEXT_MAC".
|
||||
|
||||
// The gateway receives the data and outputs it as a json string over the serial port.
|
||||
|
||||
|
||||
// THIS UNIT
|
||||
//#define UNIT_MAC 0x00 // Terminal
|
||||
#define UNIT_MAC 0x01 // Relay 0
|
||||
//#define UNIT_MAC 0x02 // Relay 1
|
||||
//#define UNIT_MAC 0x03 // Gateway
|
||||
//#define UNIT_MAC 0x04 //
|
||||
|
||||
// PREVIOUS UNIT
|
||||
#define PREV_MAC 0x00 // Terminal
|
||||
//#define PREV_MAC 0x01 // Relay 0
|
||||
//#define PREV_MAC 0x02 // Relay 1
|
||||
//#define PREV_MAC 0x03 // Gateway
|
||||
//#define PREV_MAC 0x04 //
|
||||
|
||||
// NEXT UNIT
|
||||
//#define NEXT_MAC 0x00 // Terminal
|
||||
//#define NEXT_MAC 0x01 // Relay 0
|
||||
//#define NEXT_MAC 0x02 // Relay 1
|
||||
#define NEXT_MAC 0x03 // Gateway
|
||||
//#define NEXT_MAC 0x04 //
|
||||
|
||||
#define DEFT_MAC PREV_MAC //Packets from unknown MACs are sent here.
|
||||
// To configure FDRS:
|
||||
|
||||
// Uncomment the code corresponding to the unit you are configuring,
|
||||
// then uncomment the code corresponding to the unit you would like
|
||||
// to be previous and/or next in the line of communication.
|
||||
|
||||
// Each device in the system has a unique, one-byte address which
|
||||
// is assigned to the last digit of its MAC address at startup.
|
||||
|
||||
// Each device is configured to know what the previous and/or next
|
||||
// device in the line of communication is.
|
||||
|
||||
// The terminal is considered the "first" device, which can be addressed
|
||||
// to a relay or the gateway.
|
||||
|
||||
// Each relay receives data from its pre-programmed "PREV_MAC" device and
|
||||
// sends the packet verbatim to the address corresponding to "NEXT_MAC".
|
||||
|
||||
// The gateway receives the data and outputs it as a json string over the serial port.
|
||||
|
||||
|
||||
// THIS UNIT
|
||||
//#define UNIT_MAC 0x00
|
||||
#define UNIT_MAC 0x01
|
||||
//#define UNIT_MAC 0x02
|
||||
//#define UNIT_MAC 0x03
|
||||
//#define UNIT_MAC 0x04
|
||||
|
||||
// PREVIOUS UNIT
|
||||
//#define PREV_MAC 0x00
|
||||
//#define PREV_MAC 0x01
|
||||
#define PREV_MAC 0x02
|
||||
//#define PREV_MAC 0x03
|
||||
//#define PREV_MAC 0x04
|
||||
|
||||
// NEXT UNIT
|
||||
#define NEXT_MAC 0x00
|
||||
//#define NEXT_MAC 0x01
|
||||
//#define NEXT_MAC 0x02
|
||||
//#define NEXT_MAC 0x03
|
||||
//#define NEXT_MAC 0x04
|
||||
|
||||
#define DEFT_MAC NEXT_MAC //Packets from unknown MACs are sent here.
|
||||
|
Loading…
Reference in New Issue
Block a user