- Blind mode tutorial
lichess.org
Donate

Playing online with a DGT Electronic Board using the Board API

I had a quick look into the FEN string that the plugin detected at start time. It definitely doesn't represent the chess start position. It reminds to me the final position of the last game I played with the plugin.
Maybe this is a clue to investigate with?

By the way, I keep calling this wonderful DGT enabler feature as "plugin". Does it have a name?

Thank you @andrescavallin for your fantastic work

I had a quick look into the FEN string that the plugin detected at start time. It definitely doesn't represent the chess start position. It reminds to me the final position of the last game I played with the plugin. Maybe this is a clue to investigate with? By the way, I keep calling this wonderful DGT enabler feature as "plugin". Does it have a name? Thank you @andrescavallin for your fantastic work

Hello @Bracco , yes I think "plugin" is a good name.

The string received from DGT LiveChess certainly looks like the last position. But it says state "INACTIVE" so I wonder if that is the reason. Also notice that the port is not shown. And one last thing, it says the board is flipped.... I have not tested with flipped boards, I think it will work but I have not tested. Anyway, what I think happened is that the board was not properly connected at that time you started the "plugin" jeje.

Make sure LiveChess shows the board in the starting position before starting a new game, and that moves are being detected. Then reload or wait 5 seconds.

This is your string

[{"serialnr":"3603","source":null,"state":"INACTIVE","battery":null,"comment":null,"board":"r3k3/p1p1n1b1/2Pp1n2/4p1B1/4P3/5p2/PP1Q1P2/2RR1K1r","flipped":true,"clock":null}]

A string when the board is detected looks like

[{"serialnr":"23946","source":"COM15","state":"ACTIVE","battery":"100%","comment":null,"board":"rnbqkb1r/pppp1ppp/5n2/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R","flipped":false,"clock":null}]

I added this validation to support multiple active games. That was the main reason for forcing the position on the board to match an ongoing game. This way the board will attach to the correct game. And I found that adding the validation has helped me detect invalid setups, like misplaced pieces, so I think the validation is an imrpovement.

But now we will see this issue for when the board is connected but not yet "ACTIVE". Just make sure LiveChess is detecting the right position on the board before playing. Try moving a piece and see if LiveChess shows that.

Hello @Bracco , yes I think "plugin" is a good name. The string received from DGT LiveChess certainly looks like the last position. But it says state "INACTIVE" so I wonder if that is the reason. Also notice that the port is not shown. And one last thing, it says the board is flipped.... I have not tested with flipped boards, I think it will work but I have not tested. Anyway, what I think happened is that the board was not properly connected at that time you started the "plugin" jeje. Make sure LiveChess shows the board in the starting position before starting a new game, and that moves are being detected. Then reload or wait 5 seconds. This is your string [{"serialnr":"3603","source":null,"state":"INACTIVE","battery":null,"comment":null,"board":"r3k3/p1p1n1b1/2Pp1n2/4p1B1/4P3/5p2/PP1Q1P2/2RR1K1r","flipped":true,"clock":null}] A string when the board is detected looks like [{"serialnr":"23946","source":"COM15","state":"ACTIVE","battery":"100%","comment":null,"board":"rnbqkb1r/pppp1ppp/5n2/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R","flipped":false,"clock":null}] I added this validation to support multiple active games. That was the main reason for forcing the position on the board to match an ongoing game. This way the board will attach to the correct game. And I found that adding the validation has helped me detect invalid setups, like misplaced pieces, so I think the validation is an imrpovement. But now we will see this issue for when the board is connected but not yet "ACTIVE". Just make sure LiveChess is detecting the right position on the board before playing. Try moving a piece and see if LiveChess shows that.

This topic has been archived and can no longer be replied to.