budulinek / arduino-modbus-rtu-tcp-gateway

Arduino-based Modbus RTU to Modbus TCP/UDP gateway with web interface. Allows you to connect Modbus RTU slaves (such as sensors, energy meters, HVAC devices) to Modbus TCP/UDP masters (such as home automation systems). You can adjust settings through web interface.
GNU General Public License v3.0
164 stars 45 forks source link

Run this Gateway on a ESP8266 #6

Closed turti83 closed 2 years ago

turti83 commented 3 years ago

I am new on github and dont know how to ask a questions like this way. Is this the right way? This project is exactly what i was looking for. However, I would like to run it on an ESP8266. Is it possible without a lot of changes, or does it take a lot of effort to run it on the esp? certainly the following line must be inserted:

include

and removed this:

include <utility/w5100.h>

budulinek commented 3 years ago

Sorry, but I do have no experience with ESP8266. There is some code which is specific to Arduino (see https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway#portability). So some modifications are needed. Feel free to fork my repository and modify the code for ESP8266.

harihanv commented 2 years ago

https://github.com/harihanv/esp32-modbus-gateway, trying to port on esp32

ayaser commented 2 years ago

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

budulinek commented 2 years ago

Hi ayaser, the code was made for AVR Arduino. There is some AVR-specific codec (see Readme). Maybe, after removing / changing that piece of code, it would be possible to run it on ESP8266 or ESP32. But I do not know, I do not have ESP8266 or ESP32, so I can not test it. You can try this port: https://github.com/harihanv/esp32-modbus-gateway

The code is quite long, I have divided it into several ino files. You need all ino files in the folder to compile the code.

ayaser commented 2 years ago

muchas gracias por tu respuesta.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El lun, 27 dic 2021 a la(s) 13:59, budulinek @.***) escribió:

Hi ayaser, the code was made for AVR Arduino. There is some AVR-specific codec (see Readme). Maybe, after removing / changing that piece of code, it would be possible to run it on ESP8266 or ESP32. But I do not know, I do not have ESP8266 or ESP32, so I can not test it. You can try this port: https://github.com/harihanv/esp32-modbus-gateway

The code is quite long, I have divided it into several ino files. You need all ino files in the folder to compile the code.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001655877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I34LZ7WJGUMQXRTQAMDUTCLNPANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

budulinek commented 2 years ago

BTW, @harihanv was able to run it on ESP32, but his code is obsolete - he did not fork from my repo but created new one :-(

Please fork the repo and if you (or anyone else) is successful in porting to ESP32 / ESP8266, feel free to do a pull request. I would be happy to include it.

ayaser commented 2 years ago

Thank you very much for your answer The five programs are united in the first one, is correct what I say? those are not 5 standalone programs. Therefore, everything would be loaded on the arduino board and then through the web I would choose which function it would fulfill. what i said is correct?

El lun., 27 de diciembre de 2021 2:40 p. m., budulinek < @.***> escribió:

BTW, @harihanv https://github.com/harihanv was able to run it on ESP32, but his code is obsolete - he did not fork from my repo but created new one :-(

Please fork the repo and if you (or anyone else) is successful in porting to ESP32 / ESP8266, feel free to do a pull request. I would be happy to include it.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001672540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I3YNA5NUE6WAM7PXFHLUTCQIXANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

harihanv commented 2 years ago

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

ayaser commented 2 years ago

Sorry, my English is not the best, and I think I got a little lost in the thread of the conversation, I don't know if all the emails were yours, or if another person intervened commenting on ESP8266.

First of all, thanks again for your answer. The project that you wrote is just what I need, that is why I attached a file in pptx in case you want to modify it or rather correct it. It is about implementing Modbus, a slave in which I can execute certain programs, a Master which can give setting values to the Slave, and a Gateway that allows me to send the parameters to Modbus and deliver its results to the user, which could be both an operator like the manager.

I am an electronic engineer, I am not an expert in programming, and I am trying to make a technology integration system, I do not intend to invent anything, but to develop a system that I can implement to sell and earn money. I want to clarify this because I am not an expert in open systems, so I do not know what is the scope of what I can expect from this type of contribution, which I see as extraordinary. What I mean is that if your time had a cost, I am not in a position to pay it now, but if the economic result were advantageous, I would have no problem sharing it.

Using the translator, I can know if the phrase in English is correct, if they express what I want to convey to you. If you have any possibility of being able to do a chat (written), it would be good if we could talk, logically if you have time.

I am in Chile, with time zone -3.

My cell phone is +56961498858. Kind regards.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 01:26, harihanv @.***) escribió:

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001862585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I3ZHJ5YWIESBO5C3GSDUTE37FANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

