CAS BACnet Explorer – What do the USBkeys look like?

Question: What do the USBkeys look like?
Answer: We currently have three generations of USB keys shown below

  • Black = SecuTech
  • Green = Rocket Key
  • Blue = USB drive

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

CAS BACnet Explorer – What data type do I use to write to a binary output.

Normally a binary output will uses a BACnetBinaryPV(ENUMERATED) data type for the present value. The enumeration has one of two values 0=inactive, and 1=active.


BACnetBinaryPV ::= ENUMERATED {
inactive (0),
active (1)
}

In the CAS BACnet Explorer you will set the data type to “ENUMERATED” and the data value to either “0″ or “1″.

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

CAS BACnet Explorer – Software activation video

How to activate CAS BACnet Explorer with a software product key.

Directions

  1. Download and install CAS BACnet Explorer, if you have not already done so.
  2. Run CAS BACnet Explorer,
    • If your product key is expired then you will be presented with an error message asking you to request a new product key. Click ‘OK’
    • If you did not get the warring message you can still request a new software product from the licence dialog. Click the “Settings” button on the main dialog. Then select “License” on the left hand side
  3. Enter your email address in the “Email Address” field and click the “Request a key” button.
  4. A set of instructions will pop up, Click “OK
  5. A Web browser window will pop up with information about your request, Name, Email, ect… confirm that this information is correct and click the “Request a key” button.
  6. Check your email account for the activation email.
  7. Copy the product key from the activation email and past it in to CAS BACnet Explorer’s licence page.
  8. Click the “Activate” to activate CAS BACnet Explorer with this software key.

If you have any problems feel free to contact us directly.

Related posts:

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

CAS BACnet Explorer – Quick start video

http://www.youtube.com/watch?v=nQZPZ8bnm84

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

CAS BACnet Explorer – License FAQ

One License = 2 keys

1x USB Key

Simply move this key from computer to computer to use our software on a new computer. Customers who purchase our software are provided with a USB key. In some cases we provide USB keys for evaluation purposes – ask.

By the way, for those purchasing license packs, our current policy is to ship 1 extra USB key for each 5 licenses purchased. We intend the 6th USB key as a spare.

1x Soft Key

Exists for two reasons:

1) Allows you to use the software before the USB key arrives.

2) Provides a backup to you should you lose your USB key.

This key is tied to an email address because it is emailed to that email address.

When you do not have the USB key inserted, the software looks for the soft key. If it can’t find one then it asks you to activate the key. You complete a screen with the licensed email address (we are happy to change the email on record if you notify us). We email the key to that email address. You copy and paste the key and the software is activated.

If you want to use the software on a different computer and you don’t have the USB key then you have to re-activate the software on the 2nd computer.

Do Licenses Expire ?

No. Full / purchased licenses never expire. Demo and evaluation licenses do expire. Once purchased, you can continue to use the software as long as you like.

What is the Service Agreement ?

We add new features and improve our software all the time. You can download newer versions of the software and use the newer versions. When you purchase the software you can download newer versions for a limited time period of 1 year after the date of purchase. After that time has passed you cannot activate newer versions but you can continue to use the version you are using for an indefinite period. Some customers choose to extend this period of time by purchasing a Service Agreement. If you purchase a 1 year agreement you are extending the default period by a year. Thus you can download and activate any newer version that we release during the 24 months that start ticking on your purchase date.

Free Licenses

If you purchase a FieldServer (communications protocol gateway eg. Lonworks/Modbus to BACnet) and if the gateway is for a BACnet project we include a FREE full license as part of the deal.

What happens if I damage/lose my USB Key ?

Contact us. We look after our customers.

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

Arduino + Ethernet shield, A better Webserver

The Arduino Ethernet Shield allows an Arduino board to connect to the internet. It is based on the Wiznet W5100 ethernet chip (datasheet). The Wiznet W5100 provides a network (IP) stack capable of both TCP and UDP. It supports up to four simultaneous socket connections.

The Webserver example sketch that comes with the Arduino IDE is is a great starting tutorial and should be at lest reviewed before reading this tutorial. The web server example sketch is  missing a few key features such as, the ability to respond to different GET requests with different response.

This tutorial assumes that you are using Eclipse as your editor for Arduino and you are familiar with both the Arduino and the Ethernet shield. This tutorial was created in response to VHS Hack challenge. You can download the Eclipse project for this tutorial from our website. Respond to different GET requests with different response source code.

When you request a page from the Arduino in your web browser, your web browser create a HTTP GET request. This GET request is sent to the Arduino’s where it gets processed and a response is formed and sent back to your web browser and is displayed to the user.

The GET request will look something like this

Hypertext Transfer Protocol
GET /helloworld.html HTTP/1.1\r\n
Host: 192.168.1.177\r\n
Connection: keep-alive\r\n
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1025 Safari/532.5\r\n
Cache-Control: max-age=0\r\n
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n
Accept-Encoding: gzip,deflate,sdch\r\n
Accept-Language: en-US,en;q=0.8\r\n
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n
\r\n

