envea CAIRSENS PM Série Notice Technique page 66

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

END
2 byte
CRC
2 bytes
ETX
1 byte
PARAM = 0x00 => Frame length = 22 x 10 + 25 = 245 bytes.
When the DUST module is not present, the measures PM2.5 and PM10 = NAN.
10.3
Acquisition example for windows in c
#include
<stdio.h>
#include
<time.h>
#include
<stdbool.h>
#include
<windows.h>
#include
"stdint.h"
#include
<windows.h>
const int
print_data = 1;
void print_trame(const unsigned char
{
int
for
{
}
}
void*
rs_open(const char
{
HANDLE h;
DCB dcb;
h = CreateFileA(name,
if
(INVALID_HANDLE_VALUE == h)
ZeroMemory(&dcb, sizeof(dcb));
dcb.DCBlength = sizeof(dcb);
© 2016 Cairpol
0x00
0xFF
0x69
0x0D
0x03
i;
(i = 0; i < nb; i++)
printf("
%02X", Data[i]);
*name)
GENERIC_READ | GENERIC_WRITE,
0,
// must be opened with exclusive-access
NULL,
// default security attributes
OPEN_EXISTING,
// must use OPEN_EXISTING
0,
// not overlapped I/O
NULL);
// hTemplate must be NULL for comm devices
return
0;
*Data,
int
nb)
CairSPM sensor
29

Publicité

Chapitres

Table des Matières
loading

Ce manuel est également adapté pour:

Cairsens pm1Cairsens pm2.5Cairsens pm10

Table des Matières