C# Class System.IO.BACnet.BacnetClient

This can be both client and server
Inheritance: IDisposable
显示文件 Open project: temcocontrols/T3000_Building_Automation_System Class Usage Examples

Public Properties

Property Type Description
DEFAULT_HOP_COUNT byte
raw_buffer byte[]
raw_offset int

Public Methods

Method Description
AddListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, byte invoke_id ) : bool
AlarmAcknowledgement ( BacnetAddress adr, BacnetObjectId objid, BacnetEventNotificationData eventState, String AckText, BacnetGenericTime evTimeStamp, BacnetGenericTime ackTimeStamp, byte invoke_id ) : bool
BacnetClient ( IBacnetTransport transport, int timeout = 1000, int retries = 3 ) : System
BacnetClient ( int port = 0xBAC0, int timeout = 1000, int retries = 3 ) : System
BacnetClient ( string port_name, int baud_rate, int timeout = 1000, int retries = 3 ) : System
BeginAddListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginAlarmAcknowledgement ( BacnetAddress adr, BacnetObjectId objid, BacnetEventNotificationData eventState, String AckText, BacnetGenericTime evTimeStamp, BacnetGenericTime ackTimeStamp, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginConfirmedNotify ( BacnetAddress adr, uint subscriberProcessIdentifier, uint initiatingDeviceIdentifier, BacnetObjectId monitoredObjectIdentifier, uint timeRemaining, IList values, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginCreateObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginDeleteObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginDeviceCommunicationControlRequest ( BacnetAddress adr, uint timeDuration, uint enable_disable, string password, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginGetAlarmSummaryOrEventRequest ( BacnetAddress adr, bool GetEvent, IList Alarms, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginRawEncodedDecodedPropertyConfirmedRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, BacnetConfirmedServices service_id, byte InOutBuffer, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginReadFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int position, uint count, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginReadPropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, IList property_id_and_array_index, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginReadPropertyMultipleRequest ( BacnetAddress adr, IList properties, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginReadPropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, bool wait_for_transmit, byte invoke_id, uint array_index = ASN1.BACNET_ARRAY_ALL ) : IAsyncResult
BeginReadRangeRequest ( BacnetAddress adr, BacnetObjectId object_id, uint idxBegin, uint Quantity, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginReinitializeRequest ( BacnetAddress adr, BacnetReinitializedStates state, string password, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginRemoveListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginSubscribeCOVRequest ( BacnetAddress adr, BacnetObjectId object_id, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, uint lifetime, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginSubscribePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference monitored_property, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginWriteFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int position, int count, byte file_buffer, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginWritePropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginWritePropertyMultipleRequest ( BacnetAddress adr, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
BeginWritePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IEnumerable value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
CreateObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, byte invoke_id ) : bool
CreateObjectResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id ) : void
DeleteObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, byte invoke_id ) : bool
DeviceCommunicationControlRequest ( BacnetAddress adr, uint timeDuration, uint enable_disable, string password, byte invoke_id ) : bool
Dispose ( ) : void
EndAddListElementRequest ( IAsyncResult result, Exception &ex ) : void
EndAlarmAcknowledgement ( IAsyncResult result, Exception &ex ) : void
EndConfirmedNotify ( IAsyncResult result, Exception &ex ) : void
EndCreateObjectRequest ( IAsyncResult result, Exception &ex ) : void
EndDeleteObjectRequest ( IAsyncResult result, Exception &ex ) : void
EndDeviceCommunicationControlRequest ( IAsyncResult result, Exception &ex ) : void
EndGetAlarmSummaryOrEventRequest ( IAsyncResult result, bool GetEvent, IList &Alarms, bool &MoreEvent, Exception &ex ) : void
EndRawEncodedDecodedPropertyConfirmedRequest ( IAsyncResult result, BacnetConfirmedServices service_id, byte &InOutBuffer, Exception &ex ) : void
EndReadFileRequest ( IAsyncResult result, uint &count, int &position, bool &end_of_file, byte &file_buffer, int &file_buffer_offset, Exception &ex ) : void
EndReadPropertyMultipleRequest ( IAsyncResult result, IList &values, Exception &ex ) : void
EndReadPropertyRequest ( IAsyncResult result, IList &value_list, Exception &ex ) : void
EndReadRangeRequest ( IAsyncResult result, byte &trendbuffer, uint &ItemCount, Exception &ex ) : void
EndReinitializeRequest ( IAsyncResult result, Exception &ex ) : void
EndSubscribeCOVRequest ( IAsyncResult result, Exception &ex ) : void
EndSubscribePropertyRequest ( IAsyncResult result, Exception &ex ) : void
EndWriteFileRequest ( IAsyncResult result, int &position, Exception &ex ) : void
EndWritePropertyRequest ( IAsyncResult result, Exception &ex ) : void
Equals ( object obj ) : bool
ErrorResponse ( BacnetAddress adr, BacnetConfirmedServices service, byte invoke_id, BacnetErrorClasses error_class, BacnetErrorCodes error_code ) : void
GetAlarmSummaryOrEventRequest ( BacnetAddress adr, bool GetEvent, IList &Alarms, byte invoke_id ) : bool
GetEncodeBuffer ( int start_offset ) : EncodeBuffer
GetFileBufferMaxSize ( ) : int
GetHashCode ( ) : int
GetMaxApdu ( ) : int
GetSegmentBuffer ( BacnetMaxSegments max_segments ) : Segmentation
GetSegmentsCount ( byte max_segments ) : BacnetMaxSegments
GetSegmentsCount ( BacnetMaxSegments max_segments ) : byte
Iam ( uint device_id, BacnetSegmentations segmentation ) : void
Notify ( BacnetAddress adr, uint subscriberProcessIdentifier, uint initiatingDeviceIdentifier, BacnetObjectId monitoredObjectIdentifier, uint timeRemaining, bool issueConfirmedNotifications, IList values ) : bool
RawEncodedDecodedPropertyConfirmedRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, BacnetConfirmedServices service_id, byte &InOutBuffer, byte invoke_id ) : bool
ReadFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int &position, uint &count, bool &end_of_file, byte &file_buffer, int &file_buffer_offset, byte invoke_id ) : bool
ReadFileResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int position, uint count, bool end_of_file, byte file_buffer ) : void
ReadPropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, IList property_id_and_array_index, IList &values, byte invoke_id ) : bool
ReadPropertyMultipleRequest ( BacnetAddress adr, IList properties, IList &values, byte invoke_id ) : bool
ReadPropertyMultipleResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, IList values ) : void
ReadPropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IList &value_list, byte invoke_id, uint array_index = ASN1.BACNET_ARRAY_ALL ) : bool
ReadPropertyResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id, BacnetPropertyReference property, IEnumerable value ) : void
ReadRangeRequest ( BacnetAddress adr, BacnetObjectId object_id, uint idxBegin, uint &Quantity, byte &Range, byte invoke_id ) : bool
ReadRangeResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id, BacnetPropertyReference property, BacnetResultFlags status, uint item_count, byte application_data, BacnetReadRangeRequestTypes request_type, uint first_sequence_no ) : void
RegisterAsForeignDevice ( String BBMD_IP, short TTL, int Port = 0xbac0 ) : void
ReinitializeRequest ( BacnetAddress adr, BacnetReinitializedStates state, string password, byte invoke_id ) : bool
RemoteWhoIs ( String BBMD_IP, int Port = 0xbac0, int low_limit = -1, int high_limit = -1 ) : void
RemoveListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, byte invoke_id ) : bool
SegmentAckResponse ( BacnetAddress adr, bool negative, bool server, byte original_invoke_id, byte sequence_number, byte actual_window_size ) : void
SendConfirmedServiceReject ( BacnetAddress adr, byte invoke_id, BacnetRejectReasons reason ) : void
SendUnconfirmedEventNotification ( BacnetAddress adr, BacnetEventNotificationData eventData ) : void
SimpleAckResponse ( BacnetAddress adr, BacnetConfirmedServices service, byte invoke_id ) : void
Start ( ) : void
SubscribeCOVRequest ( BacnetAddress adr, BacnetObjectId object_id, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, uint lifetime, byte invoke_id ) : bool
SubscribePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference monitored_property, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, byte invoke_id ) : bool
SynchronizeTime ( BacnetAddress adr, System.DateTime dateTime, bool utc ) : void
ToString ( ) : string
WaitForAllTransmits ( int timeout ) : bool
WaitForSegmentAck ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int timeout ) : bool
WhoIs ( int low_limit = -1, int high_limit = -1, BacnetAddress _receiver = null ) : void
WriteFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int &position, int count, byte file_buffer, byte invoke_id ) : bool
WriteFileResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int position ) : void
WritePropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, byte invoke_id ) : bool
WritePropertyMultipleRequest ( BacnetAddress adr, ICollection value_list, byte invoke_id ) : bool
WritePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IEnumerable value_list, byte invoke_id ) : bool

