Page 1 of 1

Using piSerial programmatically (C Library)

Posted: 24 Jul 2018, 11:47
by alizaki
Hi,

Is there a library version for piSerial?
I already have C++ application, and I want to get serial number from it.
Spawning executable (piSerial -s) and parsing the output is not the best thing to do.

Do you provide library (piSerial.h and libpiSerial.a) version for it?

Re: Using piSerial programmatically (C Library)

Posted: 25 Jul 2018, 14:48
by dirk
Hi alizaki,
the piSerial tool is closed source and we do not provide a C library.
But you have to call and parse it only once. So there should be no technical issues
or a performance gap to integrate this call i.e. in a C application.

Re: Using piSerial programmatically (C Library)

Posted: 27 Jul 2018, 07:09
by Wulf
You could write your own. It's not too hard.
The data sheet is freely available on the web, use your favourite search engine to find it.
Some more links here: viewtopic.php?f=8&t=705#p3028

Re: Using piSerial programmatically (C Library)

Posted: 27 Jul 2018, 08:04
by volker
piSerial is a documented function of RevPi and therefore will be part of future systems' backward compatibility concepts. The crypto chip may not as it is not part of our open source concept and restricted for KUNBUS and/or OEM use (i.e. KUNBUS may replace the chip in future releases without public notification and without backward compatibility. If a customer is interested in proper and reliably use of the crypto functions of a RevPi he should contact sales@kunbus.de for further negotiations on a custom brand contract (only open for customers with high volume/year).

Re: Using piSerial programmatically (C Library)

Posted: 27 Jul 2018, 13:19
by Wulf
@volker

Questions about the crypto chip are coming up frequently.
Should there be an entry in the FAQ? Some technical details/links and a clear disclaimer that this is not supported by Kunbus, that piSerial won't be open sourced (because of NDA) and customers who want to use the chip for for production should contact your sales?

Re: Using piSerial programmatically (C Library)

Posted: 30 Jul 2018, 11:33
by dirk
Hi Wulf,
yes thank you for your idea - we'll add a faq subject about the crypto chip and the piSerial tool.