[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
help for bacnet and bacnet4J  XML
Forum Index » BACnet4J general discussion
Author Message
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
mlohbihler

Master
[Avatar]

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
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
mlohbihler

Master
[Avatar]

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
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 [Disk] Download
 Description
 Filesize 53 Kbytes
 Downloaded:  39 time(s)

mlohbihler

Master
[Avatar]

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
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
mlohbihler

Master
[Avatar]

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
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
mlohbihler

Master
[Avatar]

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
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
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
mlohbihler

Master
[Avatar]

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
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.

mlohbihler

Master
[Avatar]

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
 
Forum Index » BACnet4J general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team