Protected Methods

Method Description
ProcessAbort ( BacnetAddress adr, BacnetPduTypes type, byte invoke_id, byte reason, byte buffer, int offset, int length ) : void
ProcessComplexAck ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
ProcessConfirmedServiceRequest ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, BacnetMaxSegments max_segments, BacnetMaxAdpu max_adpu, byte invoke_id, byte buffer, int offset, int length ) : void
ProcessError ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
ProcessSegmentAck ( BacnetAddress adr, BacnetPduTypes type, byte original_invoke_id, byte sequence_number, byte actual_window_size, byte buffer, int offset, int length ) : void
ProcessSimpleAck ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
ProcessUnconfirmedServiceRequest ( BacnetAddress adr, BacnetPduTypes type, BacnetUnconfirmedServices service, byte buffer, int offset, int length ) : void

Private Methods

Method Description
AssembleSegments ( ) : byte[]
EncodeSegment ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetConfirmedServices service, EncodeBuffer &buffer, Action apdu_content_encode ) : bool
EncodeSegmentHeader ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetConfirmedServices service, bool more_follows ) : EncodeBuffer
OnRecieve ( IBacnetTransport sender, byte buffer, int offset, int msg_length, BacnetAddress remote_address ) : void
PerformDefaultSegmentHandling ( BacnetClient sender, BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, BacnetMaxSegments max_segments, BacnetMaxAdpu max_adpu, byte sequence_number, bool first, bool more_follows, byte buffer, int offset, int length ) : void

