Broadcast address

Asked by David Olivari

Why does MODBUS_BROADCAST_ADDRESS is defined as 255 and not 0 ?
Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stéphane Raimbault (sra) said :
#1

For network 192.168.1.0, the broadcast is 192.168.1.255, it's just the TCP/IP rule!

Revision history for this message
David Olivari (david-olivari) said :
#2

Ok for IP I understand that but on serial bus 255 address is not allowed

Revision history for this message
Stéphane Raimbault (sra) said :
#3

You're right! I've changed the definition to 0 (page 23 of Modbus_Messaging_Implementation_Guide_V1_0b)

http://github.com/stephane/libmodbus/commit/daa6d20894b524b84bf01c7100f09744802ad8f2

Can you help with this problem?

Provide an answer of your own, or ask David Olivari for more information if necessary.

To post a message you must log in.