PINK - Strange behaviour
Earlier today, I finished setting up a PINK module to monitor the temperature in a computer server room. I used the configuration page to setup all of the e-mail parameters including the E-mail To setting.
I am using an SX to send the E-mail command to the PINK. After the e-mail is sent, the PINK erases the person the e-mail is sent to, but all of the other fields remain. Is this a flaw in the way the PINK works?
It is forcing me to hard code the e-mail group into the chip, which isn't a great solution. I wanted to allow the network folks to be able to change who the e-mail is going to without having to reprogram the chip.
I've also noticed I can't display who the e-mail is being sent to using the <Nb_varET>
Any ideas?
Dan
I am using an SX to send the E-mail command to the PINK. After the e-mail is sent, the PINK erases the person the e-mail is sent to, but all of the other fields remain. Is this a flaw in the way the PINK works?
It is forcing me to hard code the e-mail group into the chip, which isn't a great solution. I wanted to allow the network folks to be able to change who the e-mail is going to without having to reprogram the chip.
I've also noticed I can't display who the e-mail is being sent to using the <Nb_varET>
Any ideas?
Dan
Comments
The "Modify" option will update RAM, the "Set Default Value" option will update flash and maintain the setting.
If you did not save to flash, then once you power the PINK off it will be lost.
By the way, nice interface LensWerks!
Dan
I have not observed any issues with the send mail command before. I can look into this further, but can you double check to be sure the PINK is not receiving a command to set the e-mail address somewhere else? Just want to be sure of what is happening.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I guarantee the PINK was not receiving another command, since the only one I programmed in was the send mail command. I also did a telnet and watched the commands go in to make sure I had it correct.
I used the config web page to set the mail parameters. Then, I had the Micon transmit the send mail command. After the command was sent, the e-mail went out and the TO address was cleared from the PINK. The next time the send mail command is sent, the e-mail fails since the TO address is now blank. All of the other E-mail fields are OK.
I have included a screen shot that is about 10 seconds old...you can see it cleared the TO address after the last e-mail. The code has been modified to now send the TO address, but after the send, you can see that the address has been cleared as well.
Thanks!
Dan
Post Edited (DosManDan) : 1/6/2009 2:13:30 AM GMT
I have tested my PINK module using the Send E-Mail example program and removing all lines after the Main program until the send e-mail command. When doing this and the viewing my Modify Variables page, everything is intact, including the TO field. Which version of the PINK firmware are you using? Mine is V1.32. You can see this at the bottom of the Modify Variables page you took a screenshot of. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
On the telnet session, the write command is issued to update NB_var02, then the CLS, then the send mail command.
Also, shouldn't I be able to show the e-mail to address on the web page using:· <Nb_varET>
UPDATE:
I found a way to re-create the bug!!!
1) Go into the Modify variables page.
2) Put an address into E-mail To
3) In your Index.Htm page, reference the <Nb_VarET> variable with the following code
········ E-mail To: <Nb_varET>
4) Nothing will show on the web page
5) Go back and check the variables page...the field will be empty.
Thank you for looking into it!
Dan
Post Edited (DosManDan) : 1/7/2009 11:50:49 PM GMT
So just to confirm…what you’re saying is that the address is not missing from the PINK Module register…it is simply not being displayed on the user web page? If this is the case I can test for this, and it also means your mail system will still work. I will post back tomorrow with my results.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I updated the previous message. Simply trying to display the value erases it. I posted the steps to recreate the problem.
I'll put together a test scenario to also find out why it is cleared when sent from the SX-28.
Dan
Post Edited (DosManDan) : 1/8/2009 12:55:36 AM GMT
I have confirmed that displaying the e-mail address seems to cause the issue you are experiencing. For the time being I would suggest removing that tag from the index page while I see what it takes to get this fixed. Thanks for your patience while we attempt to identify and solve this issue.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I appreciate you looking into fixing the problem
Dan
We have determined that there was a small bug which over-wrote the variable when it was supposed to fetch it for display. This has been corrected and we’re testing the updated firmware completely before calling it final. If it passes testing our Tech Support can arrange to get you a new module and have the other shipped back at our cost. We’d basically send a return shipping label with the new board. I should know today if the firmware passes. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Also, is it possible to flash the existing module to update it in place?
Thank you,
Dan
The existing module could not be updated without being on the local network. It seems the AutoUpdate.exe application doesn’t see modules not on a local network. I should have some news today. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Thanks!
Dan
The new firmware passes preliminary testing. It will now go to our Tech Support Department where they will do some further testing. If all goes smoothly it will be ready tomorrow. If you're coming up you can arrange to have the module updated by Josh Donelson in Tech Support. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Thanks!
Dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I really appreciate your help,
Dan
is there an RMA procedure for this now?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<FONT>Steve
What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
Lee Travino after the second time being hit by lightning!
Thanks!
Dan
Typically this issue wouldn’t affect the average user however you can contact our Tech Support Dept. to arrange to have the module swapped out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering