ข้ามไปยังเนื้อหาหลัก

How to identify GO Devices with the C# SDK?

DFenn-1143
ผู้โพสต์ต้นฉบับ

I have a list of supposed Geotab Serial Numbers and I need to find them in Geotab and update them. But the problem is that there are invalid numbers like "1274011232" and "GT".
So I need a way to validate that an incoming number is a valid Geotab Device SerialNumber. For example, the serialNumber GAUYYX006UDY is a GO Device, correct?

Its not a GO9, GO8 or GO7. Just curious, what is the GO Device type? Knowing the type is not going to help me much.

Can I assume that if Geotab Device SerialNumber starts with "G" and is of fixed length 12, it is a valid Geotab GO Device?

Thanks
/Daniel

เข้าร่วมการสนทนา

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

คำตอบที่ดีที่สุด

Hey @DFenn-1143,

Can you go into more detail about exactly what you're trying to do? If you have a list of serial numbers and you need to know if each one is a GO Device or a different device type, then you can do it with this API request in the runner, just copy paster the serial numbers in 1 at a time and hit "Run". The result will show up on the right and it will tell you what the deviceType is.

If you need more than that, let me know and I can help you with it.

Thanks,
Tucker

4 การตอบกลับ

EishiFUN
ผู้ดูแลชุมชน

Hi Daniel,

Thank you for asking your question in our community. Are you working with the MyGeotab API or the MyAdmin API? The recommended validation approach is different for each, so this will help me point you to the correct method.

As a preliminary answer, I would not rely only on a serial number's prefix or length to confirm that it is valid. A value such as GAUYYX006UDY looks plausible, but the API should be treated as the source of truth. The API response can also confirm the device type.

Once I know whether you are using MyGeotab or MyAdmin, I'll share the relevant example and tag in a few SDK experts for any additional guidance. @LPPapillon-1145 @TuckerBA-1087 @DarenPorter-1148

Have good one!
Eishi FUN

DFenn-1143
ผู้โพสต์ต้นฉบับ

@EishiFUN I am using MyGeotab.

Hey @DFenn-1143,

Can you go into more detail about exactly what you're trying to do? If you have a list of serial numbers and you need to know if each one is a GO Device or a different device type, then you can do it with this API request in the runner, just copy paster the serial numbers in 1 at a time and hit "Run". The result will show up on the right and it will tell you what the deviceType is.

If you need more than that, let me know and I can help you with it.

Thanks,
Tucker

Tucker's response will most likely get you what you need. You might also be able to query the API for all Devices in your database and filter them by their deviceType. That should let you identify all GO devices in your database without needing to try and parse out their serial numbers.

ยังมีคำถามอีกไหม