Is what I want to achievable?
Posted: Sat Mar 25, 2023 7:08 pm
Hello,
Whilst I have dabbled with microcontrollers in the past, I am quite new to ESP so wanted to seek advise as to whether what I want to do is achievable before I embark on a potential waste of time...
I have the need to join multiple ESP microcontrollers on a bus system stretching probably total of 50m. There will be one ESP which will act as the master which periodically polls the other 20 ESP nodes all connected along the 50m bus.
I thought that the only reliable bus that would be suitable would be something like CAN bus. You can get CAN bus transceivers which connect to the ESP via SPI or I2c. CAN bus spec seems to indicate this is within the specification in distance terms and this is a supported and well known protocol.
The part I'm not sure about is updating the firmware. Since this is a remote system I need to be able to connect to the ESP boards and download updates and I won't be able to do this over wifi which I would like to disable so am wondering whether this is possible to do this via the CAN bus.
I'm assuming this would require a custom boot loader as I'd need a copy of the new downloaded program to be checked to ensure it is correctly downloaded before using it I cannot afford for transmission errors and the loss of some nodes in case of corruption...
Has this been done before? I'd hate to re-invent the wheel if it is already available? If this is not possible, would there be any better alternatives out there?
Thanks
Whilst I have dabbled with microcontrollers in the past, I am quite new to ESP so wanted to seek advise as to whether what I want to do is achievable before I embark on a potential waste of time...
I have the need to join multiple ESP microcontrollers on a bus system stretching probably total of 50m. There will be one ESP which will act as the master which periodically polls the other 20 ESP nodes all connected along the 50m bus.
I thought that the only reliable bus that would be suitable would be something like CAN bus. You can get CAN bus transceivers which connect to the ESP via SPI or I2c. CAN bus spec seems to indicate this is within the specification in distance terms and this is a supported and well known protocol.
The part I'm not sure about is updating the firmware. Since this is a remote system I need to be able to connect to the ESP boards and download updates and I won't be able to do this over wifi which I would like to disable so am wondering whether this is possible to do this via the CAN bus.
I'm assuming this would require a custom boot loader as I'd need a copy of the new downloaded program to be checked to ensure it is correctly downloaded before using it I cannot afford for transmission errors and the loss of some nodes in case of corruption...
Has this been done before? I'd hate to re-invent the wheel if it is already available? If this is not possible, would there be any better alternatives out there?
Thanks