Shop OBEX P1 Docs P2 Docs Learn Events
hi all questions regarding pink capabilty od sending udp messages and email — Parallax Forums

hi all questions regarding pink capabilty od sending udp messages and email

rakeshakurathirakeshakurathi Posts: 30
edited 2008-03-27 14:10 in General Discussion
hi all,,

i came to hear that pink module has capabilty od sending udp messages and email how is that possible


UDP messages :-



what does it actually mean it sends udp messages to other pink module or to another computer connected in lan

we have tried by executing the sample code but the result is zero

we dont know what does it actually mean

and for sending EMAIL confuguring of smpt server what does it mean

just give the brief description of above questions

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-03-21 09:00
    UDP or User Datagram Protocol
    SMTP or Simple Mail Transfer Protocol

    Take a look here http://uic.rsu.ru/doc/inet/tcp_stevens/
    This text will really help anyone that wants to use LAN networks. For UDP, see Chapter 11. Yes, a whole chapter. STMP is Chapter 28. Yes another chapter.

    When you say 'we don't know what does it actually mean', you imply that are just starting to understand networking.

    So please try the above classic textbook for full background information TCP/IP. The PINK can do quite a bit if you understand how to use the network it is on.

    This will give you a very clear explanation of what a 'udp message' is, also it will help you to understand what an 'smpt server' is.

    Just plugging it in and running the software with no idea of what else is available on the LAN won't do much. Hopefully, you will enjoy learning more about LANs. It is a very big topic.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 3/21/2008 11:26:49 AM GMT
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-03-22 16:12
    i mean i know all the stuff regarding udp and smpt

    i mean i dont know about the pink how does it work

    regarding this protocols
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-22 16:43
    The PINK manual has a description and example of how to send a UDP message and how to send e-mail. Please read it. That's all the documentation there is. There's a description on the same page of what the PINK does when it receives a UDP message and where the message itself is placed. What don't you understand? It seems to be pretty straightforward. If you've tried the example and it doesn't work, what happened? How do you have the PINK connected? Does anything else work? What's on the other end of the Internet connection? Do you have routers in the way?

    The PINK is basically a web server that can talk to a Stamp. The Stamp can set and read "variables" that are named and the PINK incorporates information in those variables into Internet messages. The variable values can be accessed from the HTML stored in the PINK for the web server and the server also checks specific variables for UDP messages to be sent and for e-mail to be sent to an SMTP server. All this is described in the manual.

    Post Edited (Mike Green) : 3/22/2008 4:49:22 PM GMT
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-03-23 06:04
    every thing work fine about my pink

    we have controlled boe bot through our college lan and we can communicate in two ways with dynamic html


    but the prob is when we executed that program regarding udp messages we dono that it sends messages to computers or
    another stamp module


    we got no output nothing !!!
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-23 06:09
    Are you trying to send the UDP messages through a router? I'm not sure if a router will forward a UDP message.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-03-23 06:36
    UDP messages go out to another IP address.· Is the IP addess to the Stamp [noparse][[/noparse]via nother Pink] or·another computer?·If you have to cross a firewall in a gateway, it may not work due to security features.

    Of course, you need to have a valid IP# for the destination. In a dynamic IP# assignment·set up, that may be hard to determine unless you have access to the administrative section of the router.

    It would be best if at first, the UDP message was sent to a·physically nearby computer.· Either directly to a computer without a router or·to a LAN [noparse][[/noparse]local area network] address shared by the router that you are connecting·your Pink into for initial testing the functionality are easier to learn with.

    So, if you cannot do testing on a LAN because you don't know the IP# of the destination, just have it cabled directly to a PC using a cross-over cable [noparse][[/noparse]the PINK supplies one for this purpose].· You can assign an IP# to the PC for temporary testing.

    If you are trying to go through several routers, an ADSL modem, or a gateway - you have to know more details about what your network allows and disallows. Everyone has a different idea of security and convienence.

    Of course, if an instructor set up a good IP# as a destination for you, then you really don't have to learn all this network administration in order to use it. Hopefully, the instructor will have checked to make sure it works.
    The computer that is responding has to have a port enabled for the UDP messaging and that may require a bit of learning. I've never done this in Windows, but I suspect you will have to work at the Command Prompt level to set something up.

    BTW, UDP messaging is commonly associated with 'instant messaging'.· You might be able to adapt such software to communicate.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 3/23/2008 6:55:39 AM GMT
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-03-23 17:33
    i am not using any router just we use only switch in between nothing more than to connect our computers
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-23 18:21
    There must be something wrong with what you are doing. It would help if you would post the program and a diagram of how you have the PINK connected to the Stamp and some information about what program you have that's looking for the UDP message.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-03-24 08:17
    Besides correctly programing the PINK, consider these:

    1. Make sure you are using a cross over cable and not the straight through cable.
    2. Make sure you have a good IP# and Port established for the UDP messaging.
    3. Determine what is the application that the PC uses to support receipt and reply of UDP messages.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 3/24/2008 8:24:51 AM GMT
  • OwenSOwenS Posts: 173
    edited 2008-03-24 09:48
    Kramer said...
    BTW, UDP messaging is commonly associated with 'instant messaging'. You might be able to adapt such software to communicate.
    Actually, every IM system I've ever seen (And I've seen lots: AIM, ICQ, MSN, Jabber/XMPP, etc) uses TCP. Quite often they multiplex all their messages through their "switchboard" server also, rather than connecting directly to the other person.

    (An excerpt from netstat -p on my Linux box)
    tcp        0      0 RedGiant.local:49250    kc-in-f125.google.:5223 ESTABLISHED 4360/kopete
    tcp        0      0 RedGiant.local:51666    by1msg4146005.gate:msnp ESTABLISHED 4360/kopete
    tcp        0      0 RedGiant.local:40030    by1msg2082110.phx.:msnp ESTABLISHED 4360/kopete
    
    



    The main reason they use TCP is it's guaranteed delivery, and the fact that it's easier to use (You have to maintain more of the state yourself with UDP comms). As this isn't an application which depends on low latency, the overheads aren't important.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-03-24 18:08
    Thanks OwenS,
    I seemed to have Googled into something that was not quite clear about UDP. I guess the writer had a different concept of what an 'instant message' referred to.

    UDP apparently is a very easy protocol to learn because it is simple packets, but is also considered 'unreliable' and ' arrival of the packets is not ordered'. {One cannot be sure the message arrives as the destinaton as there is not confirmaiton or in what order they arrive.}

    Is there an application example that would make their utility clearer?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Computer Geek 101Computer Geek 101 Posts: 179
    edited 2008-03-24 18:53
    I have used UDP to send data to server apps. I have a basic stamp timeclock that sends clock punch information via udp the the server program. Also, I have a data collections program that sends data to a server program. As long as the data being sent is fairly short, I have not seen any problems with data loss.

    In VB.net, UDP is easy to use for getting data from the network. I can post some examples if anyone wants them.
  • skylightskylight Posts: 1,915
    edited 2008-03-24 19:07
    If the OP is not having success with UDP could it be that he has an earlier version PINK?
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-03-26 15:02
    i want some examples pls sir my mail id rakeshakurathi@gmail.com
  • Computer Geek 101Computer Geek 101 Posts: 179
    edited 2008-03-27 14:10
    here is how i do udp.· the class files is written in vb.net 2005 and the spin program uses the PINK object in the OBEX.· i hope this helps
Sign In or Register to comment.