This is a simple handling that stores all segments in memory and assembles them when done

ProcessApdu ( BacnetAddress adr, BacnetPduTypes type, byte buffer, int offset, int length ) : void
ProcessSegment ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, BacnetMaxSegments max_segments, BacnetMaxAdpu max_adpu, bool server, byte sequence_number, byte proposed_window_number, byte buffer, int offset, int length ) : void
SendComplexAck ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetConfirmedServices service, Action apdu_content_encode ) : void

Method Details

AddListElementRequest() public method

public AddListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
reference BacnetPropertyReference
value_list IList
invoke_id byte
return bool

AlarmAcknowledgement() public method

public AlarmAcknowledgement ( BacnetAddress adr, BacnetObjectId objid, BacnetEventNotificationData eventState, String AckText, BacnetGenericTime evTimeStamp, BacnetGenericTime ackTimeStamp, byte invoke_id ) : bool
adr BacnetAddress
objid BacnetObjectId
eventState BacnetEventNotificationData
AckText String
evTimeStamp BacnetGenericTime
ackTimeStamp BacnetGenericTime
invoke_id byte
return bool

BacnetClient() public method

public BacnetClient ( IBacnetTransport transport, int timeout = 1000, int retries = 3 ) : System
transport IBacnetTransport
timeout int
retries int
return System

