any question related to our SDK and driver

Moderators: yang, ray, chad

Post Reply
Posts: 1
Joined: Thu Aug 29, 2019 4:56 pm


Post by » Tue Sep 10, 2019 5:35 pm

Hi All,
I'm new to the forum, this is my first post.
I'm trying to connect to multiple camera's, and sometimes they come up with different camera ID numbers, based on the order of plugging in the USB ports.
I need to read the serial numbers.
I see a post that references ASIGetSerialNumber
I'm using C#, and importing the DLL(s), either the 32 bit or the 64 bit.
Everything has been working fine.
I upgraded to the very latest development, but the documentation says nothing about ASIGetSerialNumber.
Also, when I call the dll with entry point as ASIGetSerialNumber, it completely restarts my application, not even an exception.
I'm using the very latest devopment dll's version:
Dan Gray

User avatar
Posts: 589
Joined: Thu Feb 09, 2017 4:58 am

Re: ASIGetSerialNumber(camID)

Post by chad » Mon Sep 16, 2019 1:15 am

Hi Dan,
Can you show me the codes which calls GetSerialNumber?
Usually, we used the following code to call it (it is a C++ code):

ASI_SN ASI_sn = {0};
ASIGetSerialNumber(iSelectedID, &ASI_sn);
sn_temp.Format(" SN:%02x%02x %02x%02x %02x%02x %02x%02x",[0],[1],[2],[3],[4],[5],[6],[7]);

ZWO Driver Engineer
Location:lon=120.6 lat=31.3
SuZhou China

Post Reply