02-12-2013 04:49 AM
Hi everyone.
I'm working on a project using DaNI robot, where I want to wirelessly control the DaNI. I'm using ProBee ZS10 as the wireless protocol.
I have two ProBee ZS10 modules, one will be connected to a PC and acts as a coordinator and another one will be connected to the serial port on the DaNI.
I have two codes right now, one is the basic serial write and read, and another one is the code for controlling the robot.
I have managed to configure the wireless modules using TeraTerm and had succesfully established the communication between those two modules.
Also, I managed to control the robot using the control code using wire cable that is connected to the ethernet port.
The problem is how to integrate these two code to have a wireless control robot?
Attached are my codes.
The Main Control is the main VI and Contro1 and Control 2 are the subVIs.
Your help and advice are much appreciated.
Many thanks.
02-12-2013 04:50 AM
and this is my basic serial write and read code.
Thanks
02-14-2013 05:22 AM
Hi
It looks like you'll need to look into the Zigbee hardware a little more. What sort of signals does it put out at the receiver end? You should be able to send commands to it on the host PC, and then you have to set up some sort of decoding at the DANI end.
I assume your end goal is to make the wireless part invisible to the DANI, so that you can just receive serial commands and process them. It sounds like the ZS10 doesn't implement this functionality, so you may have to code some commands to get what you want.
So once you have figured out what signals you will be getting at the DANI robot, you can then interpret them as normal serial commands that you want.
02-19-2013 06:30 AM
Hi Ian,
Thanks for your reply.
I've used those zigbee modules as the mean of communication between two computers.
I've carried out image transmission from a host computer to another computer, in which the image has been converted to array and then converted to string before it had been transmitted. So i'm thinking to use the same approach, which using string (or boolean perhaps) to remotely control the robot wirelessly.
In the mean time, i've looked into the teleoperate example (https://decibel.ni.com/content/blogs/MechRobotics/2010/04/14/teleoperate-the-starter-kit-from-20-flo...
Since i want to use serial communication, i've changed the TCP part of the teleoperate example and replaced it by serial command. I'm not sure whether this can be done or not because i could not test the code, due to those errors and broken wires.
Could you please advice on this?
02-19-2013 06:33 AM
I gonna used the Receiver1001 code (above) together with the two codes that i've attached here. Got that from the teleoperate project on the NI community blog.
Many thanks.
Looking forward for your reply.