Cov txheej txheem:

DragonBoard thiab OBD2: 12 Cov Kauj Ruam
DragonBoard thiab OBD2: 12 Cov Kauj Ruam

Video: DragonBoard thiab OBD2: 12 Cov Kauj Ruam

Video: DragonBoard thiab OBD2: 12 Cov Kauj Ruam
Video: cov lus qhuab qhia hais txog kev hloov zaub mov noj คำแนะนำสำหรับคริสจักรเล่มที่ 2 บทที่ 50 2024, Kaum ib hlis
Anonim
DragonBoard thiab OBD2
DragonBoard thiab OBD2

Nyeem cov ntaub ntawv uas tawm ntawm OBD2 chaw nres nkoj hauv koj lub tsheb, nws muaj peev xwm sau cov ntaub ntawv zoo los ntawm nws. Siv DragonBoard 410c, peb tau ua haujlwm ntawm txoj haujlwm no thiab ntxaws ntxaws ntawm no yog li koj tuaj yeem ua koj tus kheej.

Txoj haujlwm no tsuas yog ua tau los ntawm kev koom tes nrog #Qualcomm #Embarcados #Linaro #Arrow #BaitaAceleradora uas tso cai rau peb kom nkag mus rau cov cuab yeej zoo tshaj plaws ntawm kev ua lag luam, nrog rau kev sib cuag rau cov kws tshaj lij los txhawb txoj kev txhim kho.

Pab neeg no tau tsim los ntawm cov neeg no:

Peb mob siab los pab koj ua tiav koj lub hom phiaj, thiab paub tseeb tias koj ua tiav koj txoj haujlwm, yog li qhia rau peb paub yog tias koj xav tau kev pab ntxiv li cov lus qhia hauv qab no.

Para seguir este projeto em Português, clique aqui:

www.instructables.com/id/DragonBoard-Com-OBD

Rau qhov haujlwm no peb siv cov khoom hauv qab no:

  • Qualcomm DragonBoard 410c
  • ELM327 Bluetooth OBD2 Interface
  • Dongle USB 3G/4G
  • Tension Inverter Tsheb Charger (110v)

Kauj Ruam 1: Ua DragonBoard 410c Kev Pib Ua Haujlwm **

Ua tiav DragonBoard 410c Kev Pib Pib **
Ua tiav DragonBoard 410c Kev Pib Pib **
Ua tiav DragonBoard 410c Kev Pib Pib **
Ua tiav DragonBoard 410c Kev Pib Pib **
Ua tiav DragonBoard 410c Kev Pib Pib **
Ua tiav DragonBoard 410c Kev Pib Pib **

Siv Qualcomm DragonBoard 410c, peb pib txoj haujlwm los ntawm kev txhim kho Linux kev faib khoom hu ua Linaro, tso cai rau peb teeb tsa txhua lub cuab yeej xav tau.

Txhawm rau tsim cov duab ntawm Linaro rau DragonBoard, siv Ubunto ntawm VirtualBox, yog li koj tuaj yeem siv FastBoot (uas yog Linux raws li app). Yog li qhov uas koj yuav tsum ua yog qhib lub Terminal ntawm VM Ubuntu thiab nkag mus:

sudo apt-tau txais android-cuab yeej-fastboot

Txhawm rau teeb tsa Linaro, peb yuav tsum hla 2 cov kauj ruam tseem ceeb:

1) Txhim kho BOOTLOADER

Cov ntaub ntawv npe: dragonboard410c_bootloader_emmc_linux-79.zip

builds.96boards.org/releases/dragonboard410c/linaro/rescue/latest/

Unzip cov ntaub ntawv thiab xaiv lub nplaub tshev:

cd /FolderName (txoj hauv kev rau unzipped nplaub tshev)

Sau cov cai hauv qab no:

sudo fastboot khoom siv

Yuav tsum rov qab los:

(hexadecimal) fastboot

Tom qab ntawv ntaus hauv:

sudo./flashall

Yuav tsum rov qab los:

tiav tag nrho lub sijhawm 1.000s (tsis muaj qhov yuam kev)

Txhim kho Txoj Haujlwm Ua Haujlwm

builds.96boards.org/releases/dragonboard410c/linaro/debian/latest/

Rub tawm 2 cov ntawv no:

