Shop OBEX P1 Docs P2 Docs Learn Events
PINK Module — Parallax Forums

PINK Module

HawaiianGuyHawaiianGuy Posts: 3
edited 2009-08-18 13:21 in BASIC Stamp
Hi Everyone,

I'm new to the forums, and this is my first post.· Currently, I'm working with the PINK Module (along with a BS2), and it's my first time using it so I'm fairly green.· My goal is to use the PINK module to send text based commands to a fairly stripped TCP/IP based device on my network (This device is simply waiting for commands and sends an acknowledgement). As far as communication with this device, I have been successful in pinging with no packets loss, so I know I have coms. Lastly, I've written commands to the general purpose variables using both the web based interface and serial connections, but I'm not quite sure how to send these variables to my device.

Also are there any sources that could explain more about how the local variables work as well as their function on the PINK module other than the v2.1 guide on the parallax website?

Any help will be much appreciated!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-13 15:55
    You have to use UDP (page 11 of the documentation) and you have to use a specific variable where the message string is built.
    To learn more about the use of variables, you'd have to get a book on constructing web pages using HTML.
  • HawaiianGuyHawaiianGuy Posts: 3
    edited 2009-08-13 16:08
    Thanks for the reply Mike. So UDP is the only way to send commands? I'll give it a shot and let you know my results.
  • xanatosxanatos Posts: 1,120
    edited 2009-08-15 01:20
    Hi HawaiianGuy,

    Sounds like you and I are doing roughly the same thing - I need to send UDP messages - basically timestamps - to a remote PC with an application that will record the data packets, storing them in a comma-delimited file that my web app will use to display data to the end user. And I basically have no idea how to do that yet! But I'll gladly share what I find as I find it, there are some very helpful folks on here who have chimed in and I hope that I'll have some basic working functions soon.

    Currently I am communicating via HTTP with an embedded site in the PINK to machines on the local network. Part of my challenge is that I need to communicate with machines OUTSIDE the local network, via either port forwarding, or some as-yet-to-be-determined configuration. Not much luck with port forwarding yet....

    I'll keep ya posted.

    Are you really from Hawaii?

    Dave
  • HawaiianGuyHawaiianGuy Posts: 3
    edited 2009-08-17 14:05
    Hi Dave,

    Thanks for the reply, it does sound like we are doing just about the same thing.· I have been trying to send commands·via UDP·to my TCP/IP device·with out any success.· I think I may·have to use another method though because after reading the materials over and over again, my device·does not really support UDP.· So I'm back to square one!

    your project sounds great.· I may also have to figure out·how to use either port fowarding,·and I'll share any progress that I make.

    and yep, I'm from Hawaii, born and raised on Oahu.

    A hui hou (until next time)

    Edward
  • skylightskylight Posts: 1,915
    edited 2009-08-18 13:21
    My understanding apart from using UDP is that you read from the pink via a device the pink cannot initiate a response itself unless prompted to do so?
    In other words you need to poll the pink first

    Post Edited (skylight) : 8/18/2009 1:26:41 PM GMT
Sign In or Register to comment.