DSC keybus interface not work on New Blynk Iot

Hi Blynkers!

Help me please!
I use the dsc keybus interface on Old blynk. I want to use this on the New Blynk App, but the sketch translate good, the program not work. The wemos mini is online, i can switch on and off the onboard led. It is not connect with the DSC 1864 panel.

Thx, Zoltán.

Hey there.

Look, to be honest with you, I’ve never used this before and never heard of it. But I will try my best to help you.

Give me some details please ?

Hi John!

Thanks for your answer. It was in the “update” part.
I send for you the Old Blynk sketch and the New Blynk sketch.
The Old Blynk operates very well, but the New Blynk no.
This is my fault, I’m not a programmer.

The source code: https://github.com/taligentx/dscKeybusInterface
Please send for me email adress, because the my code is too long. I can’t attach.

Thanks for the help!
Zoltán

This code was working perfectly with the old blynk right ?

To make an old sketch work with the new blynk all you have to do is add #define BLYNK_TEMPLATE_ID “YourTemplateID” to the beginning of your sketch.

#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID   "YourTemplateID"


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <dscKeybusInterface.h>


Just like this.

Hi John!

I tryed it. It’s not working. No other programs work. The program is running down. The translator is ok.
No wifi name, The new Blynk can’t find the device. I have been using the old Blynk for 4 years.
I’ve written several programs, but the mindset of the new Blynk is very different.
I know, i heve to learn yet, but, I’m 51 years old.

Thanks for answer. Zoltán

So your problem is you can’t see your device in the devices panel right ?

Hi John!

It is also.
Please give me your email adress, and I send for you my sketch.
Legacy and New.

Thanks, Zoltan

Upload it to mega or google drive and send me the link

Hi John!

I’m sending the sketches. The old is wery perfect. It’s works very well.
The new … i dont understand, what is the fault. The thermostat program is not operate too.

Thanks!
Thanks!

Zoltán

Old DSC:
https://drive.google.com/drive/folders/1TeA1UG0TqGNrKDgRDf9tbzcFRX9-BUpD?usp=sharing

The new:
https://drive.google.com/drive/folders/1pCEBgVx-5WtDPUWDkiDwMQyNpz1ojD5u?usp=sharing

My thermostat:
https://drive.google.com/drive/folders/1B5y6QWK0qeE1WHz7AYDthZoo7BDGstsc?usp=sharing

You haven’t defined a board type, so the default board type is being used.
The Settings.h tab determines which pins are used for the reset button and LED, and tehse settings will be used…

#else

  #warning "Custom board configuration is used"

  #define BOARD_BUTTON_PIN            0                     // Pin where user button is attached
  #define BOARD_BUTTON_ACTIVE_LOW     true                  // true if button is "active-low"

  #define BOARD_LED_PIN               4                     // Set LED pin - if you have a single-color LED attached

So, GPIO4 (Pin D2) is being used for the LED, but you are also trying to use it as your DSC read pin…

#define dscReadPin D2   // esp8266: D1, D2, D8 (GPIO 5, 4, 15)

Is there any reason why you’ve gone for the Edgent example for your sketch, rather than simply adding the template ID and device name to the top of your old sketch?

Pete.

Yes, don’t use the edgent example, just use the old sketch and define the blynk template ID.

I modified the sketch, now it should work fine with the new blynk.

https://mega.nz/file/NA1gjYLD#GRpwFudb6jM31xc8e6kdKSBM6Of06l9s9HltubH4x-k

Hi Pete!

Thank you.
I tried to add the template ID and device name to the top of your old sketch. Does not work. Maybe you can specify what I need to do? I need to understand the New Blynk idea. I can request a specific DSC sketch? The libraries of old Blynk are more understandable to me.

Thx for the help, Zoltán

Maybe you can clarify what “does not work” actually means, and post your serial output so that it provides some information about exactly what is happening in the boot/connection/operation phases of execution?

Pete.

Have you tried the sketch I sent you ?

Sorry. I can try tomarrow, because here is 22.26.
Thank you the help.

Alright, try it and let me know if it works or not.

Greetings.

Hi John!

Thank for you!
Evrything is good! The ketch what you wrote for me is working. I modified it, iI use static IP address and not local server. I understand the New Blynk logic. It is simple like the Legacy. You only need to show once how it works. I modified my some sketches. All are working! I don’t know where do you live, but if you came to Hungary, Budapest, I pay for you a fine dinner. I don’t know where do you live, but if once you will came to Hungary, Budapest, I pay for you a fine dinner. Thx! Thx!

Zoltán

1 Like

You don’t have to pay anything my friend, I’m so glad your problem has been solved.
If you face any issue don’t hesitate, just ask and I will do my best to help you.

Best regards.