Skip to content

Instantly share code, notes, and snippets.

@DowJhob
DowJhob / gist:bccdf85c5952b25bca8547aab094ceb8
Created January 28, 2022 05:43
fiscal_printer_snippet
///////// Получить время начала смены в фискальнике
//// возвращает дату время открытия сессии
QDateTime get_last_session_start_time()
{
t.start();
kkm.FNGetStatus();
if ( kkm.Get_FNSessionState() == 1 )
{
qDebug() << "Session open: " ;
qDebug() << "GetECRStatus: " << kkm.GetECRStatus(); //это что бы получить номер посл документа
/* Melbus CDCHGR Emulator
* Program that emulates the MELBUS communication from a CD-changer (CD-CHGR) in a Volvo V70 (HU-xxxx) to enable AUX-input through the 8-pin DIN-contact.
* This setup is using an Arduino Nano 5v clone
*
* The HU enables the CD-CHGR in its source-menue after a successful initialization procedure is accomplished.
* The HU will remove the CD-CHGR everytime the car starts if it wont get an response from CD-CHGR (second init-procedure).
*
* Karl Hagström 2015-11-04
* mod by S. Zeller 2016-03-14
*