gberdugo
unread,Oct 22, 2010, 3:29:41 PM10/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Merapi
Hello everybody,
I'm new to Merapi and I'm facing a problem that I can't solve...
My scenario is:
I have a Java application that reads data from serial port and then
transfers it to an Air application via Merapi.
My messages frames to AIR are about 50~60 bytes length and I transfer
them at 20ms (I can raise this interval if necessary).
In the beginning everything runs fine but after some data transfer,
the bridge simply stops working...
I get no error neither from Java nor from AIR, the communication just
stops.
After some debugging, I noticed that when the Java application sends a
message to AIR, the Merapi API stores it in some kind of buffer and
then sends to AIR, but after this message is read it remains stored in
this buffer.
So when the next message from Java arrives, I have two calls for my
handle function in AIR, one with the previous content of the buffer
and other with the new message.
To exemplify:
If I send a message containing "1234", the AIR app receives this
message and process it.
Then I send a second message containing "5678", the AIR app receives a
message containing "1234" and then receives another message containing
"5678" and so on...
Is this a normal behaviour?
Because I think my problem is some kind of overflow in this buffer.
Best Regards,
Gustavo Berdugo.