khau raj-linaro-ncab-qcom-snapdragon-arm64-20170607-246.img.gz

Nov yog qhov hloov tshiab kawg muaj rau hnub (Lub Rau Hli/17) yog li lub npe yuav hloov pauv yav tom ntej. Tus qauv koj yuav tab tom nrhiav yog "boot-linaro-VersionName". Qhov no hu ua "Stretch" thiab yav dhau los yog "Jessie".

linaro-ncab-alip-qcom-snapdragon-arm64-20170607-246.img.gz

Nov yog qhov hloov tshiab kawg rau hnub tim (Lub Rau Hli/17) thiab lub npe yuav hloov pauv yav tom ntej. Nrhiav tus qauv "linaro-VersionName-alip".

Unzip cov ntaub ntawv los ntawm. GZ

Nkag mus rau "hauv paus" nplaub tshev, cuam tshuam nrog cov ntaub ntawv unzipped

piv txwv: "/Downloads" uas yog qhov chaw rub tawm cov ntaub ntawv khaws cia.

Tam sim no pib nrog cov lus txib hauv qab no:

sudo fastboot khoom siv

sudo fastboot flash boot boot-linaro-NomeDaVersão-qcom-snapdragon-arm64-DATA.img

Kev cia siab rov qab los (nco qab lub sijhawm yuav txawv):

tiav tag nrho lub sijhawm: 100.00s

Txuas Mouse, Keyboard thiab saib/TV siv HDMI chaw nres nkoj

Muaj qhov no ntawm tes:

neeg siv: linaro

lo lus zais: linaro

Qhib lub app Lxterminal thiab txuas ntxiv nrog rub tawm cov npe hloov tshiab muaj, hais txog cov pob khoom teeb tsa:

sudo apt-tau hloov tshiab

Nco ntsoov teeb tsa cov pob khoom muaj los ntawm cov npe:

sudo apt-tau hloov tshiab

Hint: Linaro tau raug xaiv vim yog khau raj nrawm heev, thiab lub zej zog koom nrog thiab daws teeb meem qhia, uas txuag sijhawm ntau.

Kauj Ruam 2: Nrhiav Koj Tus DragonBoard 410c Siv Nws GPS Antenna

Nrhiav Koj Tus DragonBoard 410c Siv Nws GPS Antenna
Nrhiav Koj Tus DragonBoard 410c Siv Nws GPS Antenna
Nrhiav Koj Tus DragonBoard 410c Siv Nws GPS Antenna
Nrhiav Koj Tus DragonBoard 410c Siv Nws GPS Antenna

Pib los ntawm kev txhim kho cov ntawv tsim nyog uas yuav yog cov neeg siv khoom rau GPS module. Cov npe app yog: GNSS-GPSD, GPSD thiab GPSD-CLIENTS. Txhawm rau ua nws, ua raws cov lus txib:

sudo apt-tau nruab gnss-gpsd gpsd gpsd-cov neeg siv

Nrog rau cov apps nruab, koj yuav xav tau cov lus txib ntxiv kom pib nws kom raug:

sudo systemctl pib qdsp-start.service

sudo systemctl pib gnss-gpsd.service sudo systemctl pib qmi-gps-proxy.service

Tam sim no nqa DragonBoard 410c mus rau thaj chaw qhib dav, nrog pom tseeb ntawm lub ntuj, tso cai rau nws kom tau txais lub teeb liab los ntawm lub hnub qub. Tam sim no ntaus rau hauv lub davhlau ya nyob twg:

gpsmon ua

Los ntawm peb qhov kev sim, cov ntaub ntawv yuav pib tshwm rau ntawm lub vijtsam tom qab 10 feeb, qhov nruab nrab. Qhov ntawd hloov pauv ntau ntawm qhov chaw mus rau lwm qhov, ntxiv rau txoj haujlwm ntawm DragonBoard ntawm lub qhov rais, lossis sab hauv tsev, ntxiv rau ntau lwm yam kev cuam tshuam uas tuaj yeem cuam tshuam hauv GPS teeb liab txais tos.

Kauj Ruam 3: Txhim Kho 3G/4G USB Dongle

Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle
Txhim kho 3G/4G USB Dongle

Muaj ob peb txoj hauv kev txuas DragonBoard 410c rau 3G/4G/GSM Network:

  • Siv Shield / BreakoutBoard nrog GSM modem uas tseem muaj SimCard qhov;
  • Siv USB 3G/4G Dongle.

Txog qhov haujlwm no peb txiav txim siab siv Huawei's E3272 USB Dongle, vim nws yooj yim thiab nrawm mus yuav ib qho.

Txhawm rau teeb tsa lub modem koj tuaj yeem siv lub davhlau ya nyob twg (los ntawm kev siv WVDial app), tab sis txoj hauv kev yooj yim tshaj plaws yog ua los ntawm kev siv Linaro's Graphic User Interface (GUI). Rau nws raws li hauv qab no:

  • Nrog USB Dongle txuas nrog DragonBoard, txoj cai-nias rau lub "network" icon nyob rau hauv qab txoj cai kaum ntawm qhov screen;
  • "Kho kom raug txuas"> "Ntxiv";
  • Xaiv "Mobile Broadband" los ntawm cov ntawv qhia zaub mov nco;
  • Nyem "Tsim".

Ua raws cov lus qhia los ntawm tus neeg ua haujlwm, nco ntsoov xaiv tus Carrier kom raug los ntawm cov ntawv qhia zaub mov, tso cai rau lub cuab yeej txuas mus raws li.

Kauj Ruam 4: Hloov DragonBoard 410c rau hauv Wifi Hotspot / Access Point

Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point
Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point
Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point
Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point
Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point
Hloov pauv DragonBoard 410c rau hauv Wifi Hotspot / Access Point

Txoj hauv kev yooj yim tshaj plaws los teeb tsa DragonBoard 410c ua wifi router lossis hotspot (tam sim no koj tau teeb tsa kev sib txuas hauv is taws nem) yog siv lub kaw lus GUI. Txhawm rau ua qhov no, ua raws cov theem hauv qab no:

  • Txoj cai nyem rau lub network icon nyob rau sab xis sab xis
  • Xaiv "Kho Kev Sib Txuas thiab tom qab ntawd" Ntxiv"
  • Xaiv "WiFi"
  • Nyem tsim

Hloov lub npe network uas koj xav tsim hauv "SSID" teb thiab hloov qhov "Hom" teb mus rau "Hotspot".

Kom paub tseeb tias nws yuav ua haujlwm, txheeb xyuas cov hauv qab no:

  • Mus rau "IPv4 Chaw" tab
  • Txheeb xyuas yog tias "Txoj Cai"

Kauj Ruam 5: Nkag mus rau DragonBoard 410c Wirelessly Siv SSH, Via Hotspot Kev Sib Txuas

Nkag mus rau DragonBoard 410c Wirelessly Siv SSH, Via Hotspot Kev Sib Txuas
Nkag mus rau DragonBoard 410c Wirelessly Siv SSH, Via Hotspot Kev Sib Txuas

Peb tswj hwm los tsim txoj hauv kev kom nkag mus rau DragonBoard nyob deb, tsis muaj teeb meem yog tias koj nyob ze nws lossis tsis yog. Feem ntau koj yuav xav tau txuas rau lub rooj tsavxwm nws tus kheej, siv wifi lossis bluetooth. Lwm txoj hauv kev, yuav tsum nkag nws los ntawm kev txuas mus rau tib lub Network Wifi (piv txwv li: los ntawm lub router). Los ntawm kev ua cov kauj ruam tom ntej, peb tab tom tsim cov cuab yeej muaj tus kheej, uas tsim nws tus kheej lub network, thiab qhib nws tus kheej rau hauv lub vev xaib, txhawm rau nkag mus.

Koj tuaj yeem pib los ntawm kev txhim kho "Auto SSH", siv cov cai hauv qab no:

sudo apt-tau nruab gcc ua

wget https://www.harding.motd.ca/autossh/autossh-1.4e.tgz tar -xf autossh-1.4e.tgz cd autossh-1.4e./configure ua sudo ua nruab

Tam sim no peb tab tom yuav tsim tus yuam sij cryptographic, siv RSA tus qauv. Tus yuam sij no yuav raug siv kom nkag tau zoo rau Linux qhov piv txwv dhau los, los ntawm Public IP ntawm 3G Modem. Lub hom phiaj tseem ceeb ntawm theem no. Cov cai hauv qab no yuav theej tus yuam sij ntawd mus rau Linux's Trusted Keys Repository, ua kom ntseeg tau tias muaj kev nyab xeeb ntxiv rau kev sib txuas.

ssh -keygen -t rsa

scp ~/.ssh/id_rsa.pub tus neeg siv@remote_server:.ssh/tso cai_keys autossh -M 0 -q -f -N -i /home/pi/.ssh/id_rsa -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 2222: localhost: 22 tus neeg siv@remote_server

Los ntawm ua raws cov theem no, koj nyuam qhuav hloov pauv Qualcomm DragonBoard 410c rau hauv Cloud Server! / os/

Kauj Ruam 6: Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 1/2

Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 1/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 1/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 1/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 1/2

Tsheb kev sib txuas lus tau ua tiav los ntawm chaw nres nkoj OBD2. Cov ntaub ntawv uas tau pauv hauv qhov chaw nres nkoj no yuav tsum tau muab txhais, thiab rau qhov peb xav tau cov cuab yeej txhais lus. Muaj ob txoj kev xaiv kho vajtse: ELM327 lossis STN1170.

Txog qhov haujlwm no, peb tau siv Bluetooth ntaus nrog lub chipset raws li ELM327.

Nws yog qhov tseem ceeb kom nco ntsoov tias muaj ELM327 tsis txhais tau tias nws yog ORIGINAL VERSION ntawm ELM327. Feem ntau ntawm cov muaj chipsets yog raws li version 1.5, uas yog thaum lub nti cov ntaub ntawv tau cloned thiab xau rau hauv kev ua lag luam. Tus thawj ELM327 yog tam sim no ntawm version 2.2. Kev hloov pauv ntawm cov chipset no coj cov ntaub ntawv ntau ntxiv txog lub tsheb tshiab. Nws yog ib qho tseem ceeb kom paub tias, vim nyob ntawm qhov ntsuas, koj yuav lossis tsis tuaj yeem nkag tau cov ntaub ntawv los ntawm cov tsheb tshiab.

Nrog OBD2 Bluetooth adapter, nrhiav koj lub tsheb OBD2 chaw nres nkoj. Nws tuaj yeem nrhiav qhov chaw nyob hauv qab lub kauj. Nws yuav yooj yim dua los nrhiav nws siv cov cuab yeej no:

Nkag mus rau DragonBoard 410c siv SSH, los ntawm koj phau ntawv sau (nco ntsoov tias tam sim no koj nyob hauv tsheb, thiab tsis muaj TV/Saib rau ntsaws lub rooj tsavxwm hauv). Sai li sai tau OBD2 Bluetooth ntaus ntawv tso rau hauv lub tsheb chaw nres nkoj, ua raws cov theem hauv qab no txhawm rau nkag mus rau bluetooth txuas.

sudo bluetoothctl cov

pairable ntawm tus neeg sawv cev ntawm tus neeg sawv cev-tus neeg saib xyuas scan rauNyob rau theem no yog qhov tseem ceeb uas koj theej MAC Chaw Nyob vim tias koj yuav xav tau nws rau cov kauj ruam tom ntej

Ntaus cov lus txib no:

ntseeg MACADDRESS

khub MACADDRESS

Koj yuav tsum tau txais kev ceeb toom nrog thov kom ntaus tus lej PIN txhawm rau Pair Bluetooth OBD2 nrog lub rooj tsavxwm.

Feem ntau tus lej PIN yog seb 1234 lossis 0000 - nyob ntawm koj lub cuab yeej

Tam sim no koj yuav tsum pom "kev sib txuas ua tiav" lub vijtsam. Txhawm rau txiav tawm daim ntawv thov Bluetooth, siv cov lus txib hauv qab no:

tawm

Cov kauj ruam tom ntej yog BIND cov cuab yeej nrog Serial Port:

sudo rfcomm khi 0 MACADDRESS 1

Kom paub tseeb tias kev ua haujlwm tau ua tiav, ntaus:

ls /dev

Qhov chaw nres nkoj "Rfcomm0" yuav tsum tau teev tseg.

Kauj Ruam 7: Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 2/2

Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 2/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 2/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 2/2
Txuas DragonBoard 410c rau Tsheb OBD Siv Bluetooth - Ntu 2/2

Lub hom phiaj tseem ceeb ntawm theem no yog txhawm rau lav tias kev sib txuas lus ntawm 3 lub cuab yeej ua haujlwm:

