Skip navigation
1 2 Previous

Internet of Things

22 Posts authored by: Jan Cumps
Blockchain can be used to build a trail of trusted actions. A chain of events built on trust or agreements between parties. In Fabric lingo: a smart contract. Post 2: test an application that calls some functions .   I try to show the technology, with some explanation. In post 1 (it took me a while to get here - almost a year between the initial work and this part) I just showed it as an intro for a blockchain related series.   The example is an application that lets you maintain ...
Goal: use a 3rd party library in my c++ project, on Windows and Linux. Continuing from post 4a, where I configured the Linux build.   I'm assuming here that the 3rd party provides a compiled lib and the necessary header files. And that you did the steps in that post.   Link and Test on Windows x86 / x64 In my use case, the 3rd party library archive for windows contains a .dll and .def file. That's good. We can work with that. We can even work with a plain .dll only. But when t ...
Goal: use a 3rd party library in my c++ project, on Windows and Linux. Example: the support library for a USB smart card reader. I'm starting from previous project, that's already set up for both platforms.   I'm assuming here that the 3rd party provides a compiled lib and the necessary header files. I'll be using shared libraries: .so in Linux, .dll for Windows.   I intended to write both Linux and WIndows instructions in the same post. But it was getting long. So I write shar ...
Goal: debug the project from the previous blog. Both the Windows and Linux version, from the same Eclipse project on your Windows laptop. The Windows version as a local program - we're running eclipse on Windows and can debug locally. The Linux version as a remote application. Our debugger will deploy on a Raspberry Pi, start the program in debug mode and link the Eclipse debugger. In both scenarios, the effect is the same: You start a debug session, the debugger halts on the first line of main ...
Goal: build a project in Eclipse, on Windows, that builds binaries for Windows Intel and Linux Arm. When you create a project, you tell Eclipse what toolchain to use. In our case, we'll want 2 chains: GCC compiler for Windows (I'm using Cygwin + GCC) GCC cross-compiler for Linux Arm (I'm using the Linaro chain)   When we use the wizard, we can select only one, so let's:   1: start with an Arm Linux project   Create the project.   Now let's do the first exercises ...
Use case: Build an application that runs on a Windows Intel PC and on a Linux ARM (Raspberry Pi, BBB, ...), using 3rd party libraries. In my case: I want to use a USB NFC card reader that comes with precompiled Linux lib and Windows DLL. Let's say you want to make a program that runs on both platforms uses a single Eclipse project, on a windows laptop uses the GCC toolchain can be built on that Windows Eclipse, for both targets can be debugged on that Eclipse platform, for both targets ...
Follow up on my project to create an object oriented framework for smart card use. In this article I want to add vendor-specific card functionality. That is when I I find out that I'd better relocate some functions away from the Reader classes, to avoid that I have to adapt that family for any card I want to support.     In my original design, the Reader created the Card objects. Depending on the card standard, it would create the appropriate object. But now, I want to add a spe ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. This time I focus on the ISO14443_4 / APDU protocol. Getting results instead of focusing on Object Oriented Design.   In contrast to previous posts, I'm going for some real results here. The goal is to use the smart card session I created in the previous posts, to have a discussion with the application running on the card: Open a session with the smart card, retrieve ID and card version. &# ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. This time I make a class that can deal with ISO14443 protocol.   Specialised Interface for ISO14443 / APDU Cards  I have a set of ISO14443 cards (from a roadtest) that support the ISO14443_4 protocol. They support a smart card protocol called APDU. I've reviewed that in Blockchain - Talk Directly to the Infineon 2Go Smart Cards API. In this post, I'm extending my little c++ framework to ...
In this article I make a c++ application for the D-Logic card reader and a set of smart cards. It's again a simple console program that checks the type of card is on top of the reader, and get the card ID. The purpose is to show that you can use it in a c++, with objects. I have a Digital Logic µFR Nano reader. I'm using D-Logic's API and library, on a Linux device (say: BB, Raspberry Pi, ...). My development environment is Eclipse on a Windows 10 laptop, with ARM-Linux cross compile ...
In this article I make a C(++) application for the D-Logic card reader and a set of smart cards. It's a simple console program that checks the type of card is on top of the reader, and get the card ID. I have a Digital Logic µFR Nano reader. I'm using D-Logic's API and library, on a Linux device (say: BB, Raspberry Pi, ...). My development environment is Eclipse on a Windows 10 laptop, with ARM-Linux cross compile toolchain.   The Program  I'm making something simple that ...
Here's my first experience with the Arduino MKR1310 and The Things Network (TTN). A (failed) attempt to follow the tutorial and connect to TTN. I'm using a Arduino MKR 1310 WAN, tested with two different 868 MHz antennas, in an area known to be covered by TTN.   I'm following the tutorial step by step. installed the latest board support: Arduino SAM Boards version 1.8.7 and latest MKRWAN lib, 1.0.12       Made an application on TTN:   Loaded the FirstCon ...
This post is part of the Infineon Blockchain Starter Kit road test. Blockchain - outside of the bitcoin context - is new to me. Follow along with me on this path to learn the technology....     Let's dive further into the example Android App "coinfinity". This is the 2nd real thing: Submit a Smart Contract transaction   What is a Smart Contract?  A smart contact is a chunk of executable code. It can be executed "in the block chain". It's called a contract because it ...
Digital Logic have a very nice set of Smart Card readers. I have purchased one of those. They work well with the Infineon Securyty 2Go smart cards I received for the Infineon Blockchain Starter Kit road test. Its a well buit reader from a interesting company. But there's a but .   The readers don't support PC/SC, and to program them, you depend on libraries and executables that are available in binary format. edit 15-dec-2020: there's a Windows PcSc driver available now for the µF ...
This post is part of the Infineon Blockchain Starter Kit road test. Blockchain - outside of the bitcoin context - is new to me. Follow along with me on this path to learn the technology....     You talk to the Security 2Go cards with an API called Smart Card Application Protocol Data Unit (APDU). According to Wikipedia "an application protocol data unit (APDU) is the communication unit between a smart card reader and a smart card"   The Security 2Go Starter Kit User Manua ...

Filter Blog

By date: By tag: