What do the BLYNK_DEBUG Codes(output) mean?

Hi,

I can easily enable the BLYNK_DEBUG function, I get multiple prints in the serial monitor - but what do they mean? I can find no documentation about what the debug statements should be telling me?

EG:

⸮t|⸮⸮ $⸮⸮⸮4⸮2(h⸮[76] Connecting to GoTigers!_2GEXT
[1080] Connected to WiFi
[1080] IP: 192.168.0.45
[1080] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[1156] Connecting to blynk-cloud.com:80
[1501] <[1D|00|01|00] nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
[1920] >[00|00|01|00|C8]
[1920] Ready (ping: 418ms).
[1920] Free RAM: 48576
[1987] <[11|00|02|00]Hver[00]0.6.1[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]ESP8266[00]build[00]Feb 13 2020 16:53:32[00]
[2069] <[10|00|03|00|00]
[2136] <[14|00|04|00|0C]vw[00]39[00]393939


[2447] >[00|00|02|00|C8]
[2746] >[14|00|03|00|06]
[2746] >vw[00]4[00]0

What does it mean? Is there a way to interpret this? It’s useless without documentation.

Thnx
billd

Has been a long time since I looked at it but vw i believe means virtual write and the 2 lines ending in 00 and C8 I would say it’s heartbeat.

Most of the stuff you’re seeing here seems to come from the BlynkApiMbed.h library file.

I think the “<” and “>” symbols indicate the direction of the data. “<” means this is data being sent to the server, “>” means data received from the server.

[1501] <[1D|00|01|00] nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn

The auth code is being sent to the server.

[1920] >[00|00|01|00|C8]

The server responds with an enumerated BlynkStatus code of C8, which is Hex for 200, which means “BLYNK_SUCCESS”.
These status codes are in BlynkProtocolDefs.h

BLYNK_SUCCESS                  = 200 [C8]
BLYNK_QUOTA_LIMIT_EXCEPTION    = 1
BLYNK_ILLEGAL_COMMAND          = 2
BLYNK_NOT_REGISTERED           = 3
BLYNK_ALREADY_REGISTERED       = 4
BLYNK_NOT_AUTHENTICATED        = 5
BLYNK_NOT_ALLOWED              = 6
BLYNK_DEVICE_NOT_IN_NETWORK    = 7
BLYNK_NO_ACTIVE_DASHBOARD      = 8
BLYNK_INVALID_TOKEN            = 9
BLYNK_ILLEGAL_COMMAND_BODY     = 11 [B]
BLYNK_GET_GRAPH_DATA_EXCEPTION = 12 [C]
BLYNK_NO_DATA_EXCEPTION        = 17 [11]
BLYNK_DEVICE_WENT_OFFLINE      = 18 [12]
BLYNK_SERVER_EXCEPTION         = 19 [13]
BLYNK_NTF_INVALID_BODY         = 13 [D]
BLYNK_NTF_NOT_AUTHORIZED       = 14 [E]
BLYNK_NTF_ECXEPTION            = 15 [F]
BLYNK_TIMEOUT                  = 16 [10]
BLYNK_NOT_SUPPORTED_VERSION    = 20 [14]
BLYNK_ENERGY_LIMIT             = 21 [15]

The same library file contains enumerated BlynkCmd codes, which see to be how the hardware tells the server what type of instruction its sending…

BLYNK_CMD_RESPONSE       = 0
BLYNK_CMD_LOGIN          = 2
BLYNK_CMD_PING           = 6
BLYNK_CMD_TWEET          = 12 [C]
BLYNK_CMD_EMAIL          = 13 [D]
BLYNK_CMD_NOTIFY         = 14 [E]
BLYNK_CMD_BRIDGE         = 15 [F]
BLYNK_CMD_HARDWARE_SYNC  = 16 [10]
BLYNK_CMD_INTERNAL       = 17 [11]
BLYNK_CMD_SMS            = 18 [12]
BLYNK_CMD_PROPERTY       = 19 [13]
BLYNK_CMD_HARDWARE       = 20 [14]
BLYNK_CMD_HW_LOGIN       = 29 [1D]
BLYNK_CMD_REDIRECT       = 41 [29]
BLYNK_CMD_DEBUG_PRINT    = 55 [37]
BLYNK_CMD_EVENT_LOG      = 64 [40]

So this: [1501] <[1D|00|01|00] nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn is a “1D” command followed by your auth code, which means “Hardware Login”

This: [2069] <[10|00|03|00|00] seems to be a “Hardware Sync” command, which I guess may be triggered automatically, or by a Blynk.sync command in code?

Presumably the virtualWrite commands contain the pin number (in decimal?) and the value sent or received. “vr” will appear when a virtrualRead is performed.

You’ll also see “dw” and “dr” for digital write and read commands, “aw” and “ar” for analogue.

If you figure-out more, based on what your code is doing then please share.

Pete.

Hi Pete,

Thnaks for the information. I would also have some question. I don’t want to get answer in a certain question, I do want to know the systematic behind it.

For example here is a code:

<[14|05]z[00|09]vw[00]13[00]255

How should I understand the parts?
< means, hardware sends information to the server. it is OK
[14|05] means notification ( BLYNK_CMD_NOTIFY = 14,) which shows, item is not authenticated ( BLYNK_NOT_AUTHENTICATED = 5,) ? is it correct?

Why does Z stand for?

[00|09] means the token is invalid ( BLYNK_INVALID_TOKEN = 9,)?

vw is virtual write, ok

Now I see only one number in the [ ], and another outside. Why? What is the difference?

The commands sent are in hex format, so 14 isn’t BLYNK_CMD_NOTIFY, as that would be sent as a hex value of E
The 15 represents BLYNK_CMD_HARDWARE

As this is a hardware to server message, you can only use values from the second table. This doesn’t contain a 05 value.

To be honest, it’s almost impossible to figure-out any more without more information about your sketch, hardware and app.
I guess you could work out more with a simple sketch that does a number of operations on a timed basis and compare the results with what is happening in your sketch at that point.

Pete.