1. Joel16

    OP Joel16 Ils ne passeront pas
    Member

    Joined:
    May 8, 2011
    Messages:
    871
    Country:
    United States

    Hello, 3DSident/VITAident dev here. I'm planning on continuing the identity tool series of Xident. The tool allows users to get various bits of information from your device, hence the name 'ident' as in identifying your device.

    [​IMG]
    Current version: 0.2

    Features:
    • Displays system version.
    • Displays kernel version (except on 4.X.X).
    • Displays hardware type and unit.
    • Displays serial number.
    • Displays DRAM ID.
    • Displays device ID.
    • Displays system region.
    • Displays CPU and GPU clocks based on the performance configuration returned by the APM service.
    • Displays whether the switch is in docked/handheld state.
    • Displays IP Address.
    • Displays storage sizes for SD, NAND (user) and NAND (system).
    • Displays various system statuses. (Bluetooth, WLAN, NFC, etc.)
    • Displays battery percentage and charging status.
    • Displays battery charger type.
    • Displays if battery charging is enabled.
    • Displays if ample power is supplied.
    • Displays WIreless RSSI signals and quality.

    GUI:
    [​IMG]

    Console:
    [​IMG]

    Download: https://github.com/joel16/SwitchIdent/releases
     
    Last edited by Joel16, Nov 3, 2018
  2. THEELEMENTKH

    THEELEMENTKH GBAtemp Advanced Maniac
    Member

    Joined:
    May 31, 2016
    Messages:
    1,789
    Country:
    Spain
    Wooooo, amazing job dude!!!
    This will be handy in the future for sure
     
    Joel16 likes this.
  3. Miqote

    Miqote GBAtemp Regular
    Member

    Joined:
    May 2, 2018
    Messages:
    259
    Country:
    Macedonia, The Former Yugoslav Republic of
    Through up a NRO and I'll give it a shot.
     
  4. Ronhero

    Ronhero Too Weird to Live, Too Rare to Die
    Member

    Joined:
    Jun 28, 2014
    Messages:
    3,464
    Country:
    United States
    Good job, i used the 3ds version a ton to prove to people it had ips screens
     
    Nudu and PuNKeMoN like this.
  5. whateverg1012

    whateverg1012 GBAtemp Advanced Fan
    Member

    Joined:
    Sep 23, 2016
    Messages:
    546
    Country:
    United States
    Last edited by whateverg1012, May 17, 2018
    Smash Br0 likes this.
  6. softwareengineer

    softwareengineer Advanced Member
    Newcomer

    Joined:
    Apr 17, 2018
    Messages:
    75
    Country:
    United States
    I think even this basic skeleton of an app is even enough to help people get started! So thanks for throwing this out there!
     
    Joel16 likes this.
  7. Keizel

    Keizel GBAtemp Fan
    Member

    Joined:
    Jun 28, 2015
    Messages:
    381
    Country:
    United States
    Good project! It will be useful in the future, I sure.
     
    Leonidas87 and Joel16 like this.
  8. chronoss

    chronoss GBAtemp Addict
    Member

    Joined:
    May 26, 2015
    Messages:
    2,325
    Country:
    Congo, Republic of the
    Thanks for this project !
     
    Joel16 likes this.
  9. Madridi

    Madridi Card Collector
    Member

    Joined:
    May 9, 2008
    Messages:
    3,544
    Country:
    Qatar
    @Joel16 Just change your name to Jas0nUK already :P
     
    Joel16 likes this.
  10. Miqote

    Miqote GBAtemp Regular
    Member

    Joined:
    May 2, 2018
    Messages:
    259
    Country:
    Macedonia, The Former Yugoslav Republic of
    I threw it into my dev environment and it spit this out:

    Code:
    $ make
    kernel.c
    aarch64-none-elf-gcc -MMD -MP -MF /d/switchdev/examples/switch/SwitchIdent-master/build/kernel.d -g -Werror -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/d/switchdev/examples/switch/SwitchIdent-master/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/d/switchdev/examples/switch/SwitchIdent-master/build -DSWITCH -c /d/switchdev/examples/switch/SwitchIdent-master/source/kernel.c -o kernel.o
    In file included from D:/switchdev/libnx/include/switch.h:13:0,
                     from D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:1:
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c: In function 'SwitchIdent_GetVersion':
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:23:21: error: implicit declaration of function 'splGetConfig'; did you mean 'svcGetInfo'? [-Werror=implicit-function-declaration]
      if (R_FAILED(ret = splGetConfig(SplConfigItem_HardwareType, &version)))
                         ^
    D:/switchdev/libnx/include/switch/result.h:12:30: note: in definition of macro 'R_FAILED'
     #define R_FAILED(res)      ((res)!=0)
                                  ^~~
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:23:34: error: 'SplConfigItem_HardwareType' undeclared (first use in this function); did you mean 'SwitchIdent_GetHardwareType'?
      if (R_FAILED(ret = splGetConfig(SplConfigItem_HardwareType, &version)))
                                      ^
    D:/switchdev/libnx/include/switch/result.h:12:30: note: in definition of macro 'R_FAILED'
     #define R_FAILED(res)      ((res)!=0)
                                  ^~~
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:23:34: note: each undeclared identifier is reported only once for each function it appears in
      if (R_FAILED(ret = splGetConfig(SplConfigItem_HardwareType, &version)))
                                      ^
    D:/switchdev/libnx/include/switch/result.h:12:30: note: in definition of macro 'R_FAILED'
     #define R_FAILED(res)      ((res)!=0)
                                  ^~~
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c: In function 'SwitchIdent_GetHardwareType':
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:41:34: error: 'SplConfigItem_HardwareType' undeclared (first use in this function); did you mean 'SwitchIdent_GetHardwareType'?
      if (R_FAILED(ret = splGetConfig(SplConfigItem_HardwareType, &hardware_type)))
                                      ^
    D:/switchdev/libnx/include/switch/result.h:12:30: note: in definition of macro 'R_FAILED'
     #define R_FAILED(res)      ((res)!=0)
                                  ^~~
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c: In function 'SwitchIdent_GetUnit':
    D:/switchdev/examples/switch/SwitchIdent-master/source/kernel.c:59:34: error: 'SplConfigItem_IsRetail' undeclared (first use in this function)
      if (R_FAILED(ret = splGetConfig(SplConfigItem_IsRetail, &isRetail)))
                                      ^
    D:/switchdev/libnx/include/switch/result.h:12:30: note: in definition of macro 'R_FAILED'
     #define R_FAILED(res)      ((res)!=0)
                                  ^~~
    cc1.exe: all warnings being treated as errors
    make[1]: *** [/opt/devkitpro/devkitA64/base_rules:19: kernel.o] Error 1
    make: *** [Makefile:140: build] Error 2

    I'm guessing it's just a matter of using the Switch-equivilent of these functions (and what they require), but I'm not nearly advanced enough to be able to fix it on my own. My knowledge of libnx is pretty fresh and new. Sorry!
     
    Last edited by Miqote, May 17, 2018
  11. Joel16

    OP Joel16 Ils ne passeront pas
    Member

    Joined:
    May 8, 2011
    Messages:
    871
    Country:
    United States
    Sorry got extremely busy later on so I didn't get the time to upload any builds. However you're getting that issue because you haven't updated libnx. Its being built from the latest commit. I'll try and put out a test build tomorrow if I get time.
     
  12. Miqote

    Miqote GBAtemp Regular
    Member

    Joined:
    May 2, 2018
    Messages:
    259
    Country:
    Macedonia, The Former Yugoslav Republic of
    I installed the dev environment on 5/14 using the guide on Switchbru. The GUI (devkitproUpdater) says there's no updates. I imagine I'm probably missing something on how to update it, though.
     
  13. Joel16

    OP Joel16 Ils ne passeront pas
    Member

    Joined:
    May 8, 2011
    Messages:
    871
    Country:
    United States
    I'm building using the latest git commits not the updater.
    Anyways here's something if anyone wants to test: https://expirebox.com/download/29c61633253c618184a554af411f53bf.html
    Probably won't work :P but if you see any error codes do let me know.
     
  14. fatsquirrel

    fatsquirrel GBAtemp Addict
    Member

    Joined:
    Nov 11, 2013
    Messages:
    2,586
    Country:
    How did this slip by me?!
    Thank you for the link, very interesting read. Its a shame that JDI is no longer primary manufacturer.
     
    whateverg1012 likes this.
  15. annson24

    annson24 The Patient One
    Member

    Joined:
    May 5, 2016
    Messages:
    1,167
    Country:
    Philippines
    I wanna sign up for beta testing thank you.

    Sent from my SM-G950F using Tapatalk
     
  16. isoboy

    isoboy GBAtemp Maniac
    Member

    Joined:
    Dec 23, 2016
    Messages:
    1,050
    Country:
    United States
    Can you find any information on different switch screens at all?
     
  17. Joel16

    OP Joel16 Ils ne passeront pas
    Member

    Joined:
    May 8, 2011
    Messages:
    871
    Country:
    United States
    I do not own the device. And there's no way to tell if there's a function that can determine the screen vendors (like in the 3DS). Maybe there is, maybe there isn't. So this may not even be a thing, but if its it won't be available just yet. Ignore that, seems like there is a function that might determine the screen vendors -> GetLcdVendorId (only on 4.00+)

    Also updated the dl link for anyone who wants to test: https://cdn.discordapp.com/attachments/287345711492628490/446690987042013204/SwitchIdent.nro

    Do report any error codes or issues.
     
    Last edited by Joel16, May 17, 2018
  18. Agent Moose

    Agent Moose GBAtemp Fan
    Member

    Joined:
    Dec 6, 2014
    Messages:
    407
    Country:
    United States
    I love the work you put into the Ident series of Homebrew! Although I don't use any of them, keep it up!
     
  19. blubber987

    blubber987 GBAtemp Regular
    Member

    Joined:
    Apr 13, 2017
    Messages:
    254
    Country:
    United Kingdom
    This will be pretty useful.
     
  20. annson24

    annson24 The Patient One
    Member

    Joined:
    May 5, 2016
    Messages:
    1,167
    Country:
    Philippines
    My fw version is 4.1.0. I bought my switch here in dubai so as far as I know switches here are EUR[​IMG]

    Sent from my SM-G950F using Tapatalk
     
    dfsfds2 and CatmanFan like this.
Draft saved Draft deleted