Local App and Classic connections. Classic goes away and comes back ETC

Started by Halfcrazy, February 21, 2013, 06:27:19 PM

Previous topic - Next topic

Westbranch

Tom, looks like you, and I, will have to stay with an 'old' version of AIR if it can be located...

http://en.wikipedia.org/wiki/Adobe_Integrated_Runtime
It also originally supported Linux, but that support was discontinued.


ADD : V 2.6 is the last one

http://helpx.adobe.com/air/kb/archived-air-sdk-version.html
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

Resthome

Quote from: Halfcrazy on February 22, 2013, 09:17:53 AM
Ok Andrew thinks he knows what it is and it has to do with the way he requests Live data from the PC's hard drive or something. He is working on it and we will keep everyone posted.

Ryan

After looking at WireShark network data  the Classic is 196.168.1.100 (Static) my computer is 196.168.1.110 (DHCP). DHCP begins at 196.168.1.110.

A screen shot of WireShark network trace of the Classic and Local App connection drops while in the Data tab is attached. Filtering on only the TCP data packets it appears that the Modbus Read Multiple Register commands usually have a query packet from the APP and then a response packet from the Classic. Before the APP sends a Finish Flag there was a Query from the APP but no response from the Classic. So for some reason the Classic is not sending a response. The APP then sends a ACK, FIN (Finish) and disconnects and throws the error message. Not sure if it resyncs without dismissing the error message and clicking the View button. I think it does as the same disconnect happens with the AutoRestart at midnight set to reboot the Classic and the data continues to be acquired while the Error message is still displayed.

John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA

boB

Quote from: Resthome on March 13, 2013, 11:23:12 PM

After looking at WireShark network data  the Classic is 196.168.1.100 (Static) my computer is 196.168.1.110 (DHCP). DHCP begins at 196.168.1.110.

A screen shot of WireShark network trace of the Classic and Local App connection drops while in the Data tab is attached. Filtering on only the TCP data packets it appears that the Modbus Read Multiple Register commands usually have a query packet from the APP and then a response packet from the Classic. Before the APP sends a Finish Flag there was a Query from the APP but no response from the Classic. So for some reason the Classic is not sending a response. The APP then sends a ACK, FIN (Finish) and disconnects and throws the error message. Not sure if it resyncs without dismissing the error message and clicking the View button. I think it does as the same disconnect happens with the AutoRestart at midnight set to reboot the Classic and the data continues to be acquired while the Error message is still displayed.

Good detective work, John.

We used wireshark too.  What a great program !

I'll clue Andrew into your findings.

boB


K7IQ 🌛  He/She/Me

atop8918

Hi, everybody,

The dropping in the data tab seems to be an Adobe Air performance issue and kudos to John's excellent wireshark sleuthing. It can't handle the file and networking simultaneously. Usually a missing response packet from the Classic is not grounds for closing the connection unless AIR gets hung up waiting for the disk. This is one of many reasons I'm changing our application framework to leverage some more robust technologies and we'll be dropping AIR like it drops network connections.

Ubuntu and other fellow Linux flavored users, please take note of my disclaimer on the bottom of the app download page:

http://mymidnite.com/

Adobe dropped Linux support at version 2.6 and, regrettably, we have had to follow suit. The app up to version 2.6 is supported for Linux, but any newer revs are use-at-your-own-risk. I've had some luck running the app on Ubuntu 12.10 under wine, but as a small company we don't have the resources to support an unsupported platform. I'm very bummed at Adobe's decision as Linux support was one of the main criteria for using AIR in the first place.

Thanks!
-Andrew

Resthome

Even the Photoshop suites rarely get bug fixes, just new versions that you have to pay for. And the Elements products are all developed in India and only the Product Manager is in San Jose.

Will be glad to see the new Web Server.
John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA

Westbranch

Quote from: atop8918 on March 14, 2013, 03:57:59 AM
Hi, everybody,
I'm changing our application framework to leverage some more robust technologies and we'll be dropping AIR like it drops network connections.
-Andrew

Andrew any comments about the "more robust technologies" you will use?

Eric
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

Vern Faulkner

Quote from: Westbranch on March 14, 2013, 08:49:34 PM
Andrew any comments about the "more robust technologies" you will use?

Eric

Probably involves words I can't publish or say on air.

Westbranch

KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

atop8918

We're going to start doing a web-based interface directly on our products like almost everybody else does, although compared to my current solution, a couple of rocks banged together could be considered "robust".

TomW

Quote from: atop8918 on March 15, 2013, 12:02:54 PM
We're going to start doing a web-based interface directly on our products like almost everybody else does, although compared to my current solution, a couple of rocks banged together could be considered "robust".

Good the hear!

Every project starts someplace. At least a couple rocks are durable! And change keeps you from getting bored. ;D

Waiting patiently. Well kinda. 8)

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

dgd

Quote from: atop8918 on March 15, 2013, 12:02:54 PM
We're going to start doing a web-based interface directly on our products like almost everybody else does, ...

Thats the way to go  ;D     there are plenty of examples of web
servers for embedded processors but i have noted some recent chinese mppt controllers advertising a second  ARM cpu just
to provide 'web based user interface'. The LPC236 series ARM processor in the Classic should have the grunt and memory
available (unless boB has used it all in mppting)
Can that MNGP processor and memory be leveraged for web interface use? Is it also an LPC236 type?
I had thought it would be nice to have a web cpu/ram/storage (SD card) module that replaced the MNGP/lite panel if the
Classic resources were just too meagre
But maybe this is going too far for a simple web face just like Cisco Linksys WRT45G

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand