Added: 1 year ago
From: popr8084
Views: 563
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • Hey does it work better to have it connect to the ipod or the phone, or have the ipod or the ohne connect to it?

    But how does the wifly interpet the udp packets?

  • @dlevitryon first you turn the robot on, then tell the phone what the robots IP address is, and port it is listening on. then every time you press a button, and release it, it sends over packets. for me the packets looks like:

    "/1/F......" when you pressed it and "/1/F...?.." when you released it. Or something along those line. The easiest way to see the packets is hook the wifi module to a computer, and look at the packets in a terminal program.

  • @popr8084 ok thats clear but when i have my wifi connected to the PC to a comm port how can i see that packets its getting? do i have to be connect it a diffrent way. i have sent a line to the wifi before using a diffent method. and when i send it the comm window says *open* ........more information ........ then it prints the line that i sent it and after a little while the says *close* how do i get the wifi to act on the curtian things i sent it?

    do i need to connect it to a microcontroller

  • @popr8084 Is there away to program the wifi mod. to react to a curtain string that is sent to it?

    By the way thanks for the help.

  • @dlevitryon well first you want to make sure it is in UDP mode. It come standard in TCP mode. use the "set ip protocol" command. then whatever udp packets you sent will be sent to the usart on the module.

    I'm not sure if you could make the wifi do anything when it receives packets. I always hook it up to a microcontroller. That way you have a lot more options on what each packet makes it do.

  • @popr8084 o i see. maybe.so have you not ever used the built in IO o the ADC pins or the onboard memory?is there a way?

  • @dlevitryon no, ive never used that stuff. It looks like you can access them, you'll just have to read the manual.

  • @popr8084 ive read it but not to clear.. so you just connect the wifly to the comm on your controller and when the wifi gets a package it forwards it automatic to to microcntroller then.

  • @dlevitryon correct. everything that you send to the module through wifi will get forwarded to the comm port.

  • @dlevitryon ok so ive been messing around with it i have to connect to my cell phone and when the wifly is i tcp protocol it reads *open* then stats then the mesage i sent then *close* but when its in UDP protocol i cant see anything thats sent im useing tera term for the comm on my computer?any clues?

  • hey is that a iphone. or a adroid phone?im trying to do the same with a andriod phone. but im electronics not programming? got any hints? please?

  • @dlevitryon it's actually an ipod touch. I am using a program called touchOSC (also available on android). You use a program on the computer to make a small gui. then it has to connect to the wifl module, and every time you press a button it sends a UDP packet to the robot.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more