jUART icon indicating copy to clipboard operation
jUART copied to clipboard

How to loop to get all the data from serial, im receiving only 1 line

Open cokeito opened this issue 9 years ago • 6 comments

Hey guys, great job.

this is my issue, If I go to putty and open the serial port and fetch the info I get this.

“000315 06/22/2015 13:08 - 129.6 kg N 0.0 kg T - 129.6 kg G”

and when i try to use the jUART , i get the info and only get the 1st 32 bytes of this

"000305 06/22/2015 12:56 "

ps: (this was an earlier capture from serial, since the 1st one is 315 and this one is 305)

my firebug returns for bytes : [48, 48, 48, 51, 50, 54, 32, 48, 54, 47, 50, 50, 47, 50, 48, 49, 53, 32, 49, 51, 58, 52, 57, 13, 10, 32, 32, 32, 32, 32, 32, 32]

and for size : 32

so seems it's only getting the 'first' line of the serial output.

any ideas how i can solve this?

Cheers.

J.

ps: my html snippet is here : http://pastebin.com/TVutka3N

cokeito avatar Mar 25 '15 16:03 cokeito

Hi, there is a 512 bytes limit on the array size, but 32 bytes should be fine. Can you try recompiling it on your machine and try again?

billhsu avatar Mar 26 '15 01:03 billhsu

i dont have any compiler, can you help me and provide a compiled version for windows

cheers

J

cokeito avatar Mar 26 '15 13:03 cokeito

Hello.

i compiled a new dll with the variable increased to 2048, but same results :(, looks like after each 32bytes it send a drop or smth that close comunication.

Cheers

J.

cokeito avatar Mar 27 '15 15:03 cokeito

Hi,

I test the plugin on my Win 7 machine and I can send and receive more than 32 bytes. I think it might because the new line(\r\n) closes the communication.

Is it possible to change the data output from your sender?

Thanks, Shipeng

On Fri, Mar 27, 2015 at 11:48 PM, cokeito [email protected] wrote:

Hello.

i compiled a new dll with the variable increased to 2048, but same results :(, looks like after each 32bytes it send a drop or smth that close comunication.

Cheers

J.

Reply to this email directly or view it on GitHub https://github.com/billhsu/jUART/issues/17#issuecomment-86981688.

billhsu avatar Mar 27 '15 15:03 billhsu

But the new line doesn't seem to affect the plugin on my machine.. Attaching the dll I'm using.

On Fri, Mar 27, 2015 at 11:59 PM, Bill Hsu [email protected] wrote:

Hi,

I test the plugin on my Win 7 machine and I can send and receive more than 32 bytes. I think it might because the new line(\r\n) closes the communication.

Is it possible to change the data output from your sender?

Thanks, Shipeng

On Fri, Mar 27, 2015 at 11:48 PM, cokeito [email protected] wrote:

Hello.

i compiled a new dll with the variable increased to 2048, but same results :(, looks like after each 32bytes it send a drop or smth that close comunication.

Cheers

J.

Reply to this email directly or view it on GitHub https://github.com/billhsu/jUART/issues/17#issuecomment-86981688.

billhsu avatar Mar 27 '15 16:03 billhsu

tried your dll and same thing, can the communication keep open for a longer time period?

cokeito avatar Apr 07 '15 16:04 cokeito