WM PAN9420 Software Guide.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
PAN9420 Software Guide Rev. 1.0 Wireless Modules PAN9420 Wi-Fi Module By purchase of any of the products described in this document the customer accepts the document's validity and declares their agreement and understanding of its contents and recommendations. Panasonic Industrial Devices Europe GmbH (Panasonic) reserves the right to make changes as required at any time without notification. © Panasonic Industrial Devices Europe GmbH 2019. This document is copyrighted. Reproduction of this document is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Do not disclose it to a third party. All rights reserved. This Software Guide does not lodge the claim to be complete and free of mistakes. The information contained herein is presented only as guidance for Product use. No responsibility is assumed by Panasonic for any infringement of patents or any other intellectual property rights of third parties that may result from the use of Product. No license to any intellectual property right is granted by this document, whether express or implied, by estoppel or otherwise. Description of hardware, software, and other information in this document is only intended to illustrate the functionality of the referred Panasonic product. It should not be construed as guaranteeing specific functionality of the product as described or suitable for a particular application. Any provided (source) code shall not be used or incorporated into any products or systems whose manufacture, use or sale is prohibited under any applicable laws or regulations. Any outlined or referenced (source) code within this document is provided on an “as is” basis without any right to technical support or updates and without warranty of any kind on a free of charge basis according to § 516 German Civil Law (BGB) including without limitation, any warranties or conditions of title, non-infringement, merchantability, or fitness for a particular purpose. Customer acknowledges that (source) code may bear defects and errors. The third-party tools mentioned in this document are offered by independent third-party providers who are solely responsible for these products. Panasonic has no responsibility whatsoever for the performance, product descriptions, specifications, referenced content, or any and all claims or representations of these third-party providers. Panasonic makes no warranty whatsoever, neither express nor implied, with respect to the goods, the referenced contents, or any and all claims or representations of the third-party providers. To the maximum extent allowable by Law Panasonic assumes no liability whatsoever including without limitation, indirect, consequential, special, or incidental damages or loss, including without limitation loss of profits, loss of opportunities, business interruption, and loss of data. Software Guide Rev. 1.0 Page 2 PAN9420 Wi-Fi Module Table of Contents 1 About This Document ......................................................................................................................... 5 1.1 Purpose and Audience .............................................................................................................. 5 1.2 Revision History ......................................................................................................................... 5 1.3 Use of Symbols ......................................................................................................................... 5 1.4 Related Documents ................................................................................................................... 6 2 Introduction ......................................................................................................................................... 7 3 Prerequisites ....................................................................................................................................... 8 3.1 Hardware ................................................................................................................................... 8 3.2 Software .................................................................................................................................... 8 4 Module Firmware Basics .................................................................................................................... 9 4.1 Interfaces ................................................................................................................................... 9 4.2 Wi-Fi Configuration .................................................................................................................. 10 4.3 Command Structure................................................................................................................. 11 4.4 Memory Layout ........................................................................................................................ 14 4.5 File System .............................................................................................................................. 15 4.6 Default TLS Certificates on PAN9420...................................................................................... 17 4.7 Configuration Layout................................................................................................................ 18 5 Tools for Development ..................................................................................................................... 20 5.1 The WIFIgurator ...................................................................................................................... 20 5.2 Dir2Flash ................................................................................................................................. 21 5.3 FWGen (Firmware File Generator) .......................................................................................... 21 5.4 CustomerConfig (Customer Configuration) .............................................................................. 22 6 Using Third Party Tools ................................................................................................................... 24 6.1 HTerm ...................................................................................................................................... 24 6.2 Tera Term ................................................................................................................................ 25 6.3 Wget ........................................................................................................................................ 25 6.4 Wireshark ................................................................................................................................ 25 6.5 InSSIDer .................................................................................................................................. 26 6.6 Packet Sender ......................................................................................................................... 27 6.7 XAMPP .................................................................................................................................... 27 6.8 OpenSSL ................................................................................................................................. 28 7 Guided Tutorials ............................................................................................................................... 29 7.1 Communication ........................................................................................................................ 29 7.2 HTTP/JSON Command Interface ............................................................................................ 30 7.3 WebCat Client ......................................................................................................................... 30 7.4 MQTT Client ............................................................................................................................ 31 7.5 HTTP Client ............................................................................................................................. 31 7.6 Email Client ............................................................................................................................. 37 7.7 Customer Configuration and Parameter Settings .................................................................... 37 7.8 Change SSID ........................................................................................................................... 39 7.9 Scan for AP Devices ................................................................................................................ 39 7.10 Establish a Connection to an AP ............................................................................................. 40 Software Guide Rev. 1.0 Page 3 PAN9420 Wi-Fi Module 7.11 Working with Netcat ................................................................................................................. 41 7.12 Over the Air Software Upload .................................................................................................. 43 8 Appendix ........................................................................................................................................... 49 8.1 Contact Details .......................................................................................................................