The first line in a HTTP GET request contains the requested file, in this example it is /helloworld.html. We can use this line to determine what page the user is requesting. The following function takes the request buffer and extracts the request string and stores it in a CWebserverRequest structure for reference.

bool CWebserver::ProcessHeader( char * requestBuffer, CWebserverRequest * request )
{
if( request == NULL || request == NULL ) {
return false;
}
sprintf( request->request_string, "/" );
// Get the request path.
char * get = strstr( requestBuffer, "GET " );
if( get != NULL ) {
get += 4 ;
char * eol = strstr( get, " " );
if( eol != NULL ) {
eol[ 0 ] = 0 ;
}
unsigned short length = strlen( get );
if( length > HTTP_MAX_REQUEST_LENGTH ) {
length = HTTP_MAX_REQUEST_LENGTH-1;
}
strncpy( request->request_string, get, length );
request->request_string[ length ] = 0 ; // NULL termanate the string.
}
return true;
}

We can user the request string later in our code to determine what page the user was requesting and respond accordingly.

More information

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

How to Connect to the Repository + Update files (TortoiseSVN)

To connect to the repository

  1. Create a new folder where you want to store your repository contents
  2. Right-click the folder and select SVN Checkout…
  3. Enter the URL to your repository and select OK.
  4. Enter your username and password.

Before altering/adding files

Before you make changes to the files in your repository folder you must download the most recent version of the files. To do this:

  1. Right-click the folder you’ve created earlier and select SVN Update.
  2. This will update all of the folder contents to the latest versions in case anyone has made any changes since your last date of access.

After altering/adding files

After you’ve made changes to the files you’ve downloaded from the repository, or you want to add new files to the repository, you must send the updated data to the repository server. To do this:

  1. Right-click the folder you’ve created and select SVN Commit…
  2. Make sure the files you’ve altered are checked and select OK.
Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

Arduino, Where to get help

Arduino is an open-source, open-hardware,  electronics prototyping platform based on flexible, easy-to-use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.

This links/help page was created in response to VHS Hack challenge.

Arduino IDE

You can download a free and open source Arduino IDE from Arduino.cc. It works pretty well and includes lots of example sketches to learn about the Arduino. Once you are comfortable with the basics you can upgrade to using Eclipse as your main IDE for Arduino.

AVRDude

AvrDude is the application that is used to download code to the Arduino and is included with the Arduino IDE and WinAVR. If you are having problems downloading code to the Arduino read this article from LadyAda.net on AVRDude.

Ethernet shield RAW packet

A Ethernet shield was created for the Arduino that supports TCP connections. I can be used to serve webpages of the current status of the Arduino among other things.

By default the Ethernet shield only supports TCP connections, but you can download Ethernet RAW library to support UDP and RAW packets. This Ethernet RAW library also fixes some of the bugs discovered in the default Ethernet libary shipped with Arduino IDE 015.

Help with your projects.

There are several different places to get help with your Arduino projects.

  • Arduino.cc Playground – Arduino code, circuit diagrams, tutorials, DIY instructions, tips and tricks
  • Arduino.cc Forms – A form to talk to other developers about all things Arduino
  • ladyada.net Learn Arduino – Ladyada website has more great tutorials.
  • Chiphacker – A Question and Answer website for chip developers that is useful for getting specifics information about a certain features in the Arduino chip (
  • StackOverflow –  A Question and Answer website similar to chiphacker that is useful for getting answers to programing related questions.
  • Atmega 168/328p data sheet – Can find an answer to your question anywhere else, check the chips data sheet.
  • Getting Started with Arduino, Making Things Talk – Are two great books filled with different Arduino projects and examples.

Project ideas

  • Make: Arduino – Make magazine is one of the forerunners for everything DYI. There website has lots of information and examples projects.
  • Instructables.com – Tones of example projects and tutorials for the Arduino.
Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

How to Create/Access Subfolders In TortoiseSVN

Note: This article assumes that the user already has full access to the repository.

  1. Within a folder already linked to the root URL of the repository (http://www.yoursvn.com/CVS/ ), create a new subfolder (e.g. Project).
  2. Create a completely new folder at a different location, which will link to the newly created subfolder in the repository. (e.g. Backup)
  3. Right-click the folder and select SVN Checkout…
  4. For the URL of the repository use the rootURL/subfolder (e.g. http://www.yoursvn.com/CVS/Project/)
  5. Select OK.
  6. Enter the username and password.
Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have

Where are the debug files located – CAS BACnet Explorer

When sending support a bug report for CAS BACnet Explorer please include these three debug files.

  • C:\Users\<user>\Documents\CAS BACnet Explorer\Debuglog.txt
  • C:\Users\<user>\Documents\CAS BACnet Explorer\mstp_log.txt (If BACnet MSTP)
  • C:\Users\<user>\Documents\CAS BACnet Explorer\packets.pkt (If BACnet IP or BACnet Eth)

These files will help us tremendousness to find a solution to your problem. These files are plain text and they should compress down to 3-4mb with 7-Zip (free and opensource), or WinRar (free unlimited demo)

Packets.pkt can be opened with Wireshark.

Did you like this post?

Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!

Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have