PDA

View Full Version : Question for the new transport classes



Manser
October 14th, 2008, 06:58 AM
I could not figure out how I should manage this problem.

I set up a serial device with the new transport class:
It's a yamaha DME24 DSP and I poll all controllers and Value Meters.
This give me an enormous amount of data traffic and it could happen that
after a while running this device the Queue will be full:

So I would like to clear the hole Queued Massages then:


OnQueueFull = function(self)
--helper.ClearQueue(self)
--print("clear wird qeued")
--helper.Reset(self)
--print("clear wird qeued")
end,

But how can I do that?

An other possible action could be to reset the hole device:

Thanks in advance

Ron
October 14th, 2008, 07:05 AM
self.Transport:ClearQueue()

should do it.

Manser
October 16th, 2008, 06:47 AM
Thanks Ron

But it seems not to solve my problem.

If I unplug this serial device for a while, until the Log appears "OnQueueFull" and
then reconnect the device it does not restart sending messages.

I have then only the message OnQueueFull after about 3 sec. which is about the time it have to send messages until the Queue is full again.

Is there anything else which I have to clear in the device?

Ron
October 16th, 2008, 07:05 AM
Well first off the queue filling up like that is an indication of trouble. You should find that first.

Second you can increase the queue size if for some reason you need a larger queue for some reason.