ASIGetSerialNumber(camID)

any question related to our SDK and driver

Moderators: yang, ray, chad

Post Reply
grayarea56@gmail.com
Posts: 1
Joined: Thu Aug 29, 2019 4:56 pm

ASIGetSerialNumber(camID)

Post by grayarea56@gmail.com » 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:
ASI_Windows_SDK_V1.14.0715
Dan Gray
siderealtechnology.com

User avatar
chad
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", ASI_sn.id[0], ASI_sn.id[1], ASI_sn.id[2], ASI_sn.id[3], ASI_sn.id[4], ASI_sn.id[5], ASI_sn.id[6], ASI_sn.id[7]);

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

Post Reply