ELM327, DragonBoard 410c thiab lub tsheb

Rub tawm "Vijtsam" app kom xa cov lus xa mus los ntawm chaw nres nkoj

sudo apt-tau nruab screen

Qhov chaw nres nkoj yuav siv los xa AT Cov Lus txib thiab tau txais cov lus teb ntawm DragonBoard 410c thiab ELM327 lub cuab yeej.

Nkag mus rau qhov txuas hauv qab no kom paub ntau ntxiv ntawm AT Commands:

elmelectronics.com/ELM327/AT_Commands.pdf

Ceeb toom:

Ua tib zoo nrog cov kauj ruam no! Txhua cov ntaub ntawv koj xa mus rau lub cuab yeej yuav raug txhais thiab xa mus rau lub tsheb, yog tias xa lus tsis raug, nws tuaj yeem txhais lus tsis raug los ntawm lub tsheb thiab ua rau muaj teeb meem. Ua tib zoo mloog cov lus txib thiab kawm lawv ua ntej koj sim koj tus kheej cov cai. Peb pom zoo kom ua raws cov lus qhia hauv qab no rau tsab ntawv.

Ua raws cov lus txib hauv qab no los pib kev sib txuas lus:

  • Txoj haujlwm no yuav pib kev sib txuas lus txuas nrog siv lub vijtsam:

    screen /dev /rfcomm0

Sai li lub davhlau ya nyob twg thauj khoom, ntaus cov lus txib hauv qab no hauv ntu no:

ATZ

ATL1 ATH1 ATS1 ATSP0

Kuaj kev sib txuas lus zaum kawg:

Ntaus hauv console:

ATI

Nws yuav tsum rov qab "ELM327 v1.5" lossis ELM version ntawm koj lub cuab yeej

Qhov no yog pov thawj tias kev sib txuas lus ntawm ELM ntaus ntawv thiab DragonBoard 410c ua haujlwm

Tswv yim ceev

Txhawm rau txiav tawm "Screen" nws yog qhov yuav tsum tau ntaus Ctrl+A ua raws los ntawm Ctrl+D.

Kauj Ruam 8: Txuas DragonBoard 410c rau Tsheb OBD Siv PyOBD

Txuas DragonBoard 410c rau Tsheb OBD Siv PyOBD
Txuas DragonBoard 410c rau Tsheb OBD Siv PyOBD

PyOBD yog Python lub tsev qiv ntawv kom muaj kev sib txuas lus nrog OBD2 cov cuab yeej uas tuaj yeem txuas nrog lub tsheb. Nrog qhov ntawd, peb tuaj yeem tshem tawm ntau cov ntaub ntawv suav nrog lub tsheb nrawm thiab hluav taws xob tsis zoo.

Hauv qib no peb yuav tsum ua kom ntseeg tau tias cov tsev qiv ntawv nab nab hauv qab no tau teeb tsa hauv Linaro ntawm koj DragonBoard 410c:

  • PIP - Python tus thawj tswj hwm pob

    sudo apt-tau nruab nruab sej-pip

  • SetupTools - tus thawj tswj ntaub ntawv teeb tsa

    sudo pip nruab -U pip setupstools

  • Log - nruab pob ntawv pob

    sudo apt-tau nruab python-wheel

  • OBD - Python tsev qiv ntawv los sib tham nrog OBD ntaus ntawv

    sudo apt-tau nruab python-obd

  • GPS - Python tsev qiv ntawv kom tau txais cov ntaub ntawv los ntawm GPS

    sudo pip nruab gps

  • Kev thov - Python pob rau RESTful

    sudo pip nruab thov

Txhawm rau txheeb xyuas yog tias OBD pob tau ua haujlwm raug, ua raws cov theem no:

sudo nab hab sej

Tam sim no lub davhlau ya nyob twg tus cursor yuav raug hloov mus rau ">>>" qhia tias Python tab tom ua haujlwm. Tam sim no koj tuaj yeem pib ntaus cov lus txib hauv qab no:

  • Pib los ntawm ntshuam OBD lub tsev qiv ntawv:

    import obd

  • Txhawm rau txuas rau Serial Port siv cov lus txib:

    kev twb kev txuas = qub. OBD (“dev/rfcomm0”)

  • Nws yog qhov ib txwm los qhia cov lus yuam kev, hais tias kev sib txuas lus tsis ua tiav, yog li yog qhov tshwm sim, sim ib zaug ntxiv.
  • Txhawm rau nrhiav seb Python tau txais cov ntaub ntawv los ntawm lub tsheb hla ELM327 hla bluetooth, ntaus cov hauv qab no:

    connection.protocol_name ()

