Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
Copyright
Copyright © 2019 VIA Technologies Incorporated. All rights reserved.
No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise without the prior written permission of VIA Technologies, Incorporated.
Trademarks
All brands, product names, company names, trademarks and service marks are the property of their respective holders.
Disclaimer
VIA Technologies makes no warranties, implied or otherwise, in regard to this document and to the products described in this document. The information provided in this document is believed to be accurate and reliable as of the publication date of this document. However, VIA Technologies assumes no responsibility for the use or misuse of the information (including use or connection of extra device/equipment/add-on card) in this document and for any patent infringements that may arise from the use of this document. The information and product specifications within this document are subject to change at any time, without notice and without obligation to notify any person of such change.
VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any time without prior notice.
Version Date Remarks1.00 06/05/2019 Initial release
VIA Mobile360 D700 User Guide
Revision History
iii
VIA Mobile360 D700 User Guide
Table of Contents
1. Introduction ����������������������������������������������������������������������������������������������������������������������� 1
2. HowtoAcquiretheAWSIoTCertificationFilesfortheVIAMobile360D700 ������������������� 1
3. SettingUptheVIAMobile360D700 ���������������������������������������������������������������������������������� 73.1 ConnectingaPCtotheVIAMobile360D700 ��������������������������������������������������������������������������������������� 73.2 Wi-FiSetting ����������������������������������������������������������������������������������������������������������������������������������������� 83.3 SettingtheTimeandDate �������������������������������������������������������������������������������������������������������������������� 9
4. HowtoConfiguretheVIAIoTHub ����������������������������������������������������������������������������������� 10
iv
1
VIA Mobile360 D700 User Guide
1� IntroductionThisdocumentprovidesinstructionsonhowtoestablishtheconnectionbetweentheVIAMobile360D700driverecorderandAmazonIoTCorewebservices.ThepurposeofthisdocumentistoshowyouhowtoaddandmanagetheVIAMobile360D700asanIoTCoredeviceonAmazonWebServices,setupthedevice,andthenhowtoconfiguretheVIAIoTHubapplication.
2� HowtoAcquiretheAWSIoTCertification FilesfortheVIAMobile360D700ToacquiretheAWSIoTcertificationfilesfortheVIAMobile360D700,youmustfollowthestepsbelow.
Step 1. SignintotheAWSIoTConsole.
2
VIA Mobile360 D700 User Guide
Step 2. Click“Services”fromtheabovemenu,andthenselect“IoTCore”undertheInternetOfThingscategory.
Step 3. ToCreateanIoTthing,clickthe“GetStarted”buttontoentertheAWSIoTpage.
Note:IfyoualreadyhaveanIoTofthingspleaseproceedtostep4.
Step 4.Select“Manage”frommenulist.Click“Things”andthenpressthe“Registerathing”button.
3
VIA Mobile360 D700 User Guide
Step 5.Pressthe“Create”buttontoshowtheCreatingAWSIoTthingswindow,andthenpressthe“Createa singlething”button.
4
VIA Mobile360 D700 User Guide
Step 6. Typeinthedevicename,thenclick“Next”tocontinueaddingyourdevicetothethingregistryand createathingshadowforyourdevice.
Step 7. Click“Createcertificate”buttontoaddacertificateforyourthing.
5
VIA Mobile360 D700 User Guide
Step 8. DownloadtheAWScertificationfiles.Click“Activate”andthenpressthe“Attachapolicy”button.
Toselectapolicytoattachtoyourcertificate,searchforthepolicyofyourchoice.Whenyouaredone,selectthe“registerthing”buttontoaddapolicyforyourthing.
Step 9. ImportthefilestotheVIAMobile360D700.PleaseprepareanSDcard,andtheninsertitintotheVIA Mobile360D700.
6
VIA Mobile360 D700 User Guide
TosetuptheVIAMobile360D700,followthestepsinChapter3.
ToconfigureandlaunchtheVIAIoTHub,refertoChapter4.
TherearelargeamountofdocumentsprovidedbyAmazonWebServices.YoucanfollowthedevelopmentguidetoaddanIoTCoredevicewithdifferentsettingsonAmazonWebServices.Togetmoreinformation,pleasevisitAWSdocumentationlinkathttps://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html
7
VIA Mobile360 D700 User Guide
3. SettingUptheVIAMobile360D7003.1 ConnectingaPCtotheVIAMobile360D700Wehavetouseastandardcommandconsoletoconfigurethenetwork,timeanddatesettingsontheVIAMobile360D700.
Step 1.ConnecttheVIAMobile360D700toaPCusingtheMicroUSB2.0port.
Step 2.Afterthedriverisautomaticallyinstalled,theVIAMobile360D700willbeshownontheDeviceManager.NotetheCOMportnumberassignedtotheVIAMobile360D700.
Step 3.Openaconsole(i.e,Putty)andconfigureasbelow.TheportshouldbemodifiedaccordingtothevalueshowninthedevicemanagerinWindows(i.e,COM31).Thetransmitspeed(baudrate)shouldbe1152002 and thesettingsofflowcontrolarealldisabled3�
8
VIA Mobile360 D700 User Guide
3.2 Wi-FiSettingStep 1.Tomodifythessid and psk in /etc/wpa_supplicant.confaccordingtoyourAP’sssidandpassword,usethefollowingscreenshowbelowasanexampleonhowtosetupyourWi-FisettingsoastoconnecttotheVIAMobile360D700.
Step 2.ToconnecttothespecificAP,usethefollowingcommandbelow.
Step 3.WhentheWi-Ficonnects,wl_bss_connect_done succeededwillbeshowninthelogs.
wpa_supplicant -B -iwlan0 -Dnl80211 –c/etc/wpa_supplicant.conf
9
VIA Mobile360 D700 User Guide
Step 4.ToobtainthefollowingIPaddressusethefollowingcommandbelow.
Step 5.AfteryouhavegottentheIPaddress,youcantrytoping8.8.8.8orvisitasiteforcheckingiftheexternalnetworkisavailableornot.
3.3 SettingtheTimeandDateTosetthetimeanddateusingthefollowingcommandbelow.
udhcpc –i wlan0
10
VIA Mobile360 D700 User Guide
4� HowtoConfiguretheVIAIoTHubTheVIAIoTHubestablishestheconnectionbetweenphysicalsensors/actuatorsandcloudplatform.
Youmustfirststore/copythecertificatefilestoanSDcard(formattedasFAT16).ThenplugtheSDcardtotheVIAMobile360D700andcopy/pastefrom/mnt/sd or /mnt/sd2 to the /root/vialocation.
Youshouldbeabletoseethefollowingfilesunder/root/viainthecommandconsole.
Youhastomodifythecertificationfilesnameintheviaiohub.xmlbeforeexecutingtotheviaiothub.
Whenyouexecutetheviaiothub,itwillgeneratetheGPScoordinateandupdateittotheAWSIoTdeviceshadow.
Ifyouneedassistanceyoucanusethefollowingcommandviaiothub-hasshownbelow.
11
VIA Mobile360 D700 User Guide
Theusercanusethecommandviaiothub-jtest.jsontorunadifferenttestandchecktheconnectionbetweentheAWSIoTandVIAMobile360D700.
Oryoucouldexecutetheviaiothub-jtest.jsontosendspecificjsonfile.
Andtherearealsosomepre-builtAWSIoTSDKsamplesat/root/samples
1F, 531 Zhong-zheng Road,Xindian Dist., New Taipei City 231Taiwan
Tel: 886-2-2218-5452Fax: 886-2-2218-9860Email: [email protected]
940 Mission CourtFremont, CA 94539,USA
Tel: 1-510-687-4688Fax: 1-510-687-4654Email: [email protected]
Email: [email protected]
Taiwan Headquarters USA
Europe
Tsinghua Science Park Bldg. 7No. 1 Zongguancun East Road,Haidian Dist., Beijing, 100084China
Tel: 86-10-59852288Fax: 86-10-59852299Email: [email protected]
3-15-7 Ebisu MT Bldg. 6F,Higashi, Shibuya-kuTokyo 150-0011Japan
Tel: 81-3-5466-1637Fax: 81-3-5466-1638Email: [email protected]
ChinaJapan