Byte reading and bit interpretation

Folks,

I need to read bytes from a measurement device, I have already visited several topics and I was able to implement some classes and read data through the serial port using the Javacomm and RXTXcomm API, but I am having difficulty interpreting the bits, I believe it is due to the way of reading .

The device emits a block of 8 bytes every second, the data is binary, reading as below I get to numbers equal or less than 255, what should I do to have readable data?

int Octeto1 = 0;

int LedRX = 13;

void setup () {
  Serial1.begin(110); //Comunica com o medidor
  Serial.begin(115200); //Comunica com o monitor serial PC
{
  pinMode(LedRX, OUTPUT);
}
}

void loop () {
  if (Serial1.available() > 0){
    Serial.println("Recebendo Informacoes");
    digitalWrite(LedRX, HIGH);
    delay(100); 
  }
  else {  
    digitalWrite(LedRX, LOW);
  }

    Octeto1 = Serial1.read();
    
   Serial.println(Octeto1);
}

your code also reads data when none is available

int Octeto1 = 0;

int LedRX = 13;

void setup ()
{
  Serial1.begin(110); 
  Serial.begin(115200);
  Serial.println(__FILE__);

  pinMode(LedRX, OUTPUT);
  digitalWrite(LedRX, LOW);
}

void loop ()
{
  if (Serial1.available() > 0)
  {
    Serial.println("Recebendo Informacoes");
    digitalWrite(LedRX, HIGH);
    delay(100); 

    while (Serial1.available() > 0)  // process all data that is available
    {
      Octeto1 = Serial1.read();
      Serial.print(Octeto1);
      Serial.print(", ");
    }
    Serial.println();
  }

  digitalWrite(LedRX, LOW);

}

what should I do to have readable data?

What are you expecting to read ?
Numbers ?
Text ?
Both ?

Image from Original Post so we don’t have to download it. See this Simple Image Guide

78fc613d6025dd1fda8a823b74cad5999a724839.jpg

…R

What is the device sending these bytes?

Also, which device is reading these bytes?

 Serial1.begin(110); //Comunica com o medidor

110 bps is too slow for HardwareSerial on a typical AVR-based Arduino running at 16 MHz (or even at 8 MHz).
SoftwareSerial should be able to do it.