[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: apl
Forum Index » Profile for apl » Messages posted by apl
Author Message
I use the same adapter and I had similar problems (mango 1.4.2?) on linux - after recompiling mango the problem vanished mysterious - I don't know why...

Currently I tested it with mango 1.6.4 on winXP - it runs out of the box.

So my gues is it cant find the COM-Port.
The COM-Port driver is a FTDI 2.4.16.0 (in the Device-manager - (System->Hardware->COM-Ports or similar).

Does the OneWireViewer.exe (it is a Javaprogram with an exe-wrapper) show the adapter an the devices?

Arne
Which OS and adapter do you use?

Arne

Hi I am need to scan a list of devices (MBus).
This can take some time (i.e. modem dialin) - is BACNetDiscovery the answer for an template?

Arne
Ok,

here we go:


the classname was a typo, thank you.

You (or probably me) can improve it to pass a broadcastaddress and timeout via main().

Arne
Thank you, iI got it from CVS.

so here is my next "streamlined" ex DiscoveryTest example

It sends a WhoIs Request, waits for the first device to answer (in doDiscover()).
And then it requests all available Properties with PropertyIdentifier.all.
Then it prints the properties sorted by ObjectId.



If you find this useful, you may add this to CVS.

If you interested, I would write a read specific property the old DiscoveryTest and a writeProperty test.


Arne
Hi,

is it really necessary to set localDevice in the constructor of com.serotonin.bacnet4j.obj.BAcnetObject, doing this in localDevce.add() should be the better way?

Create wrappers for the base Objects (BAchnetObject)
that implement the required and optional properties?
=> AnalogInput
like this:


And last but noit least create a library of proxies for real Devices that encapsulates the readProperty process and act as "normal" java classes with properties?

Arne
Hi Matthew,

this happends by ObjectType == multiStateOutput and analogOutput

Arne
Sorry,

I thought this belongs also to create a bunch of example that runs out of the box.

OK, here is my stack trace:


Any Idea?

Arne
Hi Matthew,

the offending PropertyId are: 8, 87, 105, which throw a java.lang.reflect.InvocationTargetException.

Should I file a bug against it in the SF bug parade?

Arne
Hi,

trying to read all property values by using this changed code in :


and choose values greater of 12 >> the app will fail.

Any hints?

Arne
So this two classes should work straight out of the box on any machine ;-)

DeviceTest


LoopDevice


Arne
Thanks, step done ...

Are you Interested in the changed code?

next: How to read the Properties of the objects ai0,ai1,bi0,bi1,msg0,ao0 set by SimpleTest? - or in which testfiles are there?

Arne
I changedt the IP-Addresses to localhost ans set the Port of the localDevice to default +1.
running this I get an:

com.serotonin.bacnet4j.exception.ErrorAPDUException: ErrorAPDU(choice=12, errorClass=Object, errorCode=Unknown object

at: localDevice.getExtendedDeviceInformation(d);

Any Idea what happend?



If you add the following constructot to OctetSting:


One can write


Arne
I tried it without any bacnet hardware.

The docs says one can use the software as device (maybe 1-wire to bacnet gateway on PC)?

or I misunderstand the docs?

Arne
Hi,

I cant get the test-examples to work. I am new to bacnet - so I eventually missed something in DiscoveryTest and Test.

My problem with the sources are the IP addresses (LocalDevice 192.168.60.255) maybe use the local loopback 127.0.0.255?
The RemoteDevice uses 206.210.100.134 - use instead 127.0.0.1 as address?

Or are these tests not intended to work as is in software only?

Arne
 
Forum Index » Profile for apl » Messages posted by apl
Go to:   
Powered by JForum 2.1.9 © JForum Team