Ok, so it turns out that the delays were needed to give the max485 pin time to go high before writing data to the max485. I have now coded it so that the max485 pin is always off except when a packet is recieved, it is then turned high and stays high but turned low after 5 seconds of not receiving packets. This UDP to pelco server is now working lickedy spit ![]()
Once again, thanks for all your help and pushing me in the right direction, next I have ordered an OLED screen and a wifi module, I plan to make a wifi UDP remote control box to send Pelco over UDP to the UDP/Pelco server, so i have a project box with a hall effect joustick, a wifi module, an OLED screen and some buttons and a rotary encoder. I will design a menu system which will allow me to use the rotary encoder to navigate menu options on the screen to choose a wifi network, save preset positions etc. No doubt I will run into issues so stay alert, I may well beg for your assistance and show my ignorance in a later post ![]()
Just in case anyone reading this thread is wondering what the heck is this guy tring to achieve with this project, I have draw this pretty picture
I want to control my camera server using a remote joystick. The camera server can be viewed via a browser in any room in the house with a pc in it, sad I know but it keeps me entertained ![]()

Thanks again for your help, Rick.