[solved] locID length change from 2 Bytes to 1 Byte

Moderator: Moderators

[solved] locID length change from 2 Bytes to 1 Byte

Postby rawafn » 19.03.2013, 15:09

Hello Rocrail-Community,

I'm working with ESU Lokpilots with Railcom to know the position of my loks. As GBM I'm using the GBM16XN from Bluecher Elektronik with a Loconet Interface and a LoconetUSB Buffer to get the feedback of the locId. In general the system works well inside Rocrail, so that I see the location of the different loks inside the corresponding Blocks. The locId is send as two Byte value. Partly I got the problem that an additional status bit is set in Byte2, so that the address will not fit.
e.g. LocID = 2 => locId Feedback is 4098
In this case the locId is not set in the block correctly. Do I have a chance to define the locId only as 1 Byte?

Thank you for your support

Regards

Ralf
rawafn
 

Postby rjversluis » 19.03.2013, 15:25

Hi Ralf,

If you are asking for support for Rocrail functionallity, auto mode, switches, signals ... you have to post your rocrail.ini plan file and the trace file. No one can help you if you don't provide this informations.


In your case you should provide a byte level trace of the incoming packets.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rawafn » 19.03.2013, 16:07

Hello Rob,

attached you will find the byte level trace and also my ini-file.
As you could see the following entry is this case:
--------------------------------------------------------- |----------------|
00000000: B2 37 50 2A |.7P* |
20130319.155709.104 r9999I lnreader OLocoNet 0537 sensor=111 value=1
20130319.155709.742 r9999c lnreader lnmon 0773 Transponder present in BDL 7 zone H decoder address 4098
20130319.155709.742 r9999B lnreader OLocoNet 1030 *** read dump:
20130319.155709.742 r0000B lnreader OLocoNet *trace dump( 0x09E05E28: length=6 )
offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|

=> The decoder address should be 2 and not 4098.

Regards

Ralf
Last edited by rawafn on 20.12.2013, 19:07, edited 1 time in total.
Control-SW: Rocrail
Control Station: Lenz LZV100
Output Control: Lenz LS150
GBM: GBM16XN with Loconet Interface - Bluecher Elektronik
Loconet Interface: LoconetBufferUSB
Controller: Roco Multimaus 2
Mac Mini with OS X Mavericks
rawafn
 

Postby rjversluis » 19.03.2013, 16:54

Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rawafn » 20.03.2013, 08:36

Hi Rob,

thank you for your fast response.
When do you think is the version 4880 also available for OS X Mountain Lion?

Regards

Ralf
rawafn
 

Postby rjversluis » 20.03.2013, 08:49

Hi Ralf,

this evening if I do not forget it.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rawafn » 20.03.2013, 15:40

Hi Rob,

I tried the new version 4882 on my mac mini. But it won't work. Now all loks were not shown in the blocks. Also the loks with the correct short LocId.

Attached I will send you a new Byte Trace File.

Regards

Ralf
You do not have the required permissions to view the files attached to this post.
rawafn
 

Postby rjversluis » 20.03.2013, 16:13

Hi Ralf,

I only added this line:

Code: Select all
  locoaddr &= 0x3FFF; /* Filter only the 14 bit address */


Which address should be reported here?
Code: Select all
20130320.153024.430 r0000B lnreader OLocoNet *trace dump( 0x0629DE28: length=6 )
    offset:   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |ASCII...........|
    --------------------------------------------------------- |----------------|
    00000000: D0 20 61 20 0A 44                               |. a .D          |
20130320.153024.430 r9999c lnreader OLocoNet 0626 BDL[7] RX[98] zone [] reports [present] of decoder address [4106]
20130320.153024.430 r9999E lnreader OBlock   0559 Loc identifier does not match! block=Gleis102 locident= ident=4106
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rjversluis » 20.03.2013, 16:28

Hi Ralf,

I reverted my last change because Loconet data bytes are 7 bits:
locoaddr = msg[3]*128 + msg[4]
And DCC Loco addresses are 14 which fits in 2 x 7 bits.
Ask your GBM manufacturer why the high bit is set.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rawafn » 20.03.2013, 16:35

Hi Rob,

attached will find a screenshot of the message from the server window, where you will see the message "Loc Identifier does not match! ....".
In the old version I didn't have the red messages.
From my understanding the your change should be OK, but I'm not no what is going on behind the SW.

If you need more information please let me know.

Regards

Ralf
You do not have the required permissions to view the files attached to this post.
Control-SW: Rocrail
Control Station: Lenz LZV100
Output Control: Lenz LS150
GBM: GBM16XN with Loconet Interface - Bluecher Elektronik
Loconet Interface: LoconetBufferUSB
Controller: Roco Multimaus 2
Mac Mini with OS X Mavericks
rawafn
 

Postby rjversluis » 20.03.2013, 16:45

Hi Ralf,

did you set the http://wiki.rocrail.net/doku.php?id=loc ... identifier fields?

But as I wrote before: Both 7 bit bytes are address data only as far as I know. (Its not part of the Loconet Personal Edition)

http://wiki.rocrail.net/doku.php?id=loc ... e_opcodes2

If I ask Uhlenbrock for info about their Loconet packets they answer with the hint to get a Digitrax license.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby rawafn » 20.03.2013, 16:52

Hi Rob,

I will go back to Bluecher Elektronik to check this topic.
As soon as I have newer information I will inform you.

Thank you for your support.

Regards

Ralf
Control-SW: Rocrail
Control Station: Lenz LZV100
Output Control: Lenz LS150
GBM: GBM16XN with Loconet Interface - Bluecher Elektronik
Loconet Interface: LoconetBufferUSB
Controller: Roco Multimaus 2
Mac Mini with OS X Mavericks
rawafn
 

Postby rawafn » 22.03.2013, 21:41

Hi Rob,

I've got an feedback from Bluecher Elektronik. They use the Bit 13 [16:1] as direction bit. So that's the reason why I saw partly the right locId and if I rotate the lok I have the "wrong" locId visible.
In the configuration of the GBM16XN I could disable the transmittion of the direction bit, so that I have always the correct licid.

Thank you for your support.

Regards

Ralf
Control-SW: Rocrail
Control Station: Lenz LZV100
Output Control: Lenz LS150
GBM: GBM16XN with Loconet Interface - Bluecher Elektronik
Loconet Interface: LoconetBufferUSB
Controller: Roco Multimaus 2
Mac Mini with OS X Mavericks
rawafn
 


Return to Loconet