harihanv commented 2 years ago

Request to attach the ppt again. I have taken code from the author who replied previously; removed ethernet code and added wifi.

If you are looking it to work on esp8266, I need to check on serial port availability.

Regards, Harish

On Tue, 28 Dec, 2021, 2:54 pm ayaser, @.***> wrote:

Sorry, my English is not the best, and I think I got a little lost in the thread of the conversation, I don't know if all the emails were yours, or if another person intervened commenting on ESP8266.

First of all, thanks again for your answer. The project that you wrote is just what I need, that is why I attached a file in pptx in case you want to modify it or rather correct it. It is about implementing Modbus, a slave in which I can execute certain programs, a Master which can give setting values to the Slave, and a Gateway that allows me to send the parameters to Modbus and deliver its results to the user, which could be both an operator like the manager.

I am an electronic engineer, I am not an expert in programming, and I am trying to make a technology integration system, I do not intend to invent anything, but to develop a system that I can implement to sell and earn money. I want to clarify this because I am not an expert in open systems, so I do not know what is the scope of what I can expect from this type of contribution, which I see as extraordinary. What I mean is that if your time had a cost, I am not in a position to pay it now, but if the economic result were advantageous, I would have no problem sharing it.

Using the translator, I can know if the phrase in English is correct, if they express what I want to convey to you. If you have any possibility of being able to do a chat (written), it would be good if we could talk, logically if you have time.

I am in Chile, with time zone -3.

My cell phone is +56961498858. Kind regards.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 01:26, harihanv @.***) escribió:

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001862585 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF27I3ZHJ5YWIESBO5C3GSDUTE37FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001960832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEH5LAQRAOL3F5CG5NZO3TUTF63XANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

ayaser commented 2 years ago

I apologize. I did not understand his answer.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 06:50, harihanv @.***) escribió:

Request to attach the ppt again. I have taken code from the author who replied previously; removed ethernet code and added wifi.

If you are looking it to work on esp8266, I need to check on serial port availability.

Regards, Harish

On Tue, 28 Dec, 2021, 2:54 pm ayaser, @.***> wrote:

Sorry, my English is not the best, and I think I got a little lost in the thread of the conversation, I don't know if all the emails were yours, or if another person intervened commenting on ESP8266.

First of all, thanks again for your answer. The project that you wrote is just what I need, that is why I attached a file in pptx in case you want to modify it or rather correct it. It is about implementing Modbus, a slave in which I can execute certain programs, a Master which can give setting values to the Slave, and a Gateway that allows me to send the parameters to Modbus and deliver its results to the user, which could be both an operator like the manager.

I am an electronic engineer, I am not an expert in programming, and I am trying to make a technology integration system, I do not intend to invent anything, but to develop a system that I can implement to sell and earn money. I want to clarify this because I am not an expert in open systems, so I do not know what is the scope of what I can expect from this type of contribution, which I see as extraordinary. What I mean is that if your time had a cost, I am not in a position to pay it now, but if the economic result were advantageous, I would have no problem sharing it.

Using the translator, I can know if the phrase in English is correct, if they express what I want to convey to you. If you have any possibility of being able to do a chat (written), it would be good if we could talk, logically if you have time.

I am in Chile, with time zone -3.

My cell phone is +56961498858. Kind regards.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 01:26, harihanv @.***) escribió:

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001862585

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AF27I3ZHJ5YWIESBO5C3GSDUTE37FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001960832 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAEH5LAQRAOL3F5CG5NZO3TUTF63XANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001972868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I3726BS2OLVOBXUQCRDUTGB7FANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

harihanv commented 2 years ago

Please share the ppt

On Tue, 28 Dec, 2021, 4:43 pm ayaser, @.***> wrote:

I apologize. I did not understand his answer.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 06:50, harihanv @.***) escribió:

Request to attach the ppt again. I have taken code from the author who replied previously; removed ethernet code and added wifi.

If you are looking it to work on esp8266, I need to check on serial port availability.

Regards, Harish

On Tue, 28 Dec, 2021, 2:54 pm ayaser, @.***> wrote:

Sorry, my English is not the best, and I think I got a little lost in the thread of the conversation, I don't know if all the emails were yours, or if another person intervened commenting on ESP8266.

