09:24
I am getting an 'error', "source address mismatch" when running a very simple script.
Script:
SETUP Who-Is Service Execution (global Network)
INCLUDE "config.vts"
OBJECT1 = device, 37129
LOW_LIMIT = 30000 ; Low limit of a device range that will include the IUT.
HIGH_LIMIT = 37134 ; High limit of a device range that will include the IUT.
OUTSIDE_LOW = 0 ; Low limit of a device range that won't include the IUT.
OUTSIDE_HIGH = 29999 ; High limit of a device range that won't include the IUT.
SECTION Who-Is Service Execution (Local Network)
TEST#1 - Send Who is short check
REFERENCE (B) Who-Is and I-Am Services (T) Global Broadcast, General Inquiry
DEPENDENCIES None
-- Transmit broadcast "Who-Is" message
SEND (
DA = GLOBAL-BROADCAST
PDU = Unconfirmed-Request
Service = Who-Is
)
-- The IUT replies with either local/global broadcast "I-Am"
EXPECT (
PDU = Unconfirmed-Request
Service = I-Am
)
OR (
PDU = Unconfirmed-Request
Service = I-Am
)
Config.vts:
TD_DEVICE_OBJECT = (device, 22)
TD_PROCESS_ID = 10
IUT_ADDR = "IUT"
FIND_ROUTER = 1
IUT_DEVICE_OBJECT = (device, 37129)
IUT_DEVICE_INSTANCE = 37129
IUT_SRC_ADDR = "10.0.0.26"
The target is on ms/tp via a router.
The vts is set to
Device - TD 22 - defaults
Port - "MyPort" - IP (interface ethernet connection, 0xBAC0, B/IP (annex j) selected)
Names
TD - MyPort, Null
IUT - MyPort, Remote Station, network 2, addr 0a-00-00-1a-BAC0
Network 2 is configured in the bacnet router. This all seems to be working fine
What happens
The who-is looks like (two instances are seen in vts)
Source/dest = 10.255.255.255:0xBAC0 - Who-Is All Devices
and
Source/dest = 10.0.0.14:0xBAC0 - Who-Is All Devices
Return I get
MyPort 10.0.0.26:47808 local broadcast snet=2 saddr=43 dnet =broadcast daddr=broadcast I-am,device_37129
! This looks fine to me
Then (x2)
Source address mismatch
Source address mismatch
Failed Test…
The thing I don't get is I am not checking for the SA in the expect/or clause.
Am I doing something implicitly wrong here?
Also where can I find info on how to write these scripts?
The VTS Message says Script line = 43 which is the EXPECT line above.