| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 27/07/2010 04:39:03
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
I am new in Bacnet and Bacnet4J. I am developping an slave bacnet application. this application has to discover a list of bacnet objects/devices and after to manage its. I am using VTS (Virtual Tset Shell) to test my application.
I have some questions, so :
1- i create a localDevice
10.193.224.255 : address broadcast
and after i initialise it
finally i send a broadcast request
but the list of object is empty and VTS doesn't receive any thing, i don't know why because with VTS i create devices and objects that have "10.193.224.177" address IP. So i don't know how i can do this
2- what is the different between remoteDevice and localDevice ?
3- second test : with VTS i send WhoIsRequest
after i create a bacnet object in my application
after i send :
But VTS doesn't receive any thing
thanks for help
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 27/07/2010 10:12:51
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
Can you use wireshark to try and figure out what's going on? At least to produce some message traces?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 28/07/2010 05:21:46
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
I found the solution of my problem. On VTS I configured the network as remote network but i test in local network. So i changed it and now i receive informations from my application
Thank you for your help.
Just an other question, i have this exception when i send UnconfirmedTextMessage via VTS :
do you know why ?
thanks
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 28/07/2010 09:50:38
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
The character encoding you are using is not recognized. The reference value is 29, but the only valid values AFAIK are:
Can you provide a trace of the message?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 29/07/2010 05:36:16
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
With VTS, when i sent UnconfirmedTextMessage, i specified a numeric class witch doesn't exists, so my application throws exception
thank you for your help
| Filename |
vts.JPG |
Download
|
| Description |
|
| Filesize |
53 Kbytes
|
| Downloaded: |
39 time(s) |
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 29/07/2010 09:34:57
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
Code changes have been made so that a more informative error message is provided.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 20/08/2010 05:46:06
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
I have a question about SubscribeCOVRequest; it is possible to make the subscription COV for all time and not for a specific lifetime ?
thanks for help
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 20/08/2010 09:51:42
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
From the spec:
13.14.1.5 Lifetime
This parameter, of type Unsigned, shall convey the desired lifetime of the subscription in seconds. A value of zero shall
indicate an indefinite lifetime, without automatic cancellation. A non-zero value shall indicate the number of seconds that
may elapse before the subscription shall be automatically cancelled. If both the 'Issue Confirmed Notifications' and 'Lifetime'
parameters are absent, then this shall indicate a cancellation request. If the 'Lifetime' parameter is present then the 'Issue
Confirmed Notifications' parameter shall be present.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 22/09/2010 09:21:14
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
I have a problem with a new ObjectType that i added, it's CREDENTIAL_INPUT
when i execute
for each propertyReference i do
pr is PropertyReference and props is PropertyValues and oid is my ObjectIdentifier
the result is
Do you have an Idea ?
thanks for help
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 24/09/2010 10:25:41
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
Did you define the object type with all of its attributes in com.serotonin.bacnet4j.obj.ObjectProperties?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 24/09/2010 11:15:40
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
Thanks for your help, i didn't do that
It works know
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/10/2010 11:44:55
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
Hi,
I have always the same problem with the subscriptionCOV service. I want to make it without cancellation. So from the spec we have :
13.14.1.5 Lifetime
This parameter, of type Unsigned, shall convey the desired lifetime of the subscription in seconds. A value of zero shall
indicate an indefinite lifetime, without automatic cancellation. A non-zero value shall indicate the number of seconds that
may elapse before the subscription shall be automatically cancelled. If both the 'Issue Confirmed Notifications' and 'Lifetime'
parameters are absent, then this shall indicate a cancellation request. If the 'Lifetime' parameter is present then the 'Issue
Confirmed Notifications' parameter shall be present.
So i put this
I tested lifetime = null, but it doesn't work
thanks for help
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/10/2010 23:33:02
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
I tested lifetime = null, but it doesn't work
You mean the request fails? If so, can you provide details of the BACnet exception?
Or do you mean that the subscription still expires? This may be due to the equipment to which you are sending the request. Or maybe not.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 28/10/2010 10:59:36
|
ilyass
Initiate
Joined: 21/07/2010 11:29:20
Messages: 9
Offline
|
I mean that the notification doesn't work, but no exception is made.
when i send this subscription, i received just one time the notification.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 29/10/2010 22:30:39
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
Still don't understand. If you received any notification at all, doesn't that mean the subscription worked, at least for some time?
|
Best regards,
Matthew Lohbihler |
|
|
 |
|
|