Go to Post The Pet Rock was very original, but not necessarily a great thing. - IKE [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-08-2008, 15:37
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Using the TTL port on the RoboVasion (Edubot) Controller

Hi Guys!

I have a project in mind which should be pretty cool

I have the old EduBot/RoboVasion (whatever you call it) controller laying around, and also an old Nokia 3300.

I want to use the TTL serial port on the controller to read data from the phones serial port
(info here --> http://bible.younet.com/files/2004/05/13/150237.shtml )

The idea is to be able to read SMS messages that the phone receives, decode them, and have the controller act accordingly...

Code:
AC-on;PC-on;lights-off;
Cool, right?

So my problems right now are:
  1. I lack basic knowledge in TTL port and general serial port communications.
  2. I don't know how to read data from the TTL port or set the baud rate and other settings (on the controller).
  3. Not sure how to communicate with the phone (something about AT commands??).

If any of you can offer any guidance on any of these subjects I will appreciate it greatly.

-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #2   Spotlight this post!  
Unread 05-08-2008, 15:54
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Using the TTL port on the RoboVasion (Edubot) Controller

Ok regarding number 3)...

I think this tutorial:
http://www.developershome.com/sms/ho...SMSUsingPC.asp
Pretty much sums up the AT commands I need.

Just need to know hot to use the microcontroller to send and receive them!

(you can read about AT commands here: http://en.wikipedia.org/wiki/AT_Commands)

Thanks again for reading and hopefuly helping
-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #3   Spotlight this post!  
Unread 05-08-2008, 16:19
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Using the TTL port on the RoboVasion (Edubot) Controller

I think to start off you should get a copy of Kevin's code that includes the serial port library at http://kevin.org/frc/

You should probably go for this one, as it is a pretty baseline version (none of the camera etc stuff you don't need).

Inside you'll find a document about "using previous rc" or something along those lines, and you'll have to follow the instructions inside. You need to do this since the edu rc has an "older"/different chip than the current one.

Once you get the default code to compile and run, come back and we'll start with the serial port communication.
  #4   Spotlight this post!  
Unread 06-08-2008, 11:00
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Using the TTL port on the RoboVasion (Edubot) Controller

OK I got it working...

I actually had to use this one:
http://kevin.org/frc/2005/edu_serial_ports_0.3.zip

from here:
http://kevin.org/frc/2005/

Since I'm using the Edu-RC...

Anyway It works great obviously (it's Kevin's code.. ) and I managed to work with the serial port a bit:

Using the IFI Loader terminal window I sent the controller a 0 (zero) or a 1 and have it reply: "This is The One." or "This is not The One." accordingly.


In the process I hopelessly wrecked my phone's serial communication port while trying to solder wires to it so I'll have to get another phone....

Thanks for the Help.... I think I have got it figured out... Reading the data from the phone may yet pose a problem (what with buffers and stuff like that) but i'll post back when I get to that bridge if there is any problem...

Thanks again!
-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2004 Edubot Serial String Help (TTL in) Josh Siegel Programming 6 10-12-2006 08:28
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
Using the TTL port Max Lobovsky Programming 6 25-06-2004 12:44
Fading LEDs using a PWM signal from the Edubot DanL Programming 22 30-03-2004 00:07
Can you use PWMs (Red or Blue) with the edubot controller? Dr.Bot Robotics Education and Curriculum 3 04-12-2003 23:51


All times are GMT -5. The time now is 01:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi