PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 BUG reporting and solved list
 Task declaration error with LK on Kobo FIXED
 New Topic  Topic Locked
Author Previous Topic Topic Next Topic  

FlyMM
Pulcino

Italy
9 Posts

Posted - 24/04/2016 :  22:44:10  Show Profile
Hello,
I’m using LK8000 v5.3p on Kobo Mini, connected with a physical serial line (@ 19200bps, lvttl tx,rx,gnd only) to LX Colibri-II.

When I declare a task I get a Task Declaration Error on LK8000 and I can see the task declared on Colibri-II is wrong.
If I connect a PNA (WinCE PNA type V2) to the same serial line to Colibri-II, configured exactly with the same files, same settings & same task of Kobo, then the task declaration is correct.

I did some investigations and I finally put a serial line analyzer in the middle to log all bytes exchanged during the two declarations, and compare it.

What I see each declaration start with LK8000 sending 0x16 (synch char) to Colibri, usually 3 times.
The 3rd time Colibri answer with 0x06 (ack), and then LK8000 send the declaration message, 352 bytes.

This is the declaration sent by LK8000 on PNA:

02 ca 00 00 00 4d 41 55 52 49 5a 49 4f 2e 4d 45 .....MAURIZIO.ME
4e 45 47 4f 54 54 4f 00 44 49 53 43 55 53 00 00 NEGOTTO.DISCUS..
00 00 00 00 47 2d 43 48 52 53 00 00 42 33 33 00 ....G-CHRS..B33.
07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 04 ................
10 18 04 10 00 01 01 03 01 01 01 02 00 00 00 00 ................
00 00 00 00 08 07 14 00 07 f9 68 00 09 b1 1f 00 ..........h.....
07 f9 68 00 08 07 14 00 00 00 00 00 00 00 00 00 ..h.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 29 f0 86 00 29 f8 13 00 2a 59 cc 00 ....)...)...*Y..
29 f8 13 00 29 f0 86 00 00 00 00 00 00 00 00 00 )...)...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 43 61 6c 63 69 6e 61 74 00 47 61 76 69 ...Calcinat.Gavi
72 61 74 65 00 50 61 73 73 6f 20 54 6f 00 47 61 rate.Passo To.Ga
76 69 72 61 74 65 00 43 61 6c 63 69 6e 61 74 00 virate.Calcinat.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ae ................

Colibri send a 0x06 (ack)

LK8000 send another short message:
02 d0 43 4c 55 42 00 00 00 00 00 af

Colibri send a 0x06 (ack)

LK8000 send 3 times 0x16 (Synch), to each one Colibri answer 0x06 (Ack).

LK8000 show Task Declarated! And I can see the new task in Colibri-II.

When I make the same declaration with LK8000 on Kobo, initially is identical:

LK8000 send 0x16 (synch char) to Colibri, usually 3 times.

The 3rd time Colibri answer with 0x06 (ack), and then LK8000 send the declaration message, 352 bytes.

This is the declaration sent by LK8000 on Kobo:

02 ca 00 00 00 4d 41 55 52 49 5a 49 4f 2e 4d 45 .....MAURIZIO.ME
4e 45 47 4f 54 54 4f 00 44 49 53 43 55 53 00 00 NEGOTTO.DISCUS..
00 00 00 00 47 2d 43 48 52 53 00 00 42 33 33 00 ....G-CHRS..B33.
07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 04 ................
10 18 04 10 00 01 01 03 01 01 01 02 00 00 00 00 ................
00 00 00 00 08 07 14 00 07 f9 68 00 09 b1 1f 00 ..........h.....
07 f9 68 00 08 07 14 00 00 00 00 00 00 00 00 00 ..h.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 29 f0 86 00 29 f8 13 00 2a 59 cc 00 ....)...)...*Y..
29 f8 13 00 29 f0 86 00 00 00 00 00 00 00 00 00 )...)...........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 43 61 6c 63 69 6e 61 74 00 47 61 76 69 ...Calcinat.Gavi
72 61 74 65 00 50 61 73 73 6f 20 54 6f 00 47 61 rate.Passo To.Ga
76 69 72 61 74 65 00 43 61 6c 63 69 6e 61 74 00 virate.Calcinat.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

But this time Colibri send back a 0x15 (Nack)

LK8000 show the error message “Task Declaration Error, the device do not aswer”, send some 0x16 (synch) answered by 0x6 (Ack) from Colibri.

If I take a look to the Task declared in Colibri-II, I can see it’s wrong.

If you compare the two declaration you can see all bytes are indentical except the last one. In the one sent by PNA is “ae” in the ona sent by Kobo is “00”.
I suppose this last byte is a checksum, "ae" is good and Colibri answer 0x06 (ACK). “00” is wrong and Colibri answer 0x15 (NACK).

Apparently there is a checksum calculation error, or checksum is not calculated, or checksum is written in a wrong position out of transmission buffer.
Could you please check it?

LK8000 settings for this serial port are:

Kobo:
DeviceB="LX Colibri/Nano"
Port2Name="/dev/ttymxc0"
Speed2Index=4

PNA:
DeviceB="LX Colibri/Nano"
Port2Name="COM8"
Speed2Index=4l

If you need I can send by email the two complete log files, with tx/rx bytes in hex & ascii and timestamps in milliseconds.
If you need any other information please ask me.

Thank you!

Best Regards
Mau

Edited by - Coolwind on 30/04/2016 14:19:03

Alebu
Falchetto

Italy
105 Posts

Posted - 28/04/2016 :  11:59:49  Show Profile
Hi FlyMM,
can you tell me how to monitor the communications from/to LK?
I have declaration issues from LK8000, on Vertica V2, to an Air Glide Display S.

Thanks.

Alebu
Go to Top of Page

FlyMM
Pulcino

Italy
9 Posts

Posted - 30/04/2016 :  12:31:01  Show Profile
quote:
Originally posted by Alebu

Hi FlyMM,
can you tell me how to monitor the communications from/to LK?
I have declaration issues from LK8000, on Vertica V2, to an Air Glide Display S.

Thanks.



Hi Alebu, in order to monitor a bi-directional serial communication (TX/RX) you need to put in the middle a serial protocol analyzer.

A simple analizer for ASCII-only communications can be realized by using two normal serial ports in RX only. Basically need to access to the two serial wires connecting the two device. In parallel to one you attach the RX pin of 1st serial receiver, in parallel to the other one you attach the RX pin of the 2nd serial received. You open to terminals in your PC (eg. Putty) and you can see in parallel the message exchange between the two devices.

WARNING: be carefull with voltage levels! PC's COMs works at RS232 levels (max +/-12V), V2 use LVTTL (0--3.3V max), probably the other intruments you connect works at RS232 level so you already have a serial level transceiver in the middle. If so connect PC's COMs on the RS232 side of your lines. If not (eg. both V2 and the other instruments works at LVTTL level) then you must put level shifter between your serial lines and the 2 PC COMs used as serial monitors.

Bye
Go to Top of Page

Coolwind
Moderator

Italy
8957 Posts

Posted - 30/04/2016 :  14:20:03  Show Profile  Visit Coolwind's Homepage
This issue is fixed in next 5.3R version, confirmed. NOT in 5.3q.

BIG THANKS TO MAURIZIO MENEGOTTO!

Edited by - Coolwind on 30/04/2016 15:12:53
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.13 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy