Using piSerial programmatically (C Library)

Topics about the Software of Revolution Pi
Post Reply
alizaki
Posts: 2
Joined: 23 Jul 2018, 12:10

Using piSerial programmatically (C Library)

Post 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?
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Using piSerial programmatically (C Library)

Post 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.
Wulf
Posts: 25
Joined: 01 Nov 2017, 11:49

Re: Using piSerial programmatically (C Library)

Post 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
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: Using piSerial programmatically (C Library)

Post 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).
Unser RevPi Motto: Don't just claim it - make it!
Wulf
Posts: 25
Joined: 01 Nov 2017, 11:49

Re: Using piSerial programmatically (C Library)

Post 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?
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Using piSerial programmatically (C Library)

Post by dirk »

Hi Wulf,
yes thank you for your idea - we'll add a faq subject about the crypto chip and the piSerial tool.
Post Reply