PINK internet module setup and testing
Hi, I have posted my javelin test file here
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/web/
I have already posted some results in the basic stamp forum
http://forums.parallax.com/showthread.php?p=556951
Further javelin test results will be posted in this thread.
regards peter
Post Edited (Peter Verkaik) : 11/7/2005 9:26:16 PM GMT
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/web/
I have already posted some results in the basic stamp forum
http://forums.parallax.com/showthread.php?p=556951
Further javelin test results will be posted in this thread.
regards peter
Post Edited (Peter Verkaik) : 11/7/2005 9:26:16 PM GMT
Comments
I want to receive UDP messages from the PINK on the pc.
Do you know any free UDP terminal program that lets me
send and receive udp messages?
regards peter
I found this udp terminal program.
My pc network card ip = 10.10.10.70
My pink module ip = 10.10.10.71
What ports are used by the pink udp messages?
regards peter
I am trying to send an email but I never receive it.
I guess it is my network settings.
My·pc is connected wirelessly with a router. That works.
ip = 192.168.2.100
mask = 255.255.255.0
gateway = 192.168.2.1
dns = 192.168.2.1
I have a·wired network card that connects to the pink using the supplied crossover cable
ip = 10.10.10.70
mask = 255.255.255.0
gateway = 10.10.10.1
dns = 192.168.2.1
My pink settings
ip = 10.10.10.71
mask = 255.255.255.0
gateway = 10.10.10.1
dns = 10.10.10.1
I have communication with the pink using the ipsetup program.
What must the settings be?
regards peter
Post Edited (Peter Verkaik) : 11/8/2005 2:08:07 PM GMT
According to this article
http://www.microsoft.com/windowsxp/using/networking/expert/crawford_02april22.mspx
I need to bridge my wired segment and my wireless segment.
I have done so, still have access to internet and ipsetup detects the pink.
I still don't receive my email I sent from the pink.
regards peter
I don't have my PINKy yet, and haven't had (taken) a chance to read the docs, but from a networking side, the mask of 255.255.255.255 is suspicious. This normally means you can only see your specific address. If that isn't a typo, something like 255.255.255.0 would be more appropriate.
I beileve the PINKy supports a telnet session. Can you telnet the PINKy from your PC? How about another PC connected to the network through the wireless?
Forgive me if I've covered ground you have already been over.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
It was a typo.
I have now bridged my wired segment and my wireless segment on my pc.
I have given the PINK static settings
ip = 192.168.2.114
mask = 255.255.255.0
gateway = 192.168.2.1
dns = 192.168.2.1
My pc bridge settings
ip = 192.168.2.112 (via DHCP of router)
mask = 255.255.255.0
gateway = 192.168.2.1 (ip of router)
dns = 192.168.2.1
The wired LAN card and wireless LAN card settings are not displayed anymore by windows.
I can connect to the PINK via my laptop at ip 192.168.2.107 which is also
wirelessly connected to the router (as is my pc). Telnet also works.
Now I try to send udp messages to 192.168.2.107 but I do not know what ports to use.
regards peter
Post Edited (Peter Verkaik) : 11/8/2005 2:18:19 PM GMT
Do you have an SMTP server defined on the PINK?· If the PINK has it's own SMTP server (I think this may be the case), it is possible that your ISP is rejecting the mail because it's seeing the PINK as some type of SPAM engine.· This may be because it lacks a domain, and/or can't be resolved, or doesn't match the "reverse DNS" lookup.
Does the PINK have some type of mail error log on it you can telnet in and look at?
Sorry for incomplete answers, just hoping to help with ideas to look at.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
The telnet session will only allow you to see communication that is taking place over the serial connection (such as to the Stamp)- You can also FTP to the PINK to check connections.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
What ports does the pink use to transmit and receive udp messages?
BTW, ftp works also on my LAN.
regards peter
·
http://www.netburner.com/products/processors/sb70/sb70mib.txt
Some formal descriptions.
http://www.netburner.com/products/processors/sb70/SB70config.htm
This shows it listens on port 23 (should be telnet) and connects via port 1000.
http://www.netburner.com/products/processors/sb70/SNMP%20Walk%20of%20an%20Operating%20SB70.htm
This shows for udp 7, 9, 161 and 20034. And ports 23 for listen and 1000 for connect.
Do these apply to the PINK as well?
regards peter
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
I'm guessing a value is hard coded in for port, allowing two (or more) PINKys to talk to one another, and if this is the case, we don't need to know.
Exploiting this as a means of communication to/from other devices may be something the folks at Parallax didn't anticipate.
I have only some general thoughts for specific applications, and this concept is like a light bulb going off, klaxons of joy ringing out, the answer for world peace - er - I'm getting carried away...
You might be able to use some type of port sniffer (even network detection software e.g. something like "What's UP!") to find the port.
If only Parallax would have moved to the midwest, (or I would have paid for faster shipping), I could be of more help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
I don't supose you may have a way for us to do the same?· Or a firmware upgrade at some point (once things have settled down some) to allow a variable to be (dynamically) set?
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
http://www.ethereal.com/distribution/win32/
I printed the results to a pdf file.
It shows udp source port = 10000
udp destination port = 10000
It also shows email (smtp.zonnet.nl) is sent to 62.58.50.46 which is my ISP smtp server.
(pink is at 192.168.2.114, router at 192.168.2.1)
That udp terminal program I found does not show anything using port 10000.
Any other udp viewer?
regards peter
Post Edited (Peter Verkaik) : 11/8/2005 6:49:38 PM GMT
I don't think we can ask for more than that.· Port 10000 is out of the way, and should be useable for most apps without worry of conflict.· I would wait until someone comes up with a good reason that Port 10000 won't work before I worried about it.· If there was a change required, using another hard coded address, but possibly registering the port as "PINKy from Paralax" or something might be an option.· I used to know how to registrer an application and port witht "the authorities", but have forgotten, and it's probably changed by now anyway.
If we write (send a message) to this from a PC, is there any special code we need to include so that the "message received" bit is turned on?·
I assume successive messages will wipe out any prior?·· Is this correct?· Would this also apply to messages from another STAMP (ye who sends last wins)?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
It turns out I must use a valid (existing) email address in the Nb_varEF variable.
I also tried if·a variable reference like <Nb_var00> in Nb_varEC
would be parsed. Unfortunately it isn't, so we must specify a file that
will hold the <Nb_varXX> and that will be parsed.
regards peter
Parallax team: Are there provisions for cases where the SMTP server requires authentication?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
http://www.c-sharpcorner.com//Network/simpleTcpUdpServerClientPL2.asp
I do have Visual C# so I will investigate it.
regards peter
Here is a udp client program that allows to send an udp message to the pink.
Just set the ip address for your pink and set port to 10000.
Strange thing, in my pink it is status bit5 that is set when the
message is received, and it is received because I continuesly
read out the status and Nb_varBM and I see the message appear.
Status is then %00100001.
regards peter
Once you get going on the PC side code, the UDP will be a piece of cake, at least it was on VB6. They had a control class that did all the work. I assume that they have a similar set of classes in .NET. I don't know if I have the source code handy anymore, but I did a network data collection application with a client and server component. The clients talked to the server via TCP or UDP, I forgot which we used, but the setup and testing was the same. As an interesting comment for future thought, the server held multiple conversations at once (via looping). They were all opened on the same port, but part of the reply was a flag that "automagically" moved the conversations to a random unused port. I don't remember off hand exactly how that worked, or if it was part of the UDP standards or part of the MS control that was used. If it was part of the UDP standard, that could be useful with our PINKy friend.
I'm not into the Javelin STAMPs, at least not yet, but will be watching your progress and kibitzing when I can.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
Any thoughts on status bit5 (should be bit4 according to manual)?
regards peter
Just set the port to 10000 and click listen.
It shows the time in front of the message.
regards peter
I'll give more detail when I get into the office (not in there yet, still at home!)
There is talk of dealing with authentication on the SMTP side of things. I'll keep you updated.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/web/
together with an updated Pink class and updated udpserver and udpclient program (these now
have port preset to 10000 which is used by pink).
I noticed that status bit4 gets set after sending an email (I assume an empty udp message
is received from the smtp server, because Nb_varBM value is 0 bytes),
Whenever I send an udp message from the pc, status bit5 gets set (bit5 is undocumented).
Why the difference?
regards peter
Post Edited (Peter Verkaik) : 11/9/2005 3:32:07 PM GMT
The ParallaxSB70ConfigGuide.pdf on the supplied cdrom,
specifies a 2nd·serial port on the J5 connector and both serial ports
have handshake signals.
Is the 2nd port active, and are the handshake signals for both ports active?
The web interface for setting up the serial port only sets up one port,
parity is selectable but handshake is not.
If the 2nd port is active, will the pink serve 2 independant ·running stamps
(that is, if stamp 1 tries to send email, does stamp 2 get status not ready)?
Are the serial ports truly full duplex or actually half duplex?
When full duplex, will a read command of a variable that uses rollover, be terminated
if a new command is sent to the pink? (in half duplex I assume the read command must
continue until the CLS character is read).
regards peter
I'm thinking in terms of the way my Mac powerbook is set up. I have contact with PINK on ethernet at 10.10.10.71, and I have contact with the internet through a wireless 801g to my d-link router. Of course (?) PINK is not visible from the internet, and if I ask PINK to send an email, it (of course?) can't find the SMPT server. Does a bridge connection have anything to do with that situation?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
According to this article
http://www.microsoft.com/windowsxp/using/networking/expert/crawford_02april22.mspx
if you have 2 or more segments connected to your pc (a wireless network card and a wired
network card for example) then those 2 need to be bridged. The article explains how.
Once you have the bridge (BTW, set both the wired lan card and the wireless lan card to automatic
settings so they can be DHCP'd) your pc has access to the internet, but also the pink has access
to the internet (pink connects with the red cable to the wired lan card).
I had to put a wired lan card in my pc because I was too far away from the router and no
wired connection nearby. I couldn't access the pink across my LAN network, until I read about
the bridging option that is built into XP. Now that I have the bridge, the pink is accessible
across my entire LAN.
regards peter
A "bridge" is basically telling the PC to allow traffic go from one network connection on the PC throught the PC, and out another network connection on the PC.
It would apply under the following situation:
Your PC has a wireless (or wired) connection that can gain access to The Internet, or what ever other network you're after.
The PINKy is connected to a second network connection on your PC.· This connection, just by itself, will let the PINKy and PC see each other, but the PINKy can't see the rest of the network (i.e. Internet).
Activating the "Bridge" will allow·network traffic to flow through the PC (Mac) to and·from the·PINKy.
I have no idea how to set this up on a Mac, but it should be somewhere in the network or network card settings.
If your PINKy is connected directly to the network, you shouldn't need to worry about setting up the bridge.· If your PINKy is plugged directly into the PC/Mac, then you'll need to the Bridge set up for the PINKy to send e-mail, unless you have an SMTP server running on the PC/Mac.
(12:54 CST - Corrected MAC (hardware address) to Mac (type of·computer)·- Thank you Ryan.· I'm not a Mac guy, but do work with· MACs)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
Post Edited (John R.) : 11/9/2005 6:57:17 PM GMT