Can I resolve the problem with hang Blynk app?
I send data from sensor to Blynk app with speed 10 values per 1 second, the first time program works well, but then it slowly works and then it hang all,
Can I send data more than 10 values per 1 second if I change user.message.quota.limit property within server.properties file?
What kind of sensor are you using and is > 10 x / s important?
@romanF could you please explain what exactly hangs? Is that Blynk app (ios/android?)? Or it is your hardware (what hardware, setup)?
A sensor which used is my personal silicon whisker. It is the appointment to determine fluctuations. Yes, it is important > 10x/s because it register fluctuations in the range of 1 Hz to 500 Hz
It is the Blynk app (android Lenovo TAB 2). At the start of measurement, the data are transmitted and displayed well. After a couple of minutes on the tablet, schedule graph showing late. Even after sometimes graph on the tablet ceases to display data that come.The program hangs on a tablet фтв later or shows off a pair of new outlets and freezes again
Do you have a link as I don’t think Google is correctly translating the type of sensor you have.
Presumably you are using a local server.
AFAIK Blynk doesn’t officially support tablets but generally the Android ones are ok. Have you tried an Android Smartphone?
500HZ seems tight but without knowing more about the sensor it is difficult to tell.
Normally when any Blynk related system “crashes” it is due to a bug in the sketch prepared by the coder. Not always, but certainly most of the time. Your code is bug free?
Have you enabled KEEP THE SCREEN ON option in project’s settings? If not - could you try with it?
Link on this type of sensor http://www.sciencedirect.com/science/article/pii/0924424792801937.
I using Blynk cloud now not the local server. I am send 10 values per 1 second, the sensor measures the oscillation frequency of 5-12 Hz.The Blynk app some minutes shows values well, then graphics element don’t paint new data, it stops and then paints some data and stops.
My code is simple
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <SimpleTimer.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#define ESP8266_BAUD 9600
#define EspSerial Serial1
char auth[] = "78b3236e62704b888aadc5180e265bad";
char ssid[] = "Atmega16F";
char pass[] = "";
ESP8266 wifi(&EspSerial);
SimpleTimer timer;
void myTimerEvent()
{
Blynk.virtualWrite(V5,(analogRead(A0)));
}
void setup()
{
analogReference(INTERNAL1V1 );
Serial.begin(9600); // See the connection status in Serial Monitor
EspSerial.begin(ESP8266_BAUD);
Blynk.begin(auth, wifi, ssid, pass);
// Setup a function to be called every second
timer.setInterval(100L, myTimerEvent);
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}
Yes, I set the option KEEP THE SCREEN ON
@romanF maybe this is ESP issue? Could you please add some output on hardware side so we could be sure?
P. S. My Blynk project handles 50 req/sec with no issues.
I think ESP work normally and the blue led blinks.
Can you explain what I must do?
I don’t try to use the local server.
Well, you have to make some serial output in order to say that for sure.
Me too =)
What serial speed chooses for 50 req/sec ? 9600 or higher
Do you do your tests with an ESP and WiFi or Arduino and Ethernet?
For debugging purposes you can add the following as the first line of your sketch but remove as soon as testing is done.
#define BLYNK_DEBUG
With standalone ESP’s a baud of 115200 is fine but generally not as a shield.
You might need to consider a decent ESP (not 01) without Arduino.
How big is each packet that you receive?
Arduino mostly. I have no esp =(.
No ESP’s!!!
My Pro’s arrived today
I connect the Blynk app to Arduino using local server, but the problem with the Blynk app remaining. Send 10 values per 1 sec using esp8266 esp-01
This url for video http://files.d-lan.dp.ua/download?file=0612b83aa5a73ae989429b0543035a4e
@romanF did you try adding debug on hardware side? Some prints? We need to be 100% it is not your hardware problem.
I was not able to reproduce. Does everything works with another widget, like value display?