Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive data is not stable #57

Open
CpH777 opened this issue Jul 19, 2022 · 3 comments
Open

Receive data is not stable #57

CpH777 opened this issue Jul 19, 2022 · 3 comments

Comments

@CpH777
Copy link

CpH777 commented Jul 19, 2022

My port setting is this
String? portName;
String? baue = '38400';
String? parityBits = 'NONE';
String? dataBits = '8';
String? stopBits = '1';
String? streamCtrl = 'NONE';

My receive handler is this

void receiveISR(SerialPort port) {
final reader = SerialPortReader(port);
reader.stream.listen((data) {
tempList.addAll(data);
receDataTodo();
tempList.clear();
}, onError: (Object error) {
print("ERRORRRRRR");
});
}

receDataTodo(); to do thing is save receive data to a csv file.

and i fine this phenomenon
image
but i check hardware to send is ok
image

i can't Explain this phenomenon,can you give me some advice?

@CpH777
Copy link
Author

CpH777 commented Jul 19, 2022

i lose some data during receive data like the picture

@Arvinth-Krishna
Copy link

image

the text I selected is one single string from the motherboard but here it got separated into multiple lines.

can you please tell me if there is any option to increase the buffer size?

@Arvinth-Krishna
Copy link

This is the text coming from the motherboard.
IMG_20221004_123541

I want this entire line. Can u pls help how to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants