I have to develop a temperature monitoring and control system using a ConnectPort X4 ZB - Ethernet gateway, a wall ZB router and 2 ZB end-devices (1 ZB RS232 Adapter + 1 micro-controller kit for each end-device, of course each end device has an additionnal HW such as t° sensor or IR tx module to pilote the air-conditionning).
I’ve read many threads on this forum and I know that I have to write a Python script which will be embedded in the ConnectPort X4 to manage my Xbee mesh network. Or I can extend the ‘zb_tcp_serial.py’ script to achive that. So now I assume that it’s OK for the communication between the elements in my mesh network (coordinator CPX4 and end devices).
But I have problem with the communication btw the CPX4 and my application running on a PC which has an internet connection. My purpose is to read the temperature value from an end device and send a command to another end device to pilote an air-conditionning (power on/off, increase/decrease t°, …).
Up to now, I dont know exactly what is the protocol for my app to be able to talk which the CPX4 or with the end devices. Some threads suggest to use telnet, others suggest to use XML-RPC library. I am going to write my application in C# or Java. So could anyone give me an advice? What seems to be suitable for my app? What should I do with the script on the CPX4? What should I do with my app?
Thanks so much for your helps