Added shell scripts to send messages for Wireshark capture validation.

This commit is contained in:
skarg
2016-05-20 22:03:02 +00:00
parent 397ef31d41
commit 64a58dff97
10 changed files with 86 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetEventState
# Event_State (36)
for event_state in {0..64}
do
./bin/bacucov 1 2 0 1 5 36 9 ${event_state}
done
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetEventType
# PROP_EVENT_TYPE = 37
# OBJECT_EVENT_ENROLLMENT = 9
# BACNET_APPLICATION_TAG_ENUMERATED = 9
for event_type in {0..64}
do
./bin/bacucov 1 1 9 1 5 37 9 ${event_type}
done
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetProgramRequest
# PROP_PROGRAM_CHANGE = 90
# OBJECT_PROGRAM = 16
# BACNET_APPLICATION_TAG_ENUMERATED = 9
for program_request in {0..16}
do
./bin/bacucov 1 2 16 1 5 90 9 ${program_request}
done
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetProgramState
# PROP_PROGRAM_STATE = 92,
# OBJECT_PROGRAM = 16
# BACNET_APPLICATION_TAG_ENUMERATED = 9
for program_state in {0..16}
do
./bin/bacucov 1 2 16 1 5 92 9 ${program_state}
done
+9 -2
View File
@@ -2,7 +2,14 @@
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
for reliability in {0..63}
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetReliability
# PROP_RELIABILITY = 103,
# OBJECT_ANALOG_INPUT = 0
# BACNET_APPLICATION_TAG_ENUMERATED = 9
for reliability in {0..64}
do
./bin/bacucov 1 2 3 4 5 103 9 ${reliability}
./bin/bacucov 1 2 0 1 5 103 9 ${reliability}
done
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
export BACNET_APDU_RETRIES=0
export BACNET_APDU_TIMEOUT=0
# bacucov: pid device-id object-type object-instance time-remaining
# property tag value [priority] [index]
# BACnetRestartReason
# PROP_LAST_RESTART_REASON = 196
# OBJECT_DEVICE = 8
# BACNET_APPLICATION_TAG_ENUMERATED = 9
for reason in {0..64}
do
./bin/bacucov 1 1 8 1 5 196 9 ${reason}
done
+1
View File
@@ -103,6 +103,7 @@ static void print_usage(char *filename)
{
printf("Usage: %s [abort-reason [invoke-id [server]]]\n",
filename);
printf(" [--dnet][--dadr][--mac]\n");
printf(" [--version][--help]\n");
}
+1
View File
@@ -104,6 +104,7 @@ static void print_usage(char *filename)
{
printf("Usage: %s [error-class error-code service-number invoke-id]\n",
filename);
printf(" [--dnet][--dadr][--mac]\n");
printf(" [--version][--help]\n");
}
+1
View File
@@ -104,6 +104,7 @@ static void print_usage(char *filename)
{
printf("Usage: %s [device-instance vendor-id max-apdu segmentation]\n",
filename);
printf(" [--dnet][--dadr][--mac]\n");
printf(" [--version][--help]\n");
}
+1
View File
@@ -80,6 +80,7 @@ static void print_usage(char *filename)
" [new-state status-flags message notify-type\n"
" ack-required from-state to-state]\n",
filename);
printf(" [--dnet][--dadr][--mac]\n");
printf(" [--version][--help]\n");
}