You are here

Data packets missing in Serial communication with Neurosky Mindwave Mobile Sensor | Cypress Semiconductor

Data packets missing in Serial communication with Neurosky Mindwave Mobile Sensor

Summary: 4 Replies, Latest post by Bob Marlowe on 07 Jan 2016 08:53 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
adithyanrdas_1502606's picture
User
3 posts

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.

hli
user_78878863's picture
User
2759 posts

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

user_1377889's picture
User
10803 posts

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

adithyanrdas_1502606's picture
User
3 posts

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.

user_1377889's picture
User
10803 posts

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

Log in to post new comments.