Kauj Ruam 9: Nyeem Cov Ntaub Ntawv Los ntawm Tsheb, los ntawm Kev Siv Python

Nyeem Cov Ntaub Ntawv Los ntawm Tsheb, los ntawm Kev Siv Python
Nyeem Cov Ntaub Ntawv Los ntawm Tsheb, los ntawm Kev Siv Python

Peb yuav tsim cov ntaub ntawv hu ua: OBD.py, raws li cov lus qhia hauv qab no, ua raws cov cai.

Pib los ntawm kev xa cov tsev qiv ntawv OBD rau hauv Python los pib kev sib txuas.

Rau qhov tsis paub yog vim li cas, siv peb cov cuab yeej kho vajtse, thawj qhov kev txuas sib txuas ib txwm ua tsis tiav. Kev sim zaum ob, ib txwm ua haujlwm. Tias yog vim li cas ntawm txoj cai, koj yuav pom ob kab lus txib sim ua kom muaj kev sib txuas.

Tom qab kev sib txuas tau ua tiav, peb tau pib lub voj tsis muaj qhov kawg, uas nrhiav OBD cov ntaub ntawv, tawm tswv yim nws raws li qhov tau teev tseg ua ntej. Tom qab ntawd, nws tsim qhov URL, siv Query String, tso cai rau nws xa mus rau tus neeg siv khoom siv POST method.

Ntawm qhov piv txwv hauv qab no, peb tswj kom tau txais cov ntaub ntawv hauv qab no:

  • RPM
  • Ceev

Cov haujlwm los ntes cov ntaub ntawv siv ob qhov ntsuas. Piv txwv li, siv [1] [12] koj tab tom ua haujlwm rau [tus qauv] [PID]. Cov npe ntawm kev lom zem tuaj yeem pom ntawm:

Thaum kawg, tsim qhov URL nrog txhua cov ntaub ntawv sib txuas thiab ntxiv rau hauv cov ntawv, hu ua "obd_data.dat".

Code rau OBD.py yog hauv qab no.

Tom qab txuas thiab ntes cov ntaub ntawv, peb yuav tsim cov ntaub ntawv hu ua: envia_OBD.py

Ib feem ntawm txoj cai tau yooj yim dua. Ntshuam cov tsev qiv ntawv cuam tshuam nrog kev thov/xa cov ntaub ntawv, siv RESTFUL.

Tsim ib qho WHILE los siv POST thiab xa qhov URL ntawm thawj kab ntawm cov ntawv, muaj neeg nyob yav dhau los los ntawm OBD.py. Tom qab ntawd, kom tsis txhob xa cov ntaub ntawv xa rov qab, nws tshem tawm kab ntawd los ntawm cov ntawv.

Code rau cov ntaub ntawv OBD.py yog hauv qab no.

Kauj Ruam 10: Cov Ntawv Rov Ntxiv Dua thiab Cov Txheej Txheem Cia Cov Ntaub Ntawv rau Cov Ntaub Ntawv Cuam Tshuam

Cov Ntawv Sau Rov Qab thiab Cov Ntaub Ntawv Khaws Cov Txheej Txheem rau Cov Ntaub Ntawv Tau Txais
Cov Ntawv Sau Rov Qab thiab Cov Ntaub Ntawv Khaws Cov Txheej Txheem rau Cov Ntaub Ntawv Tau Txais

Txhua yam peb tau ua txog tam sim no tau tsom mus kom ntseeg tau tias DragonBoard sib tham tau zoo nrog cov khoom siv, xws li 3G, Wifi, Bluetooth, GPS cov ntaub ntawv thiab ntau ntxiv.

Siv cov cai hauv qab no los kho cov ntaub ntawv "rc.local", uas twb muaj qee qhov haujlwm thiab cov lus txib ua ntej. Nws nyob ntawm '/etc'. Txhawm rau hloov kho, siv cov lus txib:

