Crisce / IEC60870-5-104

Libraries about IEC60870-5-104 protocol
16 stars 10 forks source link

error WIFI_STA #1

Open yongkitjoa opened 4 years ago

yongkitjoa commented 4 years ago

image

i try the demo sample but some errors.

thank you

Crisce commented 4 years ago

Hi, which board are you trying the script with? That is a statement to set ESP32 wifi to work only as client. You can simply comment it! :)

powerelectron commented 4 years ago

Dear Crisce, I want to run Slave on Arduino Uno using Ethernet shield. Kindly help me with example demo.

Best Regards PowerElectron

Crisce commented 4 years ago

Hi powerelectron, I added an example for using the "ethernet" library, with various ethernet board. Please pay attention to select the correct CS pin with "Ethernet.init(pin)"! And enjoy it!! :D

Crisce commented 4 years ago

Cattura I forgot this! You have to uncomment the "IECWIRED" statement (inside IEC60870-5-104.h file), otherwise the library will only work with WiFi connections. :)

yongkitjoa commented 4 years ago

Hi, which board are you trying the script with? That is a statement to set ESP32 wifi to work only as client. You can simply comment it! :)

image

thank you for reply my email.. yes, i used ESP32...but still error with "IEC104_SLAVE slave(&srv);"

thank you

Crisce commented 4 years ago

I made a mistake in the example: you need to #include instead of (this is the name I used by some tests). I just corrected the example!!

P.S.: and make sure that "IECWIRED" statement (inside Documents/Arduino/libraries/IEC60870-5-104/IEC60870-5-104.h file) be commented! ;)

Let me know if it works!! :)

powerelectron commented 3 years ago

Dear Crisce, Can you please provide the procedure/ changes required to use it on Arudino Ethernet shield for direct wired connection ? How much flash is required ? Can it support Network Time Sync function command sent by remote server ?

... Best Regards Power Electron

On Sat, 1 Aug 2020 at 00:00, Michele Criscenzo @.***> wrote:

I made a mistake in the example: you need to #include <IEC 60870-5-104.h> instead of (this is the name I used by some tests). I just corrected the example!!

Let me know if it works!! :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Crisce/IEC60870-5-104/issues/1#issuecomment-667288849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGGTQHT2V243MGVETOUMC3R6METPANCNFSM4OM4TN6A .

Crisce commented 3 years ago

Dear Crisce, Can you please provide the procedure/ changes required to use it on Arudino Ethernet shield for direct wired connection ? How much flash is required ? Can it support Network Time Sync function command sent by remote server ? ... Best Regards Power Electron On Sat, 1 Aug 2020 at 00:00, Michele Criscenzo @.***> wrote: I made a mistake in the example: you need to #include <IEC 60870-5-104.h> instead of (this is the name I used by some tests). I just corrected the example!! Let me know if it works!! :) — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGGTQHT2V243MGVETOUMC3R6METPANCNFSM4OM4TN6A .

Hi powerelectron, the second example should have worked... anyway these days I'm doing some tests with an arduino ethernet shield to give you an answer! Your shield uses the w5500 / w5100 chip, right?

powerelectron commented 3 years ago

Dear Crisce, Happy to see your reply. Yes. At present it's w5100. But Can we use ENC28J60 and LAN8720 also ?

Best Regrads PE

On Fri, 9 Jul 2021 at 14:06, Michele Criscenzo @.***> wrote:

Dear Crisce, Can you please provide the procedure/ changes required to use it on Arudino Ethernet shield for direct wired connection ? How much flash is required ? Can it support Network Time Sync function command sent by remote server ? ... Best Regards Power Electron … <#m4633492556335126989> On Sat, 1 Aug 2020 at 00:00, Michele Criscenzo @.***> wrote: I made a mistake in the example: you need to #include <IEC 60870-5-104.h> instead of

(this is the name I used by some tests). I just corrected the example!! Let me know if it works!! :) — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment) >, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGGTQHT2V243MGVETOUMC3R6METPANCNFSM4OM4TN6A . Hi powerelectron, the second example should have worked... anyway these days I'm doing some tests with an arduino ethernet shield to give you an answer! Your shield uses the w5500 / w5100 chip, right? — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe .