首页下载资源物联网iOS MFI认证代码及文档

ZIPiOS MFI认证代码及文档

huaxiu53.15MB需要积分:1

资源文件列表:

iOS MFI认证代码及文档.zip 大约有88个文件
  1. iAP2 Sample Source R1.zip 144.73KB
  2. iAP2 Sample Source R1/
  3. iAP2 Sample Source R1/iAP2Link/
  4. iAP2 Sample Source R1/iAP2Link/iAP2FileTransfer.c 50.07KB
  5. iAP2 Sample Source R1/iAP2Link/iAP2FileTransfer.h 18.6KB
  6. iAP2 Sample Source R1/iAP2Link/iAP2Link.c 130.34KB
  7. iAP2 Sample Source R1/iAP2Link/iAP2Link.h 33.36KB
  8. iAP2 Sample Source R1/iAP2Link/iAP2LinkAccessory.c 40.1KB
  9. iAP2 Sample Source R1/iAP2Link/iAP2LinkPrivate.h 10.54KB
  10. iAP2 Sample Source R1/iAP2Link/iAP2LinkRunLoop.c 23.65KB
  11. iAP2 Sample Source R1/iAP2Link/iAP2LinkRunLoop.h 23.98KB
  12. iAP2 Sample Source R1/iAP2Link/iAP2Packet.c 69.63KB
  13. iAP2 Sample Source R1/iAP2Link/iAP2Packet.h 35.25KB
  14. iAP2 Sample Source R1/iAP2LinkConfig.h 3.8KB
  15. iAP2 Sample Source R1/iAP2Utility/
  16. iAP2 Sample Source R1/iAP2Utility/iAP2BuffPool.c 9.7KB
  17. iAP2 Sample Source R1/iAP2Utility/iAP2BuffPool.h 6.83KB
  18. iAP2 Sample Source R1/iAP2Utility/iAP2BuffPoolImplementation.h 13.14KB
  19. iAP2 Sample Source R1/iAP2Utility/iAP2Defines.h 3.16KB
  20. iAP2 Sample Source R1/iAP2Utility/iAP2FSM.c 9.62KB
  21. iAP2 Sample Source R1/iAP2Utility/iAP2FSM.h 7.83KB
  22. iAP2 Sample Source R1/iAP2Utility/iAP2ListArray.c 23.66KB
  23. iAP2 Sample Source R1/iAP2Utility/iAP2ListArray.h 15.46KB
  24. iAP2 Sample Source R1/iAP2Utility/iAP2Log.h 17.4KB
  25. iAP2 Sample Source R1/iAP2Utility/iAP2Misc.h 4.93KB
  26. iAP2 Sample Source R1/iAP2Utility/iAP2Time.h 11.58KB
  27. iAP2 Sample Source R1/iAP2UtilityImplementation/
  28. iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2BuffPoolImplementation.c 9.44KB
  29. iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2Log.c 27.7KB
  30. iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2Time.c 18.71KB
  31. iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2TimeImplementation.c 650B
  32. iAP2 Sample Source R1/iAP2UtilityImplementation/iAP2TimeImplementation.h 6.58KB
  33. iAP2 Sample Source R1/README.txt 7.95KB
  34. MFIAuthentication/
  35. MFIAuthentication/MFIAuthentication.xcodeproj/
  36. MFIAuthentication/MFIAuthentication.xcodeproj/project.pbxproj 15.14KB
  37. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/
  38. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/contents.xcworkspacedata 274B
  39. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/
  40. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/BluestarLynn.xcuserdatad/
  41. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/BluestarLynn.xcuserdatad/UserInterfaceState.xcuserstate 26.2KB
  42. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/EvanXie.xcuserdatad/
  43. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/EvanXie.xcuserdatad/UserInterfaceState.xcuserstate 149.61KB
  44. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/Linhua.xcuserdatad/
  45. MFIAuthentication/MFIAuthentication.xcodeproj/project.xcworkspace/xcuserdata/Linhua.xcuserdatad/UserInterfaceState.xcuserstate 13.55KB
  46. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/
  47. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/
  48. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/
  49. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/MFIAuthentication.xcscheme 3.37KB
  50. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/BluestarLynn.xcuserdatad/xcschemes/xcschememanagement.plist 489B
  51. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/
  52. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcdebugger/
  53. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 7.66KB
  54. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/
  55. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/iAP2Implemetation.xcscheme 3.33KB
  56. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/EvanXie.xcuserdatad/xcschemes/xcschememanagement.plist 489B
  57. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/
  58. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcdebugger/
  59. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 91B
  60. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/
  61. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/iAP2Implemetation.xcscheme 3.33KB
  62. MFIAuthentication/MFIAuthentication.xcodeproj/xcuserdata/Linhua.xcuserdatad/xcschemes/xcschememanagement.plist 489B
  63. MFIAuthentication/MFIAuthentication/
  64. MFIAuthentication/MFIAuthentication/iAP2Core/
  65. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Defines.h 3.13KB
  66. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/
  67. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Link.c 23.36KB
  68. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Link.h 10.84KB
  69. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2LinkPrivate.h 4.4KB
  70. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Packet.c 47.95KB
  71. MFIAuthentication/MFIAuthentication/iAP2Core/iAP2Link/iAP2Packet.h 30.4KB
  72. MFIAuthentication/MFIAuthentication/IO/
  73. MFIAuthentication/MFIAuthentication/IO/IOImplementation.c 1.25KB
  74. MFIAuthentication/MFIAuthentication/IO/IOImplementation.h 858B
  75. MFIAuthentication/MFIAuthentication/main.c 720B
  76. MFIAuthentication/MFIAuthentication/MFIFlow/
  77. MFIAuthentication/MFIAuthentication/MFIFlow/MFIAuthentication.c 11.32KB
  78. MFIAuthentication/MFIAuthentication/MFIFlow/MFIAuthentication.h 1.18KB
  79. MFIAuthentication/MFIAuthentication/MFIFlow/MFIGlobal.c 1.21KB
  80. MFIAuthentication/MFIAuthentication/MFIFlow/MFIGlobal.h 1020B
  81. MFIAuthentication/MFIAuthentication/MFIFlow/MFIIdentification.c 11.79KB
  82. MFIAuthentication/MFIAuthentication/MFIFlow/MFIIdentification.h 511B
  83. MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlow.c 2.37KB
  84. MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlow.h 741B
  85. MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlowCommands.c 7.43KB
  86. MFIAuthentication/MFIAuthentication/MFIFlow/MFIWorkFlowCommands.h 656B
  87. MFI授权认证流程.pptx 2.3MB
  88. USB ATS Cable Connection.png 634.24KB

资源介绍:

最新iOS MFI认证流程文档说明及代码,代码是在iOS端实现的,但流程完整,按照流程可以轻松移入firmware端,希望可以帮到你。 zip文件中包含: - MFI授权认证流程.pptx - USB ATS Cable Connection.png (苹果ATS及USB分析仪连线图) - MFIAuthentication 工程,详细认证流程代码见 MFIFlow文件夹 - 苹果 iAP2 Sample Source R1.zip
/* * File: README.txt * Package: iAP2Link * Abstract: n/a * * Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple * Inc. ("Apple"), in your capacity as a current, and in good standing, * Licensee in the MFi Licensing Program. Use of this Apple software is * governed by and subject to the terms and conditions of your MFi License, * including, but not limited to, the restrictions specified in the provision * entitled “Public Software”, and is further subject to your agreement to * the following additional terms, and your agreement that the use, * installation, modification or redistribution of this Apple software * constitutes acceptance of these additional terms. If you do not agree with * these additional terms, please do not use, install, modify or redistribute * this Apple software. * * In consideration of your agreement to abide by the following terms, and * subject to these terms, Apple grants you a personal, non-exclusive * license, under Apple's copyrights in this original Apple software (the * "Apple Software"), to use, reproduce, and modify the Apple Software in * source form, and to use, reproduce, modify, and redistribute the Apple * Software, with or without modifications, in binary form. While you may not * redistribute the Apple Software in source form, should you redistribute * the Apple Software in binary form, in its entirety and without * modifications, you must retain this notice and the following text and * disclaimers in all such redistributions of the Apple Software. Neither the * name, trademarks, service marks, or logos of Apple Inc. may be used to * endorse or promote products derived from the Apple Software without * specific prior written permission from Apple. Except as expressly stated * in this notice, no other rights or licenses, express or implied, are * granted by Apple herein, including but not limited to any patent rights * that may be infringed by your derivative works or by other works in which * the Apple Software may be incorporated. * * The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES * NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE * IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION * ALONE OR IN COMBINATION WITH YOUR PRODUCTS. * * IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, * MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND * WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT * LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * * Copyright (C) 2013 Apple Inc. All Rights Reserved. * */ Introduction ============ The iAP2Link package is a reference implementation of the iAP2 link as documented in the MFi Accessory Interface Specification. The following source files are part of this package: README.txt iAP2LinkConfig_sample.h iAP2Link/ iAP2Link.c iAP2Link.h iAP2LinkPrivate.h iAP2LinkAccessory.c iAP2LinkRunLoop.c iAP2LinkRunLoop.h iAP2Packet.c iAP2Packet.h iAP2FileTransfer.c iAP2FileTransfer.h iAP2Utility/ iAP2BuffPool.c iAP2BuffPool.h iAP2BuffPoolImplementation.h iAP2Defines.h iAP2FSM.c iAP2FSM.h iAP2ListArray.c iAP2ListArray.h iAP2Log.h iAP2Misc.h iAP2Time.h iAP2UtilityImplementation/ iAP2BuffPoolImplementation.c iAP2Log.c iAP2Time.c iAP2TimeImplementation.h iAP2LinkConfig.h ---------------- This file must be provided by the accessory developer and configures the iAP2 link. A typical configuration is provided in iAP2LinkConfig_sample.h. iAP2Link -------- This folder contains the core iAP2 link implementation. iAP2Packet.h, iAP2Link.h, and iAP2LinkRunLoop.h describe the higher-level interfaces. See the comments in those files for information on usage. iAP2FileTransfer.c and iAP2FileTransfer.h provide an example implementation of an iAP2 File Transfer session. See iAP2FileTransfer.h for information on usage. Reference code contained in this folder is designed to be used as is and modifications are strongly discouraged. The only exception is iAP2Runloop.h. Developers may need to provide implementations for the following functions (depending on actual usage): iAP2LinkRunLoopInitImplementation iAP2LinkRunLoopCleanupImplementation iAP2LinkRunLoopProtectedCall iAP2LinkRunLoopWait iAP2LinkRunLoopSignal iAP2Utility ----------- This folder contains utility function implementations used by iAP2Link. Some files implement abstractions for hardware dependencies such as timers and memory management. The .h files are designed to be used as is and modifications are strongly discouraged. The .c files may be modified or used as is. iAP2UtilityImplementation ------------------------- This folder contains hardware-dependent implementation samples for certain functions used by iAP2Utility. The files in this folder must be modified to match the target hardware platform. Specifically, iAP2TimeImplementation.h is not a complete timer implementation and must be modified before use. Usage Notes =========== Other than the functions that need to be implemented, the following functions defined in iAP2Packet.h, iAP2Link.h, and iAP2LinkRunLoop.h are used to make use of the iAP2 link protocol reference implementation. iAP2PacketCreateEmptyRecvPacket iAP2PacketParseBuffer iAP2PacketIsComplete iAP2PacketCreateEmptySendPacket iAP2PacketGenerateBuffer iAP2PacketGetBuffer iAP2PacketDelete iAP2LinkRunLoopCreateAccessory iAP2LinkRunLoopRunOnce iAP2LinkRunLoopAttached iAP2LinkRunLoopDetached iAP2LinkRunLoopHandleReadyPacket iAP2LinkRunLoopQueueSendData iAP2LinkQueueSendData iAP2LinkQueueSendDataPacket Device/Accessory Attach/Detach ------------------------------ On attach to Device, call: iAP2LinkRunLoopAttached On detach from Device, call: iAP2LinkRunLoopDetached Inbound iAP2 traffic -------------------- The accessory should perform the following on incoming iAP2 traffic: 1) Create iAP2Packet by calling iAP2PacketCreateEmptyRecvPacket 2) Parse the incoming data by calling iAP2PacketParseBuffer (pass in data buffer and iAP2Packet structure) 3) Check if a full iAP2Packet has been parsed by calling iAP2PacketIsComplete 4) If a complete iAP2Packet has not been parsed, go to (2) 5) Pass the complete iAP2Packet to the link layer by calling iAP2LinkRunLoopHandleReadyPacket Outbound iAP2 traffic --------------------- The accessory should perform the following on outgoing iAP2 traffic: 1a) Create a data buffer containing the session data, or 1b) Create iAP2Packet by calling iAP2PacketCreateEmptySendPacket and fill the payload with session data. 2a) Call iAP2LinkRunLoopQueueSendData or iAP2LinkQueueSendData with a session data buffer, or 2b) Call iAP2LinkQueueSendDataPacket with iAP2Packet send packet with a payload containing session data. Once the packet is sent out successfully and has been ACK'd, iAP2PacketDelete will be called by iAP2Link. Notes ----- iAP2LinkRunLoopRunOnce should be called on every iteration of the accessory firmware's main run loop. Most link layer operations are handled by iAP2Link within iAP2LinkRunLoopRunOnce. Processing of iAP2 session data should be performed as quickly as possible; any lengthy handling should be spread over multiple run loop cycles or performed in a separate processing thread. This especially applies
100+评论
captcha