sudo nano /etc/rc.local

Tam sim no peb yuav tsum teeb tsa txhua qhov kev pabcuam thiab kev ua haujlwm, tsim cov txheej txheem uas pib pib thaum DragonBoard pib. Cia peb siv BASH los ua qhov no. BASH (Bourne-Again-SHell) yog Linux Command tus txhais lus app.

Cov cai hauv qab no muaj cov lus txib BASH, thiab koj yuav tsum tau ntxig Bluetooth/OBD MAC Chaw Nyob. Ceev faj ntxiv kom paub tseeb tias xaus qhov chaws nrog "tawm 0" uas yog lub kaw lus teb tias qhov kev ua tiav tau ua tiav.

os [! -f/etc/ssh/ssh_host_rsa_key]

ces systemctl nres ssh.socket || tseeb dpkg-reconfigure openssh-server fi sudo systemctl pib qdsp-start.service rfcomm khi 0 MACADDRESS 1 sudo python /home/linaro/Documents/FadaDoCarro/conectaGPS.py & sudo python/home/linaro /Documents/FadaDoCarro/OBD.py & sudo nab hab sej /home/linaro/Documents/FadaDoCarro/envia_OBD.py & tawm 0

Txij tam sim no, txhua lub sijhawm koj qhib DragonBoard, nws yuav txuas rau 3G thiab xa GPS thiab OBD cov ntaub ntawv mus rau tus neeg rau zaub mov xaiv.

Kauj Ruam 11: Teeb Meem Raws Txoj Kev

Teeb Meem Raws Txoj Kev
Teeb Meem Raws Txoj Kev

Peb tau teev tseg hauv qab no qee qhov teeb meem peb pom raws txoj hauv kev ua ntej yuav sau Cov Lus Qhia no, tab sis peb xav tias nws tuaj yeem pab koj yog tias nws tshwm sim rau koj.

  • PyOBD

    Koj yuav tsum tau ceev faj heev kom xa cov ntaub ntawv thaum sib tham nrog lub tsheb. Hauv ib qho ntawm peb thawj zaug sim, thaum kev sib txuas lus tsis ruaj khov, peb tau xa cov lus tsis raug uas ib txwm tsoo ECU. Lub iav txav tau nres hauv qhov chaw nres tsheb thiab qee lub teeb ntawm lub dashboard khaws ntsais muag. Txoj kev daws teeb meem tau pom yog tshem tawm ib qho ntawm cov roj teeb txuas rau li 15 feeb. Qhov no rov pib dua ECU rau nws lub Hoobkas tsis raug lub xeev, yog li tshem tawm ib qho lus txib lossis hloov pauv uas peb yuav tau ua

  • Linaro

    Peb muaj teeb meem nrog peb DragonBoard, uas khaws cia rov pib dua ib ntus. Qhov teeb meem tau daws los ntawm Linaro pab pawg uas tau tshaj tawm qhov tshiab ntawm OS. Peb tau sau cov ntawv qhia no nrog qhov hloov kho tshiab

  • DragonBoard tus GPS

    Qualcomm's DragonBoard 410c tsis muaj lub kav hlau txais xov sab hauv GPS, yog li txhawm rau txhim kho GPS teeb liab tau txais, peb yuav tsum teeb tsa lub txuas rau lub kav hlau txais xov sab nraud. Cov txheej txheem no tau piav qhia zoo dua hauv qhov txuas hauv qab no:

Kauj Ruam 12: Cov neeg ua tim khawv

Cov neeg ua tim khawv
Cov neeg ua tim khawv

Bootloader

builds.96boards.org/releases/dragonboard410c/linaro/rescue/latest/

Linaro

builds.96boards.org/releases/dragonboard410c/linaro/debian/latest/

Como instalar o Linaro na DragonBoard 410c

www.embarcados.com.br/linux-linaro-alip-na-qualcomm-dragonboard-410c/

Cov ntaub ntawv GPS ntawm DragonBoard

discuss.96boards.org/t/gps-software/170/16

GPS Demo

gist.github.com/wolfg1969/4653340

Python OBD

github.com/brendan-w/python-OBD

Conectando RaspberryPi à um OBD Bluetooth

gersic.com/connecting-your-raspberry-pi-to-a-bluetooth-obd-ii-adapter/

Pom zoo: