We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Old microcontroller sends unknown data
Page Index Toggle Pages: 1
Old microcontroller sends unknown data (Read 1352 times)
Old microcontroller sends unknown data
Mar 6th, 2007, 3:07pm
 
Hi,
I'm new to processing, but learning fast. I'm also very new to using data from a USB or serial port.

I dug out a Teleo intro module that I have and plugged it into my MacBook Pro to see if I could get processing to do something predictable if I pushed a button.

What I got was very odd. The Serial.read() example in the reference printed the expected list of numbers, but converting the data into anything but 'int' ( using Serial.readChar() for example) gave me odd characters and blanks.

So my question is this. How can I use processing to decipher exactly what is coming out of this little unit, and make some sense of it?

Making things doesn't make or support this particular toy anymore. I'd like to get some use out of it if I can because it works fine.
Re: Old microcontroller sends unknown data
Reply #1 - Mar 6th, 2007, 6:44pm
 
Does this link have the manual for your Teleo?

 http://www.makingthings.com/teleo/

Although it's not supported, it looks like they're still distibuting the user guides.  Ironically, it appears that the main web site at www.makingthings.com is currently experiencing technical difficulties, but the static pages archived under the teleo link above are working fine.  :-)

Let me know if this helps.  I've been considering getting the module they're producing for Make magazine and I'd be interested to hear how you make out with getting the Teleo to talk to Processing.

Update: if you're talking from Processing directly to the USB device, you'll need to read this part of the reference:

 http://www.makingthings.com/teleo/products/documentation/teleo_user_guide/teleo_application_sdk.html#teleo_advanced

The "garbage" characters you are seeing may be the "Teleo Channel" transmission information from the serial packet that carries the data you're looking for.

It might be easier to build a driver program with the Teleo C/C++ interface and use something like the Java Native Interface to interface with your C code.
Re: Old microcontroller sends unknown data
Reply #2 - Mar 6th, 2007, 7:30pm
 
Yes I downloaded and saved all of that documentation last night, and it is helpful.

The Make controller I believe is a very different animal.

While I think Make Magazine is fine I rather wish they hadn't stuck their noses into this and turned it into a marketing jambouree. If they hadn't I could get this information more easily.

Meanwhile I'm trying to learn if the output from the controller is OSC by using the oscP5 library that Makingthings provides. Still flying blind.

Re: Old microcontroller sends unknown data
Reply #3 - Mar 20th, 2007, 3:26pm
 
hy,

maybe this helps a little bit:
http://itp.nyu.edu/physcomp/Tutorials/ReadingASerialProtocol

sebastian
Page Index Toggle Pages: 1