You must decode the Message before you consume it in your IoHandler. Do you
have an ProtocolCodecFilter with an En-/Decoder for your protocol?

On Sun, Nov 25, 2012 at 5:40 PM, hu yueqi <[email protected]> wrote:

> Hi,
> I'm new here and haven't done a deep digging. So may be it is a problem
> already answered. Anyway, Thanks in advance.
> I using MINA to connect serial port device. I can send msg to my device and
> my device should give me a response. But handle messageReceived seems never
> be reached.
> Well, the funny thing is that, if I use log filter, then log output does
> show message received. Here it is:
> Nov 25, 2012 11:37:10 AM org.apache.mina.filter.logging.LoggingFilter log
> INFO: RECEIVED: HeapBuffer[pos=0 lim=18 cap=18: 61 69 74 69 6E 67 20 66 6F
> 72 20 6C 65 64 20 69...].
> What's it heapbuffer is exactly what I'm looking for, but how can I get
> this msg in my code?
>
> Best
> Yueqi
>

Reply via email to