[00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B5 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 16168943+0=16168943 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:10]*** Is cutter blocked? [00:00:10]*** FLAG_PRN_PAP1 set [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 01 00 00 00 FF 0F 1A [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]No nvstorage dir found. Trying to create it. [00:00:10]Nvstorage dir /storage created. [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 F0 B7 F6 00 00 00 00 00 9C [03:22:24]Current date/time: 07.07.1970 03:22 [03:22:24]FM_Init [03:22:24]wFMConnect [03:22:24]MH_SAM_On [03:22:24]Write to MH i2c: E0 00 00 08 00 E7 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_init finished! [03:22:24]*** atr: [03:22:24]*** 0F 3B D5 18 FF 81 91 FE [03:22:24]*** 1F C3 80 73 C8 21 10 0A [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]*** 00 00 00 00 00 00 00 00 [03:22:24]Read from MH i2c: E0 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E0 10 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [03:22:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [03:22:24]wFMCommunicate request_size=10 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [03:22:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 03 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [03:22:24]RAPDU: 90 00 [03:22:24]wFMCommunicate OK [03:22:24]wFMCommunicate request_size=4 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 80 11 00 00 [03:22:24]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 17 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DD [03:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [03:22:24]wFMCommunicate OK [03:22:24]Detected FM SN is 0000000000874775 [03:22:24]No stored FM SN - require to set a PIN [03:22:24]DocumentArchiveInit [03:22:24]No OFD sender enable setting [03:22:24]Start Httpd... [03:22:24]Httpd thread 3067895140 created [03:22:24]Write to MH i2c: 01 00 00 0B 00 0B [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: 01 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: 01 07 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: 01 07 00 0B 00 00 01 00 00 00 FF 0F 21 [03:22:24]Allocated Socket 5 [03:22:24]Bind OK [03:22:24]Listen OK [03:22:24]httpd running on port 8080 [03:22:24]Waiting for new connection... [03:22:24]MH Int Process started [03:22:29]No OFD sender enable setting [03:22:34]No OFD sender enable setting [03:22:39]No OFD sender enable setting [03:22:44]No OFD sender enable setting [03:22:49]No OFD sender enable setting [03:22:54]*** Cut start [03:22:54]*** Partial cut [03:22:54]*** CUTSNS_PIN = 1 [03:22:54]*** CUTSNS_PIN = 0 [03:22:54]No OFD sender enable setting [03:22:54]*** Brake cut motor [03:22:54]*** Stop cut motor [03:22:54]*** Cut end [03:22:59]No OFD sender enable setting [03:23:04]No OFD sender enable setting [03:23:05]int [03:23:05]Write to MH i2c: 01 00 00 0C 00 0C [03:23:05]*** FLAG_PRN_PAP1 reset [03:23:05]Write i2c OK [03:23:05]MH_I2C_Read... [03:23:05]Read from MH i2c: 01 [03:23:05]MH_I2C_Read... [03:23:05]Read from MH i2c: 01 07 00 [03:23:05]MH_I2C_Read... [03:23:05]Read from MH i2c: 01 07 00 0C 00 00 00 00 00 00 FF 0F 21 [03:23:05]state=0 [03:23:08]int [03:23:08]Write to MH i2c: 01 00 00 0D 00 0D [03:23:08]*** FLAG_PRN_PAP1 set [03:23:08]Write i2c OK [03:23:08]MH_I2C_Read... [03:23:08]Read from MH i2c: 01 [03:23:08]MH_I2C_Read... [03:23:08]Read from MH i2c: 01 07 00 [03:23:08]MH_I2C_Read... [03:23:08]Read from MH i2c: 01 07 00 0D 00 00 01 00 00 00 FF 0F 23 [03:23:08]state=0 [03:23:08]No paper [03:23:09]No OFD sender enable setting [03:23:14]No OFD sender enable setting [03:23:14]int [03:23:14]Write to MH i2c: 01 00 00 0E 00 0E [03:23:14]*** FLAG_PRN_PAP1 reset [03:23:14]Write i2c OK [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 07 00 [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 07 00 0E 00 00 00 00 00 00 FF 0F 23 [03:23:14]state=0 [03:23:14]int [03:23:14]Write to MH i2c: 01 00 00 0F 00 0F [03:23:14]*** FLAG_PRN_PAP1 set [03:23:14]Write i2c OK [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 07 00 [03:23:14]MH_I2C_Read... [03:23:14]Read from MH i2c: 01 07 00 0F 00 00 01 00 00 00 FF 0F 25 [03:23:14]state=0 [03:23:14]No paper [03:23:17]int [03:23:17]Write to MH i2c: 01 00 00 10 00 10 [03:23:17]*** FLAG_PRN_PAP1 reset [03:23:17]Write i2c OK [03:23:17]MH_I2C_Read... [03:23:17]Read from MH i2c: 01 [03:23:17]MH_I2C_Read... [03:23:17]Read from MH i2c: 01 07 00 [03:23:17]MH_I2C_Read... [03:23:17]Read from MH i2c: 01 07 00 10 00 00 00 00 00 00 FF 0F 25 [03:23:17]state=0 [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 11 00 11 [03:23:18]*** FLAG_PRN_PAP1 set [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 11 00 00 01 00 00 00 FF 0F 27 [03:23:18]state=0 [03:23:18]No paper [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 12 00 12 [03:23:18]*** FLAG_PRN_PAP1 reset [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 12 00 00 00 00 00 00 FF 0F 27 [03:23:18]state=0 [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 13 00 13 [03:23:18]*** FLAG_PRN_PAP1 set [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 13 00 00 01 00 00 00 FF 0F 29 [03:23:18]state=0 [03:23:18]No paper [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 14 00 14 [03:23:18]*** FLAG_PRN_PAP1 reset [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 14 00 00 00 00 00 00 FF 0F 29 [03:23:18]state=0 [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 15 00 15 [03:23:18]*** FLAG_PRN_PAP1 set [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 15 00 00 01 00 00 00 FF 0F 2B [03:23:18]state=0 [03:23:18]No paper [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 16 00 16 [03:23:18]*** FLAG_PRN_PAP1 reset [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 16 00 00 00 00 00 00 FF 0F 2B [03:23:18]state=0 [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 17 00 17 [03:23:18]*** FLAG_PRN_PAP1 set [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 17 00 00 01 00 00 00 FF 0F 2D [03:23:18]state=0 [03:23:18]No paper [03:23:18]int [03:23:18]Write to MH i2c: 01 00 00 18 00 18 [03:23:18]*** FLAG_PRN_PAP1 reset [03:23:18]Write i2c OK [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 [03:23:18]MH_I2C_Read... [03:23:18]Read from MH i2c: 01 07 00 18 00 00 00 00 00 00 FF 0F 2D [03:23:18]state=0 [03:23:19]No OFD sender enable setting [03:23:24]No OFD sender enable setting [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 19 00 19 [03:23:25]*** FLAG_PRN_PAP1 set [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]*** FLAG_PRN_PAP1 reset [03:23:25]Read from MH i2c: 01 07 00 19 00 00 00 00 00 00 FF 0F 2E [03:23:25]state=0 [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1A 00 1A [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]*** FLAG_PRN_PAP1 set [03:23:25]*** FLAG_PRN_PAP1 reset [03:23:25]Read from MH i2c: 01 07 00 1A 00 00 00 00 00 00 FF 0F 2F [03:23:25]state=0 [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1B 00 1B [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]*** FLAG_PRN_PAP1 set [03:23:25]*** FLAG_PRN_PAP1 reset [03:23:25]Read from MH i2c: 01 07 00 1B 00 00 00 00 00 00 FF 0F 30 [03:23:25]state=0 [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1C 00 1C [03:23:25]*** FLAG_PRN_PAP1 set [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 1C 00 00 01 00 00 00 FF 0F 32 [03:23:25]state=0 [03:23:25]No paper [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1D 00 1D [03:23:25]*** FLAG_PRN_PAP1 reset [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [03:23:25]state=0 [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1E 00 1E [03:23:25]*** FLAG_PRN_PAP1 set [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 1E 00 00 01 00 00 00 FF 0F 34 [03:23:25]state=0 [03:23:25]No paper [03:23:25]int [03:23:25]Write to MH i2c: 01 00 00 1F 00 1F [03:23:25]*** FLAG_PRN_PAP1 reset [03:23:25]Write i2c OK [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 [03:23:25]MH_I2C_Read... [03:23:25]Read from MH i2c: 01 07 00 1F 00 00 00 00 00 00 FF 0F 34 [03:23:25]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 20 00 20 [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Read from MH i2c: 01 07 00 20 00 00 00 00 00 00 FF 0F 35 [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 21 00 21 [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 21 00 00 00 00 00 00 FF 0F 36 [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 22 00 22 [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 22 00 00 00 00 00 00 FF 0F 37 [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 23 00 23 [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Read from MH i2c: 01 07 00 23 00 00 00 00 00 00 FF 0F 38 [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 24 00 24 [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 25 00 25 [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 25 00 00 01 00 00 00 FF 0F 3B [03:23:26]state=0 [03:23:26]No paper [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 26 00 26 [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 26 00 00 00 00 00 00 FF 0F 3B [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 27 00 27 [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 27 00 00 01 00 00 00 FF 0F 3D [03:23:26]state=0 [03:23:26]No paper [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 28 00 28 [03:23:26]*** FLAG_PRN_PAP1 reset [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 28 00 00 00 00 00 00 FF 0F 3D [03:23:26]state=0 [03:23:26]int [03:23:26]Write to MH i2c: 01 00 00 29 00 29 [03:23:26]*** FLAG_PRN_PAP1 set [03:23:26]Write i2c OK [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 [03:23:26]MH_I2C_Read... [03:23:26]Read from MH i2c: 01 07 00 29 00 00 01 00 00 00 FF 0F 3F [03:23:26]state=0 [03:23:26]No paper [03:23:29]No OFD sender enable setting [03:23:29]int [03:23:29]Write to MH i2c: 01 00 00 2A 00 2A [03:23:29]*** FLAG_PRN_PAP1 reset [03:23:29]Write i2c OK [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 07 00 [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 07 00 2A 00 00 00 00 00 00 FF 0F 3F [03:23:29]state=0 [03:23:29]int [03:23:29]Write to MH i2c: 01 00 00 2B 00 2B [03:23:29]*** FLAG_PRN_PAP1 set [03:23:29]Write i2c OK [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 07 00 [03:23:29]MH_I2C_Read... [03:23:29]Read from MH i2c: 01 07 00 2B 00 00 01 00 00 00 FF 0F 41 [03:23:29]state=0 [03:23:29]No paper [03:23:30]int [03:23:30]Write to MH i2c: 01 00 00 2C 00 2C [03:23:30]*** FLAG_PRN_PAP1 reset [03:23:30]Write i2c OK [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: 01 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: 01 07 00 [03:23:30]MH_I2C_Read... [03:23:30]Read from MH i2c: 01 07 00 2C 00 00 00 00 00 00 FF 0F 41 [03:23:30]state=0 [03:23:32]int [03:23:32]Write to MH i2c: 01 00 00 2D 00 2D [03:23:32]*** FLAG_PRN_PAP1 set [03:23:32]Write i2c OK [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 07 00 [03:23:32]MH_I2C_Read... [03:23:32]Read from MH i2c: 01 07 00 2D 00 00 01 00 00 00 FF 0F 43 [03:23:32]state=0 [03:23:32]No paper [03:23:34]No OFD sender enable setting [03:23:34]int [03:23:34]Write to MH i2c: 01 00 00 2E 00 2E [03:23:34]*** FLAG_PRN_PAP1 reset [03:23:34]Write i2c OK [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: 01 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: 01 07 00 [03:23:34]MH_I2C_Read... [03:23:34]Read from MH i2c: 01 07 00 2E 00 00 00 00 00 00 FF 0F 43 [03:23:34]state=0 [03:23:35]int [03:23:35]Write to MH i2c: 01 00 00 2F 00 2F [03:23:35]*** FLAG_PRN_PAP1 set [03:23:35]Write i2c OK [03:23:35]MH_I2C_Read... [03:23:35]Read from MH i2c: 01 [03:23:35]MH_I2C_Read... [03:23:35]Read from MH i2c: 01 07 00 [03:23:35]MH_I2C_Read... [03:23:35]Read from MH i2c: 01 07 00 2F 00 00 01 00 00 00 FF 0F 45 [03:23:35]state=0 [03:23:35]No paper [03:23:36]int [03:23:36]Write to MH i2c: 01 00 00 30 00 30 [03:23:36]*** FLAG_PRN_PAP1 reset [03:23:36]Write i2c OK [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 30 00 00 00 00 00 00 FF 0F 45 [03:23:36]state=0 [03:23:36]int [03:23:36]Write to MH i2c: 01 00 00 31 00 31 [03:23:36]*** FLAG_PRN_PAP1 set [03:23:36]Write i2c OK [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 31 00 00 01 00 00 00 FF 0F 47 [03:23:36]state=0 [03:23:36]No paper [03:23:36]int [03:23:36]Write to MH i2c: 01 00 00 32 00 32 [03:23:36]*** FLAG_PRN_PAP1 reset [03:23:36]Write i2c OK [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 [03:23:36]MH_I2C_Read... [03:23:36]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [03:23:36]state=0 [03:23:37]int [03:23:37]Write to MH i2c: 01 00 00 33 00 33 [03:23:37]*** FLAG_PRN_PAP1 set [03:23:37]Write i2c OK [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 07 00 [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 07 00 33 00 00 01 00 00 00 FF 0F 49 [03:23:37]state=0 [03:23:37]No paper [03:23:37]int [03:23:37]Write to MH i2c: 01 00 00 34 00 34 [03:23:37]*** FLAG_PRN_PAP1 reset [03:23:37]Write i2c OK [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 07 00 [03:23:37]MH_I2C_Read... [03:23:37]Read from MH i2c: 01 07 00 34 00 00 00 00 00 00 FF 0F 49 [03:23:37]state=0 [03:23:38]int [03:23:38]Write to MH i2c: 01 00 00 35 00 35 [03:23:38]*** FLAG_PRN_PAP1 set [03:23:38]Write i2c OK [03:23:38]MH_I2C_Read... [03:23:38]Read from MH i2c: 01 [03:23:38]MH_I2C_Read... [03:23:38]Read from MH i2c: 01 07 00 [03:23:38]MH_I2C_Read... [03:23:38]Read from MH i2c: 01 07 00 35 00 00 01 00 00 00 FF 0F 4B [03:23:38]state=0 [03:23:38]No paper [03:23:39]No OFD sender enable setting [03:23:41]int [03:23:41]Write to MH i2c: 01 00 00 36 00 36 [03:23:41]*** FLAG_PRN_PAP1 reset [03:23:41]Write i2c OK [03:23:41]MH_I2C_Read... [03:23:41]Read from MH i2c: 01 [03:23:41]MH_I2C_Read... [03:23:41]Read from MH i2c: 01 07 00 [03:23:41]MH_I2C_Read... [03:23:41]Read from MH i2c: 01 07 00 36 00 00 00 00 00 00 FF 0F 4B [03:23:41]state=0 [03:23:44]No OFD sender enable setting [03:23:49]No OFD sender enable setting [03:23:49]int [03:23:49]Write to MH i2c: 01 00 00 37 00 37 [03:23:49]*** FLAG_PRN_PAP1 set [03:23:49]Write i2c OK [03:23:49]MH_I2C_Read... [03:23:49]Read from MH i2c: 01 [03:23:49]MH_I2C_Read... [03:23:49]Read from MH i2c: 01 07 00 [03:23:49]MH_I2C_Read... [03:23:49]Read from MH i2c: 01 07 00 37 00 00 01 00 00 00 FF 0F 4D [03:23:49]state=0 [03:23:49]No paper [03:23:54]No OFD sender enable setting [03:23:54]int [03:23:54]Write to MH i2c: 01 00 00 38 00 38 [03:23:54]*** FLAG_PRN_PAP1 reset [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 38 00 00 00 00 00 00 FF 0F 4D [03:23:54]state=0 [03:23:59]No OFD sender enable setting [03:24:04]No OFD sender enable setting [03:24:09]No OFD sender enable setting [03:24:13]int [03:24:13]Write to MH i2c: 01 00 00 39 00 39 [03:24:13]*** FLAG_PRN_PAP1 set [03:24:13]Write i2c OK [03:24:13]MH_I2C_Read... [03:24:13]Read from MH i2c: 01 [03:24:13]MH_I2C_Read... [03:24:13]Read from MH i2c: 01 07 00 [03:24:13]MH_I2C_Read... [03:24:13]Read from MH i2c: 01 07 00 39 00 00 01 00 00 00 FF 0F 4F [03:24:13]state=0 [03:24:13]No paper [03:24:14]No OFD sender enable setting [03:24:19]No OFD sender enable setting [03:24:21]*** Cut start [03:24:21]*** Partial cut [03:24:21]*** CUTSNS_PIN = 1 [03:24:21]*** CUTSNS_PIN = 0 [03:24:21]*** Brake cut motor [03:24:22]*** Stop cut motor [03:24:22]*** Cut end [03:24:24]No OFD sender enable setting [03:24:29]No OFD sender enable setting [03:24:34]No OFD sender enable setting [03:24:39]No OFD sender enable setting [03:24:44]No OFD sender enable setting [03:24:49]No OFD sender enable setting [03:24:53]accept exits with 6 [03:24:53]New connection [03:24:53]New thread 3067608420 created [03:24:53]Waiting for new connection... [03:24:53] Sock 6.Parse request [03:24:53]Sock 6.Check first char [03:24:53]accept exits with 9 [03:24:53]New connection [03:24:53]New thread 3067465060 created [03:24:53]Waiting for new connection... [03:24:53] Sock 9.Parse request [03:24:53]Sock 9.Check first char [03:24:53]Sock 6.First char is OK [03:24:53]request: GET /testengine HTTP/1.1 [03:24:53]Method: GET [03:24:53]URL: /testengine [03:24:53]Method is GET - find url and querystring [03:24:53]No ? found - this is static page request [03:24:53]url: /testengine [03:24:53]check /htdocs/testengine [03:24:53]file exist [03:24:53]serve_file /htdocs/testengine/index.html [03:24:53]read remaining request lines [03:24:53]Host: 192.168.0.101:8080 [03:24:53]Connection: keep-alive [03:24:53]Upgrade-Insecure-Requests: 1 [03:24:53]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:53]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 [03:24:53]Accept-Encoding: gzip, deflate [03:24:53]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:53] [03:24:53]open file /htdocs/testengine/index.html [03:24:53]send HTTP headers [03:24:53]send file content [03:24:53]Finished. Sent 1003 bytes [03:24:53]close file [03:24:53]Sock 6.Close socket [03:24:53]Sock 6.Thread stoped [03:24:53]Sock 9.First char is OK [03:24:53]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [03:24:53]Method: GET [03:24:53]URL: /testengine/css/app.915bc88f.css [03:24:53]Method is GET - find url and querystring [03:24:53]No ? found - this is static page request [03:24:53]url: /testengine/css/app.915bc88f.css [03:24:53]check /htdocs/testengine/css/app.915bc88f.css [03:24:53]accept exits with 10 [03:24:53]New connection [03:24:53]New thread 3067321700 created [03:24:53]Thread 3067608420 joined [03:24:53]Waiting for new connection... [03:24:53]accept exits with 6 [03:24:53]New connection [03:24:53]New thread 3067608420 created [03:24:53]Waiting for new connection... [03:24:53]accept exits with 11 [03:24:53]New connection [03:24:53]New thread 3067178340 created [03:24:53]Waiting for new connection... [03:24:53]file exist [03:24:53]serve_file /htdocs/testengine/css/app.915bc88f.css [03:24:53]read remaining request lines [03:24:53]Host: 192.168.0.101:8080 [03:24:53]Connection: keep-alive [03:24:53]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:53]Accept: text/css,*/*;q=0.1 [03:24:53]Referer: http://192.168.0.101:8080/testengine [03:24:53]Accept-Encoding: gzip, deflate [03:24:53]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:53] [03:24:53]open file /htdocs/testengine/css/app.915bc88f.css [03:24:53]send HTTP headers [03:24:53]send file content [03:24:53] Sock 11.Parse request [03:24:53]Sock 11.Check first char [03:24:53]Sock 11.First char is OK [03:24:53]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [03:24:53]Method: GET [03:24:53]URL: /testengine/js/chunk-vendors.8f546e50.js [03:24:53]Method is GET - find url and querystring [03:24:53]No ? found - this is static page request [03:24:53]url: /testengine/js/chunk-vendors.8f546e50.js [03:24:53]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [03:24:53] Sock 10.Parse request [03:24:53]Sock 10.Check first char [03:24:53]Sock 10.First char is OK [03:24:53]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [03:24:53]Method: GET [03:24:53]URL: /testengine/css/chunk-vendors.1a13a212.css [03:24:53]Method is GET - find url and querystring [03:24:53]No ? found - this is static page request [03:24:53]url: /testengine/css/chunk-vendors.1a13a212.css [03:24:53]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [03:24:53] Sock 6.Parse request [03:24:53]Sock 6.Check first char [03:24:53]Sock 6.First char is OK [03:24:53]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [03:24:53]Method: GET [03:24:53]URL: /testengine/js/app.a9c38288.js [03:24:53]Method is GET - find url and querystring [03:24:53]No ? found - this is static page request [03:24:53]url: /testengine/js/app.a9c38288.js [03:24:53]check /htdocs/testengine/js/app.a9c38288.js [03:24:53]Finished. Sent 1227 bytes [03:24:53]close file [03:24:53]Sock 9.Close socket [03:24:53]Sock 9.Thread stoped [03:24:53]file exist [03:24:53]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [03:24:53]read remaining request lines [03:24:53]Host: 192.168.0.101:8080 [03:24:53]Connection: keep-alive [03:24:53]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:53]Accept: text/css,*/*;q=0.1 [03:24:53]Referer: http://192.168.0.101:8080/testengine [03:24:53]Accept-Encoding: gzip, deflate [03:24:53]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:53] [03:24:53]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [03:24:53]send HTTP headers [03:24:53]send file content [03:24:53]file exist [03:24:53]serve_file /htdocs/testengine/js/app.a9c38288.js [03:24:53]read remaining request lines [03:24:53]Host: 192.168.0.101:8080 [03:24:53]Connection: keep-alive [03:24:53]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:53]Accept: */* [03:24:53]Referer: http://192.168.0.101:8080/testengine [03:24:53]Accept-Encoding: gzip, deflate [03:24:53]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:53] [03:24:53]open file /htdocs/testengine/js/app.a9c38288.js [03:24:53]send HTTP headers [03:24:53]send file content [03:24:53]file exist [03:24:53]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [03:24:53]read remaining request lines [03:24:53]Host: 192.168.0.101:8080 [03:24:53]Connection: keep-alive [03:24:53]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:53]Accept: */* [03:24:53]Referer: http://192.168.0.101:8080/testengine [03:24:53]Accept-Encoding: gzip, deflate [03:24:53]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:53] [03:24:53]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [03:24:53]send HTTP headers [03:24:53]send file content [03:24:53]Finished. Sent 140 bytes [03:24:53]close file [03:24:53]Sock 10.Close socket [03:24:53]Sock 10.Thread stoped [03:24:53]Finished. Sent 102400 bytes [03:24:53]close file [03:24:53]Sock 6.Close socket [03:24:53]Sock 6.Thread stoped [03:24:53]Finished. Sent 165537 bytes [03:24:53]close file [03:24:53]Sock 11.Close socket [03:24:53]Sock 11.Thread stoped [03:24:54]accept exits with 12 [03:24:54]New connection [03:24:54]New thread 3067034980 created [03:24:54]Thread 3067178340 joined [03:24:54]Thread 3067465060 joined [03:24:54]Thread 3067321700 joined [03:24:54]Thread 3067608420 joined [03:24:54]Waiting for new connection... [03:24:54] Sock 12.Parse request [03:24:54]Sock 12.Check first char [03:24:54]Sock 12.First char is OK [03:24:54]request: GET /testengine/favicon.ico HTTP/1.1 [03:24:54]Method: GET [03:24:54]URL: /testengine/favicon.ico [03:24:54]Method is GET - find url and querystring [03:24:54]No ? found - this is static page request [03:24:54]url: /testengine/favicon.ico [03:24:54]check /htdocs/testengine/favicon.ico [03:24:54]file exist [03:24:54]serve_file /htdocs/testengine/favicon.ico [03:24:54]read remaining request lines [03:24:54]Host: 192.168.0.101:8080 [03:24:54]Connection: keep-alive [03:24:54]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:24:54]Accept: image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8 [03:24:54]Referer: http://192.168.0.101:8080/testengine [03:24:54]Accept-Encoding: gzip, deflate [03:24:54]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:24:54] [03:24:54]open file /htdocs/testengine/favicon.ico [03:24:54]send HTTP headers [03:24:54]send file content [03:24:54]Finished. Sent 4286 bytes [03:24:54]close file [03:24:54]Sock 12.Close socket [03:24:54]Sock 12.Thread stoped [03:24:54]No OFD sender enable setting [03:24:56]accept exits with 6 [03:24:56]New connection [03:24:56]New thread 3067608420 created [03:24:56]Thread 3067034980 joined [03:24:56]Waiting for new connection... [03:24:56] Sock 6.Parse request [03:24:56]Sock 6.Check first char [03:24:59]No OFD sender enable setting [03:25:04]No OFD sender enable setting [03:25:09]No OFD sender enable setting [03:25:09]Sock 6.First char is OK [03:25:09]request: POST /json_proto HTTP/1.1 [03:25:09]Method: POST [03:25:09]URL: /json_proto [03:25:09]Method is POST - this is cgi request [03:25:09]url: /json_proto [03:25:09]query_string will be loaded in cgi processing [03:25:09]execute_cgi json_proto POST (null) [03:25:09]execute_cgi path=json_proto method=POST [03:25:09]POST find Content-Length [03:25:09]Host: 192.168.0.101:8080 [03:25:09]Connection: keep-alive [03:25:09]Content-Length: 113 [03:25:09]Accept: application/json, text/plain, */* [03:25:09]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [03:25:09]Content-Type: application/json [03:25:09]Origin: http://192.168.0.101:8080 [03:25:09]Referer: http://192.168.0.101:8080/testengine [03:25:09]Accept-Encoding: gzip, deflate [03:25:09]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [03:25:09] [03:25:09]POST finish read [03:25:09]Found Content-Length = 113 [03:25:09]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699378330"}}} [03:25:09]execute_script... [03:25:09]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699378330"}}} [03:25:09]POST & json_proto [03:25:09]process_json_proto [03:25:09]json parsed OK: [03:25:09]protocol is kg_v1.0 [03:25:09]action value=set_value [03:25:09]process_action set_value [03:25:09]cmd_set_value [03:25:09]SetValue [03:25:09]group config [03:25:09]SetConfigValue timestamp=1699378330 [03:25:09]SettingCheckAndSetValue timestamp=1699378330 [03:25:09]store_timestamp [03:25:09]MH_GetDate [03:25:09]Write to MH i2c: F0 00 00 3A 00 29 [03:25:09]Write i2c OK [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F0 [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F0 09 00 [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F0 09 00 3A 00 00 95 B8 F6 00 00 00 00 00 75 [03:25:09]GetLastDocTimeStamp 0 [03:25:09]cur date 16169109 [03:25:09]tm 1699378330 [03:25:09]tm ok - set date [03:25:09]MH_SetDate [03:25:09]Write to MH i2c: F1 04 00 3B 00 9A 74 4A 65 EC [03:25:09]Write i2c OK [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F1 [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F1 01 00 [03:25:09]MH_I2C_Read... [03:25:09]Read from MH i2c: F1 01 00 3B 00 00 2C [17:32:10]SetValue res=0 [17:32:10]process_action set_value done [17:32:10]no requested_data - finishing processing [17:32:10]process_action_free set_value [17:32:10]json_value_free [17:32:10]json_value_free done [17:32:10]process_json_proto returns [17:32:10]Send response to host [17:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:32:10]free response buf [17:32:10]execute_script done [17:32:10]execute_script returns [17:32:10]free content buf [17:32:10]Sock 6.Close socket [17:32:10]Sock 6.Thread stoped [17:32:11]accept exits with 9 [17:32:11]New connection [17:32:11]New thread 3067465060 created [17:32:11]Thread 3067608420 joined [17:32:11]Waiting for new connection... [17:32:11] Sock 9.Parse request [17:32:11]Sock 9.Check first char [17:32:11]Sock 9.First char is OK [17:32:11]request: POST /json_proto HTTP/1.1 [17:32:11]Method: POST [17:32:11]URL: /json_proto [17:32:11]Method is POST - this is cgi request [17:32:11]url: /json_proto [17:32:11]query_string will be loaded in cgi processing [17:32:11]execute_cgi json_proto POST (null) [17:32:11]execute_cgi path=json_proto method=POST [17:32:11]POST find Content-Length [17:32:11]Host: 192.168.0.101:8080 [17:32:11]Connection: keep-alive [17:32:11]Content-Length: 105 [17:32:11]Accept: application/json, text/plain, */* [17:32:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:11]Content-Type: application/json [17:32:11]Origin: http://192.168.0.101:8080 [17:32:11]Referer: http://192.168.0.101:8080/testengine [17:32:11]Accept-Encoding: gzip, deflate [17:32:11]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:11] [17:32:11]POST finish read [17:32:11]Found Content-Length = 105 [17:32:11]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [17:32:11]execute_script... [17:32:11]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [17:32:11]POST & json_proto [17:32:11]process_json_proto [17:32:11]json parsed OK: [17:32:11]protocol is kg_v1.0 [17:32:11]action value=get_value [17:32:11]process_action get_value [17:32:11]cmd_get_value [17:32:11]process_action get_value done [17:32:11]requested_data is exist [17:32:11]produce_requested_data [17:32:11]requested_item config.timestamp is exist - process it [17:32:11]MH_GetDate [17:32:11]Write to MH i2c: F0 00 00 3C 00 2B [17:32:11]Write i2c OK [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 09 00 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 09 00 3C 00 00 9B 74 4A 65 9A 74 4A 65 AF [17:32:11]produce_requested_data done [17:32:11]produce_requested_data return {"config.timestamp":"1699378331"} [17:32:11]process_action_free get_value [17:32:11]json_value_free [17:32:11]json_value_free done [17:32:11]process_json_proto returns [17:32:11]Send response to host [17:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1699378331"}}} [17:32:11]free response buf [17:32:11]execute_script done [17:32:11]execute_script returns [17:32:11]free content buf [17:32:11]Sock 9.Close socket [17:32:11]Sock 9.Thread stoped [17:32:12]accept exits with 6 [17:32:12]New connection [17:32:12]New thread 3067608420 created [17:32:12]Thread 3067465060 joined [17:32:12]Waiting for new connection... [17:32:12] Sock 6.Parse request [17:32:12]Sock 6.Check first char [17:32:12]Sock 6.First char is OK [17:32:12]request: POST /json_proto HTTP/1.1 [17:32:12]Method: POST [17:32:12]URL: /json_proto [17:32:12]Method is POST - this is cgi request [17:32:12]url: /json_proto [17:32:12]query_string will be loaded in cgi processing [17:32:12]execute_cgi json_proto POST (null) [17:32:12]execute_cgi path=json_proto method=POST [17:32:12]POST find Content-Length [17:32:12]Host: 192.168.0.101:8080 [17:32:12]Connection: keep-alive [17:32:12]Content-Length: 113 [17:32:12]Accept: application/json, text/plain, */* [17:32:12]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:12]Content-Type: application/json [17:32:12]Origin: http://192.168.0.101:8080 [17:32:12]Referer: http://192.168.0.101:8080/testengine [17:32:12]Accept-Encoding: gzip, deflate [17:32:12]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:12] [17:32:12]POST finish read [17:32:12]Found Content-Length = 113 [17:32:12]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699378331"}}} [17:32:12]execute_script... [17:32:12]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699378331"}}} [17:32:12]POST & json_proto [17:32:12]process_json_proto [17:32:12]json parsed OK: [17:32:12]protocol is kg_v1.0 [17:32:12]action value=set_value [17:32:12]process_action set_value [17:32:12]cmd_set_value [17:32:12]SetValue [17:32:12]group config [17:32:12]SetConfigValue timestamp=1699378331 [17:32:12]SettingCheckAndSetValue timestamp=1699378331 [17:32:12]store_timestamp [17:32:12]MH_GetDate [17:32:12]Write to MH i2c: F0 00 00 3D 00 2C [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 09 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 09 00 3D 00 00 9C 74 4A 65 9A 74 4A 65 B1 [17:32:12]GetLastDocTimeStamp 0 [17:32:12]cur date 1699378332 [17:32:12]tm 1699378331 [17:32:12]tm ok - set date [17:32:12]MH_SetDate [17:32:12]Write to MH i2c: F1 04 00 3E 00 9B 74 4A 65 F0 [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F1 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F1 01 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F1 01 00 3E 00 00 2F [17:32:11]SetValue res=0 [17:32:11]process_action set_value done [17:32:11]no requested_data - finishing processing [17:32:11]process_action_free set_value [17:32:11]json_value_free [17:32:11]json_value_free done [17:32:11]process_json_proto returns [17:32:11]Send response to host [17:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:32:11]free response buf [17:32:11]execute_script done [17:32:11]execute_script returns [17:32:11]free content buf [17:32:11]Sock 6.Close socket [17:32:11]Sock 6.Thread stoped [17:32:12]No OFD sender enable setting [17:32:17]No OFD sender enable setting [17:32:22]No OFD sender enable setting [17:32:25]accept exits with 9 [17:32:25]New connection [17:32:25]New thread 3067465060 created [17:32:25]Thread 3067608420 joined [17:32:25]Waiting for new connection... [17:32:25] Sock 9.Parse request [17:32:25]Sock 9.Check first char [17:32:25]Sock 9.First char is OK [17:32:25]request: POST /json_proto HTTP/1.1 [17:32:25]Method: POST [17:32:25]URL: /json_proto [17:32:25]Method is POST - this is cgi request [17:32:25]url: /json_proto [17:32:25]query_string will be loaded in cgi processing [17:32:25]execute_cgi json_proto POST (null) [17:32:25]execute_cgi path=json_proto method=POST [17:32:25]POST find Content-Length [17:32:25]Host: 192.168.0.101:8080 [17:32:25]Connection: keep-alive [17:32:25]Content-Length: 102 [17:32:25]Accept: application/json, text/plain, */* [17:32:25]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:25]Content-Type: application/json [17:32:25]Origin: http://192.168.0.101:8080 [17:32:25]Referer: http://192.168.0.101:8080/testengine [17:32:25]Accept-Encoding: gzip, deflate [17:32:25]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:25] [17:32:25]POST finish read [17:32:25]Found Content-Length = 102 [17:32:25]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.fm_pin"]}} [17:32:25]execute_script... [17:32:25]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.fm_pin"]}} [17:32:25]POST & json_proto [17:32:25]process_json_proto [17:32:25]json parsed OK: [17:32:25]protocol is kg_v1.0 [17:32:25]action value=get_value [17:32:25]process_action get_value [17:32:25]cmd_get_value [17:32:25]process_action get_value done [17:32:25]requested_data is exist [17:32:25]produce_requested_data [17:32:25]requested_item config.fm_pin not found [17:32:25]produce_requested_data done [17:32:25]produce_requested_data return (null) [17:32:25]process_action_free get_value [17:32:25]json_value_free [17:32:25]json_value_free done [17:32:25]process_json_proto returns [17:32:25]Send response to host [17:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:32:25]free response buf [17:32:25]execute_script done [17:32:25]execute_script returns [17:32:25]free content buf [17:32:25]Sock 9.Close socket [17:32:25]Sock 9.Thread stoped [17:32:26]accept exits with 8 [17:32:26]New connection [17:32:26]New thread 3067608420 created [17:32:26]Thread 3067465060 joined [17:32:26]Waiting for new connection... [17:32:26] Sock 8.Parse request [17:32:26]Sock 8.Check first char [17:32:26]Sock 8.First char is OK [17:32:26]request: POST /json_proto HTTP/1.1 [17:32:26]Method: POST [17:32:26]URL: /json_proto [17:32:26]Method is POST - this is cgi request [17:32:26]url: /json_proto [17:32:26]query_string will be loaded in cgi processing [17:32:26]execute_cgi json_proto POST (null) [17:32:26]execute_cgi path=json_proto method=POST [17:32:26]POST find Content-Length [17:32:26]Host: 192.168.0.101:8080 [17:32:26]Connection: keep-alive [17:32:26]Content-Length: 102 [17:32:26]Accept: application/json, text/plain, */* [17:32:26]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:26]Content-Type: application/json [17:32:26]Origin: http://192.168.0.101:8080 [17:32:26]Referer: http://192.168.0.101:8080/testengine [17:32:26]Accept-Encoding: gzip, deflate [17:32:26]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:26] [17:32:26]POST finish read [17:32:26]Found Content-Length = 102 [17:32:26]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.fm_pin"]}} [17:32:26]execute_script... [17:32:26]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.fm_pin"]}} [17:32:26]POST & json_proto [17:32:26]process_json_proto [17:32:26]json parsed OK: [17:32:26]protocol is kg_v1.0 [17:32:26]action value=get_value [17:32:26]process_action get_value [17:32:26]cmd_get_value [17:32:26]process_action get_value done [17:32:26]requested_data is exist [17:32:26]produce_requested_data [17:32:26]requested_item config.fm_pin not found [17:32:26]produce_requested_data done [17:32:26]produce_requested_data return (null) [17:32:26]process_action_free get_value [17:32:26]json_value_free [17:32:26]json_value_free done [17:32:26]process_json_proto returns [17:32:26]Send response to host [17:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:32:26]free response buf [17:32:26]execute_script done [17:32:26]execute_script returns [17:32:26]free content buf [17:32:26]Sock 8.Close socket [17:32:26]Sock 8.Thread stoped [17:32:27]No OFD sender enable setting [17:32:32]No OFD sender enable setting [17:32:34]accept exits with 9 [17:32:34]New connection [17:32:34]New thread 3067465060 created [17:32:34]Thread 3067608420 joined [17:32:34]Waiting for new connection... [17:32:34] Sock 9.Parse request [17:32:34]Sock 9.Check first char [17:32:34]Sock 9.First char is OK [17:32:34]request: POST /json_proto HTTP/1.1 [17:32:34]Method: POST [17:32:34]URL: /json_proto [17:32:34]Method is POST - this is cgi request [17:32:34]url: /json_proto [17:32:34]query_string will be loaded in cgi processing [17:32:34]execute_cgi json_proto POST (null) [17:32:34]execute_cgi path=json_proto method=POST [17:32:34]POST find Content-Length [17:32:34]Host: 192.168.0.101:8080 [17:32:34]Connection: keep-alive [17:32:34]Content-Length: 94 [17:32:34]Accept: application/json, text/plain, */* [17:32:34]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:34]Content-Type: application/json [17:32:34]Origin: http://192.168.0.101:8080 [17:32:34]Referer: http://192.168.0.101:8080/testengine [17:32:34]Accept-Encoding: gzip, deflate [17:32:34]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:34] [17:32:34]POST finish read [17:32:34]Found Content-Length = 94 [17:32:34]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:34]execute_script... [17:32:34]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:34]POST & json_proto [17:32:34]process_json_proto [17:32:34]json parsed OK: [17:32:34]protocol is kg_v1.0 [17:32:34]action value=get_value [17:32:34]process_action get_value [17:32:34]cmd_get_value [17:32:34]process_action get_value done [17:32:34]requested_data is exist [17:32:34]produce_requested_data [17:32:34]requested_item fm.sn is exist - process it [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 11 00 00 [17:32:34]Write to MH i2c: E2 08 00 3F 00 80 11 00 00 00 00 00 00 B9 [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 3F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 12 [17:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:34]wFMCommunicate OK [17:32:34]Detected FM SN is 0000000000874775 [17:32:34]No stored FM SN - require to set a PIN [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 11 00 00 [17:32:34]Write to MH i2c: E2 08 00 40 00 80 11 00 00 00 00 00 00 BA [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 40 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 13 [17:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:34]wFMCommunicate OK [17:32:34]produce_requested_data done [17:32:34]produce_requested_data return {"fm.sn":"0000000000874775"} [17:32:34]process_action_free get_value [17:32:34]json_value_free [17:32:34]json_value_free done [17:32:34]process_json_proto returns [17:32:34]Send response to host [17:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874775"}}} [17:32:34]free response buf [17:32:34]execute_script done [17:32:34]execute_script returns [17:32:34]free content buf [17:32:34]Sock 9.Close socket [17:32:34]Sock 9.Thread stoped [17:32:37]accept exits with 8 [17:32:37]New connection [17:32:37]New thread 3067608420 created [17:32:37]Thread 3067465060 joined [17:32:37]Waiting for new connection... [17:32:37] Sock 8.Parse request [17:32:37]Sock 8.Check first char [17:32:37]Sock 8.First char is OK [17:32:37]request: POST /json_proto HTTP/1.1 [17:32:37]Method: POST [17:32:37]URL: /json_proto [17:32:37]Method is POST - this is cgi request [17:32:37]url: /json_proto [17:32:37]query_string will be loaded in cgi processing [17:32:37]execute_cgi json_proto POST (null) [17:32:37]execute_cgi path=json_proto method=POST [17:32:37]POST find Content-Length [17:32:37]Host: 192.168.0.101:8080 [17:32:37]Connection: keep-alive [17:32:37]Content-Length: 94 [17:32:37]Accept: application/json, text/plain, */* [17:32:37]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:37]Content-Type: application/json [17:32:37]Origin: http://192.168.0.101:8080 [17:32:37]Referer: http://192.168.0.101:8080/testengine [17:32:37]Accept-Encoding: gzip, deflate [17:32:37]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:37] [17:32:37]POST finish read [17:32:37]Found Content-Length = 94 [17:32:37]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:37]execute_script... [17:32:37]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:37]POST & json_proto [17:32:37]process_json_proto [17:32:37]json parsed OK: [17:32:37]protocol is kg_v1.0 [17:32:37]action value=get_value [17:32:37]process_action get_value [17:32:37]cmd_get_value [17:32:37]process_action get_value done [17:32:37]requested_data is exist [17:32:37]produce_requested_data [17:32:37]requested_item fm.sn is exist - process it [17:32:37]wFMCommunicate request_size=4 [17:32:37]MH_SAM_APDU [17:32:37]CAPDU: 80 11 00 00 [17:32:37]Write to MH i2c: E2 08 00 41 00 80 11 00 00 00 00 00 00 BB [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:37]Read from MH i2c: E2 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 41 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 14 [17:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:37]wFMCommunicate OK [17:32:37]Detected FM SN is 0000000000874775 [17:32:37]No stored FM SN - require to set a PIN [17:32:37]wFMCommunicate request_size=4 [17:32:37]MH_SAM_APDU [17:32:37]CAPDU: 80 11 00 00 [17:32:37]Write to MH i2c: E2 08 00 42 00 80 11 00 00 00 00 00 00 BC [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:37]Read from MH i2c: E2 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 42 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 15 [17:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:37]wFMCommunicate OK [17:32:37]produce_requested_data done [17:32:37]produce_requested_data return {"fm.sn":"0000000000874775"} [17:32:37]process_action_free get_value [17:32:37]json_value_free [17:32:37]json_value_free done [17:32:37]process_json_proto returns [17:32:37]Send response to host [17:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874775"}}} [17:32:37]free response buf [17:32:37]execute_script done [17:32:37]execute_script returns [17:32:37]free content buf [17:32:37]Sock 8.Close socket [17:32:37]Sock 8.Thread stoped [17:32:37]No OFD sender enable setting [17:32:38]accept exits with 9 [17:32:38]New connection [17:32:38]New thread 3067465060 created [17:32:38]Thread 3067608420 joined [17:32:38]Waiting for new connection... [17:32:38] Sock 9.Parse request [17:32:38]Sock 9.Check first char [17:32:38]Sock 9.First char is OK [17:32:38]request: POST /json_proto HTTP/1.1 [17:32:38]Method: POST [17:32:38]URL: /json_proto [17:32:38]Method is POST - this is cgi request [17:32:38]url: /json_proto [17:32:38]query_string will be loaded in cgi processing [17:32:38]execute_cgi json_proto POST (null) [17:32:38]execute_cgi path=json_proto method=POST [17:32:38]POST find Content-Length [17:32:38]Host: 192.168.0.101:8080 [17:32:38]Connection: keep-alive [17:32:38]Content-Length: 94 [17:32:38]Accept: application/json, text/plain, */* [17:32:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:32:38]Content-Type: application/json [17:32:38]Origin: http://192.168.0.101:8080 [17:32:38]Referer: http://192.168.0.101:8080/testengine [17:32:38]Accept-Encoding: gzip, deflate [17:32:38]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:32:38] [17:32:38]POST finish read [17:32:38]Found Content-Length = 94 [17:32:38]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:38]execute_script... [17:32:38]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:32:38]POST & json_proto [17:32:38]process_json_proto [17:32:38]json parsed OK: [17:32:38]protocol is kg_v1.0 [17:32:38]action value=get_value [17:32:38]process_action get_value [17:32:38]cmd_get_value [17:32:38]process_action get_value done [17:32:38]requested_data is exist [17:32:38]produce_requested_data [17:32:38]requested_item fm.sn is exist - process it [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 11 00 00 [17:32:38]Write to MH i2c: E2 08 00 43 00 80 11 00 00 00 00 00 00 BD [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 43 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 16 [17:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:38]wFMCommunicate OK [17:32:38]Detected FM SN is 0000000000874775 [17:32:38]No stored FM SN - require to set a PIN [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 11 00 00 [17:32:38]Write to MH i2c: E2 08 00 44 00 80 11 00 00 00 00 00 00 BE [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 44 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 17 [17:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:32:38]wFMCommunicate OK [17:32:38]produce_requested_data done [17:32:38]produce_requested_data return {"fm.sn":"0000000000874775"} [17:32:38]process_action_free get_value [17:32:38]json_value_free [17:32:38]json_value_free done [17:32:38]process_json_proto returns [17:32:38]Send response to host [17:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874775"}}} [17:32:38]free response buf [17:32:38]execute_script done [17:32:38]execute_script returns [17:32:38]free content buf [17:32:38]Sock 9.Close socket [17:32:38]Sock 9.Thread stoped [17:32:42]No OFD sender enable setting [17:32:47]No OFD sender enable setting [17:32:52]No OFD sender enable setting [17:32:57]No OFD sender enable setting [17:33:02]No OFD sender enable setting [17:33:07]No OFD sender enable setting [17:33:12]No OFD sender enable setting [17:33:17]No OFD sender enable setting [17:33:22]No OFD sender enable setting [17:33:27]No OFD sender enable setting [17:33:32]No OFD sender enable setting [17:33:37]No OFD sender enable setting [17:33:42]No OFD sender enable setting [17:33:47]No OFD sender enable setting [17:33:52]No OFD sender enable setting [17:33:57]No OFD sender enable setting [17:34:02]No OFD sender enable setting [17:34:07]No OFD sender enable setting [17:34:12]No OFD sender enable setting [17:34:17]No OFD sender enable setting [17:34:22]No OFD sender enable setting [17:34:27]No OFD sender enable setting [17:34:32]No OFD sender enable setting [17:34:37]No OFD sender enable setting [17:34:42]No OFD sender enable setting [17:34:47]No OFD sender enable setting [17:34:52]No OFD sender enable setting [17:34:57]No OFD sender enable setting [17:35:02]No OFD sender enable setting [17:35:07]No OFD sender enable setting [17:35:12]No OFD sender enable setting [17:35:17]No OFD sender enable setting [17:35:22]No OFD sender enable setting [17:35:27]No OFD sender enable setting [17:35:32]No OFD sender enable setting [17:35:38]No OFD sender enable setting [17:35:43]No OFD sender enable setting [17:35:48]No OFD sender enable setting [17:35:53]No OFD sender enable setting [17:35:58]No OFD sender enable setting [17:36:03]No OFD sender enable setting [17:36:08]No OFD sender enable setting [17:36:13]No OFD sender enable setting [17:36:18]No OFD sender enable setting [17:36:23]No OFD sender enable setting [17:36:28]No OFD sender enable setting [17:36:33]No OFD sender enable setting [17:36:38]No OFD sender enable setting [17:36:43]No OFD sender enable setting [17:36:48]No OFD sender enable setting [17:36:53]No OFD sender enable setting [17:36:58]No OFD sender enable setting [17:37:03]No OFD sender enable setting [17:37:08]No OFD sender enable setting [17:37:13]No OFD sender enable setting [17:37:18]No OFD sender enable setting [17:37:23]No OFD sender enable setting [17:37:28]No OFD sender enable setting [17:37:33]No OFD sender enable setting [17:37:38]No OFD sender enable setting [17:37:43]No OFD sender enable setting [17:37:48]No OFD sender enable setting [17:37:53]No OFD sender enable setting [17:37:58]No OFD sender enable setting [17:38:03]No OFD sender enable setting [17:38:08]No OFD sender enable setting [17:38:13]No OFD sender enable setting [17:38:18]No OFD sender enable setting [17:38:23]No OFD sender enable setting [17:38:28]No OFD sender enable setting [17:38:33]No OFD sender enable setting [17:38:38]No OFD sender enable setting [17:38:43]No OFD sender enable setting [17:38:48]No OFD sender enable setting [17:38:53]No OFD sender enable setting [17:38:58]No OFD sender enable setting [17:39:03]No OFD sender enable setting [17:39:08]No OFD sender enable setting [17:39:13]No OFD sender enable setting [17:39:18]No OFD sender enable setting [17:39:23]No OFD sender enable setting [17:39:28]No OFD sender enable setting [17:39:33]No OFD sender enable setting [17:39:38]No OFD sender enable setting [17:39:43]No OFD sender enable setting [17:39:48]No OFD sender enable setting [17:39:53]No OFD sender enable setting [17:39:58]No OFD sender enable setting [17:40:03]No OFD sender enable setting [17:40:08]No OFD sender enable setting [17:40:13]No OFD sender enable setting [17:40:18]No OFD sender enable setting [17:40:23]No OFD sender enable setting [17:40:28]No OFD sender enable setting [17:40:33]No OFD sender enable setting [17:40:38]No OFD sender enable setting [17:40:43]No OFD sender enable setting [17:40:48]No OFD sender enable setting [17:40:53]No OFD sender enable setting [17:40:58]No OFD sender enable setting [17:41:03]No OFD sender enable setting [17:41:08]No OFD sender enable setting [17:41:13]No OFD sender enable setting [17:41:18]No OFD sender enable setting [17:41:23]No OFD sender enable setting [17:41:28]No OFD sender enable setting [17:41:33]No OFD sender enable setting [17:41:38]No OFD sender enable setting [17:41:43]No OFD sender enable setting [17:41:48]No OFD sender enable setting [17:41:53]No OFD sender enable setting [17:41:58]No OFD sender enable setting [17:42:03]No OFD sender enable setting [17:42:08]No OFD sender enable setting [17:42:13]No OFD sender enable setting [17:42:18]No OFD sender enable setting [17:42:23]No OFD sender enable setting [17:42:28]No OFD sender enable setting [17:42:33]No OFD sender enable setting [17:42:38]No OFD sender enable setting [17:42:43]No OFD sender enable setting [17:42:48]No OFD sender enable setting [17:42:53]No OFD sender enable setting [17:42:58]No OFD sender enable setting [17:43:03]No OFD sender enable setting [17:43:08]No OFD sender enable setting [17:43:13]No OFD sender enable setting [17:43:18]No OFD sender enable setting [17:43:23]No OFD sender enable setting [17:43:28]No OFD sender enable setting [17:43:33]No OFD sender enable setting [17:43:38]No OFD sender enable setting [17:43:43]No OFD sender enable setting [17:43:48]No OFD sender enable setting [17:43:53]No OFD sender enable setting [17:43:58]No OFD sender enable setting [17:44:03]No OFD sender enable setting [17:44:08]No OFD sender enable setting [17:44:13]No OFD sender enable setting [17:44:18]No OFD sender enable setting [17:44:23]No OFD sender enable setting [17:44:28]No OFD sender enable setting [17:44:33]No OFD sender enable setting [17:44:38]No OFD sender enable setting [17:44:43]No OFD sender enable setting [17:44:48]No OFD sender enable setting [17:44:53]No OFD sender enable setting [17:44:58]No OFD sender enable setting [17:45:03]No OFD sender enable setting [17:45:08]No OFD sender enable setting [17:45:13]No OFD sender enable setting [17:45:18]No OFD sender enable setting [17:45:23]No OFD sender enable setting [17:45:28]No OFD sender enable setting [17:45:33]No OFD sender enable setting [17:45:38]No OFD sender enable setting [17:45:43]No OFD sender enable setting [17:45:48]No OFD sender enable setting [17:45:53]No OFD sender enable setting [17:45:58]No OFD sender enable setting [17:46:03]No OFD sender enable setting [17:46:08]No OFD sender enable setting [17:46:13]No OFD sender enable setting [17:46:18]No OFD sender enable setting [17:46:23]No OFD sender enable setting [17:46:28]No OFD sender enable setting [17:46:33]No OFD sender enable setting [17:46:38]No OFD sender enable setting [17:46:43]No OFD sender enable setting [17:46:48]No OFD sender enable setting [17:46:53]No OFD sender enable setting [17:46:58]No OFD sender enable setting [17:47:03]No OFD sender enable setting [17:47:08]No OFD sender enable setting [17:47:13]No OFD sender enable setting [17:47:18]No OFD sender enable setting [17:47:23]No OFD sender enable setting [17:47:28]No OFD sender enable setting [17:47:33]No OFD sender enable setting [17:47:38]No OFD sender enable setting [17:47:43]No OFD sender enable setting [17:47:48]No OFD sender enable setting [17:47:53]No OFD sender enable setting [17:47:58]No OFD sender enable setting [17:48:00]accept exits with 8 [17:48:00]New connection [17:48:00]New thread 3067608420 created [17:48:00]Thread 3067465060 joined [17:48:00]Waiting for new connection... [17:48:00] Sock 8.Parse request [17:48:00]Sock 8.Check first char [17:48:00]Sock 8.First char is OK [17:48:00]request: POST /json_proto HTTP/1.1 [17:48:00]Method: POST [17:48:00]URL: /json_proto [17:48:00]Method is POST - this is cgi request [17:48:00]url: /json_proto [17:48:00]query_string will be loaded in cgi processing [17:48:00]execute_cgi json_proto POST (null) [17:48:00]execute_cgi path=json_proto method=POST [17:48:00]POST find Content-Length [17:48:00]Host: 192.168.0.101:8080 [17:48:00]Connection: keep-alive [17:48:00]Content-Length: 94 [17:48:00]Accept: application/json, text/plain, */* [17:48:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:00]Content-Type: application/json [17:48:00]Origin: http://192.168.0.101:8080 [17:48:00]Referer: http://192.168.0.101:8080/testengine [17:48:00]Accept-Encoding: gzip, deflate [17:48:00]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:00] [17:48:00]POST finish read [17:48:00]Found Content-Length = 94 [17:48:00]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:48:00]execute_script... [17:48:00]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["fm.sn"]}} [17:48:00]POST & json_proto [17:48:00]process_json_proto [17:48:00]json parsed OK: [17:48:00]protocol is kg_v1.0 [17:48:00]action value=get_value [17:48:00]process_action get_value [17:48:00]cmd_get_value [17:48:00]process_action get_value done [17:48:00]requested_data is exist [17:48:00]produce_requested_data [17:48:00]requested_item fm.sn is exist - process it [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 11 00 00 [17:48:00]Write to MH i2c: E2 08 00 45 00 80 11 00 00 00 00 00 00 BF [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 45 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 18 [17:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:00]wFMCommunicate OK [17:48:00]Detected FM SN is 0000000000874775 [17:48:00]No stored FM SN - require to set a PIN [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 11 00 00 [17:48:00]Write to MH i2c: E2 08 00 46 00 80 11 00 00 00 00 00 00 C0 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 46 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 19 [17:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:00]wFMCommunicate OK [17:48:00]produce_requested_data done [17:48:00]produce_requested_data return {"fm.sn":"0000000000874775"} [17:48:00]process_action_free get_value [17:48:00]json_value_free [17:48:00]json_value_free done [17:48:00]process_json_proto returns [17:48:00]Send response to host [17:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874775"}}} [17:48:00]free response buf [17:48:00]execute_script done [17:48:00]execute_script returns [17:48:00]free content buf [17:48:00]Sock 8.Close socket [17:48:00]Sock 8.Thread stoped [17:48:03]No OFD sender enable setting [17:48:05]accept exits with 9 [17:48:05]New connection [17:48:05]New thread 3067465060 created [17:48:05]Thread 3067608420 joined [17:48:05]Waiting for new connection... [17:48:05] Sock 9.Parse request [17:48:05]Sock 9.Check first char [17:48:05]Sock 9.First char is OK [17:48:05]request: POST /json_proto HTTP/1.1 [17:48:05]Method: POST [17:48:05]URL: /json_proto [17:48:05]Method is POST - this is cgi request [17:48:05]url: /json_proto [17:48:05]query_string will be loaded in cgi processing [17:48:05]execute_cgi json_proto POST (null) [17:48:05]execute_cgi path=json_proto method=POST [17:48:05]POST find Content-Length [17:48:05]Host: 192.168.0.101:8080 [17:48:05]Connection: keep-alive [17:48:05]Content-Length: 123 [17:48:05]Accept: application/json, text/plain, */* [17:48:05]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:05]Content-Type: application/json [17:48:05]Origin: http://192.168.0.101:8080 [17:48:05]Referer: http://192.168.0.101:8080/testengine [17:48:05]Accept-Encoding: gzip, deflate [17:48:05]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:05] [17:48:05]POST finish read [17:48:05]Found Content-Length = 123 [17:48:05]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn"]}} [17:48:05]execute_script... [17:48:05]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn"]}} [17:48:05]POST & json_proto [17:48:05]process_json_proto [17:48:05]json parsed OK: [17:48:05]protocol is kg_v1.0 [17:48:05]action value=get_value [17:48:05]process_action get_value [17:48:05]cmd_get_value [17:48:05]process_action get_value done [17:48:05]requested_data is exist [17:48:05]produce_requested_data [17:48:05]requested_item kkm.sn is exist - process it [17:48:05]requested_item kkm.ver is exist - process it [17:48:05]requested_item kkm.rnm is exist - process it [17:48:05]wFMCommunicate request_size=4 [17:48:05]MH_SAM_APDU [17:48:05]CAPDU: 80 11 00 00 [17:48:05]Write to MH i2c: E2 08 00 47 00 80 11 00 00 00 00 00 00 C1 [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:05]Read from MH i2c: E2 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 47 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1A [17:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:05]wFMCommunicate OK [17:48:05]Detected FM SN is 0000000000874775 [17:48:05]No stored FM SN - require to set a PIN [17:48:05]produce_fm_shift_data error [17:48:05]requested_item fm.sn is exist - process it [17:48:05]wFMCommunicate request_size=4 [17:48:05]MH_SAM_APDU [17:48:05]CAPDU: 80 11 00 00 [17:48:05]Write to MH i2c: E2 08 00 48 00 80 11 00 00 00 00 00 00 C2 [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:05]Read from MH i2c: E2 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 48 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1B [17:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:05]wFMCommunicate OK [17:48:05]Detected FM SN is 0000000000874775 [17:48:05]No stored FM SN - require to set a PIN [17:48:05]wFMCommunicate request_size=4 [17:48:05]MH_SAM_APDU [17:48:05]CAPDU: 80 11 00 00 [17:48:05]Write to MH i2c: E2 08 00 49 00 80 11 00 00 00 00 00 00 C3 [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:05]Read from MH i2c: E2 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 17 00 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1C [17:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:05]wFMCommunicate OK [17:48:05]produce_requested_data done [17:48:05]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [17:48:05]process_action_free get_value [17:48:05]json_value_free [17:48:05]json_value_free done [17:48:05]process_json_proto returns [17:48:05]Send response to host [17:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [17:48:05]free response buf [17:48:05]execute_script done [17:48:05]execute_script returns [17:48:05]free content buf [17:48:05]Sock 9.Close socket [17:48:05]Sock 9.Thread stoped [17:48:07]accept exits with 8 [17:48:07]New connection [17:48:07]New thread 3067608420 created [17:48:07]Thread 3067465060 joined [17:48:07]Waiting for new connection... [17:48:07] Sock 8.Parse request [17:48:07]Sock 8.Check first char [17:48:07]Sock 8.First char is OK [17:48:07]request: POST /json_proto HTTP/1.1 [17:48:07]Method: POST [17:48:07]URL: /json_proto [17:48:07]Method is POST - this is cgi request [17:48:07]url: /json_proto [17:48:07]query_string will be loaded in cgi processing [17:48:07]execute_cgi json_proto POST (null) [17:48:07]execute_cgi path=json_proto method=POST [17:48:07]POST find Content-Length [17:48:07]Host: 192.168.0.101:8080 [17:48:07]Connection: keep-alive [17:48:07]Content-Length: 123 [17:48:07]Accept: application/json, text/plain, */* [17:48:07]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:07]Content-Type: application/json [17:48:07]Origin: http://192.168.0.101:8080 [17:48:07]Referer: http://192.168.0.101:8080/testengine [17:48:07]Accept-Encoding: gzip, deflate [17:48:07]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:07] [17:48:07]POST finish read [17:48:07]Found Content-Length = 123 [17:48:07]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn"]}} [17:48:07]execute_script... [17:48:07]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn"]}} [17:48:07]POST & json_proto [17:48:07]process_json_proto [17:48:07]json parsed OK: [17:48:07]protocol is kg_v1.0 [17:48:07]action value=get_value [17:48:07]process_action get_value [17:48:07]cmd_get_value [17:48:07]process_action get_value done [17:48:07]requested_data is exist [17:48:07]produce_requested_data [17:48:07]requested_item kkm.sn is exist - process it [17:48:07]requested_item kkm.ver is exist - process it [17:48:07]requested_item kkm.rnm is exist - process it [17:48:07]wFMCommunicate request_size=4 [17:48:07]MH_SAM_APDU [17:48:07]CAPDU: 80 11 00 00 [17:48:07]Write to MH i2c: E2 08 00 4A 00 80 11 00 00 00 00 00 00 C4 [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:07]Read from MH i2c: E2 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 4A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1D [17:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:07]wFMCommunicate OK [17:48:07]Detected FM SN is 0000000000874775 [17:48:07]No stored FM SN - require to set a PIN [17:48:07]produce_fm_shift_data error [17:48:07]requested_item fm.sn is exist - process it [17:48:07]wFMCommunicate request_size=4 [17:48:07]MH_SAM_APDU [17:48:07]CAPDU: 80 11 00 00 [17:48:07]Write to MH i2c: E2 08 00 4B 00 80 11 00 00 00 00 00 00 C5 [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:07]Read from MH i2c: E2 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 4B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1E [17:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:07]wFMCommunicate OK [17:48:07]Detected FM SN is 0000000000874775 [17:48:07]No stored FM SN - require to set a PIN [17:48:07]wFMCommunicate request_size=4 [17:48:07]MH_SAM_APDU [17:48:07]CAPDU: 80 11 00 00 [17:48:07]Write to MH i2c: E2 08 00 4C 00 80 11 00 00 00 00 00 00 C6 [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:07]Read from MH i2c: E2 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: E2 17 00 4C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 1F [17:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:07]wFMCommunicate OK [17:48:07]produce_requested_data done [17:48:07]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [17:48:07]process_action_free get_value [17:48:07]json_value_free [17:48:07]json_value_free done [17:48:07]process_json_proto returns [17:48:07]Send response to host [17:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [17:48:07]free response buf [17:48:07]execute_script done [17:48:07]execute_script returns [17:48:07]free content buf [17:48:07]Sock 8.Close socket [17:48:07]Sock 8.Thread stoped [17:48:08]No OFD sender enable setting [17:48:13]No OFD sender enable setting [17:48:16]accept exits with 9 [17:48:16]New connection [17:48:16]New thread 3067465060 created [17:48:16]Thread 3067608420 joined [17:48:16]Waiting for new connection... [17:48:16] Sock 9.Parse request [17:48:16]Sock 9.Check first char [17:48:16]Sock 9.First char is OK [17:48:16]request: POST /json_proto HTTP/1.1 [17:48:16]Method: POST [17:48:16]URL: /json_proto [17:48:16]Method is POST - this is cgi request [17:48:16]url: /json_proto [17:48:16]query_string will be loaded in cgi processing [17:48:16]execute_cgi json_proto POST (null) [17:48:16]execute_cgi path=json_proto method=POST [17:48:16]POST find Content-Length [17:48:16]Host: 192.168.0.101:8080 [17:48:16]Connection: keep-alive [17:48:16]Content-Length: 253 [17:48:16]Accept: application/json, text/plain, */* [17:48:16]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:16]Content-Type: application/json [17:48:16]Origin: http://192.168.0.101:8080 [17:48:16]Referer: http://192.168.0.101:8080/testengine [17:48:16]Accept-Encoding: gzip, deflate [17:48:16]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:16] [17:48:16]POST finish read [17:48:16]Found Content-Length = 253 [17:48:16]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:16]execute_script... [17:48:16]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:16]POST & json_proto [17:48:16]process_json_proto [17:48:16]json parsed OK: [17:48:16]protocol is kg_v1.0 [17:48:16]action value=get_value [17:48:16]process_action get_value [17:48:16]cmd_get_value [17:48:16]process_action get_value done [17:48:16]requested_data is exist [17:48:16]produce_requested_data [17:48:16]requested_item kkm.sn is exist - process it [17:48:16]requested_item kkm.ver is exist - process it [17:48:16]requested_item kkm.rnm is exist - process it [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 11 00 00 [17:48:16]Write to MH i2c: E2 08 00 4D 00 80 11 00 00 00 00 00 00 C7 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 4D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 20 [17:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:16]wFMCommunicate OK [17:48:16]Detected FM SN is 0000000000874775 [17:48:16]No stored FM SN - require to set a PIN [17:48:16]produce_fm_shift_data error [17:48:16]requested_item fm.sn is exist - process it [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 11 00 00 [17:48:16]Write to MH i2c: E2 08 00 4E 00 80 11 00 00 00 00 00 00 C8 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 17 00 4E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 21 [17:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:16]wFMCommunicate OK [17:48:16]Detected FM SN is 0000000000874775 [17:48:16]No stored FM SN - require to set a PIN [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 11 00 00 [17:48:16]Write to MH i2c: E2 08 00 4F 00 80 11 00 00 00 00 00 00 C9 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 4F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 22 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]requested_item fm.ffd_ver is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 23 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item fm.expired is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 51 00 80 11 00 00 00 00 00 00 CB [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 51 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 24 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item fd.num is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 52 00 80 11 00 00 00 00 00 00 CC [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 52 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 25 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item shift.num is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 53 00 80 11 00 00 00 00 00 00 CD [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 53 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 26 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item shift.opened is exist - process it [17:48:17]req_shift_opened [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 54 00 80 11 00 00 00 00 00 00 CE [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 54 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 27 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_state error [17:48:17]requested_item shift.open_date is exist - process it [17:48:17]req_shift_open_date [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 55 00 80 11 00 00 00 00 00 00 CF [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 55 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 28 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_state error [17:48:17]requested_item shift.receipt_num is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 29 [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item shift.receipts is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2A [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]requested_item shift.docs is exist - process it [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 11 00 00 [17:48:17]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2B [17:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:17]wFMCommunicate OK [17:48:17]Detected FM SN is 0000000000874775 [17:48:17]No stored FM SN - require to set a PIN [17:48:17]produce_fm_shift_data error [17:48:17]produce_requested_data done [17:48:17]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [17:48:17]process_action_free get_value [17:48:17]json_value_free [17:48:17]json_value_free done [17:48:17]process_json_proto returns [17:48:17]Send response to host [17:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [17:48:17]free response buf [17:48:17]execute_script done [17:48:17]execute_script returns [17:48:17]free content buf [17:48:17]Sock 9.Close socket [17:48:17]Sock 9.Thread stoped [17:48:18]accept exits with 8 [17:48:18]New connection [17:48:18]New thread 3067608420 created [17:48:18]Thread 3067465060 joined [17:48:18]Waiting for new connection... [17:48:18] Sock 8.Parse request [17:48:18]Sock 8.Check first char [17:48:18]Sock 8.First char is OK [17:48:18]request: POST /json_proto HTTP/1.1 [17:48:18]Method: POST [17:48:18]URL: /json_proto [17:48:18]Method is POST - this is cgi request [17:48:18]url: /json_proto [17:48:18]query_string will be loaded in cgi processing [17:48:18]execute_cgi json_proto POST (null) [17:48:18]execute_cgi path=json_proto method=POST [17:48:18]POST find Content-Length [17:48:18]Host: 192.168.0.101:8080 [17:48:18]Connection: keep-alive [17:48:18]Content-Length: 253 [17:48:18]Accept: application/json, text/plain, */* [17:48:18]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:18]Content-Type: application/json [17:48:18]Origin: http://192.168.0.101:8080 [17:48:18]Referer: http://192.168.0.101:8080/testengine [17:48:18]Accept-Encoding: gzip, deflate [17:48:18]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:18] [17:48:18]POST finish read [17:48:18]Found Content-Length = 253 [17:48:18]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:18]execute_script... [17:48:18]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:18]POST & json_proto [17:48:18]process_json_proto [17:48:18]json parsed OK: [17:48:18]protocol is kg_v1.0 [17:48:18]action value=get_value [17:48:18]process_action get_value [17:48:18]cmd_get_value [17:48:18]process_action get_value done [17:48:18]requested_data is exist [17:48:18]produce_requested_data [17:48:18]requested_item kkm.sn is exist - process it [17:48:18]requested_item kkm.ver is exist - process it [17:48:18]requested_item kkm.rnm is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 59 00 80 11 00 00 00 00 00 00 D3 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 59 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2C [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]produce_fm_shift_data error [17:48:18]requested_item fm.sn is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]No OFD sender enable setting [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2D [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5B 00 80 11 00 00 00 00 00 00 D5 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2E [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]requested_item fm.ffd_ver is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5C 00 80 11 00 00 00 00 00 00 D6 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 2F [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]produce_fm_shift_data error [17:48:18]requested_item fm.expired is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5D 00 80 11 00 00 00 00 00 00 D7 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 30 [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]produce_fm_shift_data error [17:48:18]requested_item fd.num is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5E 00 80 11 00 00 00 00 00 00 D8 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 31 [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]produce_fm_shift_data error [17:48:18]requested_item shift.num is exist - process it [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 5F 00 80 11 00 00 00 00 00 00 D9 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 5F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 32 [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:18]wFMCommunicate OK [17:48:18]Detected FM SN is 0000000000874775 [17:48:18]No stored FM SN - require to set a PIN [17:48:18]produce_fm_shift_data error [17:48:18]requested_item shift.opened is exist - process it [17:48:18]req_shift_opened [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: accept exits with 9 [17:48:19]E2 New connection [17:48:19] [17:48:19]MH_I2C_Read... [17:48:19]New thread 3067465060 created [17:48:19]Waiting for new connection... [17:48:19]Read from MH i2c: Sock 9.Parse request [17:48:19]E2 Sock 9.Check first char [17:48:19]17 Sock 9.First char is OK [17:48:19]00 [17:48:19]request: POST /json_proto HTTP/1.1 [17:48:19]MH_I2C_Read... [17:48:19]Method: POST [17:48:19]URL: /json_proto [17:48:19]Method is POST - this is cgi request [17:48:19]url: /json_proto [17:48:19]query_string will be loaded in cgi processing [17:48:19]execute_cgi json_proto POST (null) [17:48:19]execute_cgi path=json_proto method=POST [17:48:19]POST find Content-Length [17:48:19]Host: 192.168.0.101:8080 [17:48:19]Read from MH i2c: Connection: keep-alive [17:48:19]E2 Content-Length: 253 [17:48:19]17 00 60 Accept: application/json, text/plain, */* [17:48:19]00 00 11 04 10 00 30 30 30 30 30 30 30 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:19]30 30 30 Content-Type: application/json [17:48:19]38 37 34 Origin: http://192.168.0.101:8080 [17:48:19]37 37 35 90 Referer: http://192.168.0.101:8080/testengine [17:48:19]00 33 Accept-Encoding: gzip, deflate [17:48:19] [17:48:19]RAPDU: Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:19]11 [17:48:19]04 POST finish read [17:48:19]10 Found Content-Length = 253 [17:48:19]00 post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:19]30 execute_script... [17:48:19]30 execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [17:48:19]30 POST & json_proto [17:48:19]30 process_json_proto [17:48:19]30 30 json parsed OK: [17:48:19]30 protocol is kg_v1.0 [17:48:19]30 action value=get_value [17:48:19]30 process_action get_value [17:48:19]30 cmd_get_value [17:48:19]38 process_action get_value done [17:48:19]37 requested_data is exist [17:48:19]34 produce_requested_data [17:48:19]37 requested_item kkm.sn is exist - process it [17:48:19]37 35 requested_item kkm.ver is exist - process it [17:48:19]90 requested_item kkm.rnm is exist - process it [17:48:19]00 wFMCommunicate request_size=4 [17:48:19] [17:48:19]MH_SAM_APDU [17:48:19]wFMCommunicate OK [17:48:19]CAPDU: Detected FM SN is 0000000000874775 [17:48:19]80 No stored FM SN - require to set a PIN [17:48:19]11 produce_fm_shift_state error [17:48:19]00 requested_item shift.open_date is exist - process it [17:48:19]00 req_shift_open_date [17:48:19] [17:48:19]wFMCommunicate request_size=4 [17:48:19]Write to MH i2c: MH_SAM_APDU [17:48:19]E2 CAPDU: 08 80 00 11 61 00 00 00 80 [17:48:19]11 00 00 00 00 00 00 DB [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 61 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 34 [17:48:19]RAPDU: Write to MH i2c: 11 E2 04 08 10 00 62 00 00 30 80 30 11 00 30 30 00 30 00 30 00 30 00 00 30 DC 30 30 [17:48:19]38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]produce_fm_shift_data error [17:48:19]requested_item fm.sn is exist - process it [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 35 [17:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]produce_fm_shift_state error [17:48:19]requested_item shift.receipt_num is exist - process it [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 36 [17:48:19]RAPDU: Write to MH i2c: 11 E2 08 04 00 64 10 00 00 80 30 11 30 00 30 00 00 30 00 00 00 DE [17:48:19]30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]produce_fm_shift_data error [17:48:19]requested_item shift.receipts is exist - process it [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 37 [17:48:19]RAPDU: Write to MH i2c: 11 E2 04 08 10 00 00 65 30 00 30 80 30 30 11 30 00 00 30 00 30 00 30 00 30 30 00 38 DF 37 [17:48:19]34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 38 [17:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]produce_fm_shift_data error [17:48:19]requested_item shift.docs is exist - process it [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write to MH i2c: E2 08 00 66 00 80 11 00 00 00 00 00 00 E0 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 66 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 39 [17:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]Detected FM SN is 0000000000874775 [17:48:19]No stored FM SN - require to set a PIN [17:48:19]produce_fm_shift_data error [17:48:19]produce_requested_data done [17:48:19]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [17:48:19]process_action_free get_value [17:48:19]json_value_free [17:48:19]json_value_free done [17:48:19]process_json_proto returns [17:48:19]Send response to host [17:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [17:48:19]free response buf [17:48:19]execute_script done [17:48:19]execute_script returns [17:48:19]free content buf [17:48:19]Sock 8.Close socket [17:48:19]Sock 8.Thread stoped [17:48:19]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3A [17:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:19]wFMCommunicate OK [17:48:19]requested_item fm.ffd_ver is exist - process it [17:48:19]wFMCommunicate request_size=4 [17:48:19]MH_SAM_APDU [17:48:19]CAPDU: 80 11 00 00 [17:48:19]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:19]Read from MH i2c: E2 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3B [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item fm.expired is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3C [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item fd.num is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3D [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item shift.num is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3E [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item shift.opened is exist - process it [17:48:20]req_shift_opened [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 3F [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_state error [17:48:20]requested_item shift.open_date is exist - process it [17:48:20]req_shift_open_date [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 40 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_state error [17:48:20]requested_item shift.receipt_num is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 41 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item shift.receipts is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 42 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]requested_item shift.docs is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 43 [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [17:48:20]wFMCommunicate OK [17:48:20]Detected FM SN is 0000000000874775 [17:48:20]No stored FM SN - require to set a PIN [17:48:20]produce_fm_shift_data error [17:48:20]produce_requested_data done [17:48:20]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [17:48:20]process_action_free get_value [17:48:20]json_value_free [17:48:20]json_value_free done [17:48:20]process_json_proto returns [17:48:20]Send response to host [17:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [17:48:20]free response buf [17:48:20]execute_script done [17:48:20]execute_script returns [17:48:20]free content buf [17:48:20]Sock 9.Close socket [17:48:20]Sock 9.Thread stoped [17:48:23]No OFD sender enable setting [17:48:28]No OFD sender enable setting [17:48:29]accept exits with 10 [17:48:29]New connection [17:48:29]New thread 3067321700 created [17:48:29]Thread 3067608420 joined [17:48:29]Thread 3067465060 joined [17:48:29]Waiting for new connection... [17:48:29] Sock 10.Parse request [17:48:29]Sock 10.Check first char [17:48:29]Sock 10.First char is OK [17:48:29]request: POST /json_proto HTTP/1.1 [17:48:29]Method: POST [17:48:29]URL: /json_proto [17:48:29]Method is POST - this is cgi request [17:48:29]url: /json_proto [17:48:29]query_string will be loaded in cgi processing [17:48:29]execute_cgi json_proto POST (null) [17:48:29]execute_cgi path=json_proto method=POST [17:48:29]POST find Content-Length [17:48:29]Host: 192.168.0.101:8080 [17:48:29]Connection: keep-alive [17:48:29]Content-Length: 296 [17:48:29]Accept: application/json, text/plain, */* [17:48:29]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:29]Content-Type: application/json [17:48:29]Origin: http://192.168.0.101:8080 [17:48:29]Referer: http://192.168.0.101:8080/testengine [17:48:29]Accept-Encoding: gzip, deflate [17:48:29]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:29] [17:48:29]POST finish read [17:48:29]Found Content-Length = 296 [17:48:29]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [17:48:29]execute_script... [17:48:29]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [17:48:29]POST & json_proto [17:48:29]process_json_proto [17:48:29]json parsed OK: [17:48:29]protocol is kg_v1.0 [17:48:29]action value=print_text [17:48:29]process_action print_text [17:48:29]cmd_print_text [17:48:29]ExternCall_PrintAddStr [17:48:29]wPrintStart [17:48:29]Write to MH i2c: 01 00 00 71 00 71 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 71 00 00 01 00 00 00 FF 0F 87 [17:48:29]RasterBufferAndPrint [17:48:29]line В тот год осенняя погода [17:48:29]line Стояла долго на дворе, [17:48:29]line Зимы ждала, ждала природа. [17:48:29]line Снег выпал только в январе [17:48:29]line На третье в ночь... [17:48:29]written 0, free lines is 4095 [17:48:29]Error from MH - 05 [17:48:29]process_action_free print_text [17:48:29]json_value_free [17:48:29]json_value_free done [17:48:29]process_json_proto returns [17:48:29]Send response to host [17:48:29]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [17:48:29]free response buf [17:48:29]execute_script done [17:48:29]execute_script returns [17:48:29]free content buf [17:48:29]Sock 10.Close socket [17:48:29]Sock 10.Thread stoped [17:48:30]int [17:48:30]Write to MH i2c: 01 00 00 74 00 74 [17:48:30]*** FLAG_PRN_PAP1 reset [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 74 00 00 00 00 00 00 FF 0F 89 [17:48:30]state=0 [17:48:30]*** FLAG_PRN_PAP1 set [17:48:30]*** FLAG_PRN_PAP1 reset [17:48:30]*** FLAG_PRN_PAP1 set [17:48:32]*** FLAG_PRN_PAP1 reset [17:48:33]*** FLAG_PRN_PAP1 set [17:48:33]*** FLAG_PRN_PAP1 reset [17:48:33]No OFD sender enable setting [17:48:33]*** FLAG_PRN_PAP1 set [17:48:33]*** FLAG_PRN_PAP1 reset [17:48:35]accept exits with 8 [17:48:35]New connection [17:48:35]New thread 3067608420 created [17:48:35]Thread 3067321700 joined [17:48:35]Waiting for new connection... [17:48:35] Sock 8.Parse request [17:48:35]Sock 8.Check first char [17:48:35]Sock 8.First char is OK [17:48:35]request: POST /json_proto HTTP/1.1 [17:48:35]Method: POST [17:48:35]URL: /json_proto [17:48:35]Method is POST - this is cgi request [17:48:35]url: /json_proto [17:48:35]query_string will be loaded in cgi processing [17:48:35]execute_cgi json_proto POST (null) [17:48:35]execute_cgi path=json_proto method=POST [17:48:35]POST find Content-Length [17:48:35]Host: 192.168.0.101:8080 [17:48:35]Connection: keep-alive [17:48:35]Content-Length: 296 [17:48:35]Accept: application/json, text/plain, */* [17:48:35]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [17:48:35]Content-Type: application/json [17:48:35]Origin: http://192.168.0.101:8080 [17:48:35]Referer: http://192.168.0.101:8080/testengine [17:48:35]Accept-Encoding: gzip, deflate [17:48:35]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [17:48:35] [17:48:35]POST finish read [17:48:35]Found Content-Length = 296 [17:48:35]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [17:48:35]execute_script... [17:48:35]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [17:48:35]POST & json_proto [17:48:35]process_json_proto [17:48:35]json parsed OK: [17:48:35]protocol is kg_v1.0 [17:48:35]action value=print_text [17:48:35]process_action print_text [17:48:35]cmd_print_text [17:48:35]ExternCall_PrintAddStr [17:48:35]wPrintStart [17:48:35]Write to MH i2c: 01 00 00 75 00 75 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 75 00 00 00 00 00 00 FF 0F 8A [17:48:35]RasterBufferAndPrint [17:48:35]line В тот год осенняя погода [17:48:35]line Стояла долго на дворе, [17:48:35]line Зимы ждала, ждала природа. [17:48:35]line Снег выпал только в январе [17:48:35]line На третье в ночь... [17:48:35]written 0, free lines is 4095 [17:48:35]Write to MH i2c: 01 00 00 7C 00 7C [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 6B 0F FD [17:48:35]RasterBufferAndPrint [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]written 0, free lines is 3948 [17:48:35]MH_Cut [17:48:35]Write to MH i2c: D1 01 00 83 00 01 55 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: D1 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: D1 01 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: D1 01 00 83 00 00 54 [17:48:35]Write to MH i2c: 01 00 00 84 00 84 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]*** Cut start [17:48:35]*** Partial cut [17:48:35]*** CUTSNS_PIN = 1 [17:48:35]*** CUTSNS_PIN = 0 [17:48:35]*** Brake cut motor [17:48:36]Read from MH i2c: 01 [17:48:36]MH_I2C_Read... [17:48:36]*** Stop cut motor [17:48:36]*** Cut end [17:48:36]Read from MH i2c: 01 07 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 07 00 84 00 00 00 00 00 00 FF 0F 99 [17:48:36]process_action print_text done [17:48:36]no requested_data - finishing processing [17:48:36]process_action_free print_text [17:48:36]json_value_free [17:48:36]json_value_free done [17:48:36]process_json_proto returns [17:48:36]Send response to host [17:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:48:36]free response buf [17:48:36]execute_script done [17:48:36]execute_script returns [17:48:36]free content buf [17:48:36]Sock 8.Close socket [17:48:36]Sock 8.Thread stoped [17:48:36]int [17:48:36]Write to MH i2c: 01 00 00 85 00 85 [17:48:36]*** FLAG_PRN_PAP1 set [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 07 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 07 00 85 00 00 01 00 00 00 FF 0F 9B [17:48:36]state=0 [17:48:36]No paper [17:48:38]No OFD sender enable setting [00:31:52]/dev/ttyS4 opened [00:31:52] *** EcrCore started. Build 196 *** [00:31:52]MH_InterfaceInit /dev/i2c-1 [00:31:52]Malloc ok [00:31:52]MH_GetMetrics [00:31:52]Write to MH i2c: 00 00 00 01 00 00 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: 00 29 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 6F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 14 [00:31:52]Are we in boot? [00:31:52]We are in boot - try to switch [00:31:52]Write to MH i2c: A0 00 00 02 00 A1 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:31:52]*** [00:31:52]Read from MH i2c: A0 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: A0 01 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: A0 01 00 02 00 00 A2 [00:31:52]*** Starting fw at address 01020100 (2007E328 010249C5) [00:31:52]*** Waiting for read because exit forced [00:31:52]*** 10 ms more... [00:31:52]*** MH1903S init start (LINUX_LIGHT) [00:31:52]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:31:52]*** Serial: 3139303353513838 540000000057256F (1903SQ88T) [00:31:52]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:31:52]*** step 0: 5000 (2650, 2350 REF) [00:31:52]*** step 1: 4835 (2500, 2335 REF) [00:31:52]*** step 2: 4676 (2440, 2236 REF) [00:31:52]*** step 3: 4523 (2280, 2243 REF) [00:31:52]*** step 4: 4376 (2160, 2216 REF) [00:31:52]*** step 5: 4235 (2050, 2185 REF) [00:31:52]*** step 6: 4098 (1950, 2148 REF) [00:31:52]*** step 7: 3967 (1870, 2097 REF) [00:31:52]*** step 8: 3840 (1828, 2012 REF) [00:31:52]*** step 9: 3719 (1728, 1991 REF) [00:31:52]*** step 10: 3601 (1675, 1926 REF) [00:31:52]*** step 11: 3488 (1635, 1853 REF) [00:31:52]*** step 12: 3379 (1595, 1784 REF) [00:31:52]*** step 13: 3275 (1565, 1710 REF) [00:31:53]*** step 14: 3174 (1543, 1631 REF) [00:31:53]*** step 15: 3077 (1523, 1554 REF) [00:31:53]*** step 16: 2983 (1503, 1480 REF) [00:31:53]*** step 17: 2893 (1486, 1407 REF) [00:31:53]*** step 18: 2806 (1466, 1340 REF) [00:31:53]*** step 19: 2723 (1426, 1297 REF) [00:31:53]*** step 20: 2642 (1406, 1236 REF) [00:31:53]*** step 21: 2565 (1384, 1181 REF) [00:31:53]*** step 22: 2490 (1364, 1126 REF) [00:31:53]*** step 23: 2418 (1344, 1074 REF) [00:31:53]*** step 24: 2349 (1322, 1027 REF) [00:31:53]*** step 25: 2283 (1302, 981 REF) [00:31:53]*** step 26: 2218 (1282, 936 REF) [00:31:53]*** step 27: 2157 (1262, 895 REF) [00:31:53]*** step 28: 2097 (1242, 855 REF) [00:31:53]*** step 29: 2040 (1222, 818 REF) [00:31:53]*** step 30: 1985 (1202, 783 REF) [00:31:53]*** step 31: 1932 (1191, 741 REF) [00:31:53]*** step 32: 1880 (1181, 699 REF) [00:31:53]*** step 33: 1831 (1171, 660 REF) [00:31:53]*** step 34: 1784 (1161, 623 REF) [00:31:53]*** step 35: 1738 (1151, 587 REF) [00:31:53]*** step 36: 1694 (1141, 553 REF) [00:31:53]*** step 37: 1652 (1131, 521 REF) [00:31:53]*** step 38: 1611 (1121, 490 REF) [00:31:53]*** step 39: 1572 (1111, 461 REF) [00:31:53]*** step 40: 1534 (1103, 431 REF) [00:31:53]*** step 41: 1497 (1093, 404 REF) [00:31:53]*** step 42: 1462 (1083, 379 REF) [00:31:53]*** step 43: 1428 (1073, 355 REF) [00:31:53]*** step 44: 1396 (1063, 333 REF) [00:31:53]*** step 45: 1365 (1053, 312 REF) [00:31:53]*** step 46: 1334 (1043, 291 REF) [00:31:53]*** step 47: 1305 (1033, 272 REF) [00:31:53]*** step 48: 1277 (1023, 254 REF) [00:31:53]*** step 49: 1250 (1013, 237 REF) [00:31:53]*** step 50: 1224 (990, 234 REF) [00:31:53]*** step 51: 1199 (980, 219 REF) [00:31:53]*** step 52: 1175 (970, 205 REF) [00:31:53]*** step 53: 1152 (960, 192 REF) [00:31:53]*** step 54: 1130 (950, 180 REF) [00:31:53]*** step 55: 1108 (940, 168 REF) [00:31:53]*** step 56: 1088 (930, 158 REF) [00:31:53]*** step 57: 1068 (920, 148 REF) [00:31:53]*** step 58: 1049 (910, 139 REF) [00:31:53]*** step 59: 1030 (900, 130 REF) [00:31:53]*** step 60: 1012 (890, 122 REF) [00:31:53]*** step 61: 995 (880, 115 REF) [00:31:53]*** step 62: 979 (870, 109 REF) [00:31:53]*** step 63: 963 (860, 103 REF) [00:31:53]*** step 64: 948 (850, 98 REF) [00:31:53]*** step 65: 933 (840, 93 REF) [00:31:53]*** step 66: 919 (830, 89 REF) [00:31:53]*** step 67: 905 (820, 85 REF) [00:31:53]*** step 68: 892 (810, 82 REF) [00:31:53]*** step 69: 879 (800, 79 REF) [00:31:53]*** step 70: 867 (790, 77 REF) [00:31:53]*** step 71: 855 (780, 75 REF) [00:31:53]*** step 72: 844 (770, 74 REF) [00:31:53]*** step 73: 833 (760, 73 REF) [00:31:53]*** step 74: 822 (750, 72 REF) [00:31:53]*** step 75: 812 (740, 72 REF) [00:31:53]*** step 76: 803 (730, 73 REF) [00:31:53]*** step 77: 793 (720, 73 REF) [00:31:53]*** step 78: 784 (710, 74 REF) [00:31:53]*** step 79: 776 (700, 76 REF) [00:31:53]*** step 80: 767 (690, 77 REF) [00:31:53]*** step 81: 759 (680, 79 REF) [00:31:53]*** step 82: 751 (670, 81 REF) [00:31:53]*** step 83: 744 (660, 84 REF) [00:31:53]*** step 84: 737 (650, 87 REF) [00:31:53]*** step 85: 730 (640, 90 REF) [00:31:53]*** step 86: 723 (630, 93 REF) [00:31:53]*** step 87: 717 (620, 97 REF) [00:31:53]*** step 88: 710 (610, 100 REF) [00:31:53]*** step 89: 705 (600, 105 REF) [00:31:53]*** step 90: 699 [00:31:53]*** step 91: 693 [00:31:53]*** step 92: 688 [00:31:53]*** step 93: 683 [00:31:53]*** step 94: 678 [00:31:53]*** step 95: 673 [00:31:53]*** step 96: 669 [00:31:53]*** step 97: 664 [00:31:53]*** step 98: 660 [00:31:53]*** step 99: 656 [00:31:53]*** step 100: 652 [00:31:53]*** step 101: 648 [00:31:53]*** step 102: 644 [00:31:53]*** step 103: 641 [00:31:53]*** step 104: 638 [00:31:53]*** step 105: 634 [00:31:53]*** step 106: 631 [00:31:53]*** step 107: 628 [00:31:53]*** step 108: 625 [00:31:53]*** step 109: 622 [00:31:53]*** step 110: 620 [00:31:53]*** step 111: 617 [00:31:53]*** step 112: 615 [00:31:53]*** step 113: 612 [00:31:53]*** step 114: 610 [00:31:53]*** step 115: 608 [00:31:53]*** step 116: 605 [00:31:53]*** step 117: 603 [00:31:53]*** step 118: 601 [00:31:53]*** step 119: 599 [00:31:53]*** printer: Printer HW initialized [00:31:53]*** initSamCard finished [00:31:53]*** RTC: 12436427+0=12436427 [00:31:53]*** BPK Status Register BPK_RDY = 0x0 [00:31:53]*** SEN State Register SEN_STATE = 0x220ff [00:31:53]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:31:53]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:31:53]*** Is cutter blocked? [00:31:53]*** FLAG_PRN_PAP1 set [00:31:53]MH_GetMetrics [00:31:53]Write to MH i2c: 00 00 00 03 00 02 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 00 29 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 6F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 15 [00:31:53]Are we in boot? [00:31:53]We are not in boot now [00:31:53]Write to MH i2c: 01 00 00 04 00 04 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 01 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 01 07 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: 01 07 00 04 00 00 01 00 00 00 FF 0F 1A [00:31:53]Model is 3 [00:31:53]MH firmware is 30620 [00:31:53]MH boot firmware is 3 [00:31:53]MH_SetPrinterDots 448 [00:31:53]HeadWidthInBytes 56 [00:31:53]maxmasksize 7 [00:31:53]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D6 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D6 01 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D6 01 00 05 00 00 DB [00:31:53]Write to MH i2c: D5 00 00 06 00 DA [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D5 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D5 01 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: D5 01 00 06 00 00 DB [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]LoadDictionaryFromArray [00:31:53]Load OK [00:31:53]ExternCall_SetCallbacks [00:31:53]NVStorageInit [00:31:53]No nvstorage dir found. Trying to create it. [00:31:53]Nvstorage dir /storage created. [00:31:53]MH_GetDate [00:31:53]Write to MH i2c: F0 00 00 07 00 F6 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 09 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: F0 09 00 07 00 00 CC C3 BD 00 00 00 00 00 4B [22:33:48]Current date/time: 24.05.1970 22:33 [22:33:48]FM_Init [22:33:48]wFMConnect [22:33:48]MH_SAM_On [22:33:48]Write to MH i2c: E0 00 00 08 00 E7 [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_init finished! [22:33:48]*** atr: [22:33:48]*** 0F 3B D5 18 FF 81 91 FE [22:33:48]*** 1F C3 80 73 C8 21 10 0A [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]*** 00 00 00 00 00 00 00 00 [22:33:48]Read from MH i2c: E0 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E0 10 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [22:33:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:33:48]wFMCommunicate request_size=10 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:33:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 03 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:33:48]RAPDU: 90 00 [22:33:48]wFMCommunicate OK [22:33:48]wFMCommunicate request_size=4 [22:33:48]MH_SAM_APDU [22:33:48]CAPDU: 80 11 00 00 [22:33:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:48]Read from MH i2c: E2 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DD [22:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:33:48]wFMCommunicate OK [22:33:48]Detected FM SN is 0000000000874775 [22:33:48]No stored FM SN - require to set a PIN [22:33:48]DocumentArchiveInit [22:33:48]No OFD sender enable setting [22:33:48]Start Httpd... [22:33:48]Httpd thread 3067313508 created [22:33:48]Write to MH i2c: 01 00 00 0B 00 0B [22:33:48]Write i2c OK [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: 01 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: 01 07 00 [22:33:48]MH_I2C_Read... [22:33:48]Read from MH i2c: 01 07 00 0B 00 00 01 00 00 00 FF 0F 21 [22:33:48]Allocated Socket 5 [22:33:48]Bind OK [22:33:48]Listen OK [22:33:48]httpd running on port 8080 [22:33:48]Waiting for new connection... [22:33:48]MH Int Process started [22:33:53]No OFD sender enable setting [22:33:58]No OFD sender enable setting [22:34:03]No OFD sender enable setting [22:34:08]No OFD sender enable setting [22:34:13]No OFD sender enable setting [22:34:18]No OFD sender enable setting [22:34:21]*** Cut start [22:34:21]*** Partial cut [22:34:21]*** CUTSNS_PIN = 1 [22:34:21]*** CUTSNS_PIN = 0 [22:34:21]*** Brake cut motor [22:34:22]*** Stop cut motor [22:34:22]*** Cut end [22:34:22]*** Cut start [22:34:22]*** Partial cut [22:34:22]*** CUTSNS_PIN = 1 [22:34:22]*** CUTSNS_PIN = 0 [22:34:22]*** Brake cut motor [22:34:23]*** Stop cut motor [22:34:23]*** Cut end [22:34:23]No OFD sender enable setting [22:34:28]No OFD sender enable setting [22:34:31]int [22:34:31]Write to MH i2c: 01 00 00 0C 00 0C [22:34:31]*** FLAG_PRN_PAP1 reset [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 0C 00 00 00 00 00 00 FF 0F 21 [22:34:31]state=0 [22:34:33]No OFD sender enable setting [22:34:38]No OFD sender enable setting [22:34:38]int [22:34:38]Write to MH i2c: 01 00 00 0D 00 0D [22:34:38]*** FLAG_PRN_PAP1 set [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: 01 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: 01 07 00 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: 01 07 00 0D 00 00 01 00 00 00 FF 0F 23 [22:34:38]state=0 [22:34:38]No paper [22:34:41]accept exits with 6 [22:34:41]New connection [22:34:41]New thread 3067026788 created [22:34:41]Waiting for new connection... [22:34:41] Sock 6.Parse request [22:34:41]Sock 6.Check first char [22:34:41]accept exits with 9 [22:34:41]New connection [22:34:41]New thread 3066883428 created [22:34:41]Waiting for new connection... [22:34:41] Sock 9.Parse request [22:34:41]Sock 9.Check first char [22:34:41]Sock 6.First char is OK [22:34:41]request: GET /testengine HTTP/1.1 [22:34:41]Method: GET [22:34:41]URL: /testengine [22:34:41]Method is GET - find url and querystring [22:34:41]No ? found - this is static page request [22:34:41]url: /testengine [22:34:41]check /htdocs/testengine [22:34:41]file exist [22:34:41]serve_file /htdocs/testengine/index.html [22:34:41]read remaining request lines [22:34:41]Host: 192.168.0.101:8080 [22:34:41]Connection: keep-alive [22:34:41]Cache-Control: max-age=0 [22:34:41]Upgrade-Insecure-Requests: 1 [22:34:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:41]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 [22:34:41]Accept-Encoding: gzip, deflate [22:34:41]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:41] [22:34:41]open file /htdocs/testengine/index.html [22:34:41]send HTTP headers [22:34:41]send file content [22:34:41]Finished. Sent 1003 bytes [22:34:41]close file [22:34:41]Sock 6.Close socket [22:34:41]Sock 6.Thread stoped [22:34:41]Sock 9.First char is OK [22:34:41]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [22:34:41]Method: GET [22:34:41]URL: /testengine/css/app.915bc88f.css [22:34:41]Method is GET - find url and querystring [22:34:41]No ? found - this is static page request [22:34:41]url: /testengine/css/app.915bc88f.css [22:34:41]check /htdocs/testengine/css/app.915bc88f.css [22:34:41]accept exits with 10 [22:34:41]New connection [22:34:41]New thread 3066740068 created [22:34:41]Thread 3067026788 joined [22:34:41]Waiting for new connection... [22:34:41] Sock 10.Parse request [22:34:41]accept exits with 6 [22:34:41]Sock 10.Check first char [22:34:41]New connection [22:34:41]Sock 10.First char is OK [22:34:41]New thread 3067026788 created [22:34:41]Waiting for new connection... [22:34:41]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [22:34:41]accept exits with 11 [22:34:41]Method: GET [22:34:41]New connection [22:34:41]URL: /testengine/css/chunk-vendors.1a13a212.css [22:34:41]Method is GET - find url and querystring [22:34:41]No ? found - this is static page request [22:34:41]New thread 3066596708 created [22:34:41]url: /testengine/css/chunk-vendors.1a13a212.css [22:34:41]Waiting for new connection... [22:34:41]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [22:34:41]file exist [22:34:41]serve_file /htdocs/testengine/css/app.915bc88f.css [22:34:41]read remaining request lines [22:34:41]Host: 192.168.0.101:8080 [22:34:41]Connection: keep-alive [22:34:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:41]Accept: text/css,*/*;q=0.1 [22:34:41]Referer: http://192.168.0.101:8080/testengine [22:34:41]Accept-Encoding: gzip, deflate [22:34:41]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:41] [22:34:41]open file /htdocs/testengine/css/app.915bc88f.css [22:34:41]send HTTP headers [22:34:41]send file content [22:34:41] Sock 11.Parse request [22:34:41]Sock 11.Check first char [22:34:41]Sock 11.First char is OK [22:34:41]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [22:34:41]Method: GET [22:34:41]URL: /testengine/js/chunk-vendors.8f546e50.js [22:34:41]Method is GET - find url and querystring [22:34:41]No ? found - this is static page request [22:34:41]url: /testengine/js/chunk-vendors.8f546e50.js [22:34:41]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [22:34:41]file exist [22:34:41]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [22:34:41]read remaining request lines [22:34:41]Finished. Sent 1227 bytes [22:34:41]close file [22:34:41]Sock 9.Close socket [22:34:41]Sock 9.Thread stoped [22:34:41]Host: 192.168.0.101:8080 [22:34:41]Connection: keep-alive [22:34:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:41] Sock 6.Parse request [22:34:41]Sock 6.Check first char [22:34:41]Sock 6.First char is OK [22:34:41]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [22:34:41]Method: GET [22:34:41]Accept: text/css,*/*;q=0.1 [22:34:41]URL: /testengine/js/app.a9c38288.js [22:34:41]Method is GET - find url and querystring [22:34:41]No ? found - this is static page request [22:34:41]url: /testengine/js/app.a9c38288.js [22:34:41]check /htdocs/testengine/js/app.a9c38288.js [22:34:41]Referer: http://192.168.0.101:8080/testengine [22:34:41]Accept-Encoding: gzip, deflate [22:34:41]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:41] [22:34:41]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [22:34:41]send HTTP headers [22:34:41]send file content [22:34:41]file exist [22:34:41]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [22:34:41]read remaining request lines [22:34:41]Host: 192.168.0.101:8080 [22:34:41]Connection: keep-alive [22:34:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:41]Accept: */* [22:34:41]Referer: http://192.168.0.101:8080/testengine [22:34:41]Accept-Encoding: gzip, deflate [22:34:41]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:41] [22:34:41]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [22:34:41]send HTTP headers [22:34:41]send file content [22:34:41]file exist [22:34:41]serve_file /htdocs/testengine/js/app.a9c38288.js [22:34:41]read remaining request lines [22:34:41]Host: 192.168.0.101:8080 [22:34:41]Connection: keep-alive [22:34:41]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:41]Accept: */* [22:34:41]Referer: http://192.168.0.101:8080/testengine [22:34:41]Accept-Encoding: gzip, deflate [22:34:42]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:42] [22:34:42]open file /htdocs/testengine/js/app.a9c38288.js [22:34:42]send HTTP headers [22:34:42]send file content [22:34:42]Finished. Sent 140 bytes [22:34:42]close file [22:34:42]Sock 10.Close socket [22:34:42]Sock 10.Thread stoped [22:34:42]Finished. Sent 165537 bytes [22:34:42]close file [22:34:42]Sock 11.Close socket [22:34:42]Sock 11.Thread stoped [22:34:42]Finished. Sent 102400 bytes [22:34:42]close file [22:34:42]Sock 6.Close socket [22:34:42]Sock 6.Thread stoped [22:34:42]accept exits with 12 [22:34:42]New connection [22:34:42]New thread 3066453348 created [22:34:42]Thread 3066740068 joined [22:34:42]Thread 3066883428 joined [22:34:42]Thread 3066596708 joined [22:34:42]Thread 3067026788 joined [22:34:42]Waiting for new connection... [22:34:42] Sock 12.Parse request [22:34:42]Sock 12.Check first char [22:34:42]Sock 12.First char is OK [22:34:42]request: GET /testengine/favicon.ico HTTP/1.1 [22:34:42]Method: GET [22:34:42]URL: /testengine/favicon.ico [22:34:42]Method is GET - find url and querystring [22:34:42]No ? found - this is static page request [22:34:42]url: /testengine/favicon.ico [22:34:42]check /htdocs/testengine/favicon.ico [22:34:42]file exist [22:34:42]serve_file /htdocs/testengine/favicon.ico [22:34:42]read remaining request lines [22:34:42]Host: 192.168.0.101:8080 [22:34:42]Connection: keep-alive [22:34:42]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:42]Accept: image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8 [22:34:42]Referer: http://192.168.0.101:8080/testengine [22:34:42]Accept-Encoding: gzip, deflate [22:34:42]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:42] [22:34:42]open file /htdocs/testengine/favicon.ico [22:34:42]send HTTP headers [22:34:42]send file content [22:34:42]Finished. Sent 4286 bytes [22:34:42]close file [22:34:42]Sock 12.Close socket [22:34:42]Sock 12.Thread stoped [22:34:43]No OFD sender enable setting [22:34:44]accept exits with 6 [22:34:44]New connection [22:34:44]New thread 3067026788 created [22:34:44]Thread 3066453348 joined [22:34:44]Waiting for new connection... [22:34:44] Sock 6.Parse request [22:34:44]Sock 6.Check first char [22:34:48]No OFD sender enable setting [22:34:53]No OFD sender enable setting [22:34:54]Sock 6.First char is OK [22:34:54]request: POST /json_proto HTTP/1.1 [22:34:54]Method: POST [22:34:54]URL: /json_proto [22:34:54]Method is POST - this is cgi request [22:34:54]url: /json_proto [22:34:54]query_string will be loaded in cgi processing [22:34:54]execute_cgi json_proto POST (null) [22:34:54]execute_cgi path=json_proto method=POST [22:34:54]POST find Content-Length [22:34:54]Host: 192.168.0.101:8080 [22:34:54]Connection: keep-alive [22:34:54]Content-Length: 170 [22:34:54]Accept: application/json, text/plain, */* [22:34:54]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:54]Content-Type: application/json [22:34:54]Origin: http://192.168.0.101:8080 [22:34:54]Referer: http://192.168.0.101:8080/testengine [22:34:54]Accept-Encoding: gzip, deflate [22:34:54]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:54] [22:34:54]POST finish read [22:34:54]Found Content-Length = 170 [22:34:54]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:54]execute_script... [22:34:54]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:54]POST & json_proto [22:34:54]process_json_proto [22:34:54]json parsed OK: [22:34:54]protocol is kg_v1.0 [22:34:54]action value=get_value [22:34:54]process_action get_value [22:34:54]cmd_get_value [22:34:54]process_action get_value done [22:34:54]requested_data is exist [22:34:54]produce_requested_data [22:34:54]requested_item kkm.sn is exist - process it [22:34:54]requested_item kkm.ver is exist - process it [22:34:54]requested_item kkm.rnm is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E1 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]produce_fm_shift_data error [22:34:54]requested_item fm.sn is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 0F 00 80 11 00 00 00 00 00 00 89 [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 0F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E2 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E3 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]requested_item fm.ffd_ver is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E4 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]produce_fm_shift_data error [22:34:54]requested_item fm.expired is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E5 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]produce_fm_shift_data error [22:34:54]requested_item fd.num is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 13 00 80 11 00 00 00 00 00 00 8D [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E6 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]produce_fm_shift_data error [22:34:54]requested_item shift.num is exist - process it [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E7 [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:54]wFMCommunicate OK [22:34:54]Detected FM SN is 0000000000874775 [22:34:54]No stored FM SN - require to set a PIN [22:34:54]produce_fm_shift_data error [22:34:54]produce_requested_data done [22:34:54]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [22:34:54]process_action_free get_value [22:34:54]json_value_free [22:34:54]json_value_free done [22:34:54]process_json_proto returns [22:34:54]Send response to host [22:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [22:34:54]free response buf [22:34:54]execute_script done [22:34:54]execute_script returns [22:34:54]free content buf [22:34:54]Sock 6.Close socket [22:34:54]Sock 6.Thread stoped [22:34:55]accept exits with 9 [22:34:55]New connection [22:34:55]New thread 3066883428 created [22:34:55]Thread 3067026788 joined [22:34:55]Waiting for new connection... [22:34:55] Sock 9.Parse request [22:34:55]Sock 9.Check first char [22:34:55]Sock 9.First char is OK [22:34:55]request: POST /json_proto HTTP/1.1 [22:34:55]Method: POST [22:34:55]URL: /json_proto [22:34:55]Method is POST - this is cgi request [22:34:55]url: /json_proto [22:34:55]query_string will be loaded in cgi processing [22:34:55]execute_cgi json_proto POST (null) [22:34:55]execute_cgi path=json_proto method=POST [22:34:55]POST find Content-Length [22:34:55]Host: 192.168.0.101:8080 [22:34:55]Connection: keep-alive [22:34:55]Content-Length: 170 [22:34:55]Accept: application/json, text/plain, */* [22:34:55]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:55]Content-Type: application/json [22:34:55]Origin: http://192.168.0.101:8080 [22:34:55]Referer: http://192.168.0.101:8080/testengine [22:34:55]Accept-Encoding: gzip, deflate [22:34:55]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:55] [22:34:55]POST finish read [22:34:55]Found Content-Length = 170 [22:34:55]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:55]execute_script... [22:34:55]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:55]POST & json_proto [22:34:55]process_json_proto [22:34:55]json parsed OK: [22:34:55]protocol is kg_v1.0 [22:34:55]action value=get_value [22:34:55]process_action get_value [22:34:55]cmd_get_value [22:34:55]process_action get_value done [22:34:55]requested_data is exist [22:34:55]produce_requested_data [22:34:55]requested_item kkm.sn is exist - process it [22:34:55]requested_item kkm.ver is exist - process it [22:34:55]requested_item kkm.rnm is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 15 00 80 11 00 00 00 00 00 00 8F [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 15 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E8 [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]produce_fm_shift_data error [22:34:55]requested_item fm.sn is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 16 00 80 11 00 00 00 00 00 00 90 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 16 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E9 [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 17 00 80 11 00 00 00 00 00 00 91 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 17 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EA [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]requested_item fm.ffd_ver is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 18 00 80 11 00 00 00 00 00 00 92 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 18 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EB [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]produce_fm_shift_data error [22:34:55]requested_item fm.expired is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 19 00 80 11 00 00 00 00 00 00 93 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 19 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EC [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]produce_fm_shift_data error [22:34:55]requested_item fd.num is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 1A 00 80 11 00 00 00 00 00 00 94 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 1A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 ED [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]produce_fm_shift_data error [22:34:55]requested_item shift.num is exist - process it [22:34:55]wFMCommunicate request_size=4 [22:34:55]MH_SAM_APDU [22:34:55]CAPDU: 80 11 00 00 [22:34:55]Write to MH i2c: E2 08 00 1B 00 80 11 00 00 00 00 00 00 95 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:55]Read from MH i2c: E2 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: E2 17 00 1B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EE [22:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:55]wFMCommunicate OK [22:34:55]Detected FM SN is 0000000000874775 [22:34:55]No stored FM SN - require to set a PIN [22:34:55]produce_fm_shift_data error [22:34:55]produce_requested_data done [22:34:55]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [22:34:55]process_action_free get_value [22:34:55]json_value_free [22:34:55]json_value_free done [22:34:55]process_json_proto returns [22:34:55]Send response to host [22:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [22:34:55]free response buf [22:34:55]execute_script done [22:34:55]execute_script returns [22:34:55]free content buf [22:34:55]Sock 9.Close socket [22:34:55]Sock 9.Thread stoped [22:34:56]accept exits with 6 [22:34:56]New connection [22:34:56]New thread 3067026788 created [22:34:56]Thread 3066883428 joined [22:34:56]Waiting for new connection... [22:34:56] Sock 6.Parse request [22:34:56]Sock 6.Check first char [22:34:56]Sock 6.First char is OK [22:34:56]request: POST /json_proto HTTP/1.1 [22:34:56]Method: POST [22:34:56]URL: /json_proto [22:34:56]Method is POST - this is cgi request [22:34:56]url: /json_proto [22:34:56]query_string will be loaded in cgi processing [22:34:56]execute_cgi json_proto POST (null) [22:34:56]execute_cgi path=json_proto method=POST [22:34:56]POST find Content-Length [22:34:56]Host: 192.168.0.101:8080 [22:34:56]Connection: keep-alive [22:34:56]Content-Length: 170 [22:34:56]Accept: application/json, text/plain, */* [22:34:56]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:56]Content-Type: application/json [22:34:56]Origin: http://192.168.0.101:8080 [22:34:56]Referer: http://192.168.0.101:8080/testengine [22:34:56]Accept-Encoding: gzip, deflate [22:34:56]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:56] [22:34:56]POST finish read [22:34:56]Found Content-Length = 170 [22:34:56]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:56]execute_script... [22:34:56]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:56]POST & json_proto [22:34:56]process_json_proto [22:34:56]json parsed OK: [22:34:56]protocol is kg_v1.0 [22:34:56]action value=get_value [22:34:56]process_action get_value [22:34:56]cmd_get_value [22:34:56]process_action get_value done [22:34:56]requested_data is exist [22:34:56]produce_requested_data [22:34:56]requested_item kkm.sn is exist - process it [22:34:56]requested_item kkm.ver is exist - process it [22:34:56]requested_item kkm.rnm is exist - process it [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 11 00 00 [22:34:56]Write to MH i2c: E2 08 00 1C 00 80 11 00 00 00 00 00 00 96 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 1C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EF [22:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:56]wFMCommunicate OK [22:34:56]Detected FM SN is 0000000000874775 [22:34:56]No stored FM SN - require to set a PIN [22:34:56]produce_fm_shift_data error [22:34:56]requested_item fm.sn is exist - process it [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 11 00 00 [22:34:56]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F0 [22:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:56]wFMCommunicate OK [22:34:56]Detected FM SN is 0000000000874775 [22:34:56]No stored FM SN - require to set a PIN [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 11 00 00 [22:34:56]Write to MH i2c: E2 08 00 1E 00 80 11 00 00 00 00 00 00 98 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F1 [22:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:56]wFMCommunicate OK [22:34:56]requested_item fm.ffd_ver is exist - process it [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 11 00 00 [22:34:56]Write to MH i2c: E2 08 00 1F 00 80 11 00 00 00 00 00 00 99 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 1F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F2 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item fm.expired is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 20 00 80 11 00 00 00 00 00 00 9A [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 20 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F3 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item fd.num is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 21 00 80 11 00 00 00 00 00 00 9B [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 21 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F4 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item shift.num is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 22 00 80 11 00 00 00 00 00 00 9C [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 22 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F5 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]produce_requested_data done [22:34:57]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [22:34:57]process_action_free get_value [22:34:57]json_value_free [22:34:57]json_value_free done [22:34:57]process_json_proto returns [22:34:57]Send response to host [22:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [22:34:57]free response buf [22:34:57]execute_script done [22:34:57]execute_script returns [22:34:57]free content buf [22:34:57]Sock 6.Close socket [22:34:57]Sock 6.Thread stoped [22:34:57]accept exits with 9 [22:34:57]New connection [22:34:57]New thread 3066883428 created [22:34:57]Thread 3067026788 joined [22:34:57]Waiting for new connection... [22:34:57] Sock 9.Parse request [22:34:57]Sock 9.Check first char [22:34:57]Sock 9.First char is OK [22:34:57]request: POST /json_proto HTTP/1.1 [22:34:57]Method: POST [22:34:57]URL: /json_proto [22:34:57]Method is POST - this is cgi request [22:34:57]url: /json_proto [22:34:57]query_string will be loaded in cgi processing [22:34:57]execute_cgi json_proto POST (null) [22:34:57]execute_cgi path=json_proto method=POST [22:34:57]POST find Content-Length [22:34:57]Host: 192.168.0.101:8080 [22:34:57]Connection: keep-alive [22:34:57]Content-Length: 170 [22:34:57]Accept: application/json, text/plain, */* [22:34:57]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:34:57]Content-Type: application/json [22:34:57]Origin: http://192.168.0.101:8080 [22:34:57]Referer: http://192.168.0.101:8080/testengine [22:34:57]Accept-Encoding: gzip, deflate [22:34:57]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:34:57] [22:34:57]POST finish read [22:34:57]Found Content-Length = 170 [22:34:57]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:57]execute_script... [22:34:57]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num"]}} [22:34:57]POST & json_proto [22:34:57]process_json_proto [22:34:57]json parsed OK: [22:34:57]protocol is kg_v1.0 [22:34:57]action value=get_value [22:34:57]process_action get_value [22:34:57]cmd_get_value [22:34:57]process_action get_value done [22:34:57]requested_data is exist [22:34:57]produce_requested_data [22:34:57]requested_item kkm.sn is exist - process it [22:34:57]requested_item kkm.ver is exist - process it [22:34:57]requested_item kkm.rnm is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F6 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item fm.sn is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 24 00 80 11 00 00 00 00 00 00 9E [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 24 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F7 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 25 00 80 11 00 00 00 00 00 00 9F [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 25 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F8 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]requested_item fm.ffd_ver is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 26 00 80 11 00 00 00 00 00 00 A0 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 26 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F9 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item fm.expired is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 27 00 80 11 00 00 00 00 00 00 A1 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 27 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FA [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item fd.num is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 28 00 80 11 00 00 00 00 00 00 A2 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 28 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FB [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]requested_item shift.num is exist - process it [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 29 00 80 11 00 00 00 00 00 00 A3 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 29 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FC [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [22:34:57]wFMCommunicate OK [22:34:57]Detected FM SN is 0000000000874775 [22:34:57]No stored FM SN - require to set a PIN [22:34:57]produce_fm_shift_data error [22:34:57]produce_requested_data done [22:34:57]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [22:34:57]process_action_free get_value [22:34:57]json_value_free [22:34:57]json_value_free done [22:34:57]process_json_proto returns [22:34:57]Send response to host [22:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [22:34:57]free response buf [22:34:57]execute_script done [22:34:57]execute_script returns [22:34:57]free content buf [22:34:57]Sock 9.Close socket [22:34:57]Sock 9.Thread stoped [22:34:58]No OFD sender enable setting [22:35:03]No OFD sender enable setting [22:35:04]accept exits with 6 [22:35:04]New connection [22:35:04]New thread 3067026788 created [22:35:04]Thread 3066883428 joined [22:35:04]Waiting for new connection... [22:35:04] Sock 6.Parse request [22:35:04]Sock 6.Check first char [22:35:04]Sock 6.First char is OK [22:35:04]request: POST /json_proto HTTP/1.1 [22:35:04]Method: POST [22:35:04]URL: /json_proto [22:35:04]Method is POST - this is cgi request [22:35:04]url: /json_proto [22:35:04]query_string will be loaded in cgi processing [22:35:04]execute_cgi json_proto POST (null) [22:35:04]execute_cgi path=json_proto method=POST [22:35:04]POST find Content-Length [22:35:04]Host: 192.168.0.101:8080 [22:35:04]Connection: keep-alive [22:35:04]Content-Length: 105 [22:35:04]Accept: application/json, text/plain, */* [22:35:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:35:04]Content-Type: application/json [22:35:04]Origin: http://192.168.0.101:8080 [22:35:04]Referer: http://192.168.0.101:8080/testengine [22:35:04]Accept-Encoding: gzip, deflate [22:35:04]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:35:04] [22:35:04]POST finish read [22:35:04]Found Content-Length = 105 [22:35:04]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [22:35:04]execute_script... [22:35:04]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [22:35:04]POST & json_proto [22:35:04]process_json_proto [22:35:04]json parsed OK: [22:35:04]protocol is kg_v1.0 [22:35:04]action value=get_value [22:35:04]process_action get_value [22:35:04]cmd_get_value [22:35:04]process_action get_value done [22:35:04]requested_data is exist [22:35:04]produce_requested_data [22:35:04]requested_item config.timestamp is exist - process it [22:35:04]MH_GetDate [22:35:04]Write to MH i2c: F0 00 00 2A 00 19 [22:35:04]Write i2c OK [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 09 00 [22:35:04]MH_I2C_Read... [22:35:04]Read from MH i2c: F0 09 00 2A 00 00 19 C4 BD 00 00 00 00 00 BC [22:35:04]produce_requested_data done [22:35:04]produce_requested_data return {"config.timestamp":"12436505"} [22:35:04]process_action_free get_value [22:35:04]json_value_free [22:35:04]json_value_free done [22:35:04]process_json_proto returns [22:35:04]Send response to host [22:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"12436505"}}} [22:35:04]free response buf [22:35:04]execute_script done [22:35:04]execute_script returns [22:35:04]free content buf [22:35:04]Sock 6.Close socket [22:35:04]Sock 6.Thread stoped [22:35:07]accept exits with 9 [22:35:07]New connection [22:35:07]New thread 3066883428 created [22:35:07]Thread 3067026788 joined [22:35:07]Waiting for new connection... [22:35:07] Sock 9.Parse request [22:35:07]Sock 9.Check first char [22:35:07]Sock 9.First char is OK [22:35:07]request: POST /json_proto HTTP/1.1 [22:35:07]Method: POST [22:35:07]URL: /json_proto [22:35:07]Method is POST - this is cgi request [22:35:07]url: /json_proto [22:35:07]query_string will be loaded in cgi processing [22:35:07]execute_cgi json_proto POST (null) [22:35:07]execute_cgi path=json_proto method=POST [22:35:07]POST find Content-Length [22:35:07]Host: 192.168.0.101:8080 [22:35:07]Connection: keep-alive [22:35:07]Content-Length: 113 [22:35:07]Accept: application/json, text/plain, */* [22:35:07]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [22:35:07]Content-Type: application/json [22:35:07]Origin: http://192.168.0.101:8080 [22:35:07]Referer: http://192.168.0.101:8080/testengine [22:35:07]Accept-Encoding: gzip, deflate [22:35:07]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [22:35:07] [22:35:07]POST finish read [22:35:07]Found Content-Length = 113 [22:35:07]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699381814"}}} [22:35:07]execute_script... [22:35:07]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699381814"}}} [22:35:07]POST & json_proto [22:35:07]process_json_proto [22:35:07]json parsed OK: [22:35:07]protocol is kg_v1.0 [22:35:07]action value=set_value [22:35:07]process_action set_value [22:35:07]cmd_set_value [22:35:07]SetValue [22:35:07]group config [22:35:07]SetConfigValue timestamp=1699381814 [22:35:07]SettingCheckAndSetValue timestamp=1699381814 [22:35:07]store_timestamp [22:35:07]MH_GetDate [22:35:07]Write to MH i2c: F0 00 00 2B 00 1A [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 09 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 09 00 2B 00 00 1B C4 BD 00 00 00 00 00 BF [22:35:07]GetLastDocTimeStamp 0 [22:35:07]cur date 12436507 [22:35:07]tm 1699381814 [22:35:07]tm ok - set date [22:35:07]MH_SetDate [22:35:07]Write to MH i2c: F1 04 00 2C 00 36 82 4A 65 87 [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F1 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F1 01 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F1 01 00 2C 00 00 1D [18:30:14]SetValue res=0 [18:30:14]process_action set_value done [18:30:14]no requested_data - finishing processing [18:30:14]process_action_free set_value [18:30:14]json_value_free [18:30:14]json_value_free done [18:30:14]process_json_proto returns [18:30:14]Send response to host [18:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:30:14]free response buf [18:30:14]execute_script done [18:30:14]execute_script returns [18:30:14]free content buf [18:30:14]Sock 9.Close socket [18:30:14]Sock 9.Thread stoped [18:30:14]No OFD sender enable setting [18:30:15]accept exits with 6 [18:30:15]New connection [18:30:15]New thread 3067026788 created [18:30:15]Thread 3066883428 joined [18:30:15]Waiting for new connection... [18:30:15] Sock 6.Parse request [18:30:15]Sock 6.Check first char [18:30:15]Sock 6.First char is OK [18:30:15]request: POST /json_proto HTTP/1.1 [18:30:15]Method: POST [18:30:15]URL: /json_proto [18:30:15]Method is POST - this is cgi request [18:30:15]url: /json_proto [18:30:15]query_string will be loaded in cgi processing [18:30:15]execute_cgi json_proto POST (null) [18:30:15]execute_cgi path=json_proto method=POST [18:30:15]POST find Content-Length [18:30:15]Host: 192.168.0.101:8080 [18:30:15]Connection: keep-alive [18:30:15]Content-Length: 105 [18:30:15]Accept: application/json, text/plain, */* [18:30:15]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:15]Content-Type: application/json [18:30:15]Origin: http://192.168.0.101:8080 [18:30:15]Referer: http://192.168.0.101:8080/testengine [18:30:15]Accept-Encoding: gzip, deflate [18:30:15]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:15] [18:30:15]POST finish read [18:30:15]Found Content-Length = 105 [18:30:15]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [18:30:15]execute_script... [18:30:15]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [18:30:15]POST & json_proto [18:30:15]process_json_proto [18:30:15]json parsed OK: [18:30:15]protocol is kg_v1.0 [18:30:15]action value=get_value [18:30:15]process_action get_value [18:30:15]cmd_get_value [18:30:15]process_action get_value done [18:30:15]requested_data is exist [18:30:15]produce_requested_data [18:30:15]requested_item config.timestamp is exist - process it [18:30:15]MH_GetDate [18:30:15]Write to MH i2c: F0 00 00 2D 00 1C [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 09 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: F0 09 00 2D 00 00 37 82 4A 65 36 82 4A 65 F4 [18:30:15]produce_requested_data done [18:30:15]produce_requested_data return {"config.timestamp":"1699381815"} [18:30:15]process_action_free get_value [18:30:15]json_value_free [18:30:15]json_value_free done [18:30:15]process_json_proto returns [18:30:15]Send response to host [18:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1699381815"}}} [18:30:15]free response buf [18:30:15]execute_script done [18:30:15]execute_script returns [18:30:15]free content buf [18:30:15]Sock 6.Close socket [18:30:15]Sock 6.Thread stoped [18:30:16]accept exits with 9 [18:30:16]New connection [18:30:16]New thread 3066883428 created [18:30:16]Thread 3067026788 joined [18:30:16]Waiting for new connection... [18:30:16] Sock 9.Parse request [18:30:16]Sock 9.Check first char [18:30:16]Sock 9.First char is OK [18:30:16]request: POST /json_proto HTTP/1.1 [18:30:16]Method: POST [18:30:16]URL: /json_proto [18:30:16]Method is POST - this is cgi request [18:30:16]url: /json_proto [18:30:16]query_string will be loaded in cgi processing [18:30:16]execute_cgi json_proto POST (null) [18:30:16]execute_cgi path=json_proto method=POST [18:30:16]POST find Content-Length [18:30:16]Host: 192.168.0.101:8080 [18:30:16]Connection: keep-alive [18:30:16]Content-Length: 105 [18:30:16]Accept: application/json, text/plain, */* [18:30:16]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:16]Content-Type: application/json [18:30:16]Origin: http://192.168.0.101:8080 [18:30:16]Referer: http://192.168.0.101:8080/testengine [18:30:16]Accept-Encoding: gzip, deflate [18:30:16]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:16] [18:30:16]POST finish read [18:30:16]Found Content-Length = 105 [18:30:16]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [18:30:16]execute_script... [18:30:16]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [18:30:16]POST & json_proto [18:30:16]process_json_proto [18:30:16]json parsed OK: [18:30:16]protocol is kg_v1.0 [18:30:16]action value=get_value [18:30:16]process_action get_value [18:30:16]cmd_get_value [18:30:16]process_action get_value done [18:30:16]requested_data is exist [18:30:16]produce_requested_data [18:30:16]requested_item config.timestamp is exist - process it [18:30:16]MH_GetDate [18:30:16]Write to MH i2c: F0 00 00 2E 00 1D [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: F0 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: F0 09 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: F0 09 00 2E 00 00 38 82 4A 65 36 82 4A 65 F6 [18:30:16]produce_requested_data done [18:30:16]produce_requested_data return {"config.timestamp":"1699381816"} [18:30:16]process_action_free get_value [18:30:16]json_value_free [18:30:16]json_value_free done [18:30:16]process_json_proto returns [18:30:16]Send response to host [18:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"1699381816"}}} [18:30:16]free response buf [18:30:16]execute_script done [18:30:16]execute_script returns [18:30:16]free content buf [18:30:16]Sock 9.Close socket [18:30:16]Sock 9.Thread stoped [18:30:19]No OFD sender enable setting [18:30:22]int [18:30:22]Write to MH i2c: 01 00 00 2F 00 2F [18:30:22]*** FLAG_PRN_PAP1 reset [18:30:22]Write i2c OK [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: 01 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: 01 07 00 [18:30:22]MH_I2C_Read... [18:30:22]Read from MH i2c: 01 07 00 2F 00 00 00 00 00 00 FF 0F 44 [18:30:22]state=0 [18:30:24]accept exits with 6 [18:30:24]New connection [18:30:24]New thread 3067026788 created [18:30:24]Thread 3066883428 joined [18:30:24]Waiting for new connection... [18:30:24] Sock 6.Parse request [18:30:24]Sock 6.Check first char [18:30:24]Sock 6.First char is OK [18:30:24]request: POST /json_proto HTTP/1.1 [18:30:24]Method: POST [18:30:24]URL: /json_proto [18:30:24]Method is POST - this is cgi request [18:30:24]url: /json_proto [18:30:24]query_string will be loaded in cgi processing [18:30:24]execute_cgi json_proto POST (null) [18:30:24]execute_cgi path=json_proto method=POST [18:30:24]POST find Content-Length [18:30:24]Host: 192.168.0.101:8080 [18:30:24]Connection: keep-alive [18:30:24]Content-Length: 296 [18:30:24]Accept: application/json, text/plain, */* [18:30:24]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:24]Content-Type: application/json [18:30:24]Origin: http://192.168.0.101:8080 [18:30:24]Referer: http://192.168.0.101:8080/testengine [18:30:24]Accept-Encoding: gzip, deflate [18:30:24]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:24] [18:30:24]POST finish read [18:30:24]Found Content-Length = 296 [18:30:24]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:24]execute_script... [18:30:24]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:24]POST & json_proto [18:30:24]process_json_proto [18:30:24]json parsed OK: [18:30:24]protocol is kg_v1.0 [18:30:24]action value=print_text [18:30:24]process_action print_text [18:30:24]cmd_print_text [18:30:24]ExternCall_PrintAddStr [18:30:24]wPrintStart [18:30:24]Write to MH i2c: 01 00 00 30 00 30 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 30 00 00 00 00 00 00 FF 0F 45 [18:30:24]RasterBufferAndPrint [18:30:24]line В тот год осенняя погода [18:30:24]line Стояла долго на дворе, [18:30:24]line Зимы ждала, ждала природа. [18:30:24]line Снег выпал только в январе [18:30:24]line На третье в ночь... [18:30:24]written 0, free lines is 4095 [18:30:24]Write to MH i2c: 01 00 00 37 00 37 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: 01 07 00 37 00 00 00 00 00 00 6B 0F B8 [18:30:24]RasterBufferAndPrint [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]line [18:30:24]written 0, free lines is 3948 [18:30:24]MH_Cut [18:30:24]Write to MH i2c: D1 01 00 3E 00 01 10 [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 [18:30:24]MH_I2C_Read... [18:30:24]Read from MH i2c: D1 01 00 3E 00 00 0F [18:30:24]Write to MH i2c: 01 00 00 3F 00 3F [18:30:24]Write i2c OK [18:30:24]MH_I2C_Read... [18:30:24]*** Cut start [18:30:24]*** Partial cut [18:30:24]*** CUTSNS_PIN = 1 [18:30:24]No OFD sender enable setting [18:30:24]*** CUTSNS_PIN = 0 [18:30:25]*** Brake cut motor [18:30:25]Read from MH i2c: 01 [18:30:25]MH_I2C_Read... [18:30:25]*** Stop cut motor [18:30:25]*** Cut end [18:30:25]Read from MH i2c: 01 07 00 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 07 00 3F 00 00 00 00 00 00 FF 0F 54 [18:30:25]process_action print_text done [18:30:25]no requested_data - finishing processing [18:30:25]process_action_free print_text [18:30:25]json_value_free [18:30:25]json_value_free done [18:30:25]process_json_proto returns [18:30:25]Send response to host [18:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:30:25]free response buf [18:30:25]execute_script done [18:30:25]execute_script returns [18:30:25]free content buf [18:30:25]Sock 6.Close socket [18:30:25]Sock 6.Thread stoped [18:30:25]accept exits with 9 [18:30:25]New connection [18:30:25]New thread 3066883428 created [18:30:25]Thread 3067026788 joined [18:30:25]Waiting for new connection... [18:30:25] Sock 9.Parse request [18:30:25]Sock 9.Check first char [18:30:25]Sock 9.First char is OK [18:30:25]request: POST /json_proto HTTP/1.1 [18:30:25]Method: POST [18:30:25]URL: /json_proto [18:30:25]Method is POST - this is cgi request [18:30:25]url: /json_proto [18:30:25]query_string will be loaded in cgi processing [18:30:25]execute_cgi json_proto POST (null) [18:30:25]execute_cgi path=json_proto method=POST [18:30:25]POST find Content-Length [18:30:25]Host: 192.168.0.101:8080 [18:30:25]Connection: keep-alive [18:30:25]Content-Length: 296 [18:30:25]Accept: application/json, text/plain, */* [18:30:25]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:25]Content-Type: application/json [18:30:25]Origin: http://192.168.0.101:8080 [18:30:25]Referer: http://192.168.0.101:8080/testengine [18:30:25]Accept-Encoding: gzip, deflate [18:30:25]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:25] [18:30:25]POST finish read [18:30:25]Found Content-Length = 296 [18:30:25]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:25]execute_script... [18:30:25]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:25]POST & json_proto [18:30:25]process_json_proto [18:30:25]json parsed OK: [18:30:25]protocol is kg_v1.0 [18:30:25]action value=print_text [18:30:25]process_action print_text [18:30:25]cmd_print_text [18:30:25]ExternCall_PrintAddStr [18:30:25]wPrintStart [18:30:25]Write to MH i2c: 01 00 00 40 00 40 [18:30:25]Write i2c OK [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 07 00 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 07 00 40 00 00 00 00 00 00 FF 0F 55 [18:30:25]RasterBufferAndPrint [18:30:25]line В тот год осенняя погода [18:30:25]line Стояла долго на дворе, [18:30:25]line Зимы ждала, ждала природа. [18:30:25]line Снег выпал только в январе [18:30:25]line На третье в ночь... [18:30:25]written 0, free lines is 4095 [18:30:25]Write to MH i2c: 01 00 00 47 00 47 [18:30:25]Write i2c OK [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 07 00 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 6B 0F C8 [18:30:25]RasterBufferAndPrint [18:30:25]line [18:30:25]line [18:30:25]line [18:30:25]line [18:30:25]line [18:30:25]written 0, free lines is 3947 [18:30:25]MH_Cut [18:30:25]Write to MH i2c: D1 01 00 4E 00 01 20 [18:30:25]Write i2c OK [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: D1 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: D1 01 00 [18:30:25]MH_I2C_Read... [18:30:25]Read from MH i2c: D1 01 00 4E 00 00 1F [18:30:25]Write to MH i2c: 01 00 00 4F 00 4F [18:30:25]Write i2c OK [18:30:25]MH_I2C_Read... [18:30:26]*** Cut start [18:30:26]*** Partial cut [18:30:26]*** CUTSNS_PIN = 1 [18:30:26]*** CUTSNS_PIN = 0 [18:30:26]*** Brake cut motor [18:30:26]Read from MH i2c: 01 [18:30:26]MH_I2C_Read... [18:30:26]*** Stop cut motor [18:30:26]*** Cut end [18:30:26]Read from MH i2c: 01 07 00 [18:30:26]MH_I2C_Read... [18:30:26]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [18:30:26]process_action print_text done [18:30:26]no requested_data - finishing processing [18:30:26]process_action_free print_text [18:30:26]json_value_free [18:30:26]json_value_free done [18:30:26]process_json_proto returns [18:30:26]Send response to host [18:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:30:26]free response buf [18:30:26]execute_script done [18:30:26]execute_script returns [18:30:26]free content buf [18:30:26]Sock 9.Close socket [18:30:26]Sock 9.Thread stoped [18:30:27]accept exits with 6 [18:30:27]New connection [18:30:27]New thread 3067026788 created [18:30:27]Thread 3066883428 joined [18:30:27]Waiting for new connection... [18:30:27] Sock 6.Parse request [18:30:27]Sock 6.Check first char [18:30:27]Sock 6.First char is OK [18:30:27]request: POST /json_proto HTTP/1.1 [18:30:27]Method: POST [18:30:27]URL: /json_proto [18:30:27]Method is POST - this is cgi request [18:30:27]url: /json_proto [18:30:27]query_string will be loaded in cgi processing [18:30:27]execute_cgi json_proto POST (null) [18:30:27]execute_cgi path=json_proto method=POST [18:30:27]POST find Content-Length [18:30:27]Host: 192.168.0.101:8080 [18:30:27]Connection: keep-alive [18:30:27]Content-Length: 296 [18:30:27]Accept: application/json, text/plain, */* [18:30:27]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:27]Content-Type: application/json [18:30:27]Origin: http://192.168.0.101:8080 [18:30:27]Referer: http://192.168.0.101:8080/testengine [18:30:27]Accept-Encoding: gzip, deflate [18:30:27]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:27] [18:30:27]POST finish read [18:30:27]Found Content-Length = 296 [18:30:27]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:27]execute_script... [18:30:27]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:27]POST & json_proto [18:30:27]process_json_proto [18:30:27]json parsed OK: [18:30:27]protocol is kg_v1.0 [18:30:27]action value=print_text [18:30:27]process_action print_text [18:30:27]cmd_print_text [18:30:27]ExternCall_PrintAddStr [18:30:27]wPrintStart [18:30:27]Write to MH i2c: 01 00 00 50 00 50 [18:30:27]Write i2c OK [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 07 00 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [18:30:27]RasterBufferAndPrint [18:30:27]line В тот год осенняя погода [18:30:27]line Стояла долго на дворе, [18:30:27]line Зимы ждала, ждала природа. [18:30:27]line Снег выпал только в январе [18:30:27]line На третье в ночь... [18:30:27]written 0, free lines is 4095 [18:30:27]Write to MH i2c: 01 00 00 57 00 57 [18:30:27]Write i2c OK [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 07 00 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 6B 0F D8 [18:30:27]RasterBufferAndPrint [18:30:27]line [18:30:27]line [18:30:27]line [18:30:27]line [18:30:27]line [18:30:27]written 0, free lines is 3947 [18:30:27]MH_Cut [18:30:27]Write to MH i2c: D1 01 00 5E 00 01 30 [18:30:27]Write i2c OK [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: D1 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: D1 01 00 [18:30:27]MH_I2C_Read... [18:30:27]Read from MH i2c: D1 01 00 5E 00 00 2F [18:30:27]Write to MH i2c: 01 00 00 5F 00 5F [18:30:27]Write i2c OK [18:30:27]MH_I2C_Read... [18:30:27]*** Cut start [18:30:27]*** Partial cut [18:30:27]*** CUTSNS_PIN = 1 [18:30:27]*** CUTSNS_PIN = 0 [18:30:28]*** Brake cut motor [18:30:28]Read from MH i2c: 01 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 5F 00 00 00 00 00 00 FF 0F 74 [18:30:28]process_action print_text done [18:30:28]no requested_data - finishing processing [18:30:28]process_action_free print_text [18:30:28]json_value_free [18:30:28]json_value_free done [18:30:28]process_json_proto returns [18:30:28]Send response to host [18:30:28]int [18:30:28]Write to MH i2c: 01 00 00 60 00 60 [18:30:28]*** Stop cut motor [18:30:28]*** Cut end [18:30:28]*** FLAG_PRN_PAP1 set [18:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:30:28]free response buf [18:30:28]execute_script done [18:30:28]execute_script returns [18:30:28]free content buf [18:30:28]Sock 6.Close socket [18:30:28]Write i2c OK [18:30:28]MH_I2C_Read... [18:30:28]Sock 6.Thread stoped [18:30:28]Read from MH i2c: 01 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 60 00 00 01 00 00 00 FF 0F 76 [18:30:28]state=0 [18:30:28]No paper [18:30:28]accept exits with 9 [18:30:28]New connection [18:30:28]New thread 3066883428 created [18:30:28]Thread 3067026788 joined [18:30:28]Waiting for new connection... [18:30:28] Sock 9.Parse request [18:30:28]Sock 9.Check first char [18:30:28]Sock 9.First char is OK [18:30:28]request: POST /json_proto HTTP/1.1 [18:30:28]Method: POST [18:30:28]URL: /json_proto [18:30:28]Method is POST - this is cgi request [18:30:28]url: /json_proto [18:30:28]query_string will be loaded in cgi processing [18:30:28]execute_cgi json_proto POST (null) [18:30:28]execute_cgi path=json_proto method=POST [18:30:28]POST find Content-Length [18:30:28]Host: 192.168.0.101:8080 [18:30:28]Connection: keep-alive [18:30:28]Content-Length: 296 [18:30:28]Accept: application/json, text/plain, */* [18:30:28]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:28]Content-Type: application/json [18:30:28]Origin: http://192.168.0.101:8080 [18:30:28]Referer: http://192.168.0.101:8080/testengine [18:30:28]Accept-Encoding: gzip, deflate [18:30:28]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:28] [18:30:28]POST finish read [18:30:28]Found Content-Length = 296 [18:30:28]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:28]execute_script... [18:30:28]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:28]POST & json_proto [18:30:28]process_json_proto [18:30:28]json parsed OK: [18:30:28]protocol is kg_v1.0 [18:30:28]action value=print_text [18:30:28]process_action print_text [18:30:28]cmd_print_text [18:30:28]ExternCall_PrintAddStr [18:30:28]wPrintStart [18:30:28]Write to MH i2c: 01 00 00 61 00 61 [18:30:28]Write i2c OK [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 [18:30:28]MH_I2C_Read... [18:30:28]Read from MH i2c: 01 07 00 61 00 00 01 00 00 00 FF 0F 77 [18:30:28]RasterBufferAndPrint [18:30:28]line В тот год осенняя погода [18:30:28]line Стояла долго на дворе, [18:30:28]line Зимы ждала, ждала природа. [18:30:28]line Снег выпал только в январе [18:30:28]line На третье в ночь... [18:30:28]written 0, free lines is 4095 [18:30:28]Error from MH - 05 [18:30:28]process_action_free print_text [18:30:28]json_value_free [18:30:28]json_value_free done [18:30:28]process_json_proto returns [18:30:28]Send response to host [18:30:28]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [18:30:28]free response buf [18:30:28]execute_script done [18:30:28]execute_script returns [18:30:28]free content buf [18:30:28]Sock 9.Close socket [18:30:28]Sock 9.Thread stoped [18:30:29]No OFD sender enable setting [18:30:31]int [18:30:31]Write to MH i2c: 01 00 00 64 00 64 [18:30:31]*** FLAG_PRN_PAP1 reset [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 07 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:30:31]state=0 [18:30:31]int [18:30:31]Write to MH i2c: 01 00 00 65 00 65 [18:30:31]*** FLAG_PRN_PAP1 set [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 07 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: 01 07 00 65 00 00 01 00 00 00 FF 0F 7B [18:30:31]state=0 [18:30:31]No paper [18:30:32]int [18:30:32]Write to MH i2c: 01 00 00 66 00 66 [18:30:32]*** FLAG_PRN_PAP1 reset [18:30:32]Write i2c OK [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: 01 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: 01 07 00 [18:30:32]MH_I2C_Read... [18:30:32]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [18:30:32]state=0 [18:30:33]accept exits with 8 [18:30:33]New connection [18:30:33]New thread 3067026788 created [18:30:33]Thread 3066883428 joined [18:30:33]Waiting for new connection... [18:30:33] Sock 8.Parse request [18:30:33]Sock 8.Check first char [18:30:33]Sock 8.First char is OK [18:30:33]request: POST /json_proto HTTP/1.1 [18:30:33]Method: POST [18:30:33]URL: /json_proto [18:30:33]Method is POST - this is cgi request [18:30:33]url: /json_proto [18:30:33]query_string will be loaded in cgi processing [18:30:33]execute_cgi json_proto POST (null) [18:30:33]execute_cgi path=json_proto method=POST [18:30:33]POST find Content-Length [18:30:33]Host: 192.168.0.101:8080 [18:30:33]Connection: keep-alive [18:30:33]Content-Length: 296 [18:30:33]Accept: application/json, text/plain, */* [18:30:33]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:30:33]Content-Type: application/json [18:30:33]Origin: http://192.168.0.101:8080 [18:30:33]Referer: http://192.168.0.101:8080/testengine [18:30:33]Accept-Encoding: gzip, deflate [18:30:33]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:30:33] [18:30:33]POST finish read [18:30:33]Found Content-Length = 296 [18:30:33]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:33]execute_script... [18:30:33]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [18:30:33]POST & json_proto [18:30:33]process_json_proto [18:30:33]json parsed OK: [18:30:33]protocol is kg_v1.0 [18:30:33]action value=print_text [18:30:33]process_action print_text [18:30:33]cmd_print_text [18:30:33]ExternCall_PrintAddStr [18:30:33]wPrintStart [18:30:33]Write to MH i2c: 01 00 00 67 00 67 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [18:30:33]RasterBufferAndPrint [18:30:33]line В тот год осенняя погода [18:30:33]line Стояла долго на дворе, [18:30:33]line Зимы ждала, ждала природа. [18:30:33]line Снег выпал только в январе [18:30:33]line На третье в ночь... [18:30:33]written 0, free lines is 4095 [18:30:33]Write to MH i2c: 01 00 00 6E 00 6E [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 6B 0F EF [18:30:33]RasterBufferAndPrint [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]line [18:30:33]written 0, free lines is 3947 [18:30:33]MH_Cut [18:30:33]Write to MH i2c: D1 01 00 75 00 01 47 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: D1 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: D1 01 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: D1 01 00 75 00 00 46 [18:30:33]Write to MH i2c: 01 00 00 76 00 76 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** Cut start [18:30:33]*** Partial cut [18:30:33]*** CUTSNS_PIN = 1 [18:30:33]*** CUTSNS_PIN = 0 [18:30:34]*** Brake cut motor [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]*** Stop cut motor [18:30:34]*** Cut end [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 76 00 00 00 00 00 00 FF 0F 8B [18:30:34]process_action print_text done [18:30:34]no requested_data - finishing processing [18:30:34]process_action_free print_text [18:30:34]json_value_free [18:30:34]json_value_free done [18:30:34]process_json_proto returns [18:30:34]Send response to host [18:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:30:34]free response buf [18:30:34]execute_script done [18:30:34]execute_script returns [18:30:34]free content buf [18:30:34]Sock 8.Close socket [18:30:34]Sock 8.Thread stoped [18:30:34]int [18:30:34]Write to MH i2c: 01 00 00 77 00 77 [18:30:34]*** FLAG_PRN_PAP1 set [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 77 00 00 01 00 00 00 FF 0F 8D [18:30:34]state=0 [18:30:34]No paper [18:30:34]int [18:30:34]Write to MH i2c: 01 00 00 78 00 78 [18:30:34]*** FLAG_PRN_PAP1 reset [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 78 00 00 00 00 00 00 FF 0F 8D [18:30:34]state=0 [18:30:34]int [18:30:34]Write to MH i2c: 01 00 00 79 00 79 [18:30:34]*** FLAG_PRN_PAP1 set [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 79 00 00 01 00 00 00 FF 0F 8F [18:30:34]state=0 [18:30:34]No paper [18:30:34]No OFD sender enable setting [18:30:39]No OFD sender enable setting [00:05:07]/dev/ttyS4 opened [00:05:07] *** EcrCore started. Build 196 *** [00:05:07]MH_InterfaceInit /dev/i2c-1 [00:05:07]Malloc ok [00:05:07]MH_GetMetrics [00:05:07]Write to MH i2c: 00 00 00 01 00 00 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: 00 26 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 94 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 20 [00:05:07]Possible old version of MH firmware - no need to switch from boot [00:05:07]Model is 3 [00:05:07]MH firmware is 1 [00:05:07]MH boot firmware is 0 [00:05:07]MH_SetPrinterDots 448 [00:05:07]HeadWidthInBytes 56 [00:05:07]maxmasksize 7 [00:05:07]Write to MH i2c: D6 06 00 02 00 41 00 60 00 FF FF 7C [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D6 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D6 01 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D6 01 00 02 00 00 D8 [00:05:07]Write to MH i2c: D5 00 00 03 00 D7 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D5 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D5 01 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: D5 01 00 03 00 00 D8 [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]LoadDictionaryFromArray [00:05:07]Load OK [00:05:07]ExternCall_SetCallbacks [00:05:07]NVStorageInit [00:05:07]No nvstorage dir found. Trying to create it. [00:05:07]Nvstorage dir /storage created. [00:05:07]MH_GetDate [00:05:07]Write to MH i2c: F0 00 00 04 00 F3 [00:05:07]Write i2c OK [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: F0 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: F0 05 00 [00:05:07]MH_I2C_Read... [00:05:07]Read from MH i2c: F0 05 00 04 00 00 C3 8D F5 00 3D [06:10:11]Current date/time: 06.07.1970 06:10 [06:10:11]FM_Init [06:10:11]wFMConnect [06:10:11]MH_SAM_On [06:10:11]Write to MH i2c: E0 00 00 05 00 E4 [06:10:11]Write i2c OK [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E0 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E0 10 00 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [06:10:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [06:10:11]wFMCommunicate request_size=10 [06:10:11]MH_SAM_APDU [06:10:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [06:10:11]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [06:10:11]Write i2c OK [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 03 00 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [06:10:11]RAPDU: 90 00 [06:10:11]wFMCommunicate OK [06:10:11]wFMCommunicate request_size=4 [06:10:11]MH_SAM_APDU [06:10:11]CAPDU: 80 11 00 00 [06:10:11]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [06:10:11]Write i2c OK [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 17 00 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DA [06:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [06:10:11]wFMCommunicate OK [06:10:11]Detected FM SN is 0000000000874775 [06:10:11]No stored FM SN - require to set a PIN [06:10:11]DocumentArchiveInit [06:10:11]Start Httpd... [06:10:11]Httpd thread 3067018596 created [06:10:11]Write to MH i2c: 01 00 00 08 00 08 [06:10:11]Write i2c OK [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: 01 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: 01 07 00 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: 01 07 00 08 00 00 81 00 00 00 FF 0F 9E [06:10:11]No OFD sender enable setting [06:10:11]Allocated Socket 5 [06:10:11]Bind OK [06:10:11]Listen OK [06:10:11]httpd running on port 8080 [06:10:11]Waiting for new connection... [06:10:11]MH Int Process started [06:10:16]No OFD sender enable setting [06:10:21]No OFD sender enable setting [06:10:26]No OFD sender enable setting [06:10:31]No OFD sender enable setting [06:10:36]No OFD sender enable setting [06:10:41]No OFD sender enable setting [06:10:46]No OFD sender enable setting [06:10:51]No OFD sender enable setting [06:10:56]No OFD sender enable setting [06:10:58]accept exits with 6 [06:10:58]New connection [06:10:58]New thread 3066731876 created [06:10:58]Waiting for new connection... [06:10:58] Sock 6.Parse request [06:10:58]Sock 6.Check first char [06:10:58]Sock 6.First char is OK [06:10:58]request: POST /json_proto HTTP/1.1 [06:10:58]Method: POST [06:10:58]URL: /json_proto [06:10:58]Method is POST - this is cgi request [06:10:58]url: /json_proto [06:10:58]query_string will be loaded in cgi processing [06:10:58]execute_cgi json_proto POST (null) [06:10:58]execute_cgi path=json_proto method=POST [06:10:58]POST find Content-Length [06:10:58]Host: 192.168.0.101:8080 [06:10:58]Connection: keep-alive [06:10:58]Content-Length: 105 [06:10:58]Accept: application/json, text/plain, */* [06:10:58]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [06:10:58]Content-Type: application/json [06:10:58]Origin: http://192.168.0.101:8080 [06:10:58]Referer: http://192.168.0.101:8080/testengine [06:10:58]Accept-Encoding: gzip, deflate [06:10:58]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [06:10:58] [06:10:58]POST finish read [06:10:58]Found Content-Length = 105 [06:10:58]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [06:10:58]execute_script... [06:10:58]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [06:10:58]POST & json_proto [06:10:58]process_json_proto [06:10:58]json parsed OK: [06:10:58]protocol is kg_v1.0 [06:10:58]action value=get_value [06:10:58]process_action get_value [06:10:58]cmd_get_value [06:10:58]process_action get_value done [06:10:58]requested_data is exist [06:10:58]produce_requested_data [06:10:58]requested_item config.timestamp is exist - process it [06:10:58]MH_GetDate [06:10:58]Write to MH i2c: F0 00 00 09 00 F8 [06:10:58]Write i2c OK [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: F0 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: F0 05 00 [06:10:58]MH_I2C_Read... [06:10:58]Read from MH i2c: F0 05 00 09 00 00 F2 8D F5 00 71 [06:10:58]produce_requested_data done [06:10:58]produce_requested_data return {"config.timestamp":"16092658"} [06:10:58]process_action_free get_value [06:10:58]json_value_free [06:10:58]json_value_free done [06:10:58]process_json_proto returns [06:10:58]Send response to host [06:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"16092658"}}} [06:10:58]free response buf [06:10:58]execute_script done [06:10:58]execute_script returns [06:10:58]free content buf [06:10:58]Sock 6.Close socket [06:10:58]Sock 6.Thread stoped [06:10:59]accept exits with 9 [06:10:59]New connection [06:10:59]New thread 3066588516 created [06:10:59]Thread 3066731876 joined [06:10:59]Waiting for new connection... [06:10:59] Sock 9.Parse request [06:10:59]Sock 9.Check first char [06:10:59]Sock 9.First char is OK [06:10:59]request: POST /json_proto HTTP/1.1 [06:10:59]Method: POST [06:10:59]URL: /json_proto [06:10:59]Method is POST - this is cgi request [06:10:59]url: /json_proto [06:10:59]query_string will be loaded in cgi processing [06:10:59]execute_cgi json_proto POST (null) [06:10:59]execute_cgi path=json_proto method=POST [06:10:59]POST find Content-Length [06:10:59]Host: 192.168.0.101:8080 [06:10:59]Connection: keep-alive [06:10:59]Content-Length: 105 [06:10:59]Accept: application/json, text/plain, */* [06:10:59]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [06:10:59]Content-Type: application/json [06:10:59]Origin: http://192.168.0.101:8080 [06:10:59]Referer: http://192.168.0.101:8080/testengine [06:10:59]Accept-Encoding: gzip, deflate [06:10:59]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [06:10:59] [06:10:59]POST finish read [06:10:59]Found Content-Length = 105 [06:10:59]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [06:10:59]execute_script... [06:10:59]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [06:10:59]POST & json_proto [06:10:59]process_json_proto [06:10:59]json parsed OK: [06:10:59]protocol is kg_v1.0 [06:10:59]action value=get_value [06:10:59]process_action get_value [06:10:59]cmd_get_value [06:10:59]process_action get_value done [06:10:59]requested_data is exist [06:10:59]produce_requested_data [06:10:59]requested_item config.timestamp is exist - process it [06:10:59]MH_GetDate [06:10:59]Write to MH i2c: F0 00 00 0A 00 F9 [06:10:59]Write i2c OK [06:10:59]MH_I2C_Read... [06:10:59]Read from MH i2c: F0 [06:10:59]MH_I2C_Read... [06:10:59]Read from MH i2c: F0 05 00 [06:10:59]MH_I2C_Read... [06:10:59]Read from MH i2c: F0 05 00 0A 00 00 F3 8D F5 00 73 [06:10:59]produce_requested_data done [06:10:59]produce_requested_data return {"config.timestamp":"16092659"} [06:10:59]process_action_free get_value [06:10:59]json_value_free [06:10:59]json_value_free done [06:10:59]process_json_proto returns [06:10:59]Send response to host [06:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"16092659"}}} [06:10:59]free response buf [06:10:59]execute_script done [06:10:59]execute_script returns [06:10:59]free content buf [06:10:59]Sock 9.Close socket [06:10:59]Sock 9.Thread stoped [06:11:01]No OFD sender enable setting [06:11:02]accept exits with 6 [06:11:02]New connection [06:11:02]New thread 3066731876 created [06:11:02]Thread 3066588516 joined [06:11:02]Waiting for new connection... [06:11:02] Sock 6.Parse request [06:11:02]Sock 6.Check first char [06:11:02]Sock 6.First char is OK [06:11:02]request: POST /json_proto HTTP/1.1 [06:11:02]Method: POST [06:11:02]URL: /json_proto [06:11:02]Method is POST - this is cgi request [06:11:02]url: /json_proto [06:11:02]query_string will be loaded in cgi processing [06:11:02]execute_cgi json_proto POST (null) [06:11:02]execute_cgi path=json_proto method=POST [06:11:02]POST find Content-Length [06:11:02]Host: 192.168.0.101:8080 [06:11:02]Connection: keep-alive [06:11:02]Content-Length: 113 [06:11:02]Accept: application/json, text/plain, */* [06:11:02]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [06:11:02]Content-Type: application/json [06:11:02]Origin: http://192.168.0.101:8080 [06:11:02]Referer: http://192.168.0.101:8080/testengine [06:11:02]Accept-Encoding: gzip, deflate [06:11:02]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [06:11:02] [06:11:02]POST finish read [06:11:02]Found Content-Length = 113 [06:11:02]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699382389"}}} [06:11:02]execute_script... [06:11:02]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699382389"}}} [06:11:02]POST & json_proto [06:11:02]process_json_proto [06:11:02]json parsed OK: [06:11:02]protocol is kg_v1.0 [06:11:02]action value=set_value [06:11:02]process_action set_value [06:11:02]cmd_set_value [06:11:02]SetValue [06:11:02]group config [06:11:02]SetConfigValue timestamp=1699382389 [06:11:02]SettingCheckAndSetValue timestamp=1699382389 [06:11:02]store_timestamp [06:11:02]MH_GetDate [06:11:02]Write to MH i2c: F0 00 00 0B 00 FA [06:11:02]Write i2c OK [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 05 00 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F0 05 00 0B 00 00 F7 8D F5 00 78 [06:11:02]GetLastDocTimeStamp 0 [06:11:02]cur date 16092663 [06:11:02]tm 1699382389 [06:11:02]tm ok - set date [06:11:02]MH_SetDate [06:11:02]Write to MH i2c: F1 04 00 0C 00 75 84 4A 65 A8 [06:11:02]Write i2c OK [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F1 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F1 01 00 [06:11:02]MH_I2C_Read... [06:11:02]Read from MH i2c: F1 01 00 0C 00 00 FD [18:39:49]SetValue res=0 [18:39:49]process_action set_value done [18:39:49]no requested_data - finishing processing [18:39:49]process_action_free set_value [18:39:49]json_value_free [18:39:49]json_value_free done [18:39:49]process_json_proto returns [18:39:49]Send response to host [18:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:39:49]free response buf [18:39:49]execute_script done [18:39:49]execute_script returns [18:39:49]free content buf [18:39:49]Sock 6.Close socket [18:39:49]Sock 6.Thread stoped [18:39:52]No OFD sender enable setting [18:39:57]No OFD sender enable setting [18:39:59]accept exits with 9 [18:39:59]New connection [18:39:59]New thread 3066588516 created [18:39:59]Thread 3066731876 joined [18:39:59]Waiting for new connection... [18:39:59] Sock 9.Parse request [18:39:59]Sock 9.Check first char [18:39:59]Sock 9.First char is OK [18:39:59]request: POST /json_proto HTTP/1.1 [18:39:59]Method: POST [18:39:59]URL: /json_proto [18:39:59]Method is POST - this is cgi request [18:39:59]url: /json_proto [18:39:59]query_string will be loaded in cgi processing [18:39:59]execute_cgi json_proto POST (null) [18:39:59]execute_cgi path=json_proto method=POST [18:39:59]POST find Content-Length [18:39:59]Host: 192.168.0.101:8080 [18:39:59]Connection: keep-alive [18:39:59]Content-Length: 158 [18:39:59]Accept: application/json, text/plain, */* [18:39:59]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:39:59]Content-Type: application/json [18:39:59]Origin: http://192.168.0.101:8080 [18:39:59]Referer: http://192.168.0.101:8080/testengine [18:39:59]Accept-Encoding: gzip, deflate [18:39:59]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:39:59] [18:39:59]POST finish read [18:39:59]Found Content-Length = 158 [18:39:59]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:39:59]execute_script... [18:39:59]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:39:59]POST & json_proto [18:39:59]process_json_proto [18:39:59]json parsed OK: [18:39:59]protocol is kg_v1.0 [18:39:59]action value=get_value [18:39:59]process_action get_value [18:39:59]cmd_get_value [18:39:59]process_action get_value done [18:39:59]requested_data is exist [18:39:59]produce_requested_data [18:39:59]requested_item kkm.sn is exist - process it [18:39:59]requested_item kkm.ver is exist - process it [18:39:59]requested_item kkm.rnm is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E0 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]Detected FM SN is 0000000000874775 [18:39:59]No stored FM SN - require to set a PIN [18:39:59]produce_fm_shift_data error [18:39:59]requested_item fm.sn is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E1 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]Detected FM SN is 0000000000874775 [18:39:59]No stored FM SN - require to set a PIN [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 0F 00 80 11 00 00 00 00 00 00 89 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 0F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E2 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]requested_item fm.ffd_ver is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E3 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]Detected FM SN is 0000000000874775 [18:39:59]No stored FM SN - require to set a PIN [18:39:59]produce_fm_shift_data error [18:39:59]requested_item fm.expired is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E4 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]Detected FM SN is 0000000000874775 [18:39:59]No stored FM SN - require to set a PIN [18:39:59]produce_fm_shift_data error [18:39:59]requested_item fd.num is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E5 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:39:59]wFMCommunicate OK [18:39:59]Detected FM SN is 0000000000874775 [18:39:59]No stored FM SN - require to set a PIN [18:39:59]produce_fm_shift_data error [18:39:59]produce_requested_data done [18:39:59]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [18:39:59]process_action_free get_value [18:39:59]json_value_free [18:39:59]json_value_free done [18:39:59]process_json_proto returns [18:39:59]Send response to host [18:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [18:39:59]free response buf [18:39:59]execute_script done [18:39:59]execute_script returns [18:39:59]free content buf [18:39:59]Sock 9.Close socket [18:39:59]Sock 9.Thread stoped [18:40:00]accept exits with 8 [18:40:00]New connection [18:40:00]New thread 3066731876 created [18:40:00]Thread 3066588516 joined [18:40:00]Waiting for new connection... [18:40:00] Sock 8.Parse request [18:40:00]Sock 8.Check first char [18:40:00]Sock 8.First char is OK [18:40:00]request: POST /json_proto HTTP/1.1 [18:40:00]Method: POST [18:40:00]URL: /json_proto [18:40:00]Method is POST - this is cgi request [18:40:00]url: /json_proto [18:40:00]query_string will be loaded in cgi processing [18:40:00]execute_cgi json_proto POST (null) [18:40:00]execute_cgi path=json_proto method=POST [18:40:00]POST find Content-Length [18:40:00]Host: 192.168.0.101:8080 [18:40:00]Connection: keep-alive [18:40:00]Content-Length: 158 [18:40:00]Accept: application/json, text/plain, */* [18:40:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:40:00]Content-Type: application/json [18:40:00]Origin: http://192.168.0.101:8080 [18:40:00]Referer: http://192.168.0.101:8080/testengine [18:40:00]Accept-Encoding: gzip, deflate [18:40:00]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:40:00] [18:40:00]POST finish read [18:40:00]Found Content-Length = 158 [18:40:00]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:00]execute_script... [18:40:00]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:00]POST & json_proto [18:40:00]process_json_proto [18:40:00]json parsed OK: [18:40:00]protocol is kg_v1.0 [18:40:00]action value=get_value [18:40:00]process_action get_value [18:40:00]cmd_get_value [18:40:00]process_action get_value done [18:40:00]requested_data is exist [18:40:00]produce_requested_data [18:40:00]requested_item kkm.sn is exist - process it [18:40:00]requested_item kkm.ver is exist - process it [18:40:00]requested_item kkm.rnm is exist - process it [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 13 00 80 11 00 00 00 00 00 00 8D [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E6 [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]Detected FM SN is 0000000000874775 [18:40:00]No stored FM SN - require to set a PIN [18:40:00]produce_fm_shift_data error [18:40:00]requested_item fm.sn is exist - process it [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E7 [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]Detected FM SN is 0000000000874775 [18:40:00]No stored FM SN - require to set a PIN [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 15 00 80 11 00 00 00 00 00 00 8F [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 15 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E8 [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]requested_item fm.ffd_ver is exist - process it [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 16 00 80 11 00 00 00 00 00 00 90 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 16 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E9 [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]Detected FM SN is 0000000000874775 [18:40:00]No stored FM SN - require to set a PIN [18:40:00]produce_fm_shift_data error [18:40:00]requested_item fm.expired is exist - process it [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 17 00 80 11 00 00 00 00 00 00 91 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 17 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EA [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]Detected FM SN is 0000000000874775 [18:40:00]No stored FM SN - require to set a PIN [18:40:00]produce_fm_shift_data error [18:40:00]requested_item fd.num is exist - process it [18:40:00]wFMCommunicate request_size=4 [18:40:00]MH_SAM_APDU [18:40:00]CAPDU: 80 11 00 00 [18:40:00]Write to MH i2c: E2 08 00 18 00 80 11 00 00 00 00 00 00 92 [18:40:00]Write i2c OK [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 [18:40:00]MH_I2C_Read... [18:40:00]Read from MH i2c: E2 17 00 18 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EB [18:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:00]wFMCommunicate OK [18:40:00]Detected FM SN is 0000000000874775 [18:40:00]No stored FM SN - require to set a PIN [18:40:00]produce_fm_shift_data error [18:40:00]produce_requested_data done [18:40:00]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [18:40:00]process_action_free get_value [18:40:00]json_value_free [18:40:00]json_value_free done [18:40:00]process_json_proto returns [18:40:00]Send response to host [18:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [18:40:00]free response buf [18:40:00]execute_script done [18:40:00]execute_script returns [18:40:00]free content buf [18:40:00]Sock 8.Close socket [18:40:01]Sock 8.Thread stoped [18:40:01]accept exits with 9 [18:40:01]New connection [18:40:01]New thread 3066588516 created [18:40:01]Thread 3066731876 joined [18:40:01]Waiting for new connection... [18:40:01] Sock 9.Parse request [18:40:01]Sock 9.Check first char [18:40:01]Sock 9.First char is OK [18:40:01]request: POST /json_proto HTTP/1.1 [18:40:01]Method: POST [18:40:01]URL: /json_proto [18:40:01]Method is POST - this is cgi request [18:40:01]url: /json_proto [18:40:01]query_string will be loaded in cgi processing [18:40:01]execute_cgi json_proto POST (null) [18:40:01]execute_cgi path=json_proto method=POST [18:40:01]POST find Content-Length [18:40:01]Host: 192.168.0.101:8080 [18:40:01]Connection: keep-alive [18:40:01]Content-Length: 158 [18:40:01]Accept: application/json, text/plain, */* [18:40:01]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:40:01]Content-Type: application/json [18:40:01]Origin: http://192.168.0.101:8080 [18:40:01]Referer: http://192.168.0.101:8080/testengine [18:40:01]Accept-Encoding: gzip, deflate [18:40:01]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:40:01] [18:40:01]POST finish read [18:40:01]Found Content-Length = 158 [18:40:01]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:01]execute_script... [18:40:01]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:01]POST & json_proto [18:40:01]process_json_proto [18:40:01]json parsed OK: [18:40:01]protocol is kg_v1.0 [18:40:01]action value=get_value [18:40:01]process_action get_value [18:40:01]cmd_get_value [18:40:01]process_action get_value done [18:40:01]requested_data is exist [18:40:01]produce_requested_data [18:40:01]requested_item kkm.sn is exist - process it [18:40:01]requested_item kkm.ver is exist - process it [18:40:01]requested_item kkm.rnm is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 19 00 80 11 00 00 00 00 00 00 93 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 19 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EC [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]Detected FM SN is 0000000000874775 [18:40:01]No stored FM SN - require to set a PIN [18:40:01]produce_fm_shift_data error [18:40:01]requested_item fm.sn is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 1A 00 80 11 00 00 00 00 00 00 94 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 1A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 ED [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]Detected FM SN is 0000000000874775 [18:40:01]No stored FM SN - require to set a PIN [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 1B 00 80 11 00 00 00 00 00 00 95 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 1B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EE [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]requested_item fm.ffd_ver is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 1C 00 80 11 00 00 00 00 00 00 96 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 1C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EF [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]Detected FM SN is 0000000000874775 [18:40:01]No stored FM SN - require to set a PIN [18:40:01]produce_fm_shift_data error [18:40:01]requested_item fm.expired is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F0 [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]Detected FM SN is 0000000000874775 [18:40:01]No stored FM SN - require to set a PIN [18:40:01]produce_fm_shift_data error [18:40:01]requested_item fd.num is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 1E 00 80 11 00 00 00 00 00 00 98 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F1 [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:01]wFMCommunicate OK [18:40:01]Detected FM SN is 0000000000874775 [18:40:01]No stored FM SN - require to set a PIN [18:40:01]produce_fm_shift_data error [18:40:01]produce_requested_data done [18:40:01]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [18:40:01]process_action_free get_value [18:40:01]json_value_free [18:40:01]json_value_free done [18:40:01]process_json_proto returns [18:40:01]Send response to host [18:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [18:40:01]free response buf [18:40:01]execute_script done [18:40:01]execute_script returns [18:40:01]free content buf [18:40:01]Sock 9.Close socket [18:40:01]Sock 9.Thread stoped [18:40:02]No OFD sender enable setting [18:40:07]No OFD sender enable setting [18:40:12]No OFD sender enable setting [18:40:17]No OFD sender enable setting [18:40:22]No OFD sender enable setting [18:40:23]accept exits with 8 [18:40:23]New connection [18:40:23]New thread 3066731876 created [18:40:23]Thread 3066588516 joined [18:40:23]Waiting for new connection... [18:40:23] Sock 8.Parse request [18:40:23]Sock 8.Check first char [18:40:23]Sock 8.First char is OK [18:40:23]request: POST /json_proto HTTP/1.1 [18:40:23]Method: POST [18:40:23]URL: /json_proto [18:40:23]Method is POST - this is cgi request [18:40:23]url: /json_proto [18:40:23]query_string will be loaded in cgi processing [18:40:23]execute_cgi json_proto POST (null) [18:40:23]execute_cgi path=json_proto method=POST [18:40:23]POST find Content-Length [18:40:23]Host: 192.168.0.101:8080 [18:40:23]Connection: keep-alive [18:40:23]Content-Length: 158 [18:40:23]Accept: application/json, text/plain, */* [18:40:23]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:40:23]Content-Type: application/json [18:40:23]Origin: http://192.168.0.101:8080 [18:40:23]Referer: http://192.168.0.101:8080/testengine [18:40:23]Accept-Encoding: gzip, deflate [18:40:23]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:40:23] [18:40:23]POST finish read [18:40:23]Found Content-Length = 158 [18:40:23]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:23]execute_script... [18:40:23]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:23]POST & json_proto [18:40:23]process_json_proto [18:40:23]json parsed OK: [18:40:23]protocol is kg_v1.0 [18:40:23]action value=get_value [18:40:23]process_action get_value [18:40:23]cmd_get_value [18:40:23]process_action get_value done [18:40:23]requested_data is exist [18:40:23]produce_requested_data [18:40:23]requested_item kkm.sn is exist - process it [18:40:23]requested_item kkm.ver is exist - process it [18:40:23]requested_item kkm.rnm is exist - process it [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 11 00 00 [18:40:23]Write to MH i2c: E2 08 00 1F 00 80 11 00 00 00 00 00 00 99 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 1F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F2 [18:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:23]wFMCommunicate OK [18:40:23]Detected FM SN is 0000000000874775 [18:40:23]No stored FM SN - require to set a PIN [18:40:23]produce_fm_shift_data error [18:40:23]requested_item fm.sn is exist - process it [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 11 00 00 [18:40:23]Write to MH i2c: E2 08 00 20 00 80 11 00 00 00 00 00 00 9A [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 20 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F3 [18:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:23]wFMCommunicate OK [18:40:23]Detected FM SN is 0000000000874775 [18:40:23]No stored FM SN - require to set a PIN [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 11 00 00 [18:40:23]Write to MH i2c: E2 08 00 21 00 80 11 00 00 00 00 00 00 9B [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 21 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F4 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]requested_item fm.ffd_ver is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 22 00 80 11 00 00 00 00 00 00 9C [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 22 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F5 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]requested_item fm.expired is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F6 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]requested_item fd.num is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 24 00 80 11 00 00 00 00 00 00 9E [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 24 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F7 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]produce_requested_data done [18:40:24]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [18:40:24]process_action_free get_value [18:40:24]json_value_free [18:40:24]json_value_free done [18:40:24]process_json_proto returns [18:40:24]Send response to host [18:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [18:40:24]free response buf [18:40:24]execute_script done [18:40:24]execute_script returns [18:40:24]free content buf [18:40:24]Sock 8.Close socket [18:40:24]Sock 8.Thread stoped [18:40:24]accept exits with 9 [18:40:24]New connection [18:40:24]New thread 3066588516 created [18:40:24]Thread 3066731876 joined [18:40:24]Waiting for new connection... [18:40:24] Sock 9.Parse request [18:40:24]Sock 9.Check first char [18:40:24]Sock 9.First char is OK [18:40:24]request: POST /json_proto HTTP/1.1 [18:40:24]Method: POST [18:40:24]URL: /json_proto [18:40:24]Method is POST - this is cgi request [18:40:24]url: /json_proto [18:40:24]query_string will be loaded in cgi processing [18:40:24]execute_cgi json_proto POST (null) [18:40:24]execute_cgi path=json_proto method=POST [18:40:24]POST find Content-Length [18:40:24]Host: 192.168.0.101:8080 [18:40:24]Connection: keep-alive [18:40:24]Content-Length: 158 [18:40:24]Accept: application/json, text/plain, */* [18:40:24]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [18:40:24]Content-Type: application/json [18:40:24]Origin: http://192.168.0.101:8080 [18:40:24]Referer: http://192.168.0.101:8080/testengine [18:40:24]Accept-Encoding: gzip, deflate [18:40:24]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [18:40:24] [18:40:24]POST finish read [18:40:24]Found Content-Length = 158 [18:40:24]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:24]execute_script... [18:40:24]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [18:40:24]POST & json_proto [18:40:24]process_json_proto [18:40:24]json parsed OK: [18:40:24]protocol is kg_v1.0 [18:40:24]action value=get_value [18:40:24]process_action get_value [18:40:24]cmd_get_value [18:40:24]process_action get_value done [18:40:24]requested_data is exist [18:40:24]produce_requested_data [18:40:24]requested_item kkm.sn is exist - process it [18:40:24]requested_item kkm.ver is exist - process it [18:40:24]requested_item kkm.rnm is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 25 00 80 11 00 00 00 00 00 00 9F [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 25 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F8 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]requested_item fm.sn is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 26 00 80 11 00 00 00 00 00 00 A0 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 26 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 F9 [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 27 00 80 11 00 00 00 00 00 00 A1 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 27 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FA [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]requested_item fm.ffd_ver is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 28 00 80 11 00 00 00 00 00 00 A2 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 28 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FB [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]requested_item fm.expired is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 29 00 80 11 00 00 00 00 00 00 A3 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 29 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FC [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]requested_item fd.num is exist - process it [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 FD [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:40:24]wFMCommunicate OK [18:40:24]Detected FM SN is 0000000000874775 [18:40:24]No stored FM SN - require to set a PIN [18:40:24]produce_fm_shift_data error [18:40:24]produce_requested_data done [18:40:24]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [18:40:24]process_action_free get_value [18:40:24]json_value_free [18:40:24]json_value_free done [18:40:24]process_json_proto returns [18:40:24]Send response to host [18:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [18:40:24]free response buf [18:40:24]execute_script done [18:40:24]execute_script returns [18:40:24]free content buf [18:40:24]Sock 9.Close socket [18:40:24]Sock 9.Thread stoped [18:40:27]No OFD sender enable setting [18:40:32]No OFD sender enable setting [18:40:37]No OFD sender enable setting [18:40:38]int [18:40:38]Write to MH i2c: 01 00 00 2B 00 2B [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 2B 00 00 80 00 00 00 FF 0F C0 [18:40:38]state=0 [18:40:38]int [18:40:38]Write to MH i2c: 01 00 00 2C 00 2C [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 2C 00 00 81 00 00 00 FF 0F C2 [18:40:38]state=0 [18:40:38]No paper [18:40:39]int [18:40:39]Write to MH i2c: 01 00 00 2D 00 2D [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 2D 00 00 80 00 00 00 FF 0F C2 [18:40:39]state=0 [18:40:39]int [18:40:39]Write to MH i2c: 01 00 00 2E 00 2E [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 2E 00 00 81 00 00 00 FF 0F C4 [18:40:39]state=0 [18:40:39]No paper [18:40:41]int [18:40:41]Write to MH i2c: 01 00 00 2F 00 2F [18:40:41]Write i2c OK [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: 01 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: 01 07 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: 01 07 00 2F 00 00 80 00 00 00 FF 0F C4 [18:40:41]state=0 [18:40:42]No OFD sender enable setting [18:40:47]No OFD sender enable setting [18:40:52]int [18:40:52]Write to MH i2c: 01 00 00 30 00 30 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 07 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 07 00 30 00 00 81 00 00 00 FF 0F C6 [18:40:52]state=0 [18:40:52]No paper [18:40:52]No OFD sender enable setting [18:40:57]No OFD sender enable setting [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 26 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 94 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 20 [00:00:11]Possible old version of MH firmware - no need to switch from boot [00:00:11]Model is 3 [00:00:11]MH firmware is 1 [00:00:11]MH boot firmware is 0 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 02 00 41 00 60 00 FF FF 7C [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 02 00 00 D8 [00:00:11]Write to MH i2c: D5 00 00 03 00 D7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 03 00 00 D8 [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 04 00 F3 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 05 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 05 00 04 00 00 03 86 4A 65 30 [18:46:27]Current date/time: 07.11.2023 18:46 [18:46:27]FM_Init [18:46:27]wFMConnect [18:46:27]MH_SAM_On [18:46:27]Write to MH i2c: E0 00 00 05 00 E4 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E0 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E0 10 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [18:46:27]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:46:27]wFMCommunicate request_size=10 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:46:27]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [18:46:27]RAPDU: 90 00 [18:46:27]wFMCommunicate OK [18:46:27]wFMCommunicate request_size=4 [18:46:27]MH_SAM_APDU [18:46:27]CAPDU: 80 11 00 00 [18:46:27]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 17 00 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DA [18:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [18:46:27]wFMCommunicate OK [18:46:27]Detected FM SN is 0000000000874775 [18:46:27]No stored FM SN - require to set a PIN [18:46:27]DocumentArchiveInit [18:46:27]Start Httpd... [18:46:27]Httpd thread 3067653476 created [18:46:27]Write to MH i2c: 01 00 00 08 00 08 [18:46:27]Write i2c OK [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 [18:46:27]MH_I2C_Read... [18:46:27]Read from MH i2c: 01 07 00 [18:46:27]MH_I2C_Read... [18:46:27]No OFD sender enable setting [18:46:27]Read from MH i2c: 01 07 00 08 00 00 81 00 00 00 FF 0F 9E [18:46:27]Allocated Socket 5 [18:46:27]Bind OK [18:46:27]Listen OK [18:46:27]httpd running on port 8080 [18:46:27]Waiting for new connection... [18:46:27]MH Int Process started [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 59 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 FE [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572559 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 236+0=236 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:10]*** FLAG_PRN_PAP1 set [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 59 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 FF [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 01 00 00 00 FF 0F 1A [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 ED 00 00 00 00 00 00 00 EC [00:03:57]Current date/time: 01.01.1970 00:03 [00:03:57]FM_Init [00:03:57]wFMConnect [00:03:57]MH_SAM_On [00:03:57]Write to MH i2c: E0 00 00 08 00 E7 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_init finished! [00:03:57]*** atr: [00:03:57]*** 0F 3B D5 18 FF 81 91 FE [00:03:57]*** 1F C3 80 73 C8 21 10 0A [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]*** 00 00 00 00 00 00 00 00 [00:03:57]Read from MH i2c: E0 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E0 10 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:03:57]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:03:57]wFMCommunicate request_size=10 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:03:57]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 03 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:03:57]RAPDU: 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 11 00 00 [00:03:57]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 17 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DD [00:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:03:57]wFMCommunicate OK [00:03:57]Detected FM SN is 0000000000874775 [00:03:57]No stored FM SN - require to set a PIN [00:03:57]DocumentArchiveInit [00:03:57]No OFD sender enable setting [00:03:57]Start Httpd... [00:03:57]Httpd thread 3067346276 created [00:03:57]Write to MH i2c: 01 00 00 0B 00 0B [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 07 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 07 00 0B 00 00 01 00 00 00 FF 0F 21 [00:03:57]Allocated Socket 5 [00:03:57]Bind OK [00:03:57]Listen OK [00:03:57]httpd running on port 8080 [00:03:57]Waiting for new connection... [00:03:57]MH Int Process started [00:04:02]No OFD sender enable setting [00:04:07]No OFD sender enable setting [00:04:11]accept exits with 6 [00:04:11]New connection [00:04:11]New thread 3067059556 created [00:04:11]Waiting for new connection... [00:04:11] Sock 6.Parse request [00:04:11]Sock 6.Check first char [00:04:11]Sock 6.First char is OK [00:04:11]request: POST /json_proto HTTP/1.1 [00:04:11]Method: POST [00:04:11]URL: /json_proto [00:04:11]Method is POST - this is cgi request [00:04:11]url: /json_proto [00:04:11]query_string will be loaded in cgi processing [00:04:11]execute_cgi json_proto POST (null) [00:04:11]execute_cgi path=json_proto method=POST [00:04:11]POST find Content-Length [00:04:11]Host: 192.168.0.101:8080 [00:04:11]Connection: keep-alive [00:04:11]Content-Length: 158 [00:04:11]Accept: application/json, text/plain, */* [00:04:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [00:04:11]Content-Type: application/json [00:04:11]Origin: http://192.168.0.101:8080 [00:04:11]Referer: http://192.168.0.101:8080/testengine [00:04:11]Accept-Encoding: gzip, deflate [00:04:11]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [00:04:11] [00:04:11]POST finish read [00:04:11]Found Content-Length = 158 [00:04:11]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [00:04:11]execute_script... [00:04:11]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [00:04:11]POST & json_proto [00:04:11]process_json_proto [00:04:11]json parsed OK: [00:04:11]protocol is kg_v1.0 [00:04:11]action value=get_value [00:04:11]process_action get_value [00:04:11]cmd_get_value [00:04:11]process_action get_value done [00:04:11]requested_data is exist [00:04:11]produce_requested_data [00:04:11]requested_item kkm.sn is exist - process it [00:04:11]requested_item kkm.ver is exist - process it [00:04:11]requested_item kkm.rnm is exist - process it [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 DF [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]Detected FM SN is 0000000000874775 [00:04:11]No stored FM SN - require to set a PIN [00:04:11]produce_fm_shift_data error [00:04:11]requested_item fm.sn is exist - process it [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E0 [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]Detected FM SN is 0000000000874775 [00:04:11]No stored FM SN - require to set a PIN [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E1 [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]requested_item fm.ffd_ver is exist - process it [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 0F 00 80 11 00 00 00 00 00 00 89 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 0F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E2 [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]Detected FM SN is 0000000000874775 [00:04:11]No stored FM SN - require to set a PIN [00:04:11]produce_fm_shift_data error [00:04:11]requested_item fm.expired is exist - process it [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E3 [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]Detected FM SN is 0000000000874775 [00:04:11]No stored FM SN - require to set a PIN [00:04:11]produce_fm_shift_data error [00:04:11]requested_item fd.num is exist - process it [00:04:11]wFMCommunicate request_size=4 [00:04:11]MH_SAM_APDU [00:04:11]CAPDU: 80 11 00 00 [00:04:11]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:11]Read from MH i2c: E2 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E4 [00:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:11]wFMCommunicate OK [00:04:11]Detected FM SN is 0000000000874775 [00:04:11]No stored FM SN - require to set a PIN [00:04:11]produce_fm_shift_data error [00:04:11]produce_requested_data done [00:04:11]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [00:04:11]process_action_free get_value [00:04:11]json_value_free [00:04:11]json_value_free done [00:04:11]process_json_proto returns [00:04:11]Send response to host [00:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [00:04:11]free response buf [00:04:11]execute_script done [00:04:11]execute_script returns [00:04:11]free content buf [00:04:11]Sock 6.Close socket [00:04:11]Sock 6.Thread stoped [00:04:12]No OFD sender enable setting [00:04:13]accept exits with 9 [00:04:13]New connection [00:04:13]New thread 3066916196 created [00:04:13]Thread 3067059556 joined [00:04:13]Waiting for new connection... [00:04:13] Sock 9.Parse request [00:04:13]Sock 9.Check first char [00:04:13]Sock 9.First char is OK [00:04:13]request: POST /json_proto HTTP/1.1 [00:04:13]Method: POST [00:04:13]URL: /json_proto [00:04:13]Method is POST - this is cgi request [00:04:13]url: /json_proto [00:04:13]query_string will be loaded in cgi processing [00:04:13]execute_cgi json_proto POST (null) [00:04:13]execute_cgi path=json_proto method=POST [00:04:13]POST find Content-Length [00:04:13]Host: 192.168.0.101:8080 [00:04:13]Connection: keep-alive [00:04:13]Content-Length: 158 [00:04:13]Accept: application/json, text/plain, */* [00:04:13]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [00:04:13]Content-Type: application/json [00:04:13]Origin: http://192.168.0.101:8080 [00:04:13]Referer: http://192.168.0.101:8080/testengine [00:04:13]Accept-Encoding: gzip, deflate [00:04:13]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [00:04:13] [00:04:13]POST finish read [00:04:13]Found Content-Length = 158 [00:04:13]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [00:04:13]execute_script... [00:04:13]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num"]}} [00:04:13]POST & json_proto [00:04:13]process_json_proto [00:04:13]json parsed OK: [00:04:13]protocol is kg_v1.0 [00:04:13]action value=get_value [00:04:13]process_action get_value [00:04:13]cmd_get_value [00:04:13]process_action get_value done [00:04:13]requested_data is exist [00:04:13]produce_requested_data [00:04:13]requested_item kkm.sn is exist - process it [00:04:13]requested_item kkm.ver is exist - process it [00:04:13]requested_item kkm.rnm is exist - process it [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E5 [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]Detected FM SN is 0000000000874775 [00:04:13]No stored FM SN - require to set a PIN [00:04:13]produce_fm_shift_data error [00:04:13]requested_item fm.sn is exist - process it [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 13 00 80 11 00 00 00 00 00 00 8D [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E6 [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]Detected FM SN is 0000000000874775 [00:04:13]No stored FM SN - require to set a PIN [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E7 [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]requested_item fm.ffd_ver is exist - process it [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 15 00 80 11 00 00 00 00 00 00 8F [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 15 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E8 [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]Detected FM SN is 0000000000874775 [00:04:13]No stored FM SN - require to set a PIN [00:04:13]produce_fm_shift_data error [00:04:13]requested_item fm.expired is exist - process it [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 16 00 80 11 00 00 00 00 00 00 90 [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 16 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 E9 [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]Detected FM SN is 0000000000874775 [00:04:13]No stored FM SN - require to set a PIN [00:04:13]produce_fm_shift_data error [00:04:13]requested_item fd.num is exist - process it [00:04:13]wFMCommunicate request_size=4 [00:04:13]MH_SAM_APDU [00:04:13]CAPDU: 80 11 00 00 [00:04:13]Write to MH i2c: E2 08 00 17 00 80 11 00 00 00 00 00 00 91 [00:04:13]Write i2c OK [00:04:13]MH_I2C_Read... [00:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:13]Read from MH i2c: E2 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 [00:04:13]MH_I2C_Read... [00:04:13]Read from MH i2c: E2 17 00 17 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 EA [00:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 37 35 90 00 [00:04:13]wFMCommunicate OK [00:04:13]Detected FM SN is 0000000000874775 [00:04:13]No stored FM SN - require to set a PIN [00:04:13]produce_fm_shift_data error [00:04:13]produce_requested_data done [00:04:13]produce_requested_data return {"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"} [00:04:13]process_action_free get_value [00:04:13]json_value_free [00:04:13]json_value_free done [00:04:13]process_json_proto returns [00:04:13]Send response to host [00:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0399999999","kkm.ver":"v1.0","fm.sn":"0000000000874775"}}} [00:04:13]free response buf [00:04:13]execute_script done [00:04:13]execute_script returns [00:04:13]free content buf [00:04:13]Sock 9.Close socket [00:04:13]Sock 9.Thread stoped [00:04:16]accept exits with 8 [00:04:16]New connection [00:04:16]New thread 3067059556 created [00:04:16]Thread 3066916196 joined [00:04:16]Waiting for new connection... [00:04:16] Sock 8.Parse request [00:04:16]Sock 8.Check first char [00:04:16]Sock 8.First char is OK [00:04:16]request: POST /json_proto HTTP/1.1 [00:04:16]Method: POST [00:04:16]URL: /json_proto [00:04:16]Method is POST - this is cgi request [00:04:16]url: /json_proto [00:04:16]query_string will be loaded in cgi processing [00:04:16]execute_cgi json_proto POST (null) [00:04:16]execute_cgi path=json_proto method=POST [00:04:16]POST find Content-Length [00:04:16]Host: 192.168.0.101:8080 [00:04:16]Connection: keep-alive [00:04:16]Content-Length: 105 [00:04:16]Accept: application/json, text/plain, */* [00:04:16]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [00:04:16]Content-Type: application/json [00:04:16]Origin: http://192.168.0.101:8080 [00:04:16]Referer: http://192.168.0.101:8080/testengine [00:04:16]Accept-Encoding: gzip, deflate [00:04:16]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [00:04:16] [00:04:16]POST finish read [00:04:16]Found Content-Length = 105 [00:04:16]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [00:04:16]execute_script... [00:04:16]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["config.timestamp"]}} [00:04:16]POST & json_proto [00:04:16]process_json_proto [00:04:16]json parsed OK: [00:04:16]protocol is kg_v1.0 [00:04:16]action value=get_value [00:04:16]process_action get_value [00:04:16]cmd_get_value [00:04:16]process_action get_value done [00:04:16]requested_data is exist [00:04:16]produce_requested_data [00:04:16]requested_item config.timestamp is exist - process it [00:04:16]MH_GetDate [00:04:16]Write to MH i2c: F0 00 00 18 00 07 [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: F0 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: F0 09 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: F0 09 00 18 00 00 01 01 00 00 00 00 00 00 12 [00:04:16]produce_requested_data done [00:04:16]produce_requested_data return {"config.timestamp":"257"} [00:04:16]process_action_free get_value [00:04:16]json_value_free [00:04:16]json_value_free done [00:04:16]process_json_proto returns [00:04:16]Send response to host [00:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"config.timestamp":"257"}}} [00:04:16]free response buf [00:04:16]execute_script done [00:04:16]execute_script returns [00:04:16]free content buf [00:04:16]Sock 8.Close socket [00:04:16]Sock 8.Thread stoped [00:04:17]No OFD sender enable setting [00:04:19]accept exits with 9 [00:04:19]New connection [00:04:19]New thread 3066916196 created [00:04:19]Thread 3067059556 joined [00:04:19]Waiting for new connection... [00:04:19] Sock 9.Parse request [00:04:19]Sock 9.Check first char [00:04:19]Sock 9.First char is OK [00:04:19]request: POST /json_proto HTTP/1.1 [00:04:19]Method: POST [00:04:19]URL: /json_proto [00:04:19]Method is POST - this is cgi request [00:04:19]url: /json_proto [00:04:19]query_string will be loaded in cgi processing [00:04:19]execute_cgi json_proto POST (null) [00:04:19]execute_cgi path=json_proto method=POST [00:04:19]POST find Content-Length [00:04:19]Host: 192.168.0.101:8080 [00:04:19]Connection: keep-alive [00:04:19]Content-Length: 113 [00:04:19]Accept: application/json, text/plain, */* [00:04:19]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [00:04:19]Content-Type: application/json [00:04:19]Origin: http://192.168.0.101:8080 [00:04:19]Referer: http://192.168.0.101:8080/testengine [00:04:19]Accept-Encoding: gzip, deflate [00:04:19]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [00:04:19] [00:04:19]POST finish read [00:04:19]Found Content-Length = 113 [00:04:19]post body = {"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699383840"}}} [00:04:19]execute_script... [00:04:19]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"set_value","params":{"name":"config.timestamp","value":"1699383840"}}} [00:04:19]POST & json_proto [00:04:19]process_json_proto [00:04:19]json parsed OK: [00:04:19]protocol is kg_v1.0 [00:04:19]action value=set_value [00:04:19]process_action set_value [00:04:19]cmd_set_value [00:04:19]SetValue [00:04:19]group config [00:04:19]SetConfigValue timestamp=1699383840 [00:04:19]SettingCheckAndSetValue timestamp=1699383840 [00:04:19]store_timestamp [00:04:19]MH_GetDate [00:04:19]Write to MH i2c: F0 00 00 19 00 08 [00:04:19]Write i2c OK [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F0 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F0 09 00 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F0 09 00 19 00 00 03 01 00 00 00 00 00 00 15 [00:04:19]GetLastDocTimeStamp 0 [00:04:19]cur date 259 [00:04:19]tm 1699383840 [00:04:19]tm ok - set date [00:04:19]MH_SetDate [00:04:19]Write to MH i2c: F1 04 00 1A 00 20 8A 4A 65 67 [00:04:19]Write i2c OK [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F1 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F1 01 00 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: F1 01 00 1A 00 00 0B [19:04:00]SetValue res=0 [19:04:00]process_action set_value done [19:04:00]no requested_data - finishing processing [19:04:00]process_action_free set_value [19:04:00]json_value_free [19:04:00]json_value_free done [19:04:00]process_json_proto returns [19:04:00]Send response to host [19:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:04:00]free response buf [19:04:00]execute_script done [19:04:00]execute_script returns [19:04:00]free content buf [19:04:00]Sock 9.Close socket [19:04:00]Sock 9.Thread stoped [19:04:02]No OFD sender enable setting [19:04:07]int [19:04:07]Write to MH i2c: 01 00 00 1B 00 1B [19:04:07]*** FLAG_PRN_PAP1 reset [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 1B 00 00 00 00 00 00 FF 0F 30 [19:04:07]state=0 [19:04:07]int [19:04:07]Write to MH i2c: 01 00 00 1C 00 1C [19:04:07]*** FLAG_PRN_PAP1 set [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 1C 00 00 01 00 00 00 FF 0F 32 [19:04:07]state=0 [19:04:07]No paper [19:04:07]No OFD sender enable setting [19:04:08]int [19:04:08]Write to MH i2c: 01 00 00 1D 00 1D [19:04:08]*** FLAG_PRN_PAP1 reset [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [19:04:08]state=0 [19:04:08]int [19:04:08]Write to MH i2c: 01 00 00 1E 00 1E [19:04:08]*** FLAG_PRN_PAP1 set [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 1E 00 00 01 00 00 00 FF 0F 34 [19:04:08]state=0 [19:04:08]No paper [19:04:08]int [19:04:08]Write to MH i2c: 01 00 00 1F 00 1F [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 [19:04:08]MH_I2C_Read... [19:04:08]*** FLAG_PRN_PAP1 reset [19:04:08]*** FLAG_PRN_PAP1 set [19:04:08]Read from MH i2c: 01 07 00 1F 00 00 01 00 00 00 FF 0F 35 [19:04:08]state=0 [19:04:08]No paper [19:04:12]No OFD sender enable setting [19:04:13]accept exits with 8 [19:04:13]New connection [19:04:13]New thread 3067059556 created [19:04:13]Thread 3066916196 joined [19:04:13]Waiting for new connection... [19:04:13] Sock 8.Parse request [19:04:13]Sock 8.Check first char [19:04:13]Sock 8.First char is OK [19:04:13]request: POST /json_proto HTTP/1.1 [19:04:13]Method: POST [19:04:13]URL: /json_proto [19:04:13]Method is POST - this is cgi request [19:04:13]url: /json_proto [19:04:13]query_string will be loaded in cgi processing [19:04:13]execute_cgi json_proto POST (null) [19:04:13]execute_cgi path=json_proto method=POST [19:04:13]POST find Content-Length [19:04:13]Host: 192.168.0.101:8080 [19:04:13]Connection: keep-alive [19:04:13]Content-Length: 296 [19:04:13]Accept: application/json, text/plain, */* [19:04:13]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [19:04:13]Content-Type: application/json [19:04:13]Origin: http://192.168.0.101:8080 [19:04:13]Referer: http://192.168.0.101:8080/testengine [19:04:13]Accept-Encoding: gzip, deflate [19:04:13]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [19:04:13] [19:04:13]POST finish read [19:04:13]Found Content-Length = 296 [19:04:13]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:13]execute_script... [19:04:13]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:13]POST & json_proto [19:04:13]process_json_proto [19:04:13]json parsed OK: [19:04:13]protocol is kg_v1.0 [19:04:13]action value=print_text [19:04:13]process_action print_text [19:04:13]cmd_print_text [19:04:13]ExternCall_PrintAddStr [19:04:13]wPrintStart [19:04:13]Write to MH i2c: 01 00 00 20 00 20 [19:04:13]Write i2c OK [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: 01 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: 01 07 00 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: 01 07 00 20 00 00 01 00 00 00 FF 0F 36 [19:04:13]RasterBufferAndPrint [19:04:13]line В тот год осенняя погода [19:04:13]line Стояла долго на дворе, [19:04:13]line Зимы ждала, ждала природа. [19:04:13]line Снег выпал только в январе [19:04:13]line На третье в ночь... [19:04:13]written 0, free lines is 4095 [19:04:13]Error from MH - 05 [19:04:13]process_action_free print_text [19:04:13]json_value_free [19:04:13]json_value_free done [19:04:13]process_json_proto returns [19:04:13]Send response to host [19:04:13]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [19:04:13]free response buf [19:04:13]execute_script done [19:04:13]execute_script returns [19:04:13]free content buf [19:04:13]Sock 8.Close socket [19:04:13]Sock 8.Thread stoped [19:04:15]int [19:04:15]Write to MH i2c: 01 00 00 23 00 23 [19:04:15]*** FLAG_PRN_PAP1 reset [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 23 00 00 00 00 00 00 FF 0F 38 [19:04:15]state=0 [19:04:15]int [19:04:15]Write to MH i2c: 01 00 00 24 00 24 [19:04:15]*** FLAG_PRN_PAP1 set [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 24 00 00 01 00 00 00 FF 0F 3A [19:04:15]state=0 [19:04:15]No paper [19:04:16]int [19:04:16]Write to MH i2c: 01 00 00 25 00 25 [19:04:16]*** FLAG_PRN_PAP1 reset [19:04:16]Write i2c OK [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 07 00 [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 07 00 25 00 00 00 00 00 00 FF 0F 3A [19:04:16]state=0 [19:04:16]int [19:04:16]Write to MH i2c: 01 00 00 26 00 26 [19:04:16]*** FLAG_PRN_PAP1 set [19:04:16]Write i2c OK [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 07 00 [19:04:16]MH_I2C_Read... [19:04:16]Read from MH i2c: 01 07 00 26 00 00 01 00 00 00 FF 0F 3C [19:04:16]state=0 [19:04:16]No paper [19:04:17]No OFD sender enable setting [19:04:18]int [19:04:18]Write to MH i2c: 01 00 00 27 00 27 [19:04:18]*** FLAG_PRN_PAP1 reset [19:04:18]Write i2c OK [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: 01 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: 01 07 00 [19:04:18]MH_I2C_Read... [19:04:18]Read from MH i2c: 01 07 00 27 00 00 00 00 00 00 FF 0F 3C [19:04:18]state=0 [19:04:20]accept exits with 9 [19:04:20]New connection [19:04:20]New thread 3066916196 created [19:04:20]Thread 3067059556 joined [19:04:20]Waiting for new connection... [19:04:20] Sock 9.Parse request [19:04:20]Sock 9.Check first char [19:04:20]Sock 9.First char is OK [19:04:20]request: POST /json_proto HTTP/1.1 [19:04:20]Method: POST [19:04:20]URL: /json_proto [19:04:20]Method is POST - this is cgi request [19:04:20]url: /json_proto [19:04:20]query_string will be loaded in cgi processing [19:04:20]execute_cgi json_proto POST (null) [19:04:20]execute_cgi path=json_proto method=POST [19:04:20]POST find Content-Length [19:04:20]Host: 192.168.0.101:8080 [19:04:20]Connection: keep-alive [19:04:20]Content-Length: 296 [19:04:20]Accept: application/json, text/plain, */* [19:04:20]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [19:04:20]Content-Type: application/json [19:04:20]Origin: http://192.168.0.101:8080 [19:04:20]Referer: http://192.168.0.101:8080/testengine [19:04:20]Accept-Encoding: gzip, deflate [19:04:20]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [19:04:20] [19:04:20]POST finish read [19:04:20]Found Content-Length = 296 [19:04:20]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:20]execute_script... [19:04:20]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:20]POST & json_proto [19:04:20]process_json_proto [19:04:20]json parsed OK: [19:04:20]protocol is kg_v1.0 [19:04:20]action value=print_text [19:04:20]process_action print_text [19:04:20]cmd_print_text [19:04:20]ExternCall_PrintAddStr [19:04:20]wPrintStart [19:04:20]Write to MH i2c: 01 00 00 28 00 28 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 28 00 00 00 00 00 00 FF 0F 3D [19:04:20]RasterBufferAndPrint [19:04:20]line В тот год осенняя погода [19:04:20]line Стояла долго на дворе, [19:04:20]line Зимы ждала, ждала природа. [19:04:20]line Снег выпал только в январе [19:04:20]line На третье в ночь... [19:04:20]written 0, free lines is 4095 [19:04:20]Write to MH i2c: 01 00 00 2F 00 2F [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: 01 07 00 2F 00 00 00 00 00 00 6B 0F B0 [19:04:20]RasterBufferAndPrint [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]line [19:04:20]written 0, free lines is 3948 [19:04:20]MH_Cut [19:04:20]Write to MH i2c: D1 01 00 36 00 01 08 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 01 00 [19:04:20]MH_I2C_Read... [19:04:20]Read from MH i2c: D1 01 00 36 00 00 07 [19:04:20]Write to MH i2c: 01 00 00 37 00 37 [19:04:20]Write i2c OK [19:04:20]MH_I2C_Read... [19:04:20]*** Cut start [19:04:20]*** Partial cut [19:04:20]*** CUTSNS_PIN = 1 [19:04:20]*** CUTSNS_PIN = 0 [19:04:20]*** Brake cut motor [19:04:21]Read from MH i2c: 01 [19:04:21]MH_I2C_Read... [19:04:21]*** Stop cut motor [19:04:21]*** Cut end [19:04:21]Read from MH i2c: 01 07 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 37 00 00 00 00 00 00 FF 0F 4C [19:04:21]process_action print_text done [19:04:21]no requested_data - finishing processing [19:04:21]process_action_free print_text [19:04:21]json_value_free [19:04:21]json_value_free done [19:04:21]process_json_proto returns [19:04:21]Send response to host [19:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:04:21]free response buf [19:04:21]execute_script done [19:04:21]execute_script returns [19:04:21]free content buf [19:04:21]Sock 9.Close socket [19:04:21]Sock 9.Thread stoped [19:04:21]accept exits with 8 [19:04:21]New connection [19:04:21]New thread 3067059556 created [19:04:21]Thread 3066916196 joined [19:04:21]Waiting for new connection... [19:04:21] Sock 8.Parse request [19:04:21]Sock 8.Check first char [19:04:21]Sock 8.First char is OK [19:04:21]request: POST /json_proto HTTP/1.1 [19:04:21]Method: POST [19:04:21]URL: /json_proto [19:04:21]Method is POST - this is cgi request [19:04:21]url: /json_proto [19:04:21]query_string will be loaded in cgi processing [19:04:21]execute_cgi json_proto POST (null) [19:04:21]execute_cgi path=json_proto method=POST [19:04:21]POST find Content-Length [19:04:21]Host: 192.168.0.101:8080 [19:04:21]Connection: keep-alive [19:04:21]Content-Length: 296 [19:04:21]Accept: application/json, text/plain, */* [19:04:21]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76 [19:04:21]Content-Type: application/json [19:04:21]Origin: http://192.168.0.101:8080 [19:04:21]Referer: http://192.168.0.101:8080/testengine [19:04:21]Accept-Encoding: gzip, deflate [19:04:21]Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,ru;q=0.7 [19:04:21] [19:04:21]POST finish read [19:04:21]Found Content-Length = 296 [19:04:21]post body = {"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:21]execute_script... [19:04:21]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"print_text","params":{"text":"В тот год осенняя погода\nСтояла долго на дворе,\nЗимы ждала, ждала природа.\nСнег выпал только в январе\nНа третье в ночь..."}}} [19:04:21]POST & json_proto [19:04:21]process_json_proto [19:04:21]json parsed OK: [19:04:21]protocol is kg_v1.0 [19:04:21]action value=print_text [19:04:21]process_action print_text [19:04:21]cmd_print_text [19:04:21]ExternCall_PrintAddStr [19:04:21]wPrintStart [19:04:21]Write to MH i2c: 01 00 00 38 00 38 [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 38 00 00 00 00 00 00 FF 0F 4D [19:04:21]RasterBufferAndPrint [19:04:21]line В тот год осенняя погода [19:04:21]line Стояла долго на дворе, [19:04:21]line Зимы ждала, ждала природа. [19:04:21]line Снег выпал только в январе [19:04:21]line На третье в ночь... [19:04:21]written 0, free lines is 4095 [19:04:21]Write to MH i2c: 01 00 00 3F 00 3F [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: 01 07 00 3F 00 00 00 00 00 00 6B 0F C0 [19:04:21]RasterBufferAndPrint [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]line [19:04:21]written 0, free lines is 3947 [19:04:21]MH_Cut [19:04:21]Write to MH i2c: D1 01 00 46 00 01 18 [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 01 00 [19:04:21]MH_I2C_Read... [19:04:21]Read from MH i2c: D1 01 00 46 00 00 17 [19:04:21]Write to MH i2c: 01 00 00 47 00 47 [19:04:21]Write i2c OK [19:04:21]MH_I2C_Read... [19:04:21]*** Cut start [19:04:21]*** Partial cut [19:04:21]*** CUTSNS_PIN = 1 [19:04:22]*** CUTSNS_PIN = 0 [19:04:22]*** Brake cut motor [19:04:22]Read from MH i2c: 01 [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 07 00 [19:04:22]MH_I2C_Read... [19:04:22]*** Stop cut motor [19:04:22]*** Cut end [19:04:22]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FF 0F 5C [19:04:22]process_action print_text done [19:04:22]no requested_data - finishing processing [19:04:22]process_action_free print_text [19:04:22]json_value_free [19:04:22]json_value_free done [19:04:22]process_json_proto returns [19:04:22]Send response to host [19:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:04:22]free response buf [19:04:22]execute_script done [19:04:22]execute_script returns [19:04:22]free content buf [19:04:22]Sock 8.Close socket [19:04:22]Sock 8.Thread stoped [19:04:22]int [19:04:22]Write to MH i2c: 01 00 00 48 00 48 [19:04:22]Write i2c OK [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 07 00 [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 FF 0F 5D [19:04:22]state=0 [19:04:22]int [19:04:22]Write to MH i2c: 01 00 00 49 00 49 [19:04:22]*** FLAG_PRN_PAP1 set [19:04:22]*** FLAG_PRN_PAP1 reset [19:04:22]*** FLAG_PRN_PAP1 set [19:04:22]Write i2c OK [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 07 00 [19:04:22]MH_I2C_Read... [19:04:22]Read from MH i2c: 01 07 00 49 00 00 01 00 00 00 FF 0F 5F [19:04:22]state=0 [19:04:22]No paper [19:04:22]No OFD sender enable setting [19:04:27]No OFD sender enable setting [19:04:32]No OFD sender enable setting