You can't fix speed or course via computed attributed. To fix the issue I need following:
To add missing CAN parameters you will probably have to go with paid support option.
After a lot of digging and lots of back and forth with BCE support.
Simple BCE device protocol - https://docs.google.com/document/d/1vZsO1Q60bpDQTbhomBW3uxYBTzU2uJq29HP2CvWFuSg/edit?usp=sharing
Data structures - DT7 DT9 DT6 Version3 - https://docs.google.com/document/d/1TZCsx4zYiEj6JWrDRXx-tK3We_9YaCQzyWoF-gmO8lk/edit?usp=sharing
The units are not clearly explained "Universal data type (Data Type 10) under construction" but:
⋅⋅* from a comment in the "simple bce device protocol" file is an example for calculating it "U82 Course 0x592 = 178 degree"
⋅⋅* from my testing the speed value decoded by traccar appears to be in Km and not in Kn see logs attached for a Mercedes Sprinter Van max speed 170Kmph
2018-04-27 09:34:55 DEBUG: [8A98B5A5: 5080 < 213.233.109.213] HEX: 789622d1cb1303000002a5b265770e4a9babc0ffd700c044000e9ac741964333427d1c441e0176e39943f18294340d001d0ae20001430a698f003c007d000000000031c84f0000000028831c017f00000000000000000000000000000000000009000000000000000000000000000000000065870e4a9babc0ffd700c044004e9bc7411f4333427e1c441e0171608b42f18284341b00100ae20001430a698f003c007e00000000003178500000000028831c017f00000000000000000000000000000000000002000000000000000000000000000000000065d70e4a9babc0ffd700c04400b7a1c741b4403342851c431f0143a9c643f18273341b00f109e20001430a698f003c008600000000003180550000000028831c01810000000000000000000000000000000000000a010000000000000000000000000002000065170f4a9babc0ffd700c044008ea7c741d13e33428b1c401e01c7c29843f18273340d00410ae20001430a698f003f008b00000000003180580000000028831c018200000000000000000000000000000000000008000000000000000000000000000001000065670f4a9babc0ffd700c044004dafc741783c3342901c411d014093b043f18294341b008e0ae20001430a698f003f0090000000000031405c00000000f0831c01830000000000000000000000000000000000000900000000000000000000000000000100008e
2018-04-27 09:34:55 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb130300020019322f
2018-04-27 09:34:55 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:34:55 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:34:55 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:33:52, lat: 44.81555, lon: 24.95083, speed: 126.0, course: 68.0
2018-04-27 09:34:55 WARN: Empty address
2018-04-27 09:34:55 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:02, lat: 44.81319, lon: 24.95396, speed: 133.0, course: 67.0
2018-04-27 09:34:55 WARN: Empty address
2018-04-27 09:34:55 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:33:50, lat: 44.81600, lon: 24.95022, speed: 125.0, course: 68.0
2018-04-27 09:34:55 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:10, lat: 44.81134, lon: 24.95681, speed: 139.0, course: 64.0
2018-04-27 09:34:55 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:20, lat: 44.80905, lon: 24.96060, speed: 144.0, course: 65.0
2018-04-27 09:34:57 DEBUG: [8A98B5A5: 5080 < 213.233.109.213] HEX: 789622d1cb1303003401a53365b70f4a9babc0ffd700c04400f0b6c741e63933428f1c431c015468de43f18221341b007e0ae20001430a698f003f008d000000000031f85900000000f0831c018400000000000000000000000000000000000209000000000000000000000000000000030065f70f4a9babc0ffd700c0440069bcc741e73733427f1c431a01a9378343f1829c391b00a80be2000170056da7003e007c000000000031c04e00000000f0831c01810000000000000000000000000000000000060100000000000000000000000000000003006537104a9babc0ffd700c0440051c1c74129363342721c421801e4809543f18210341b00710ae2000170056da7003e0072000000000031c04800000000b8841c017e00000000000000000000000000000000000306000000000000000000000000000000030069
2018-04-27 09:34:57 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb1303000200193330
2018-04-27 09:34:57 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:34:57 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:34:57 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:34:57 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:46, lat: 44.80289, lon: 24.96939, speed: 114.0, course: 66.0
2018-04-27 09:34:57 WARN: Empty address
2018-04-27 09:34:57 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:38, lat: 44.80459, lon: 24.96700, speed: 127.0, course: 67.0
2018-04-27 09:34:57 WARN: Empty address
2018-04-27 09:34:57 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:34:30, lat: 44.80654, lon: 24.96432, speed: 143.0, course: 67.0
2018-04-27 09:34:57 WARN: Empty address
2018-04-27 09:37:04 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb1303000200193633
2018-04-27 09:37:04 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:04 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:04 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:04 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:36, lat: 44.78097, lon: 25.00172, speed: 141.0, course: 63.0
2018-04-27 09:37:04 WARN: Empty address
2018-04-27 09:37:04 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:02, lat: 44.78822, lon: 24.99060, speed: 107.0, course: 68.0
2018-04-27 09:37:04 WARN: Empty address
2018-04-27 09:37:04 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:04 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:22, lat: 44.78394, lon: 24.99652, speed: 127.0, course: 66.0
2018-04-27 09:37:04 WARN: Empty address
2018-04-27 09:37:04 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:12, lat: 44.78609, lon: 24.99335, speed: 122.0, course: 67.0
2018-04-27 09:37:04 WARN: Empty address
2018-04-27 09:37:04 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:26, lat: 44.78308, lon: 24.99791, speed: 132.0, course: 65.0
2018-04-27 09:37:05 DEBUG: [8A98B5A5: 5080 < 213.233.109.213] HEX: 789622d1cb130300ce00a53765f7134a9babc0ffd700c04400310cc841ad1d3342921c3c0b01de43dc43f18273341b00d10ae20001430a688f004b0091000000000030c05c00000000d8871c01860000000000000000000000000000000000000b00000000000000000000000000000100006527144a9babc0ffd700c04400b211c841941c3342921c3b0901534b7343f18263341b00a20ae20001430a31db003e0092000000000030b85c00000000d8871c018600000000000000000000000000000000000006000000000000000000000000000000000078
2018-04-27 09:37:05 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb1303000200193734
2018-04-27 09:37:06 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:06 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:46, lat: 44.77898, lon: 25.00595, speed: 146.0, course: 60.0
2018-04-27 09:37:06 WARN: Empty address
2018-04-27 09:37:06 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:37:06 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:36:52, lat: 44.77791, lon: 25.00864, speed: 146.0, course: 59.0
2018-04-27 09:37:06 WARN: Empty address
2018-04-27 09:39:11 DEBUG: [8A98B5A5: 5080 < 213.233.109.213] HEX: 789622d1cb1303000002a5ba6567164a9babc0ffd700c044002552c841d30e33428e1c39fa00235cc243f18263341b00260ae20001430a31db0038008f000000000030d05a00000000308a1c017e0000000000000000000000000000000000030700000000000000000000000000000103006597164a9babc0ffd700c04400ce57c841e10d3342921c39fa00aec08c43f18242341b00c60ae20001430a31db00380093000000000030985d00000000308a1c017e00000000000000000000000000000000000007000000000000000000000000000001000065e7164a9babc0ffd700c04400cc61c8416f0c3342981c37f7009f77bb43f18294341b00f209e20001430a31db00380099000000000030306100000000308a1c017f0000000000000000000000000000000000000900000000000000000000000000000100006537174a9babc0ffd700c044004f6cc841220b33429d1c35f200b629ec43f18263340d00880ae20001430a2fdb0035009e00000000002f586400000000f88a1c01800000000000000000000000000000000000000b00000000000000000000000000000000006557174a9babc0ffd700c04400ae70c841ab0a33429f1c34f000a1593043f18294341b000e0be20001430a2fdb0035009f00000000002f306500000000f88a1c018000000000000000000000000000000000000004000000000000000000000000000000000004
2018-04-27 09:39:11 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb1303000200193a37
2018-04-27 09:39:11 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:39:11 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:39:11 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:04, lat: 44.76448, lon: 25.04011, speed: 142.0, course: 57.0
2018-04-27 09:39:11 WARN: Empty address
2018-04-27 09:39:11 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:30, lat: 44.76087, lon: 25.05289, speed: 157.0, course: 53.0
2018-04-27 09:39:11 WARN: Empty address
2018-04-27 09:39:11 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:39:11 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:20, lat: 44.76214, lon: 25.04775, speed: 152.0, course: 55.0
2018-04-27 09:39:11 WARN: Empty address
2018-04-27 09:39:11 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:34, lat: 44.76042, lon: 25.05502, speed: 159.0, course: 52.0
2018-04-27 09:39:11 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:10, lat: 44.76355, lon: 25.04287, speed: 146.0, course: 57.0
2018-04-27 09:39:13 DEBUG: [8A98B5A5: 5080 < 213.233.109.213] HEX: 789622d1cb1303003401a53b65a7174a9babc0ffd700c04400b77bc841af093342991c33ef00853fda43f182ef331b00c20ae20001430a2fdb0035009800000000002f386100000000f88a1c018000000000000000000000000000000000000307000000000000000000000000000000030065f7174a9babc0ffd700c04400a486c841f00833429b1c31f0009093d643f182ff331b00c80ae20001430a2fdb0035009b00000000002f706200000000c08b1c017f0000000000000000000000000000000000000a00000000000000000000000000000000006517184a9babc0ffd700c04400158bc841af0833429c1c31f000d2722d43f18242341b00680ae20001430a2fdb0035009c00000000002f206300000000c08b1c017f000000000000000000000000000000000000040000000000000000000000000000000000f8
2018-04-27 09:39:13 DEBUG: [8A98B5A5: 5080 > 213.233.109.213] HEX: 789622d1cb1303000200193b38
2018-04-27 09:39:13 WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-04-27 09:39:13 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:58, lat: 44.75848, lon: 25.06791, speed: 156.0, course: 49.0
2018-04-27 09:39:13 WARN: Empty address
2018-04-27 09:39:13 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:44, lat: 44.75946, lon: 25.06041, speed: 153.0, course: 51.0
2018-04-27 09:39:13 INFO: [8A98B5A5] id: 866191038125688, time: 2018-04-27 09:38:54, lat: 44.75873, lon: 25.06574, speed: 155.0, course: 49.0
Many thanks to you Anton
I have checked latest code and both speed and course are decoded correctly.
Hi,
Yes, checked your code, in BceProtocolDecoder.java that was updated to correct the speed
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedByte()));
tananaev committed on 29 Mar
but i don't think it's included in the 3.16 relese 10-Mar-2018 hopefully i'll try to modify my 3.15 installation by unpacking the jar.
Just one more thing, you should double the value in the line
position.setCourse(buf.readUnsignedByte());
It was presented in the simple bce device protocol Ex. U8*2 Course 0x59*2 = 178 degree
Could you give me a time frame for the next release?
Probably within a month.
Hello Mr. Anton, we also use BCE devices, is BceProtocolDecoder.java updated in new version of traccar. We use Traccar 4.0 and have same issue like raul.
Thank you :)
Hello,
I believe everithing was fixed since version 3.6 course+speed.
Hello Mr. Raul, thank you for your quick reply.
We will check if any file from old version is existing because we updated from 3.15 to 4.0, or make a fresh installation. Regards
I was trying to find out the correct version I'm using, it's either 3.17 or 4.0.
Take a look at this if it helps
https://github.com/traccar/traccar/pull/3868
Hi Raul,
With version 4.3 works great except INPUT 5 - Ignition in State windows is showed like Input:32928 or Input:32936 or Input:33016 or other value.
Is there any chance to set it 1/0, or On/Off?
Thanks.
Use computed attributes.
Hi,
I have traccar 3.15 with about 13 teltonika devices. Everything works well. Now i wanted to add 2 BCE FM-500 Blue devices.
I have 2 problems:
I cannot set just for these devices computed attributes or something for speed? I want to mention that all devices are under same user account.
I also want to use CAN to get the real odometer and other parameters if possible like fuel/real speed/temps/etc, has anyone got it to work? What settings have to be made.
Please help