AvcomM TEC SimpleLan web server
I know this is not a parallax product strictly speaking but they have done the homework to make a BS2 easy to interface with this web server.
Does anyone have any experience with this product?· I'm intrigued, I put it on my Christmas list hoping to make it work with my propeller for some home automation.·· The largest cost for home automation can be the Human Machine Interface (HMI).· If the HMI becomes your web browser then it is basically free, AND it has the nice feature of being available· world-wide.·
It appears to be a scaled down PINK like device but at a much lower cost.· A friend of mine (embedded engineer) gave me a LanTronix XPort serial server kit, I was thinking that this would be my web server, I was disappointed to find out that you had to do quite a bit of really fancy Java to make an interactive web page talk to your home based micro.· It did not have the intermediate registers easily·available to the serial side and the html side like PINK and the SimpleLan.·
fishing for opinions.....
Does anyone have any experience with this product?· I'm intrigued, I put it on my Christmas list hoping to make it work with my propeller for some home automation.·· The largest cost for home automation can be the Human Machine Interface (HMI).· If the HMI becomes your web browser then it is basically free, AND it has the nice feature of being available· world-wide.·
It appears to be a scaled down PINK like device but at a much lower cost.· A friend of mine (embedded engineer) gave me a LanTronix XPort serial server kit, I was thinking that this would be my web server, I was disappointed to find out that you had to do quite a bit of really fancy Java to make an interactive web page talk to your home based micro.· It did not have the intermediate registers easily·available to the serial side and the html side like PINK and the SimpleLan.·
fishing for opinions.....
Comments
Mike
Avcom TEC and their website is······ www.avcomtec.com
·
Randy
Merry Christmas!
I have a US Robotics Router that I set up so my server was the virtual server.· to test everything I sent the sample files to the simplelan, then tried to browse to it from my PC via both the crossover and connected to my router, works both ways.· Also as a true test I did a Whatismyip.com to see what I looked like the the outside and then logged into a work computer via Citrix and tried to browse back to my embedded server using the ip address given to me by the whatismyip service.· That worked as well!!· I can't believe it.· Now I just need a way that· I can retrieve my non-static ip address and then I could email it autimatically every day.· If I'm away and the ip changes then I'd just wait for the next email to see what it changed to.· not sure how to do that.·
I have not connected a micro to it yet but that was the least of my worries.· I'm going to use my prop chip as soon as I acquire some 4050 buffer chips.·
Has anyone actually sent email with the SimpleLAN?
I've got one mated to a PIC - works great serving a web page, but I've had zero luck sending email.
I've been using SitePlayers for years, but they don't have any provision for sending email without having a PC running somewhere on the network.
In my case, the Ethereal packet sniffer shows the server not liking the domain name my SimpleLAN is sending.
We've tried it on a couple of different servers, one with auth required and one without - same results.
Would you be interested in comparing the strings to see if I've mangled something there somehow?
Obviously, we'd "x" out the sensitive info.
Here is the dat file that I'm using...
dat
str_ET byte "!AT0WET:rpankau@uiuc.edu",0 'Email To
str_EF byte "!AT0WEF:ranmolalymilgus@SBCglobal.net",0 'Email From
str_ES byte "!AT0WES:Hello World of Email",0 'Email Subject
str_EC byte "!AT0WEC: This is the body of the message",0'Email Content
str_EV byte "!AT0WEV:smtp.sbcglobal.yahoo.com",0 'SMTP server
str_EU byte "!AT0WEU:ranmolalymilgus@SBCglobal.net",0 'Username
str_EP byte "!AT0WEP:XXXXXX",0 'Password
str_snd_email byte "!AT0SM:",0 'Send Email command
Here is the important bits for sending, I'm using the "FullDuplex" object from Parallax "serial" below refers to that object.
serial.str(@str_EC) 'Email Content
serial.tx(13)
serial.str(@str_ET) 'Email to
serial.tx(13)
serial.str(@str_EF) 'Email from
serial.tx(13)
serial.str(@str_ES) 'Email subject
serial.tx(13)
serial.str(@str_EV) 'smtp server
serial.tx(13)
serial.str(@str_EU) 'Username
serial.tx(13)
serial.str(@str_EP) 'Password
serial.tx(13)
serial.str(@str_snd_email) 'send email command
I tried a test last night by incrementing a byte long counter once per second or so and on the xth rollover I sent out an email, it did work, but tonight I found the server not accepting serial commands from the Prop, I don't hav a scope here to troubleshoot so I'm not sure if the Prop locked up or what. I reset the prop and everything was fine. First I reset the server and same problem, so I'm assuming the Prop is at fault here.
Since I'm using a PIC programmed in assembly language, my code looks different from BASIC, but outputs the same string format.
Here's what I'm sending to SimpleLAN
====================================================
N0QBH string inverted and captured by Hyperterm at 2400 baud
!AT0WET:n0qbh@yahoo.com
!AT0WEF:mybad@clearwire.net
!AT0WES:Wx alert
!AT0WEC:Low indoor temperature alarm
!AT0WEV:mail.clearwire.net
!AT0WEU:mybad@clearwire.net
!AT0WEP:xxxxxxx
!AT0SM:
=====================================================
The result is always the same from the mail server(s)
Invalid domain name
I set up a test with our IP person at work to use their server and got the same results.
I've written serial routines to write my strings to the SimpleLAN and then read them back and everything checks out.
I've been at this racket long enough to know that rarely is the problem hardware, but am fast running out of other possibilities.
The only difference I noticed between your strings and my earlier versions was you have a colon after the "!AT0SM" statement that doesn't show in the docs. It seems to behave the same with or without however.
As to your question about SitePlayer, it's a more powerfull platform in many ways, but is also a much steeper learning curve.
The mfg seems to have lost interest in upgrading it, instead focusing on it's spinoff product called Telenet that is a serial over ethernet application. My main reason for going to SimpleLAN was the email feature to let me send text message alarms to my cellphone without having to have a PC running on the local network acting as a mail server.
An example of one of my SitePlayer servers is www.ringowx.dyns.cx which is connected to a homemade weather station I built a few years ago.
Agn, thanks for the help.
I'll keep the group in the loop and let you know if it turns out to be operator error or hardware.
Disgusted
DL
Also it's easier and the instructions suggest that you set your PC's· IP address manually to do this.· Or just·find out your PC's IP address with IPconfig·and make sure you assign the SimpleLan's address·accordingly.· ·
Thanks
DL
so, at least, I'm on the move...thanks!
Email problems can be tricky to resolve!
Most likely your email server is checking for a DNS hostname and IP address match for the host name and IP address that your SimpleLAN device is using. You may need to create the required DNS entries or add a rule to your mail server to let messages from the SimpleLAN be relayed to the outside.
In the mean time, you might try sending your water alert email directly to a Yahoo mail server. That might work or it might not. Your success will depend upon how picky Yahoo is about the credentials of those who send email to their users!
- Sparks
DL
Do you know what type of ethernet cable you used in each instance???
I would set your lan up as DSL-Router-Switch-HUBS in that order, using the correct cabling between each device...
Bob
-Phil