[Lcdproc] Possible Server Bug
Peter Marschall
peter@adpm.de
Sun Oct 14 17:14:01 2007
Hi Topher,
sorry for answering so late.
On Wednesday, 15. August 2007, Topher Fangio wrote:
> I have been writing a Ruby API which acts like a client and connects to
> the LCDd server.
> I am mostly done with the core of the functionality but I have run
> across a bug. I have
> actually solved this at the moment by sticking a nasty 0.1 second delay
> into my program.
>
> Here is the problem:
>
> My client connects and starts sending commands to LCDd. So far,
> everything has worked
> great. I started working on the interface for menus/menu items and it
> worked pretty well.
> Now, when I decided to code the "Ring" menu item, I started noticing
> some really random
> bugs. I had already added the "Checkbox" menu item and it worked fine.
> It seemed though,
> that I was not able to use both of them simultaneously. I could add both
> and I received
> "success" messages and the server appeared to be happy, but it was only
> adding one of
> the menu items and it was always garbled by the second addition. Example
> below:
>
> Add Check Box( id="boom", text = "boom" )
> Wait for success response from server
> Add Ring( id="test", text = "Testing" )
> Wait for success response from server
>
> The outcome of the previous was a check box with the text set to "Testing".
This is really weird.
Can you try to either
- reproduce it with another client (ideally with netcat
and manually keyed-in commands)
- sniffing the commands transferred from the net (using wireshark
or something similar)
I have recently given the lcdexec client a big overhaul to support
parameters, and heaving read your mail, I started with rings.
However I have never seen any problem with the ring code.
> Now, the other problem that I noticed is that with a "menu_add_item"
> command, I
> receive two (2) "success" responses from the server. I was under the
> impression that
> one command yielded one response. It appears that this is not the case.
> Is this working
> properly and just not documented or is this a bug?
Thanks for pointing it out to me.
A is in current CVS.
> Also, while I am mentioning this...is there an easy way to remove the
> space between characters
> for the LCD? I looked around for a while the other day and could not
> find it.
This is a feature of the hardware and cannot be changed by software.
BTW if you want your client announced on LCDproc's web site,
simply drop me a note.
Thanks for supporting CVS
Peter
--
Peter Marschall
peter@adpm.de