PDA

View Full Version : SPY file CRC


korda
02-04-2009, 02:37 PM
Is that possible to calculate SPY file CRC or get it from Gateway on "BeginAddSpy" call?
The problem - we know all remote RFE CRCs, but we do not know new SPY file CRC and client has to go through all nodes and upgrade them all blindly.

mgenti
02-06-2009, 01:20 PM
There is not currently a way to get this information in the SNAP Gateway version 2.1. We will consider this addition for version 2.2.

korda
07-22-2009, 11:35 AM
Please verify if CRC for the same PY and SPY files is the same number.

mgenti
07-22-2009, 12:00 PM
Which version of Portal are you using to generate the SPY files?

korda
07-22-2009, 12:46 PM
Ver 2.2.6.
Does it matter?
The problem I experience now - can not find matching PY file to the CRC from a node script, loaded by client & SPY file.

mgenti
07-23-2009, 09:37 AM
Using Portal 2.1.26 to create and upload the SPY the CRC does match the regular SNAPpy script. I also tested an upcoming 2.2 release and the CRCs also match. There is a bug in Portal 2.2.6 that prevents it from uploading SPY files so I was unable to test this.

Jheath
07-23-2009, 09:52 AM
There is a bug in Portal 2.2.6 that prevents it from uploading SPY files so I was unable to test this.

Just a reminder to all that Portal version 2.2.6 is a developmental pre-beta build that was not made available for 'general consumption'.

korda
07-23-2009, 11:10 AM
Also, I noticed that CRC computation result changes with Portal version number (2.1.26 vs 2.2.6). Is this normal?
Logically, I would expect CRC number to be consistent to the script, not the Portal version. Also PY vs SPY CRC should match, like you say.
Otherwise it is difficult to know what script is loaded, if CRC is not consistent. We are not using script name feature to save on the message length.

admin
07-23-2009, 12:26 PM
Also, I noticed that CRC computation result changes with Portal version number (2.1.26 vs 2.2.6). Is this normal?
Yes, different versions of Portal might generate different CRCs as we optimize or add new features to SNAPpy.

korda
07-29-2009, 03:12 PM
I have tried again by using Portal 2.1.26 to generate SPY out of PY.
I have used SNAPconnect 2.1.31 to upload SPY.
The CRC returned from a node, loaded with SPY vs PY files is completely different!
Where is the problem?

mgenti
07-29-2009, 04:22 PM
I just tested creating a SPY file with Portal 2.1.26 and uploading that using the example C# program provided with SNAPconnect 2.1.32. I then relaunched Portal 2.1.26 and the CRC between the SPY and the PY file match.