cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Some data packets are seemed to be missing in serial reception from Neurosky mindwave mobile sensor at 57600 baudrate. I don't know if it is due to actual baudrate in PSoC4 57143 UART standard mode.Please help me to fix this issue.

0 Likes
1 Solution
JoMe_264151
Expert II

Interesting: I suppose the first GoTo in C-Code since 12 years.

   

I would suggest you to

   

Enable global interrupts

   

Increase the receiver and transmit buffer sizes to 50 bytes

   

Use GetRxBuffersize() API to check if there are any data in buffer and retrieve them when there are any.

   

You may receive 0x00 data from your UART or does it only send ASCII characters, your current code will not accept 0x00 bytes.

   

and btw: You are here in a PSoC3 forum, but you are asking for a PSoC4 project. Which Kit do you use?

   

 

   

Bob

View solution in original post

0 Likes
4 Replies
HeLi_263931
Honored Contributor II

Maybe your processing is not fast enough and you are loosing packets (receiver buffer overrun). Check for this condition and signal it.

0 Likes
JoMe_264151
Expert II

Welcome in the forum!

   

Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi bob,

   

          I'm trying to receive data from Neurosky Mindwave Mobile EEG sensor using HC05 bluetooth Module. I'm using UART SCB block with 57600 baudrate. I was supposed to get checksum bytes of 4,2,128,5s, But only receives 128s. Project file is attached below, please help.

0 Likes
JoMe_264151
Expert II

Interesting: I suppose the first GoTo in C-Code since 12 years.

   

I would suggest you to

   

Enable global interrupts

   

Increase the receiver and transmit buffer sizes to 50 bytes

   

Use GetRxBuffersize() API to check if there are any data in buffer and retrieve them when there are any.

   

You may receive 0x00 data from your UART or does it only send ASCII characters, your current code will not accept 0x00 bytes.

   

and btw: You are here in a PSoC3 forum, but you are asking for a PSoC4 project. Which Kit do you use?

   

 

   

Bob

View solution in original post

0 Likes