First of all, thanks again for your answer. The project that you wrote is just what I need, that is why I attached a file in pptx in case you want to modify it or rather correct it. It is about implementing Modbus, a slave in which I can execute certain programs, a Master which can give setting values to the Slave, and a Gateway that allows me to send the parameters to Modbus and deliver its results to the user, which could be both an operator like the manager.

I am an electronic engineer, I am not an expert in programming, and I am trying to make a technology integration system, I do not intend to invent anything, but to develop a system that I can implement to sell and earn money. I want to clarify this because I am not an expert in open systems, so I do not know what is the scope of what I can expect from this type of contribution, which I see as extraordinary. What I mean is that if your time had a cost, I am not in a position to pay it now, but if the economic result were advantageous, I would have no problem sharing it.

Using the translator, I can know if the phrase in English is correct, if they express what I want to convey to you. If you have any possibility of being able to do a chat (written), it would be good if we could talk, logically if you have time.

I am in Chile, with time zone -3.

My cell phone is +56961498858. Kind regards.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 01:26, harihanv @.***) escribió:

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001862585

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AF27I3ZHJ5YWIESBO5C3GSDUTE37FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001960832

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LAQRAOL3F5CG5NZO3TUTF63XANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001972868 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF27I3726BS2OLVOBXUQCRDUTGB7FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002028816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEH5LAELBFCA5CIQWJOFQ3UTGLXDANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

ayaser commented 2 years ago

you mean share it on github?

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 09:12, harihanv @.***) escribió:

Please share the ppt

On Tue, 28 Dec, 2021, 4:43 pm ayaser, @.***> wrote:

I apologize. I did not understand his answer.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 06:50, harihanv @.***) escribió:

Request to attach the ppt again. I have taken code from the author who replied previously; removed ethernet code and added wifi.

If you are looking it to work on esp8266, I need to check on serial port availability.

Regards, Harish

On Tue, 28 Dec, 2021, 2:54 pm ayaser, @.***> wrote:

Sorry, my English is not the best, and I think I got a little lost in the thread of the conversation, I don't know if all the emails were yours, or if another person intervened commenting on ESP8266.

First of all, thanks again for your answer. The project that you wrote is just what I need, that is why I attached a file in pptx in case you want to modify it or rather correct it. It is about implementing Modbus, a slave in which I can execute certain programs, a Master which can give setting values to the Slave, and a Gateway that allows me to send the parameters to Modbus and deliver its results to the user, which could be both an operator like the manager.

I am an electronic engineer, I am not an expert in programming, and I am trying to make a technology integration system, I do not intend to invent anything, but to develop a system that I can implement to sell and earn money. I want to clarify this because I am not an expert in open systems, so I do not know what is the scope of what I can expect from this type of contribution, which I see as extraordinary. What I mean is that if your time had a cost, I am not in a position to pay it now, but if the economic result were advantageous, I would have no problem sharing it.

Using the translator, I can know if the phrase in English is correct, if they express what I want to convey to you. If you have any possibility of being able to do a chat (written), it would be good if we could talk, logically if you have time.

I am in Chile, with time zone -3.

My cell phone is +56961498858. Kind regards.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 01:26, harihanv @.***) escribió:

hi,

I am sorry for the late reply. I was trying to implement RTU to TCP modbus gateway. This is more of packet translation that was the reason i used the code available and ported to esp32.

From your description looks like you need modbus slave / master for your implementation. We can either port libmodbus or freemodbus to esp8266.

I will check on nodemcu and update.

Regards, Harish

On Mon, Dec 27, 2021 at 8:19 PM ayaser @.***> wrote:

Nice to meet you. first congratulations for your contribution. I have several doubts, one of them is the same as the one made by Turti83, how to use these codes in ESP8266, and I clearly saw that your answer is that you have not developed it on this platform. The other question I have is that there are several ino files in the folder, and the question I have is whether each of these can be loaded on the platform that one would like independently. That is, if I want the Slave to work in an Arduino (1), how do I load only the Slave, if I want the Master to work in the Arduino (2), how do I do it? I have the problem because when compiling, it does it mostly the innocent. Please could you explain.

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001589207

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LF4MEE7OKNSFFB47HDUTBYI7ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001862585

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AF27I3ZHJ5YWIESBO5C3GSDUTE37FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001960832

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LAQRAOL3F5CG5NZO3TUTF63XANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1001972868

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AF27I3726BS2OLVOBXUQCRDUTGB7FANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002028816 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAEH5LAELBFCA5CIQWJOFQ3UTGLXDANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002064842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I36ZLBT2PP4PWN37XEDUTGSTZANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

