How we can program for this type serial communication

How we can program using software serial for above output chart

Welcome to the forum

You started a topic in the Uncategorised category of the forum whose description is

:warning: DO NOT CREATE TOPICS IN THIS CATEGORY :warning:

Your topic has been moved to a more pertinent category

1. Let us assume the following arbitrary values for the data items of your given chart:

Byte-1: 1 1 1 1 1000 (0xF4)
Byte-2: 0 1010100 (0x54)
Byte-3: 0 1 0 0 0110 (0x46)
Byte-4: 0 1001001 (0x49)
Byte-5: 0 1010101 (0x55)
Byte-6: 0 0110110 (0x36)
Byte-7: 0 0111011 (0x3B)

2. Transmission Frame:
Frame synchronization pattern: 0x123456
Data: 7-byte natural bnary of Step-2

3. At the receiver, look for the sync pattern 0x123456 and then receive all 7-byte data.

4. For data validity, extract the all sync bits from the received bytes and chcek their values.

5. If Step-4 is alright, then extract the SpO2 and Temperature data.

1 Like

Hello sworldtechnologies

Welcome to the world's best Arduino forum ever.

Consider this data transmitter to get started:

uint8_t sensor[] {B00110000,B00110001,B00110010,B00110011,B00110100,B00110101,B00110110};
constexpr uint8_t sizeArray {sizeof(sensor)};
void setup() 
{
  Serial.begin(115200);
}
void loop() 
{
  Serial.write(sensor, sizeArray);
  delay(1000);
}

Have a nice day and enjoy coding in C++.

1 Like

Welcome to the forum

Do you want to send data in that format or receive it and parse it ?

Which Arduino board are you using ?

Only receiving data. board using Nano

Thank you.. GolamMostafa

Thank you paulpaulson

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.