<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wireshark and BACnet MS/TP</title>
	<atom:link href="http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/feed/" rel="self" type="application/rss+xml" />
	<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/</link>
	<description>Open Source Software Haven</description>
	<lastBuildDate>Mon, 16 Jan 2012 07:36:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Peter</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-102102</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 16 Jan 2012 07:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-102102</guid>
		<description>I&#039;ve modified the program to allow the selection of 76800 as a baud rate as it will work directly with some serial port drivers. 
I use the USOPTL4 and it will work for the most part with that - I do get some receive errors on the port which are not being seen by my devices or the router which mey be down to a problem with my hardware setup or the USOPTL4 baud rate not being close enough to 76800 for comfort.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve modified the program to allow the selection of 76800 as a baud rate as it will work directly with some serial port drivers.<br />
I use the USOPTL4 and it will work for the most part with that &#8211; I do get some receive errors on the port which are not being seen by my devices or the router which mey be down to a problem with my hardware setup or the USOPTL4 baud rate not being close enough to 76800 for comfort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-96616</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Sat, 26 Nov 2011 16:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-96616</guid>
		<description>Thanks for the bug report/fix on the baud rate problem.  I have corrected it in the svn repository, and will release new binaries soon.</description>
		<content:encoded><![CDATA[<p>Thanks for the bug report/fix on the baud rate problem.  I have corrected it in the svn repository, and will release new binaries soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel D</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-96525</link>
		<dc:creator>Michel D</dc:creator>
		<pubDate>Fri, 25 Nov 2011 19:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-96525</guid>
		<description>I forgot to say that this problem is in the V0.6.0</description>
		<content:encoded><![CDATA[<p>I forgot to say that this problem is in the V0.6.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel D</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-96522</link>
		<dc:creator>Michel D</dc:creator>
		<pubDate>Fri, 25 Nov 2011 19:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-96522</guid>
		<description>In the main.c file of the mstpcap project, there is an ordering function call problem in the main routine.  

The function RS485_Initialize() is called before the RS485_Set_Baud_Rate(). This is why even you want to set the port to an other baud rate than 38400, it always takes the 38400 baud rate. 

Just put the RS485_Set_Baud_Rate() before the  RS485_Initialize() function and it will do the good job.</description>
		<content:encoded><![CDATA[<p>In the main.c file of the mstpcap project, there is an ordering function call problem in the main routine.  </p>
<p>The function RS485_Initialize() is called before the RS485_Set_Baud_Rate(). This is why even you want to set the port to an other baud rate than 38400, it always takes the 38400 baud rate. </p>
<p>Just put the RS485_Set_Baud_Rate() before the  RS485_Initialize() function and it will do the good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-92270</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Fri, 14 Oct 2011 22:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-92270</guid>
		<description>The latest mstpcap utility and friends is available at the BACnet Protocol Stack site hosted by SourceForge.net.  Since we still update various things in the tools and in the stack, the download link is a moving target.  It is currently at 0.6.0, and can be found here:
http://prdownloads.sourceforge.net/bacnet/bacnet-tools-0.6.0.zip?download

One of the handy things that mstpcap does is display some capture statistics, and so we added the ability to scan an existing capture file and produce those statistics again.  The option is &quot;--scan&quot; followed by a space and a capture file name.

I also improved the timing resolution to 1ms on Windows.</description>
		<content:encoded><![CDATA[<p>The latest mstpcap utility and friends is available at the BACnet Protocol Stack site hosted by SourceForge.net.  Since we still update various things in the tools and in the stack, the download link is a moving target.  It is currently at 0.6.0, and can be found here:<br />
<a href="http://prdownloads.sourceforge.net/bacnet/bacnet-tools-0.6.0.zip?download" rel="nofollow">http://prdownloads.sourceforge.net/bacnet/bacnet-tools-0.6.0.zip?download</a></p>
<p>One of the handy things that mstpcap does is display some capture statistics, and so we added the ability to scan an existing capture file and produce those statistics again.  The option is &#8220;&#8211;scan&#8221; followed by a space and a capture file name.</p>
<p>I also improved the timing resolution to 1ms on Windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-92253</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 14 Oct 2011 16:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-92253</guid>
		<description>I have been trying to get this to work for a little while now and it seems like its my capture program that isn&#039;t working right.  When I type in 300 it auto bauds to the 38400 and doesn&#039;t even try to fake the 76800 at 300.  I was wondering where I can get the capture program that allows 300 capture.</description>
		<content:encoded><![CDATA[<p>I have been trying to get this to work for a little while now and it seems like its my capture program that isn&#8217;t working right.  When I type in 300 it auto bauds to the 38400 and doesn&#8217;t even try to fake the 76800 at 300.  I was wondering where I can get the capture program that allows 300 capture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-63050</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Wed, 27 Oct 2010 16:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-63050</guid>
		<description>Thanks,

In case someone else has problems, I also had to get the latest VCP driver from FTDI&#039;s site to get it to work.  The latest driver SerialGear had would not work for me.

Thanks again for all of the great information.</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>In case someone else has problems, I also had to get the latest VCP driver from FTDI&#8217;s site to get it to work.  The latest driver SerialGear had would not work for me.</p>
<p>Thanks again for all of the great information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-63046</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Wed, 27 Oct 2010 15:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-63046</guid>
		<description>Here is a procedure that Chad Z. gave me for using the 76800 baud rate by faking a 300 baud entry on FTDI chip-set converters:
1.  Delete COM port in Device Manager
2.  Unplug USB dongle
3.  Delete the following files that are installed by FTDI.
Windows\System32
ftbusui.dll
ftd2xx.dll
ftlang.dll
ftserui2.dll
Windows\System32\Drivers
ftdibus.sys
ftser2k.sys
4.  Copy the original ftdiport.ini to another name or location
5.  Edit the ftdiport.ini file and change the ConfigData value.

for 300bps = 76677 bps:
HKR,,&quot;ConfigData&quot;,1,11,00,3F,3F,&lt;strong&gt;27,00,00,00&lt;/strong&gt;,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00

or

for 300bps = 76923 bps:
HKR,,&quot;ConfigData&quot;,1,11,00,3F,3F,&lt;strong&gt;27,C0,00,00&lt;/strong&gt;,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00

6.  Plug USB dongle back in and always select &quot;Have Disk&quot; and navigate to ftdibus.inf or ftdiport.inf files which should be in the same folder.</description>
		<content:encoded><![CDATA[<p>Here is a procedure that Chad Z. gave me for using the 76800 baud rate by faking a 300 baud entry on FTDI chip-set converters:<br />
1.  Delete COM port in Device Manager<br />
2.  Unplug USB dongle<br />
3.  Delete the following files that are installed by FTDI.<br />
Windows\System32<br />
ftbusui.dll<br />
ftd2xx.dll<br />
ftlang.dll<br />
ftserui2.dll<br />
Windows\System32\Drivers<br />
ftdibus.sys<br />
ftser2k.sys<br />
4.  Copy the original ftdiport.ini to another name or location<br />
5.  Edit the ftdiport.ini file and change the ConfigData value.</p>
<p>for 300bps = 76677 bps:<br />
HKR,,&#8221;ConfigData&#8221;,1,11,00,3F,3F,<strong>27,00,00,00</strong>,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00</p>
<p>or</p>
<p>for 300bps = 76923 bps:<br />
HKR,,&#8221;ConfigData&#8221;,1,11,00,3F,3F,<strong>27,C0,00,00</strong>,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00</p>
<p>6.  Plug USB dongle back in and always select &#8220;Have Disk&#8221; and navigate to ftdibus.inf or ftdiport.inf files which should be in the same folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-62995</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Tue, 26 Oct 2010 21:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-62995</guid>
		<description>I&#039;m not understanding how to use 76800 baud rate.  Can you please show me what the &quot;HRK,,&quot;ConfigData&quot; line should look like to make an alias where 300 baud is really 76800?

Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m not understanding how to use 76800 baud rate.  Can you please show me what the &#8220;HRK,,&#8221;ConfigData&#8221; line should look like to make an alias where 300 baud is really 76800?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-61550</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Fri, 08 Oct 2010 14:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-61550</guid>
		<description>Hi Jochen,

The 76800 is a non-standard baud rate (for personal computers, anyway), and the mstpcap tool is just using the computers serial port for communication.  However, some chipset drivers, like FTDI, allow you to create a non-standard baud rate at one of the PC standard baud rates (i.e. 300 baud is now 76800).  From the mstpcap.txt file:

&lt;blockquote&gt;If you are using FTDI chip in your RS485 converter, you can alias an existing baud rate on Windows in the FTDIPORT.INF file in order to acheive non-standard 76800 bps:
HKR,,&quot;ConfigData&quot;,1,11,00,3F,3F,27,C0,00,00,27,00,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00

replace the 10,27,00,00 =&gt; divisor = 10000, rate = 300 bps alias

hex values    actual
-----------   ---------
27,C0,00,00 - 76923 bps =&gt; divisor=39.125
27,00,00,00 - 76677 bps =&gt; divisor=39.000
&lt;/blockquote&gt;

Then you would run:
mstpcap COM9 300

Note that earlier versions of mstpcap had only the standard MS/TP valid baud rates allowed.  The current released version allows any of the standard computer baud rates to be used.</description>
		<content:encoded><![CDATA[<p>Hi Jochen,</p>
<p>The 76800 is a non-standard baud rate (for personal computers, anyway), and the mstpcap tool is just using the computers serial port for communication.  However, some chipset drivers, like FTDI, allow you to create a non-standard baud rate at one of the PC standard baud rates (i.e. 300 baud is now 76800).  From the mstpcap.txt file:</p>
<blockquote><p>If you are using FTDI chip in your RS485 converter, you can alias an existing baud rate on Windows in the FTDIPORT.INF file in order to acheive non-standard 76800 bps:<br />
HKR,,&#8221;ConfigData&#8221;,1,11,00,3F,3F,27,C0,00,00,27,00,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00</p>
<p>replace the 10,27,00,00 => divisor = 10000, rate = 300 bps alias</p>
<p>hex values    actual<br />
&#8212;&#8212;&#8212;&#8211;   &#8212;&#8212;&#8212;<br />
27,C0,00,00 &#8211; 76923 bps => divisor=39.125<br />
27,00,00,00 &#8211; 76677 bps => divisor=39.000
</p></blockquote>
<p>Then you would run:<br />
mstpcap COM9 300</p>
<p>Note that earlier versions of mstpcap had only the standard MS/TP valid baud rates allowed.  The current released version allows any of the standard computer baud rates to be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochen</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-61526</link>
		<dc:creator>Jochen</dc:creator>
		<pubDate>Fri, 08 Oct 2010 10:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-61526</guid>
		<description>We tried to get the 76800 to work with a FTDI chipset. We tried &quot;mstpcap COM9 76800&quot; but the mstpcap tells:
mstpcap: Using \\.\COM9 for capture at 38400 bps.

Do have an idea what is going wrong?</description>
		<content:encoded><![CDATA[<p>We tried to get the 76800 to work with a FTDI chipset. We tried &#8220;mstpcap COM9 76800&#8243; but the mstpcap tells:<br />
mstpcap: Using \\.\COM9 for capture at 38400 bps.</p>
<p>Do have an idea what is going wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-52657</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Wed, 19 May 2010 17:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-52657</guid>
		<description>The &lt;a href=&quot;https://bacnet.svn.sourceforge.net/svnroot/bacnet/trunk/bacnet-stack/demo/mstpcap/main.c&quot; rel=&quot;nofollow&quot;&gt;application code for the mstpcap utility&lt;/a&gt; shows the encapsulation process for a PCAP file format for a WTAP.  See the write_global_header() and write_received_packet() functions.

The magic is partly the data link type in the header:
uint32_t network = 165;     /* data link type - BACNET_MS_TP */</description>
		<content:encoded><![CDATA[<p>The <a href="https://bacnet.svn.sourceforge.net/svnroot/bacnet/trunk/bacnet-stack/demo/mstpcap/main.c" rel="nofollow">application code for the mstpcap utility</a> shows the encapsulation process for a PCAP file format for a WTAP.  See the write_global_header() and write_received_packet() functions.</p>
<p>The magic is partly the data link type in the header:<br />
uint32_t network = 165;     /* data link type &#8211; BACNET_MS_TP */</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-52654</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 19 May 2010 16:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-52654</guid>
		<description>how to find out the encapsulation process of packets captured in wireshark?</description>
		<content:encoded><![CDATA[<p>how to find out the encapsulation process of packets captured in wireshark?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skarg</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-41164</link>
		<dc:creator>skarg</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-41164</guid>
		<description>David asks &quot;Hi, anyone know by chance where I can find information about the protocol Bacnet? I want to know is how to send packets as encoding and decoding, the format has, etc..&quot;.

The official information is the ASHRAE 135-2008 BACnet standard, available from &lt;a href=&quot;http://ashrae.org/&quot; rel=&quot;nofollow&quot;&gt;ashrae.org&lt;/a&gt; bookstore.  You can use the &lt;a href=&quot;http://bacnet.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;open source BACnet stack&lt;/a&gt; or &lt;a href=&quot;http://wireshark.org/&quot; rel=&quot;nofollow&quot;&gt;Wireshark&lt;/a&gt; to see how we have encoded and decoded the various services and data in BACnet.</description>
		<content:encoded><![CDATA[<p>David asks &#8220;Hi, anyone know by chance where I can find information about the protocol Bacnet? I want to know is how to send packets as encoding and decoding, the format has, etc..&#8221;.</p>
<p>The official information is the ASHRAE 135-2008 BACnet standard, available from <a href="http://ashrae.org/" rel="nofollow">ashrae.org</a> bookstore.  You can use the <a href="http://bacnet.sourceforge.net/" rel="nofollow">open source BACnet stack</a> or <a href="http://wireshark.org/" rel="nofollow">Wireshark</a> to see how we have encoded and decoded the various services and data in BACnet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://steve.kargs.net/bacnet/wireshark-and-bacnet-mstp/comment-page-1/#comment-41141</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://steve.kargs.net/?p=139#comment-41141</guid>
		<description>Hola, alguien sabe de casualidad donde puedo encontrar informacion sobre el protocolo Bacnet? lo que quiero saber es como se envian los paquetes, como codificarlos y decodificarlos, el formato que tiene, etc.

Gracias.</description>
		<content:encoded><![CDATA[<p>Hola, alguien sabe de casualidad donde puedo encontrar informacion sobre el protocolo Bacnet? lo que quiero saber es como se envian los paquetes, como codificarlos y decodificarlos, el formato que tiene, etc.</p>
<p>Gracias.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

