-
Notifications
You must be signed in to change notification settings - Fork 0
Overview
Arduino library for communicating with any Cubigel compressor family which uses the FDC1 communication protocol. The library allows reading the programmed compressor settings as well as the data sentences that are sent twice a second from the compressor.
The manufacturer has published several documents regarding communicating with the FDC1 controller on their website. The main FDC1 document is GD30FDC User Manual and the definition of the communication protocol can be found at FDC1 Communication Protocol
The FDC1 communicates via a 1200 Baud serial interface. Since most Atmel processors only have a single hardware UART, the library makes uses of the SoftwareSerial library to allow multiple ports to be used at the same time. The SoftwareSerial library has the drawback that it only allows listening (for incoming data) on a single port at a time, so one cannot use two SoftwareSerial ports at the same time with this library. The library allows two hardware UARTs to be used, or one hardware and one software. If the library is expanded to allow for more than 2 devices, then the additional concurrent serial ports must all be hardware ports, which means that a processor such as the ATMega 2560 must be used as that has several hardware UARTS. In addition to the single-port limitation with SoftwareSerial, the port used for RX must be one which supports pin change interrupts, please see the SoftwareSerial Documentation for further information.