Shop OBEX P1 Docs P2 Docs Learn Events
PINK, the solution to my problem? — Parallax Forums

PINK, the solution to my problem?

dottedquaddottedquad Posts: 11
edited 2007-11-02 22:40 in BASIC Stamp
In order for this to work, I'll have to figure out a way to get PINK to communicate with PHP(web scripting language) or PHP-GTK(web scripting turned into a GUI for the desktop). Is this possible?

-Thanks,
Rich

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-02 00:37
    There's no ready-to-go solution. The PINK is just a web server that can populate its webpages with information set by the Stamp and the Stamp can read the contents of form variables on the web page. With any of the web scripting languages, you can fill in forms on a GET or POST request for a web page. You simply have to be able to do this using PHP. There's a thread on one of the other forums from someone trying to do the same thing using Python on the PC side and a Propeller instead of a Stamp on the PINK side.
  • dottedquaddottedquad Posts: 11
    edited 2007-11-02 02:05
    From my understand, PINK along with what you said can also Send/Receive UDP Packets on any port. After investigating my problem, I think I may have found a resolution. PHP can send/receive UDP Packets as well. I can write a script to send a UDP packet to PINK telling it to send a value back to PHP to give me a print out of whatever info I need to gather. Any thoughts?

    -Thanks,
    Rich
  • DgswanerDgswaner Posts: 795
    edited 2007-11-02 03:13
    That should work. but I believe that you'll need to have a processor of some type to receive the messages interpret them and send them back.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-02 14:53
    That is correct…while the PINK Module can send/receive UDP Packets, the sending is initiated via serial command from a host controller. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • dottedquaddottedquad Posts: 11
    edited 2007-11-02 22:40
    Thanks for all the replies! I will use a Bs2, pink, and PHP to complete my project.

    -Rich
Sign In or Register to comment.