Questions tagged [buffer]
The term "buffer" is a very generic term, and is not specific to IT or CS. It's a place to store something temporarily, in order to mitigate differences between input speed and output speed. While the producer is being faster than the consumer, the producer can continue to store output in the buffer. When the consumer speeds up, it can read from the buffer. The buffer is there in the middle to bridge the gap.
27 questions
0
votes
1
answer
68
views
How to faithfully collect geophone data by modbus RTU?
I am trying to collect data from a geophone using a UNO R4 minima as slave with a Zihatec shield, so that I can integrate it into a larger project on a modbus RTU bus.
The signal from the geophone is ...
0
votes
3
answers
273
views
Arduino interrupt for serial data on digital pin, that is too large for the serial buffer
I am using an Arduino Nano in combination with a NEO 6m GPS module. The GPS module is sending data, consisting of a few hundred chars, every second. Since I am communicating with my PC over the ...
0
votes
2
answers
97
views
Serial Buffer stays empty as soon as it becomes empty once
I have a question regarding serial buffer readout.
At program start, I send a serial command to a sensor that 1. activates him and 2. let him send data - that works.
When I unplug the sensor, the ...
1
vote
1
answer
286
views
How to optimize checking for specific string in a UART stream
I want to check for specific string (like "RecordStart") in a UART stream (115 200 baud 8N1) from a camera, to know when it is recording or not/if there is an SD. I am using an ESP32-WROOM-...
3
votes
1
answer
323
views
Arduino IDE equivalent to DataView?
I am working on a project with Bluetooth commands between various devices. I would like to try and convert a string to a DataView Object on Arduino, so I can send it over BLE, much like this function ...
1
vote
0
answers
61
views
Why is this buffer not being sent to the server?
I'm loading a buffer with different data recorded by sensors and sending them to a server. But I also wanted to log when the data was sent on the client side, so I formatted the time of my RTC clock ...
0
votes
2
answers
479
views
Problem cleaning string read from serial buffer
I am trying to move a stepper motor when a specific command is send to Arduino Mega 2560. This command is read character by character and stored in a string variable. Whenever a new command is sent, ...
1
vote
1
answer
344
views
Unexpected character added to char buffer array in serial monitor only when SD card initialized
I'm getting an unexpected extra character added to the serial monitor print line only when I initialize an SD card in the code.
Normal
The code below gives me this expected result in the serial ...
1
vote
0
answers
354
views
Save Circularbuffer in RTC memory of ESP32
I would like to save my Circular Buffer in the RTC memory of my ESP32 when I use deep sleep. So I have initialized it with RTC_DATA_ATTR but when I go into Deep Sleep I lose the data I've saved. Is ...
1
vote
1
answer
77
views
Elements excluded from buffer array output after given structure (ESP8266 WifiSniffer) (snifferPacket)
I am currently trying to determine how the ESP8266 WifiSniffer program by Kalanda works.
Here is the source code:
#include <Arduino.h>
extern "C" {
#include <user_interface.h>
...
-2
votes
1
answer
4k
views
What is the maximum size of Static Json Document in Arduino JSON?
I'm trying to do serial communication between Arduino mega and a esp8266, and having issues with determining the size of the JSON document. I have read that the receiver buffer size should be greater ...
1
vote
2
answers
2k
views
Clearing string buffer with memset after a serial read
In using the SerialTransfer.h / pySerialTransfer libraries to send commands between my laptop and an Arduino Mega, I am sending multiple sequential strings between the devices. However, I'm having ...
0
votes
2
answers
960
views
Is Arduino Mega useing one buffer or multiple buffers?
So Arduino Mega has Serial, Serial1, Serial2, Serial3.
However, does those Serial lines use the same buffer? or four independent ones? i.e. are they truly receive single independently, or actually ...
0
votes
1
answer
316
views
I can't use buffer without printing in my Nodemcu esp8266
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
#define WIFI_SSID "ssid"
#define WIFI_PASSWORD "password"
void setup() {
Serial.begin(...
3
votes
1
answer
214
views
writting to buffer from serial input
Can some one explain this behaviour please, i have the following code
byte buffer[512];
byte block;
byte len;
Serial.setTimeout(60000L) ; // wait until 20 seconds for input from serial
...