tualo / gigecamera-simulator

12 stars 1 forks source link

Run Cam with Windows-GEV-Client #2

Open heinrichu opened 8 years ago

heinrichu commented 8 years ago

Hello,

I was able to start the GEV-Cam and it seems to work on a Linux-machine

But when I want to connect with an GEV-Client (e.g. from Pleora or MatrixVision) on windows 7, the Clients are not able to connect. The cam is visible an the general attributes can be retrieved.

I figured out that the copied GeniCam-XML-File (camera.xml), which is used by the client, contains corrupted characters. Wireshark indicates that the XML-file is transfered correctly. At least the content of the XML can be read.

Attached you find a view on the editor (NP++) in Windows 7. There are no corrupted characters if the orginal file from github is opened.

Are there any known issues about this topic?

Greetings

Heinrich 25088e30-6a17-11e6-9266-79610035fc23

thomashoffmann1979 commented 8 years ago

Hey,

thank you for this report. Actualy I don't have a Windows Machine for testing, this issue. Maybe there is a encoding problem while reading the xml file this.xml = fs.readFileSync(path.join(__dirname,'..','data','camera.xml'));. Can you pipe the readed content from line 43, into a new file and check the result?

heinrichu commented 8 years ago

Hello,

thank you for your fast response. I've tested it by dumping the context in to a file.

I'm not familiar with javascript, but i think i was able to dumping the content to a file by adding the line fs.writeFileSync('xmldump.txt', this.xml);

The file looks as normal as the original one.

Now i was also able to run it on a Windows 7 machine; transmitting and recieving on the same PC and the got the same result. I've also added the 'utf8'-options to the reading-function which makes no different. Unfortunately I was not able to find different encoding options...at least the API-reference could not be used to find optional parameters.

I use your project to understand how a gev-device must be configured basically for operations with standard client software.

Greetings

Heinrich