This document presents the installation and usage steps for CupCarbon Klines. It covers installation on different operating systems as well as integration with Python for developing IoT projects.
To download CupCarbon, visit the following website and click on the button download:
http://cupcarbon.com/download_klines.php
After downloading, unzip the file cupcarbon_klines.zip. You will get several files depending on your operating system:
First, you must install Java JDK 23 or 24 from this link:
https://www.oracle.com/java/technologies/downloads
Then, you must install Python from the following link:
https://www.python.org
CupCarbon does not require installation. Simply follow the steps below to run it directly:
CupCarbon Klines requires Java version 23 or 24 to function properly.
To verify the Java version installed on your system:
Verify that the version is 23.0.xx or 24.
If you don't have the correct version, visit:
In case the version is not 23 or 24, depending on your system you should either change the current default version to 23 or 24 or install the JRE directly from Oracle's website.
You can install any version of Python you want. To verify if Python is installed:
Python is completely independent from CupCarbon. Once installed, you have to use the system command used to execute Python programs. Basically this command can be:
You can add this command (or path) in the Executor Path Configuration window in CupCarbon.
To interface with CupCarbon from your Python codes, you can send commands to CupCarbon using the Python print command normally. The message of the print will be considered as a CupCarbon command.
You need to flush each command to send it directly, otherwise all commands will be sent once at the end of the program.
You can create a utility function to simplify sending commands:
To print any message on the executing device, use the command print as follows:
You can display alternatively Hello and World! each second as follows:
To mark or unmark the executing device, use the mark or unmark commands as follows:
To move the executing device to a given GPS location, use the move command as follows:
To get any information about the executing device such as its id, its name and its location, use the following commands:
To create IoT Projects using the MQTT protocol, just install MQTT for Python.
You can use the following command:
or
Many tutorials exist on the web. We suggest the following websites:
If CupCarbon starts, then you are lucky, you can continue to use it normally.
Otherwise, it means you have to check the version of Java. CupCarbon Klines works with version 23 or 24. Therefore, you must install version 23 or 24 of Java in your system.
If CupCarbon does not start, then you must check the version of Java installed in your system using:
Now you can use CupCarbon, enjoy! This guide allows you to install and configure CupCarbon Klines on your system, as well as establish an interface with Python to develop IoT applications. Once the configuration is complete, you can use CupCarbon normally for your wireless sensor network simulations.