Moving to the Java Module system and OpenJDK

By dave on March 30, 2019

Summary Java 9 through 11 have brought along some very large changes that have really shaken up the industry. Namely, the module system and the removal of the web-start deployment facilities. Also, along with this the move away from Oracle being the primary provider of the JDK has left people wondering how to proceed. We’ve been on the bleeding edge of this change and are now in a position to ease the transition for others.

Consider using Arduino for your new product

By dave on January 10, 2018

There is a common misconception in the electronics industry that Arduino is unsuited for professional development. As a result many companies try to use different, far more complex tool chains to develop software with far fewer ready made libraries available. What I would recommend however, is to carefully check all libraries that you are using, to ensure their license is OK for you project. Basically, for any commercial development where you intend to keep the source closed, do not use any GPL libraries (LGPL is fine as it has a linking exception).

Java and Embedded AVR C++ Consulting from TheCodersCorner

By dave on March 10, 2013

We specialise in multithreaded network programming and embedded C++; with in excess of 20 years experience writing applications in both Java and C++. Having spent many years writing systems that need to communicate using differing protocols, often for exchange connectivity we are familiar with many topologies. In terms of multithreaded development we have built systems with low latency requirements using various methodologies. More recently using non locking bus style designs such as message bus, chronicle and disruptor.

tcMenu - Java API to Arduino for remote menu control

By dave on May 14, 2018

Introduction - Java Remote control for Arduino Menus One of the design goals of TcMenu is that it must be very easy to remotely control the menu. I’m a big Audiophile and like building my own equipment, most if not all Audio equipment needs a method of remote control. Nowadays, this extends beyond audio into almost all devices; where control by phone or a computer is common place. Using the Java API we can see exactly the same menu structure as it appears on the device, and the mappings are soclose that I built the Arduino embedded menu designer using this API.

Arduino to PC communication using USB serial and Java

By dave on January 1, 2017

In this article, I present an example showing how to connect an Arduino device to your PC using USB serial and Java. USB serial is available on nearly all Arduino based boards. Further, there are serial interface Java libraries that can connect to an Arduino. If you are unfamiliar with data communications in general, take a look a the introduction to data communications article; although it does not cover serial communication, it is still a good starting point for the unfamiliar.

Message based communication using sockets.

By dave on February 6, 2016

Using sockets for client / server development Following on from Using sockets for a character based stream we now introduce the idea of messaging. When we need to send commands between two systems (often referred to as client and server) we normally use message based communication, this was briefly discussed in the data communications introduction. For this example we will use Java, it’s freely available and there are many good IDEs.

Using sockets for a character based stream

By dave on February 5, 2016

Following on from the article Introduction to data communications we will now go into more depth, by looking at an example of stream based communication. We will use sockets for the example; mainly because sockets are available out of the box on any computer connected to the internet. A socket is a stream based connection between a server and a client. Recall from the prior page this means that data is received in the order it was sent.

Data communications by example for developers

By dave on January 20, 2016

In this section I discuss communication protocols; we start with a grounding on the basics and move through to some worked examples. To start with let’s look at some of the simplest cases and understand how communications between computer systems work in practise. There are many methods of communicating between two computers, be they embedded, mobile, desktop or server. Protocols range from the low level SPI and I2C right through to stream based approaches such as sockets over a network.

Java development for Raspberry PI using an IDE

By dave on October 11, 2015

If you're anything like me, you'll probably want to develop any large Java application using a fully fledged IDE such as IntelliJ or Eclipse. However, these are probably better run on another computer if available, transferring the code onto the PI. This article shows how to use maven to do fast turn around development onto a PI from a laptop. Note I'm not talking about using this for single class file Java development, but for larger systems.

Filtered extraction from zip file using ZipInputStream and Java 8

By dave on May 16, 2015

In the example below we build on the Reading a zip file from java using ZipInputStream page to provide basic filtering. This filtering is provided by the filteredExpandZipFile method taking a Predicate. Every ZipEntry is passed to the predicate, but only ones that match (predicate returns true) are included. Note that the size of an entry cannot be accurately determined in all cases, so it is not safe to perform validation on the this field.

tcMenu for Arduino

We use cookies to analyse traffic and to personalise content. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Please see our privacy policy should you need more information or wish to adjust your settings.