AnnePro2-Tools icon indicating copy to clipboard operation
AnnePro2-Tools copied to clipboard

different vendor and product IDs

Open sveeig opened this issue 3 years ago • 10 comments

My Anne Pro 2 (norwegian keys) has these ids:

HID Dev: 3311:a297 usage #: 00 usage_page #: 0000 Some("HEXCORE\nANNEPRO2 ISO")

Had to update the constants in code to get the keyboard recognized, should probably be a flag or something.

sveeig avatar Feb 18 '22 11:02 sveeig

should mention that after flashing the tick (') and enter are swapped using the default qmk layout. so there is likely some variation in production for ISO units

sveeig avatar Feb 18 '22 11:02 sveeig

did you change the constant to 3311 or a297

excely avatar Feb 26 '22 03:02 excely

both are different constants image

sveeig avatar Feb 26 '22 07:02 sveeig

Here is a patch for an automatic AnnePro2 ISO support.

diff --git a/src/annepro2.rs b/src/annepro2.rs
index e341d5f..16dbba4 100644
--- a/src/annepro2.rs
+++ b/src/annepro2.rs
@@ -2,9 +2,11 @@ use hidapi::{HidApi, HidDevice, HidResult};
 use std::intrinsics::transmute;
 
 const ANNEPRO2_VID: u16 = 0x04d9;
+const ANNEPRO2_ISO_VID: u16 = 0x3311;
 
 const PID_C15: u16 = 0x8008;
 const PID_C18: u16 = 0x8009;
+const PID_ISO_C18: u16 = 0xA297;
 
 #[repr(u8)]
 #[derive(Debug, Copy, Clone)]
@@ -72,9 +74,11 @@ pub fn flash_firmware<R: std::io::Read>(
             let dev = api
                 .device_list()
                 .find(|dev| {
-                    dev.vendor_id() == ANNEPRO2_VID
+                    (dev.vendor_id() == ANNEPRO2_VID
                         && ((dev.product_id() == PID_C15 && dev.interface_number() == 1)
-                            || (dev.product_id() == PID_C18))
+                            || (dev.product_id() == PID_C18)))
+                    || (dev.vendor_id() == ANNEPRO2_ISO_VID
+                        && (dev.product_id() == PID_ISO_C18))
                 })
                 .expect("No device found. Please remind to put the device into IAP Mode");

If wanted, i can make a pull request.

Johns-Q avatar Aug 12 '22 14:08 Johns-Q

Hello, I tried the last comment, but it didn't work. I'm working on windows 11, and I almost followed the instruction with this link. https://www.youtube.com/watch?v=6KJGOEEV794 annepro2_tools_issue

As you can see, mine seems to have a vendor of 3311 and product ID of a298.

bizli0618 avatar Aug 23 '23 04:08 bizli0618

Can you take a picture of your keyboard and pcb? This vid pid pair is never seen before. Either they come out with a new revision or the keyboard might not be an Anne Pro 2

On Tue, Aug 22, 2023, at 21:46, JeongBin Lee wrote:

Hello, I tried the last comment, but it didn't work. I'm working on windows 11, and I almost followed the instruction with this link. https://www.youtube.com/watch?v=6KJGOEEV794 https://app.fastmail.com/mail/Inbox/url?u=23214018 annepro2_tools_issue https://user-images.githubusercontent.com/63985988/262556071-eeb60160-f23d-4cf2-8958-8da8447b1833.png

As you can see, mine seems to have a vendor of 3311 and product ID of a298.

— Reply to this email directly, view it on GitHub https://github.com/OpenAnnePro/AnnePro2-Tools/issues/15#issuecomment-1689274779, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIP5IDVYWSUTNSSFVQPUT3XWWDLPANCNFSM5OXUD3DA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Codetector1374 avatar Aug 23 '23 04:08 Codetector1374

Sorry for not attaching the picture, but I bought it from here.(Anne pro 2 discovery) Does it differ from original anne pro 2? https://hexcore.store/products/anne-pro-2d

bizli0618 avatar Aug 23 '23 05:08 bizli0618

Yeah this seems like a new product. Its not Anne Pro 2

On Tue, Aug 22, 2023, at 22:01, JeongBin Lee wrote:

Sorry for not attaching the picture, but I bought it from here.(Anne pro 2 discovery) Does it differ from original anne pro 2? https://hexcore.store/products/anne-pro-2d https://app.fastmail.com/mail/Inbox/url?u=23214018

— Reply to this email directly, view it on GitHub https://github.com/OpenAnnePro/AnnePro2-Tools/issues/15#issuecomment-1689284611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIP5IAU4ME64TPSSEM5YPDXWWFENANCNFSM5OXUD3DA. You are receiving this because you commented.Message ID: @.***>

Codetector1374 avatar Aug 23 '23 05:08 Codetector1374

Sorry for the confusion!! And thanks, I found other software.

bizli0618 avatar Aug 23 '23 05:08 bizli0618

Sorry for the confusion!! And thanks, I found other software.

Can you provide the link?

ghost avatar Nov 23 '23 13:11 ghost