<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "help for bacnet and bacnet4J"]]></title>
		<link>http://mango.serotoninsoftware.com/forum/posts/list/12.page</link>
		<description><![CDATA[Latest messages posted in the topic "help for bacnet and bacnet4J"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> 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.<br /> I have some questions, so :<br /> <br /> 1-  i create a localDevice <br /> [code]LocalDevice localDevice = new LocalDevice(1, "10.193.224.255", "10.193.224.239");[/code]<br /> 10.193.224.255 : address broadcast<br /> and after i initialise it <br /> [code]try {<br />          	localDevice.initialize();<br />          }catch(IOException e) {<br />          	System.out.println("IO Error!");<br />          	e.printStackTrace();<br />          	return;<br />          }[/code]<br /> finally i send a broadcast request <br /> [code]localDevice.sendBroadcast(0xBAC0, new WhoIsRequest(null, null));[/code]<br /> 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<br /> <br /> 2- what is the different between remoteDevice and localDevice ?<br /> <br /> 3- second test : with VTS i send WhoIsRequest<br /> <br /> after i create a bacnet object in my application<br /> [code]LocalDevice localDevice = new LocalDevice(1, "10.193.224.255", "10.193.224.239");         <br />          BACnetObject bacnetObj = new BACnetObject(localDevice, new ObjectIdentifier(ObjectType.analogInput, 10));<br />          bacnetObj.setProperty(PropertyIdentifier.objectName, new CharacterString("TemperatureSensorOneRF"));<br />          bacnetObj.setProperty(PropertyIdentifier.description, new CharacterString("Controller of TemperatureSensor"));[/code]<br /> after i send :<br /> [code] localDevice.sendBroadcast(0xBAC0, new IAmRequest(new ObjectIdentifier(ObjectType.analogInput, 10), new UnsignedInteger(1024), Segmentation.noSegmentation, new UnsignedInteger(236)));[/code]<br /> But VTS doesn't receive any thing<br />          <br /> thanks for help<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2235.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2235.page</link>
				<pubDate><![CDATA[Tue, 27 Jul 2010 04:39:03]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Can you use wireshark to try and figure out what's going on? At least to produce some message traces?]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2238.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2238.page</link>
				<pubDate><![CDATA[Tue, 27 Jul 2010 10:12:51]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> 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 <br /> <br /> Thank you for your help.<br /> <br /> Just an other question, i have this exception when i send UnconfirmedTextMessage via VTS :<br /> [code]<br /> <br /> com.serotonin.bacnet4j.exception.BACnetException: Error while creating APDU: <br /> 	at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:501)<br /> 	at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.run(IpMessageControl.java:455)<br /> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br /> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br /> 	at java.lang.Thread.run(Thread.java:619)<br /> Caused by: com.serotonin.bacnet4j.exception.BACnetException: java.lang.reflect.InvocationTargetException<br /> 	at com.serotonin.bacnet4j.type.Encodable.read(Encodable.java:174)<br /> 	at com.serotonin.bacnet4j.type.Encodable.read(Encodable.java:186)<br /> 	at com.serotonin.bacnet4j.type.constructed.Choice.read(Choice.java:65)<br /> 	at com.serotonin.bacnet4j.type.constructed.Choice.&lt;init&gt;(Choice.java:54)<br /> 	at com.serotonin.bacnet4j.service.unconfirmed.UnconfirmedTextMessageRequest.&lt;init&gt;(UnconfirmedTextMessageRequest.java:100)<br /> 	at com.serotonin.bacnet4j.service.unconfirmed.UnconfirmedRequestService.createUnconfirmedRequestService(UnconfirmedRequestService.java:46)<br /> 	at com.serotonin.bacnet4j.apdu.UnconfirmedRequest.&lt;init&gt;(UnconfirmedRequest.java:62)<br /> 	at com.serotonin.bacnet4j.apdu.APDU.createAPDU(APDU.java:38)<br /> 	at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:498)<br /> 	... 4 more<br /> Caused by: java.lang.reflect.InvocationTargetException<br /> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br /> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br /> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br /> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br /> 	at com.serotonin.bacnet4j.type.Encodable.read(Encodable.java:171)<br /> 	... 12 more<br /> Caused by: com.serotonin.bacnet4j.exception.BACnetErrorException: 29<br /> 	at com.serotonin.bacnet4j.type.primitive.CharacterString.validateEncoding(CharacterString.java:138)<br /> 	at com.serotonin.bacnet4j.type.primitive.CharacterString.&lt;init&gt;(CharacterString.java:80)<br /> 	... 17 more<br /> [/code]<br /> <br /> do you know why ?<br /> <br /> thanks]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2245.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2245.page</link>
				<pubDate><![CDATA[Wed, 28 Jul 2010 05:21:46]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ The character encoding you are using is not recognized. The reference value is 29, but the only valid values AFAIK are:<br /> <br /> [code]    public interface Encodings {<br />         byte ANSI_X3_4 = 0;<br />         byte IBM_MS_DBCS = 1;<br />         byte JIS_C_6226 = 2;<br />         byte ISO_10646_UCS_4 = 3;<br />         byte ISO_10646_UCS_2 = 4;<br />         byte ISO_8859_1 = 5;<br />     }<br /> [/code]<br /> <br /> Can you provide a trace of the message?]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2247.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2247.page</link>
				<pubDate><![CDATA[Wed, 28 Jul 2010 09:50:38]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ With VTS, when i sent UnconfirmedTextMessage, i specified a numeric class witch doesn't exists, so my application throws exception<br /> <br /> thank you for your help<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2252.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2252.page</link>
				<pubDate><![CDATA[Thu, 29 Jul 2010 05:36:16]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Code changes have been made so that a more informative error message is provided.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2255.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2255.page</link>
				<pubDate><![CDATA[Thu, 29 Jul 2010 09:34:57]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> I have a question about SubscribeCOVRequest; it is possible to make the subscription COV for all time and not for a specific lifetime ?<br /> <br /> thanks for help]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2375.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2375.page</link>
				<pubDate><![CDATA[Fri, 20 Aug 2010 05:46:06]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ From the spec:<br /> <br /> [quote]13.14.1.5 Lifetime<br /> <br /> This parameter, of type Unsigned, shall convey the desired lifetime of the subscription in seconds. A value of zero shall<br /> indicate an indefinite lifetime, without automatic cancellation. A non-zero value shall indicate the number of seconds that<br /> may elapse before the subscription shall be automatically cancelled. If both the 'Issue Confirmed Notifications' and 'Lifetime'<br /> parameters are absent, then this shall indicate a cancellation request. If the 'Lifetime' parameter is present then the 'Issue<br /> Confirmed Notifications' parameter shall be present.[/quote]]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2376.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2376.page</link>
				<pubDate><![CDATA[Fri, 20 Aug 2010 09:51:42]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> I have a problem with a new ObjectType that i added, it's CREDENTIAL_INPUT<br /> <br /> when i execute <br /> for each propertyReference i do<br /> [code]Encodable encodable = props.getNoErrorCheck(oid, pr);[/code]<br /> pr is [b]PropertyReference [/b]and props is [b]PropertyValues[/b] and oid is my ObjectIdentifier<br /> <br /> the result is <br /> [code]type.toString()=Credential Input<br /> +pr.toString()=Object name--AmbiguousValue<br /> +encodable.toString()=Ambiguous([75,e,0,4f,54,45,53,20,52,45,41,44,45,52,20,31])<br /> +pr.toString()=Object identifier--AmbiguousValue<br /> +objectIdentifier=Ambiguous([c4,9,40,40,0])<br /> +pr.toString()=Object type--AmbiguousValue<br /> +pr.toString()=Description--AmbiguousValue<br /> +pr.toString()=Present value--AmbiguousValue<br /> +pr.toString()=Status flags--AmbiguousValue<br /> +pr.toString()=Reliability--AmbiguousValue<br /> +pr.toString()=Out of service--AmbiguousValue<br /> +pr.toString()=Update time--AmbiguousValue<br /> updateTime=Ambiguous([])<br /> +pr.toString()=Profile name--AmbiguousValue<br /> instanceNumber=16384[/code]<br />  Do you have an Idea ?<br /> <br /> thanks for help]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2604.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2604.page</link>
				<pubDate><![CDATA[Wed, 22 Sep 2010 09:21:14]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Did you define the object type with all of its attributes in com.serotonin.bacnet4j.obj.ObjectProperties?]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2632.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2632.page</link>
				<pubDate><![CDATA[Fri, 24 Sep 2010 10:25:41]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> Thanks for your help, i didn't do that<br /> <br /> It works know]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2636.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2636.page</link>
				<pubDate><![CDATA[Fri, 24 Sep 2010 11:15:40]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> I have always the same problem with the subscriptionCOV service. I want to make it without cancellation. So from the spec we have :<br /> [quote]13.14.1.5 Lifetime<br /> <br /> This parameter, of type Unsigned, shall convey the desired lifetime of the subscription in seconds. A value of zero shall<br /> indicate an indefinite lifetime, without automatic cancellation. A non-zero value shall indicate the number of seconds that<br /> may elapse before the subscription shall be automatically cancelled. If both the 'Issue Confirmed Notifications' and 'Lifetime'<br /> parameters are absent, then this shall indicate a cancellation request. If the 'Lifetime' parameter is present then the 'Issue<br /> Confirmed Notifications' parameter shall be present. [/quote]<br /> So i put this<br /> [code]<br /> SubscribeCOVRequest service = new SubscribeCOVRequest(<br /> 					new UnsignedInteger(1), objectIdentifier,<br /> 					new Boolean(true), new UnsignedInteger(0));<br /> try {<br />         localDevice.send(remoteDevice, service);<br /> 	log.info("subsciption of " + objectIdentifier.getObjectType()<br /> 						+ "-" + objectIdentifier.getInstanceNumber() + " done");<br /> } catch (BACnetException e) {<br /> 	log.error("unable to send &lt;SubscribeCOVRequest&gt; for the Object "<br /> 		+ objectIdentifier.getObjectType()+  "-"+objectIdentifier.getInstanceNumber()+ "\t"+ e.getMessage());<br /> }<br /> [/code]<br /> I tested lifetime = [b]null[/b], but it doesn't work<br /> <br /> thanks for help<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2940.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2940.page</link>
				<pubDate><![CDATA[Mon, 25 Oct 2010 11:44:55]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ [quote]I tested lifetime = null, but it doesn't work [/quote]<br /> <br /> You mean the request fails? If so, can you provide details of the BACnet exception?<br /> <br /> 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.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2948.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2948.page</link>
				<pubDate><![CDATA[Tue, 26 Oct 2010 23:33:02]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ I mean that the notification doesn't work, but no exception is made.<br /> <br /> when i send this subscription, i received just one time the notification.<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2959.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2959.page</link>
				<pubDate><![CDATA[Thu, 28 Oct 2010 10:59:36]]> GMT</pubDate>
				<author><![CDATA[ ilyass]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Still don't understand. If you received any notification at all, doesn't that mean the subscription worked, at least for some time?]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/2973.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/2973.page</link>
				<pubDate><![CDATA[Fri, 29 Oct 2010 22:30:39]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Hi,<br /> <br /> I think I have an idea what Ilyass tries to mean :<br /> <br /> when he uses COV on an object with a lifetime greater than 0, he receives correcty events when the PresentValue of the COVing object changes.<br /> <br /> But when he tries with a lifetime equals to 0 (no timeout for COV subscription), he catchs only one time the COV event.<br /> <br /> For information, in Mango, the point COVing mechanism is configure with a lifetime greather than 0 : you use COV for a certain time, and when this time is finished, you COV again. Have you got a reason to do this, instead of use a lifetime of 0?<br /> <br /> <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/3014.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/3014.page</link>
				<pubDate><![CDATA[Wed, 3 Nov 2010 04:04:05]]> GMT</pubDate>
				<author><![CDATA[ jeremie]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ It works fine for me. But let's be sure we're talking about the same thing...<br /> <br /> In my tests i used BACnet4J as subscriber and subscribee. The subscriber sent the following request:<br /> <br /> [code]            ObjectIdentifier oid = new ObjectIdentifier(ObjectType.binaryInput, 0);<br />             SubscribeCOVRequest req = new SubscribeCOVRequest(new UnsignedInteger(0), oid, new Boolean(true),<br />                     new UnsignedInteger(0));<br /> [/code]<br /> <br /> ... received regular COV notifications from the subscribee. (Specifically, the test code is SimpleSubscriptionClient and SlaveDeviceTest, both of which are now checked into the CVS. <br /> <br /> Note that COV subscriptions are only supported by certain object types, as enumerated in the static code block in ObjectCovSubscription (notably excuding analog objects).<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/3019.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/3019.page</link>
				<pubDate><![CDATA[Wed, 3 Nov 2010 11:41:30]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Thank for your SimpleSubscriptionClient test file :)<br /> Maybe you can add the unsubscribe code (because COV is done with an indefinite lifetime) :<br /> <br /> [code]<br /> localDevice.send(d, new SubscribeCOVRequest(new UnsignedInteger(0), oid, null, null));<br /> [/code]<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/3020.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/3020.page</link>
				<pubDate><![CDATA[Wed, 3 Nov 2010 12:31:58]]> GMT</pubDate>
				<author><![CDATA[ jeremie]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ Good point. And i never answered your question...<br /> <br /> [quote]For information, in Mango, the point COVing mechanism is configure with a lifetime greather than 0 : you use COV for a certain time, and when this time is finished, you COV again. Have you got a reason to do this, instead of use a lifetime of 0? [/quote]<br /> <br /> Infinite subscription lifetimes are convenient, but in practice they are problematic. Say the subscriber sends a 0 (infinite) lifetime. As far as it is concerned it will get COVs until it unsubscribes. But if the subscribee suffers a power failure it will likely lose the subscription, the COV notifications will stop, and the subscriber will never be the wiser.<br /> <br /> Conversely, if the subscriber restarts unexpectedly, the subscribee will continue to send notifications that will never be received (worst case).<br /> <br /> Using finite lease times and regular resubscriptions isn't a perfect solution to power failure (et al) situations, but it at least tends toward system stability.<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/3021.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/3021.page</link>
				<pubDate><![CDATA[Wed, 3 Nov 2010 12:43:24]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:help for bacnet and bacnet4J</title>
				<description><![CDATA[ hi there, i am currently working on a way to retrieve information from a bacnet object if there are changes. Can anyone guide me on how this can be done or is there any sample for me to understand it?<br /> <br /> Thanks in advance! <img src="http://mango.serotoninsoftware.com/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/472/4354.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/472/4354.page</link>
				<pubDate><![CDATA[Tue, 3 Jan 2012 02:45:20]]> GMT</pubDate>
				<author><![CDATA[ R-GiGgS84]]></author>
			</item>
	</channel>
</rss>