BacnetClient() public method

public BacnetClient ( int port = 0xBAC0, int timeout = 1000, int retries = 3 ) : System
port int
timeout int
retries int
return System

BacnetClient() public method

public BacnetClient ( string port_name, int baud_rate, int timeout = 1000, int retries = 3 ) : System
port_name string
baud_rate int
timeout int
retries int
return System

BeginAddListElementRequest() public method

public BeginAddListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
reference BacnetPropertyReference
value_list IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginAlarmAcknowledgement() public method

public BeginAlarmAcknowledgement ( BacnetAddress adr, BacnetObjectId objid, BacnetEventNotificationData eventState, String AckText, BacnetGenericTime evTimeStamp, BacnetGenericTime ackTimeStamp, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
objid BacnetObjectId
eventState BacnetEventNotificationData
AckText String
evTimeStamp BacnetGenericTime
ackTimeStamp BacnetGenericTime
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginConfirmedNotify() public method

public BeginConfirmedNotify ( BacnetAddress adr, uint subscriberProcessIdentifier, uint initiatingDeviceIdentifier, BacnetObjectId monitoredObjectIdentifier, uint timeRemaining, IList values, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
subscriberProcessIdentifier uint
initiatingDeviceIdentifier uint
monitoredObjectIdentifier BacnetObjectId
timeRemaining uint
values IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginCreateObjectRequest() public method

public BeginCreateObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
value_list ICollection
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginDeleteObjectRequest() public method

public BeginDeleteObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginDeviceCommunicationControlRequest() public method

public BeginDeviceCommunicationControlRequest ( BacnetAddress adr, uint timeDuration, uint enable_disable, string password, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
timeDuration uint
enable_disable uint
password string
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginGetAlarmSummaryOrEventRequest() public method

public BeginGetAlarmSummaryOrEventRequest ( BacnetAddress adr, bool GetEvent, IList Alarms, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
GetEvent bool
Alarms IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginRawEncodedDecodedPropertyConfirmedRequest() public method

public BeginRawEncodedDecodedPropertyConfirmedRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, BacnetConfirmedServices service_id, byte InOutBuffer, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
service_id BacnetConfirmedServices
InOutBuffer byte
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginReadFileRequest() public method

public BeginReadFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int position, uint count, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
position int
count uint
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginReadPropertyMultipleRequest() public method

public BeginReadPropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, IList property_id_and_array_index, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
property_id_and_array_index IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginReadPropertyMultipleRequest() public method

public BeginReadPropertyMultipleRequest ( BacnetAddress adr, IList properties, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
properties IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginReadPropertyRequest() public method

public BeginReadPropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, bool wait_for_transmit, byte invoke_id, uint array_index = ASN1.BACNET_ARRAY_ALL ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
wait_for_transmit bool
invoke_id byte
array_index uint
return IAsyncResult

BeginReadRangeRequest() public method

public BeginReadRangeRequest ( BacnetAddress adr, BacnetObjectId object_id, uint idxBegin, uint Quantity, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
idxBegin uint
Quantity uint
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginReinitializeRequest() public method

public BeginReinitializeRequest ( BacnetAddress adr, BacnetReinitializedStates state, string password, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
state BacnetReinitializedStates
password string
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginRemoveListElementRequest() public method

public BeginRemoveListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
reference BacnetPropertyReference
value_list IList
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginSubscribeCOVRequest() public method

public BeginSubscribeCOVRequest ( BacnetAddress adr, BacnetObjectId object_id, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, uint lifetime, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
subscribe_id uint
cancel bool
issue_confirmed_notifications bool
lifetime uint
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginSubscribePropertyRequest() public method

public BeginSubscribePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference monitored_property, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
monitored_property BacnetPropertyReference
subscribe_id uint
cancel bool
issue_confirmed_notifications bool
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginWriteFileRequest() public method

public BeginWriteFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int position, int count, byte file_buffer, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
position int
count int
file_buffer byte
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginWritePropertyMultipleRequest() public method

public BeginWritePropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
value_list ICollection
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginWritePropertyMultipleRequest() public method

public BeginWritePropertyMultipleRequest ( BacnetAddress adr, ICollection value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
value_list ICollection
wait_for_transmit bool
invoke_id byte
return IAsyncResult

BeginWritePropertyRequest() public method

public BeginWritePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IEnumerable value_list, bool wait_for_transmit, byte invoke_id ) : IAsyncResult
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
value_list IEnumerable
wait_for_transmit bool
invoke_id byte
return IAsyncResult

CreateObjectRequest() public method

public CreateObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
value_list ICollection
invoke_id byte
return bool

CreateObjectResponse() public method

public CreateObjectResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
object_id BacnetObjectId
return void

DeleteObjectRequest() public method

public DeleteObjectRequest ( BacnetAddress adr, BacnetObjectId object_id, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
invoke_id byte
return bool

DeviceCommunicationControlRequest() public method

public DeviceCommunicationControlRequest ( BacnetAddress adr, uint timeDuration, uint enable_disable, string password, byte invoke_id ) : bool
adr BacnetAddress
timeDuration uint
enable_disable uint
password string
invoke_id byte
return bool

Dispose() public method

public Dispose ( ) : void
return void

EndAddListElementRequest() public method

public EndAddListElementRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndAlarmAcknowledgement() public method

public EndAlarmAcknowledgement ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndConfirmedNotify() public method

public EndConfirmedNotify ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndCreateObjectRequest() public method

public EndCreateObjectRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndDeleteObjectRequest() public method

public EndDeleteObjectRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndDeviceCommunicationControlRequest() public method

public EndDeviceCommunicationControlRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndGetAlarmSummaryOrEventRequest() public method

public EndGetAlarmSummaryOrEventRequest ( IAsyncResult result, bool GetEvent, IList &Alarms, bool &MoreEvent, Exception &ex ) : void
result IAsyncResult
GetEvent bool
Alarms IList
MoreEvent bool
ex System.Exception
return void

EndRawEncodedDecodedPropertyConfirmedRequest() public method

public EndRawEncodedDecodedPropertyConfirmedRequest ( IAsyncResult result, BacnetConfirmedServices service_id, byte &InOutBuffer, Exception &ex ) : void
result IAsyncResult
service_id BacnetConfirmedServices
InOutBuffer byte
ex System.Exception
return void

EndReadFileRequest() public method

public EndReadFileRequest ( IAsyncResult result, uint &count, int &position, bool &end_of_file, byte &file_buffer, int &file_buffer_offset, Exception &ex ) : void
result IAsyncResult
count uint
position int
end_of_file bool
file_buffer byte
file_buffer_offset int
ex System.Exception
return void

EndReadPropertyMultipleRequest() public method

public EndReadPropertyMultipleRequest ( IAsyncResult result, IList &values, Exception &ex ) : void
result IAsyncResult
values IList
ex System.Exception
return void

EndReadPropertyRequest() public method

public EndReadPropertyRequest ( IAsyncResult result, IList &value_list, Exception &ex ) : void
result IAsyncResult
value_list IList
ex System.Exception
return void

EndReadRangeRequest() public method

public EndReadRangeRequest ( IAsyncResult result, byte &trendbuffer, uint &ItemCount, Exception &ex ) : void
result IAsyncResult
trendbuffer byte
ItemCount uint
ex System.Exception
return void

EndReinitializeRequest() public method

public EndReinitializeRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndSubscribeCOVRequest() public method

public EndSubscribeCOVRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndSubscribePropertyRequest() public method

public EndSubscribePropertyRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

EndWriteFileRequest() public method

public EndWriteFileRequest ( IAsyncResult result, int &position, Exception &ex ) : void
result IAsyncResult
position int
ex System.Exception
return void

EndWritePropertyRequest() public method

public EndWritePropertyRequest ( IAsyncResult result, Exception &ex ) : void
result IAsyncResult
ex System.Exception
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

ErrorResponse() public method

public ErrorResponse ( BacnetAddress adr, BacnetConfirmedServices service, byte invoke_id, BacnetErrorClasses error_class, BacnetErrorCodes error_code ) : void
adr BacnetAddress
service BacnetConfirmedServices
invoke_id byte
error_class BacnetErrorClasses
error_code BacnetErrorCodes
return void

GetAlarmSummaryOrEventRequest() public method

public GetAlarmSummaryOrEventRequest ( BacnetAddress adr, bool GetEvent, IList &Alarms, byte invoke_id ) : bool
adr BacnetAddress
GetEvent bool
Alarms IList
invoke_id byte
return bool

GetEncodeBuffer() public method

public GetEncodeBuffer ( int start_offset ) : EncodeBuffer
start_offset int
return EncodeBuffer

GetFileBufferMaxSize() public method

public GetFileBufferMaxSize ( ) : int
return int

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetMaxApdu() public method

public GetMaxApdu ( ) : int
return int

GetSegmentBuffer() public method

public GetSegmentBuffer ( BacnetMaxSegments max_segments ) : Segmentation
max_segments BacnetMaxSegments
return Segmentation

GetSegmentsCount() public static method

public static GetSegmentsCount ( byte max_segments ) : BacnetMaxSegments
max_segments byte
return BacnetMaxSegments

GetSegmentsCount() public static method

public static GetSegmentsCount ( BacnetMaxSegments max_segments ) : byte
max_segments BacnetMaxSegments
return byte

Iam() public method

public Iam ( uint device_id, BacnetSegmentations segmentation ) : void
device_id uint
segmentation BacnetSegmentations
return void

Notify() public method

public Notify ( BacnetAddress adr, uint subscriberProcessIdentifier, uint initiatingDeviceIdentifier, BacnetObjectId monitoredObjectIdentifier, uint timeRemaining, bool issueConfirmedNotifications, IList values ) : bool
adr BacnetAddress
subscriberProcessIdentifier uint
initiatingDeviceIdentifier uint
monitoredObjectIdentifier BacnetObjectId
timeRemaining uint
issueConfirmedNotifications bool
values IList
return bool

ProcessAbort() protected method

protected ProcessAbort ( BacnetAddress adr, BacnetPduTypes type, byte invoke_id, byte reason, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
invoke_id byte
reason byte
buffer byte
offset int
length int
return void

ProcessComplexAck() protected method

protected ProcessComplexAck ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetConfirmedServices
invoke_id byte
buffer byte
offset int
length int
return void

ProcessConfirmedServiceRequest() protected method

protected ProcessConfirmedServiceRequest ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, BacnetMaxSegments max_segments, BacnetMaxAdpu max_adpu, byte invoke_id, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetConfirmedServices
max_segments BacnetMaxSegments
max_adpu BacnetMaxAdpu
invoke_id byte
buffer byte
offset int
length int
return void

ProcessError() protected method

protected ProcessError ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetConfirmedServices
invoke_id byte
buffer byte
offset int
length int
return void

ProcessSegmentAck() protected method

protected ProcessSegmentAck ( BacnetAddress adr, BacnetPduTypes type, byte original_invoke_id, byte sequence_number, byte actual_window_size, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
original_invoke_id byte
sequence_number byte
actual_window_size byte
buffer byte
offset int
length int
return void

ProcessSimpleAck() protected method

protected ProcessSimpleAck ( BacnetAddress adr, BacnetPduTypes type, BacnetConfirmedServices service, byte invoke_id, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetConfirmedServices
invoke_id byte
buffer byte
offset int
length int
return void

ProcessUnconfirmedServiceRequest() protected method

protected ProcessUnconfirmedServiceRequest ( BacnetAddress adr, BacnetPduTypes type, BacnetUnconfirmedServices service, byte buffer, int offset, int length ) : void
adr BacnetAddress
type BacnetPduTypes
service BacnetUnconfirmedServices
buffer byte
offset int
length int
return void

RawEncodedDecodedPropertyConfirmedRequest() public method

public RawEncodedDecodedPropertyConfirmedRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, BacnetConfirmedServices service_id, byte &InOutBuffer, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
service_id BacnetConfirmedServices
InOutBuffer byte
invoke_id byte
return bool

ReadFileRequest() public method

public ReadFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int &position, uint &count, bool &end_of_file, byte &file_buffer, int &file_buffer_offset, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
position int
count uint
end_of_file bool
file_buffer byte
file_buffer_offset int
invoke_id byte
return bool

ReadFileResponse() public method

public ReadFileResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int position, uint count, bool end_of_file, byte file_buffer ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
position int
count uint
end_of_file bool
file_buffer byte
return void

ReadPropertyMultipleRequest() public method

public ReadPropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, IList property_id_and_array_index, IList &values, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
property_id_and_array_index IList
values IList
invoke_id byte
return bool

ReadPropertyMultipleRequest() public method

public ReadPropertyMultipleRequest ( BacnetAddress adr, IList properties, IList &values, byte invoke_id ) : bool
adr BacnetAddress
properties IList
values IList
invoke_id byte
return bool

ReadPropertyMultipleResponse() public method

public ReadPropertyMultipleResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, IList values ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
values IList
return void

ReadPropertyRequest() public method

public ReadPropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IList &value_list, byte invoke_id, uint array_index = ASN1.BACNET_ARRAY_ALL ) : bool
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
value_list IList
invoke_id byte
array_index uint
return bool

ReadPropertyResponse() public method

public ReadPropertyResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id, BacnetPropertyReference property, IEnumerable value ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
object_id BacnetObjectId
property BacnetPropertyReference
value IEnumerable
return void

ReadRangeRequest() public method

public ReadRangeRequest ( BacnetAddress adr, BacnetObjectId object_id, uint idxBegin, uint &Quantity, byte &Range, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
idxBegin uint
Quantity uint
Range byte
invoke_id byte
return bool

ReadRangeResponse() public method

public ReadRangeResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, BacnetObjectId object_id, BacnetPropertyReference property, BacnetResultFlags status, uint item_count, byte application_data, BacnetReadRangeRequestTypes request_type, uint first_sequence_no ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
object_id BacnetObjectId
property BacnetPropertyReference
status BacnetResultFlags
item_count uint
application_data byte
request_type BacnetReadRangeRequestTypes
first_sequence_no uint
return void

RegisterAsForeignDevice() public method

public RegisterAsForeignDevice ( String BBMD_IP, short TTL, int Port = 0xbac0 ) : void
BBMD_IP String
TTL short
Port int
return void

ReinitializeRequest() public method

public ReinitializeRequest ( BacnetAddress adr, BacnetReinitializedStates state, string password, byte invoke_id ) : bool
adr BacnetAddress
state BacnetReinitializedStates
password string
invoke_id byte
return bool

RemoteWhoIs() public method

public RemoteWhoIs ( String BBMD_IP, int Port = 0xbac0, int low_limit = -1, int high_limit = -1 ) : void
BBMD_IP String
Port int
low_limit int
high_limit int
return void

RemoveListElementRequest() public method

public RemoveListElementRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference reference, IList value_list, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
reference BacnetPropertyReference
value_list IList
invoke_id byte
return bool

SegmentAckResponse() public method

public SegmentAckResponse ( BacnetAddress adr, bool negative, bool server, byte original_invoke_id, byte sequence_number, byte actual_window_size ) : void
adr BacnetAddress
negative bool
server bool
original_invoke_id byte
sequence_number byte
actual_window_size byte
return void

SendConfirmedServiceReject() public method

public SendConfirmedServiceReject ( BacnetAddress adr, byte invoke_id, BacnetRejectReasons reason ) : void
adr BacnetAddress
invoke_id byte
reason BacnetRejectReasons
return void

SendUnconfirmedEventNotification() public method

public SendUnconfirmedEventNotification ( BacnetAddress adr, BacnetEventNotificationData eventData ) : void
adr BacnetAddress
eventData BacnetEventNotificationData
return void

SimpleAckResponse() public method

public SimpleAckResponse ( BacnetAddress adr, BacnetConfirmedServices service, byte invoke_id ) : void
adr BacnetAddress
service BacnetConfirmedServices
invoke_id byte
return void

Start() public method

public Start ( ) : void
return void

SubscribeCOVRequest() public method

public SubscribeCOVRequest ( BacnetAddress adr, BacnetObjectId object_id, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, uint lifetime, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
subscribe_id uint
cancel bool
issue_confirmed_notifications bool
lifetime uint
invoke_id byte
return bool

SubscribePropertyRequest() public method

public SubscribePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyReference monitored_property, uint subscribe_id, bool cancel, bool issue_confirmed_notifications, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
monitored_property BacnetPropertyReference
subscribe_id uint
cancel bool
issue_confirmed_notifications bool
invoke_id byte
return bool

SynchronizeTime() public method

public SynchronizeTime ( BacnetAddress adr, System.DateTime dateTime, bool utc ) : void
adr BacnetAddress
dateTime System.DateTime
utc bool
return void

ToString() public method

public ToString ( ) : string
return string

WaitForAllTransmits() public method

public WaitForAllTransmits ( int timeout ) : bool
timeout int
return bool

WaitForSegmentAck() public method

public WaitForSegmentAck ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int timeout ) : bool
adr BacnetAddress
invoke_id byte
segmentation Segmentation
timeout int
return bool

WhoIs() public method

public WhoIs ( int low_limit = -1, int high_limit = -1, BacnetAddress _receiver = null ) : void
low_limit int
high_limit int
_receiver BacnetAddress
return void

WriteFileRequest() public method

public WriteFileRequest ( BacnetAddress adr, BacnetObjectId object_id, int &position, int count, byte file_buffer, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
position int
count int
file_buffer byte
invoke_id byte
return bool

WriteFileResponse() public method

public WriteFileResponse ( BacnetAddress adr, byte invoke_id, Segmentation segmentation, int position ) : void
adr BacnetAddress
invoke_id byte
segmentation Segmentation
position int
return void

WritePropertyMultipleRequest() public method

public WritePropertyMultipleRequest ( BacnetAddress adr, BacnetObjectId object_id, ICollection value_list, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
value_list ICollection
invoke_id byte
return bool

WritePropertyMultipleRequest() public method

public WritePropertyMultipleRequest ( BacnetAddress adr, ICollection value_list, byte invoke_id ) : bool
adr BacnetAddress
value_list ICollection
invoke_id byte
return bool

WritePropertyRequest() public method

public WritePropertyRequest ( BacnetAddress adr, BacnetObjectId object_id, BacnetPropertyIds property_id, IEnumerable value_list, byte invoke_id ) : bool
adr BacnetAddress
object_id BacnetObjectId
property_id BacnetPropertyIds
value_list IEnumerable
invoke_id byte
return bool

Property Details

DEFAULT_HOP_COUNT public_oe static_oe property

public static byte DEFAULT_HOP_COUNT
return byte

raw_buffer public_oe property

public byte[] raw_buffer
return byte[]

raw_offset public_oe property

public int raw_offset
return int