ayaser commented 2 years ago

What I look for.pptx

budulinek commented 2 years ago

@ayaser you are looking for something different.

My gateway converts between two different modbus protocols (Modbus TCP and Modbus RTU). If you already have a Modbus TCP master (for example a home automation server) and Modbus RTU slave (for example some sensor or energy meter), you can use my gateway to connect them together.

The web UI in my project is only for the configuration of the gateway. You can not use the web UI for sending modbus requests and presenting the results to the user.

ayaser commented 2 years ago

Thanks for the clarification. thanks for your answer. But with your code, the master and slave mode are not also executed, but they on another card?

El mar., 28 de diciembre de 2021 2:38 p. m., budulinek < @.***> escribió:

@ayaser https://github.com/ayaser you are looking for something different.

My gateway converts between two different modbus protocols (Modbus TCP and Modbus RTU). If you already have a Modbus TCP master (for example a home automation server) and Modbus RTU slave (for example some sensor or energy meter), you can use my gateway to connect them together.

The web UI in my project is only for the configuration of the gateway. You can not use the web UI for sending modbus requests and presenting the results to the user.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002212612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I352ODU27HVLXXLSHYLUTHYXRANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

budulinek commented 2 years ago

Modbus master, modbus slave and modbus gateway are different devices. My code is for a modbus gateway.

ayaser commented 2 years ago

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

ayaser commented 2 years ago

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 18:20, budulinek @.***) escribió:

Modbus master, modbus slave and modbus gateway are different devices. My code is for a modbus gateway.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002286146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I3Y2PXN7WTYK2AT7IG3UTIS2FANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

budulinek commented 2 years ago

I am sorry, I do not have ESP8266. I can not help you more.

Dne 29. prosince 2021 13:10:02 ayaser @.***> napsal:

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mar, 28 dic 2021 a la(s) 18:20, budulinek @.***) escribió:

Modbus master, modbus slave and modbus gateway are different devices. My code is for a modbus gateway.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002286146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I3Y2PXN7WTYK2AT7IG3UTIS2FANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

harihanv commented 2 years ago

This belongs to serial class please check arduino esp8266 github for details. Check the baud rate configuration.

On Wed, 29 Dec, 2021, 5:34 pm ayaser, @.***> wrote:

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002561871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEH5LBO4PIUEKEQ56A7NYDUTL2L5ANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

ayaser commented 2 years ago

thanks for your answer. In the original file, is this instruction, or function, general or does it belong to Arduino?

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mié, 29 dic 2021 a la(s) 09:51, harihanv @.***) escribió:

This belongs to serial class please check arduino esp8266 github for details. Check the baud rate configuration.

On Wed, 29 Dec, 2021, 5:34 pm ayaser, @.***> wrote:

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002561871 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAEH5LBO4PIUEKEQ56A7NYDUTL2L5ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002579389, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27I33AKPP5E5NMQIHWECLUTL74VANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

harihanv commented 2 years ago

It belongs to arduino serial handling class specific to esp8266 for serial uart configuration and communication.

On Wed, 29 Dec, 2021, 6:29 pm ayaser, @.***> wrote:

thanks for your answer. In the original file, is this instruction, or function, general or does it belong to Arduino?

Adrián Yaser

@.*** +56 9 6149 8858 https://api.whatsapp.com/send?phone=+56961498858

DVRSOLUTIONS Servicios y Productos para su Seguridad https://api.whatsapp.com/send?phone=+56961498858

El mié, 29 dic 2021 a la(s) 09:51, harihanv @.***) escribió:

This belongs to serial class please check arduino esp8266 github for details. Check the baud rate configuration.

On Wed, 29 Dec, 2021, 5:34 pm ayaser, @.***> wrote:

Dear Sir, I am making progress in trying to adapt your code to ESP8266. But I am in the following error, which is in the Interfaces.INO, line 38 " void startSerial () {mySerial.begin (localConfig.baud, localConfig.serialConfig); ". Could you guide me and tell me which library this item, object or function belongs to? Thanks a lot.

— Reply to this email directly, view it on GitHub <

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002561871

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAEH5LBO4PIUEKEQ56A7NYDUTL2L5ANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002579389 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF27I33AKPP5E5NMQIHWECLUTL74VANCNFSM44AZBAAQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/issues/6#issuecomment-1002582656, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEH5LCB7GDCZJ6JFUGGM7LUTMA37ANCNFSM44AZBAAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>