10-12-2010 12:05 PM
So I have a bike that can be controlled through the companies main software which sucks. A cable comes out of the back that results in a 3.5 mm jack, which I put a serial adapter onto and finally put that through a serial to usb converting cable. I was wondering then how to make this bike impliment with Labview. I imagine the communication to the bike is fairly simple being that it is all through a 3.5 mm jack cable.
10-12-2010 12:38 PM
10-12-2010 12:41 PM
But how do I watch how the data across the cable looks like and how can I implement it into labview?
10-12-2010 01:20 PM
What is the communication protocol? You said you put a serial adapter on it. It is actually RS-232? If so, you can use a serial port monitoring program, such as PortMon if you're on Windows. This will let you see what the company's software is doing in terms of communication.
10-12-2010 01:44 PM
So, this is what I've been getting from watching the port.
ÿHÿÿçÿÿIþÿçÿÿIþÿIþÿHÿÿçÿÿHÿÿæþÿæþÿIþÿIþÿçÿÿ
Just non-stop data like this.
ÿIþÿHÿÿIþÿæþÿçÿÿçþÿæþÿIþÿçÿÿIþÿçÿÿHÿÿçÿÿIþÿæþÿIþÿIþÿIþÿIþÿIþ?<HT>ÿIþÿHÿÿçÿÿIþÿIþÿçÿÿIþÿIþ?<HT>¯çþÿçÿÿIþÿIþÿçÿÿIþÿHÿÿIþÿIþÿçÿÿçÿÿHÿÿIþÿIþÿæþÿIþ?§ÿÿæþÿHÿÿIþÿIÿÿçÿÿæþÿIþÿIþ?¦ÿIþÿIþÿIÿÿIþÿæþÿIþÿçÿÿHÿ?§ÿÿIþÿIÿÿçÿÿçÿÿçÿÿIþ?¦ÿIþÿIþÿIþÿIþÿæþÿIþ?§ÿÿæþÿIþÿIþÿIþÿIþÿIþÿIþ?§ÿÿIþÿIþÿçÿ?¦ŸœþÿIþ?<BS>ÿÿIþÿIþÿIþÿHÿÿIÿÿçÿÿçÿÿIþÿIþÿIþÿçÿÿIþÿHþÿIþÿIþÿIþÿIþÿæþÿIþÿHÿÿçÿÿIþÿçÿÿIþÿIþÿçÿÿçÿÿIþÿIþÿIþÿIþÿIþÿIþÿçÿÿçÿÿIþÿHþÿIþÿçÿ?§ÿÿIþÿIþÿIþÿIþÿIÿÿçÿÿIþÿçÿÿIþÿçÿÿIþÿIþÿIþÿçÿÿIþÿæþÿIþÿçÿÿçÿÿIþÿIþÿIþÿçÿÿçÿÿçÿÿçÿÿçÿÿçÿÿçÿÿIþÿçÿÿIþÿIþÿçÿÿIþÿçÿÿIÿÿIþÿIþÿHÿÿIþÿçÿÿIþÿIþÿIþÿIþÿæþÿæþÿçÿ?§ÿÿIþÿçÿÿIþÿçÿÿçÿÿHÿÿIþÿHÿÿçÿÿIþÿIÿÿçÿ?§ÿÿHÿÿIþÿçÿÿçÿÿIþÿIþÿIþÿIþÿHþÿçÿÿHÿÿIþÿIþÿIÿÿçÿÿIþÿHÿÿIþÿçÿÿIþÿçÿÿIÿÿçÿÿIþÿHÿÿIþÿçÿÿçÿÿIþÿIÿÿIþÿIþÿHÿÿIþÿçÿÿIþÿIþÿIÿÿçÿÿIþÿHÿÿIþÿIþÿçÿÿçÿÿçþ?§ÿÿIþÿHÿÿçÿÿçÿÿçÿÿIþÿIþÿIþÿIþÿHÿÿIþÿçÿÿIþÿIþÿIþÿçÿÿIþÿæþÿçÿÿçÿÿIþÿIþÿHþÿçÿÿçÿÿæþÿçÿ?§ÿÿIþ?<HT>_IþÿIþÿIþÿHÿÿIþÿçÿÿçÿÿIþÿHÿÿHÿÿIþÿIþ?<HT>BIÿÿIþÿIþÿIþÿIþÿIþÿIþÿIþÿçÿÿIþÿIþÿIþÿHÿÿIþÿHÿÿçÿÿçþÿIþÿçÿÿIþÿIþÿHÿÿçÿÿIþÿIþÿIþÿIþÿIþÿIþÿæþÿHÿÿçÿÿIþÿIþÿIþÿIþÿIþÿçÿÿIþÿçÿÿæþÿçÿÿIþÿHþÿçÿ?§ÿ?<BS>ÿÿIþÿIþ?<HT>
10-12-2010 01:48 PM
10-12-2010 01:59 PM
I'm not going to be able to find much documentation I think. How will turning it into Hex make it easier.
10-12-2010 02:07 PM
10-12-2010 03:22 PM
Well, it's pretty obvious the information is in hex. The fact that it's nonstop indicates that either the application is continuously querying for status or the bike is continuously spitting out information. The former is more likely. Without a manual or something you're going to have a HARD time decoding that. You'd basically need to keep things static, change one thing, and see what gets generated. Then change something else and see what gets generated. Do this for a while and you might be able to figure out the protocol.
10-12-2010 03:33 PM
So, I should just run the program that the hardware normally works with and see what the program puts out and try to work from that? There's no way to clean up the data coming out so that it makes sense instead of just being indiscriminate?