Page 2 of 2

Re: Last Post Variable Number Nb_varSV

Posted: Wed Jan 18, 2017 2:40 pm
by Mike2545
Hi Tom,

Seems odd; with the current official release (R1.46) I can Strobe the Nb_varST all day and unless I update a var on the web page, it returns "1". When I post on the web page it returns "3" like it should.

The beta release always returns a "3" even though I am not updating anything on the web page, even if I look at its value 2x's in a row its "3".


Mike

Re: Last Post Variable Number Nb_varSV

Posted: Thu Jan 19, 2017 9:12 am
by TomNB
That is odd. As you can see from the output of our test program that I sent yesterday, it does change in our test. The difference would seem to be your stamp app and our test app. Do you have any way of writing a stamp app that only sends/received the commands as in our test?

!NB0ST
!NB0SV
!NB0W06:06
!NB0ST
!NB0ST
!NB0SV
!NB0SV

When we do that sequence we get:
4 Reading status byte: 0x01
5 Reading last var changed: 0xFF
6 Writing NB_var06:
4 Reading status byte: 0x03
4 Reading status byte: 0x01
5 Reading last var changed: 0x06
5 Reading last var changed: 0xFF

Re: Last Post Variable Number Nb_varSV

Posted: Sun Jan 22, 2017 1:02 pm
by Mike2545
Tom, is writing to a var "!NB0W06:06" via the serial port and <post> on the index.html page the same thing in the PINK firmware?

Re: Last Post Variable Number Nb_varSV

Posted: Tue Jan 24, 2017 9:09 am
by TomNB
Hello, yes, it is the same thing. A test I just completed:

----- Main Menu -----
1 - Write Static IP settings
2 - Clear Static IP settings
3 - Write HTTP Port Number
4 - Read status register (!NB0ST)
5 - Read last modified variable (!NB0SV)
6 - Write variable 6 to a value of 6 (!NB0W06:06)
7 - Read variable 6 (!NB0R06)
R - Send Reset Command
S - Get PINK system status

Before viewing we page: Reading status byte: 0x01
Loaded web page: Reading status byte: 0x01
Posted variable modification. Both web page and serial read: Reading status byte: 0x03
After serial read: Reading status byte: 0x01

Note that reloading the web page multiple times will not clear the ST register, which is the correct behavior.

Did you try the test I asked about before?

Re: Last Post Variable Number Nb_varSV

Posted: Wed Jan 25, 2017 10:46 am
by Mike2545
Hey Tom, got sidetracked with the other aspects of this build, did not get a chance to preform a test like you have. It may be a few days my PICKIT2 just got fried by a bad usb hub :(

You can check out the progress in the Getting Alexa to talk to pink thread


Thanks for your continued support

Mike

Re: Last Post Variable Number Nb_varSV

Posted: Mon Jan 30, 2017 3:37 pm
by Mike2545
Tom, I am running the PINK app firmware SB70-PINK-R1.46_APP.s19 and cannot get a reliable last post var when posting on the web page, BUT when I have ISY post to the page it is right all the time.

Test 1 is:
Post "70" on web page with submit button Var_12
"!NB0ST"
"!NB0SV"
value of "!NB0SV" = 50

Test 2 is:
Post "70" to web page with ISY Var_12
"!NB0ST"
"!NB0SV"
value of "!NB0SV" = 12

Mike

Re: Last Post Variable Number Nb_varSV

Posted: Tue Jan 31, 2017 11:27 am
by Mike2545
Tom, would jquery updating the vars on the web page be reflected in the last post var data?

Mike