Cov txheej txheem:

Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: 5 Kauj Ruam
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: 5 Kauj Ruam

Video: Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: 5 Kauj Ruam

Video: Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: 5 Kauj Ruam
Video: Мало кто знает, но Бланка ветеран войны бесконечности 🦸🏻‍♀️ | Бланка и Рома | Shaykin #юмор #шортс 2024, Hlis ntuj nqeg
Anonim
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib

Cov lus qhia no yog txhais rau cov pib uas twb paub lawv txoj kev ncig Arduino. Thawj qhov paub yuav ua li cas mus ib txwm mob thiab siv sijhawm nyob hauv ib qhov haujlwm. Tab sis kom txog thaum koj paub koj txoj hauv kev ib puag ncig koj yuav luag ib txwm xav kom koj muaj ib tus neeg los qhia koj cov hauv paus.

Hauv cov lus qhia no peb yuav xa qee cov ntaub ntawv CAN-BUS los ntawm koj lub tsheb.

Thiab tsis txhob txhawj! Kuv yuav tau txais txoj cai mus rau lub ntsiab lus yam tsis muaj rambling thiab siv lo lus buzz los ua rau kuv lub suab zoo li hacker ntse:-)

Kuv tus kheej pom zoo rau Seeed Studio CAN-BUS cov ntaub thaiv npog. Tsis tau hais lus tiag tiag rau lwm lub npe tab sis CAN-BUS Shield los ntawm SeeedStudio tau pab kuv zoo heev.

Lus Cim Tseem Ceeb: Daim npav thaiv tsheb npav yuav tsum tau ua. Kuv tau sau daim ntawv no vim tias feem ntau tib neeg nug yog tias koj yuav tsum siv daim npav CAN-BUS. Cov ntaub thaiv npog muaj MCP2515 (CAN Controller) thiab MCP2551 (Transceiver) uas yuav txheej txheem CAN-BUS cov ntaub ntawv mus rau qhov chaw nres nkoj txuas ntawm koj Arduino.

Cov Khoom Uas Yuav Tsum Tau. 1. Arduino UNO - Ib qho arduino sib xws yuav txaus. Kuv siv qhov no

2. SeeedStudio CAN-BUS Shield. Kuv tau txais nws ncaj qha los ntawm SeeedStudio ntawm no qhov txuas

3. Qee cov xov hlau los coj mus rau CAN-BUS

4. Lub Tsheb Koj tuaj yeem khaws cov ntaub ntawv los ntawm

Yuav tsum tau Software 1. Arduino IDE, Duh! Pom tseeb:-)

2. SeeedStudio CAN-BUS Library. Download tau los ntawm GIT Hub

Qee cov ntaub ntawv tseem ceeb ntxiv yog tias koj zoo li nyeem ntau ntxiv txog SeeedStudio CAN-BUS daim ntaub thaiv.

Cia Peb Pib!

Kauj Ruam 1: Teeb Kho Vajtse thiab Kev Sib Txuas

Image
Image
Kho vajtse teeb thiab kev sib txuas
Kho vajtse teeb thiab kev sib txuas
Kho vajtse teeb thiab kev sib txuas
Kho vajtse teeb thiab kev sib txuas
Kho vajtse teeb thiab kev sib txuas
Kho vajtse teeb thiab kev sib txuas

Cia peb pib nrog qhov nyuaj tshaj plaws. Peb yuav tsum nrhiav chaw nyob hauv koj lub tsheb uas peb tuaj yeem nkag mus rau CAN-BUS. Tsis muaj ntau yam kuv tuaj yeem ua rau koj ntawm no, koj yuav tsum paub qhov no los ntawm koj tus kheej. Hauv kuv qhov xwm txheej, kuv tau nkag mus rau CAN-BUS ntawm xov tooj cua. Yog! xov tooj cua. Cov tsheb nrog lub tsheb sib xyaw suab feem ntau teeb tsa lub tsheb-tso suab tso saib raws lub tsheb lub teeb taws teeb rau thaum tsav tsheb hmo ntuj. Qhov no feem ntau ua tiav ntawm Sab Hauv CAN-BUS.

Kuv siv USB txuas txuas txuas uas muaj txiv neej USB thiab poj niam USB kawg. Yog li kuv tsuas txiav nws ib nrab thiab tom qab ntawd muab tus poj niam sab rau ntawm lub xov tooj cua txuas. Koj tuaj yeem xav yuav tus txiv neej poj niam txuas rau koj hom xov tooj cua, txoj kev ntawd koj tsis tas yuav txuas rau hauv koj lub tsheb cov xov hluav taws xob thiab ua rau koj tsis lees paub lossis muaj peev xwm ua rau muaj kev phom sij.

Thiab tom qab ntawd tus txiv neej ib feem kuv txuas rau SeeedStudio CAN-BUS daim ntaub thaiv raws li qhia hauv daim duab. Txoj kev no kuv tuaj yeem txuas/txiav tawm thaum xav tau.

Tswv yim: Siv xaim liab rau CAN-H thiab dub rau CAN-L

Kauj Ruam 2: Txhim Kho Software Rau Hauv Arduino

Txhim kho Software rau Arduino
Txhim kho Software rau Arduino
Txhim kho Software rau Arduino
Txhim kho Software rau Arduino
Txhim kho Software rau Arduino
Txhim kho Software rau Arduino

Rub tawm SeeedStudio Library los ntawm SeeedStudio CAN-BUS wiki.

github.com/Seeed-Studio/CAN_BUS_Shield

Nruab lub tsev qiv ntawv raws li qhia hauv daim duab.

Los ntawm Arduino IDE xaiv Sketch Include Library - Ntxiv.zip Library.

Tom qab ntxiv lub tsev qiv ntawv kaw Arduino IDE thiab rov qhib nws. Tam sim no koj tuaj yeem thauj qee qhov piv txwv los ntawm Cov Ntawv Qhia Cov Ntaub Ntawv Cov Ntaub Ntawv CAN-BUS ntaub thaiv npog Tau txais daim tshev

Rau qhov kev qhia no ntsaws qhov tau txais daim tshev piv txwv.

Tseem ceeb!

Cov hauv qab no yuav xav tau qee qhov kev sim thiab yuam kev.

Kuv siv kuv Jeep JK 2010 Rubicon los khaws cov ntaub ntawv thiab nws lub tsheb npav sab hauv khiav ntawm 125Kbs.

Hauv ntu teeb tsa uas nws nyeem

thaum (CAN_OK! = CAN.begin (CAN_500KBPS)) Kuv yuav tsum hloov nws mus rau

thaum (CAN_OK! = CAN.begin (CAN_125KBPS))

Yog tias koj tau txais qhov tsis raug no koj yuav tsis tuaj yeem khaws cov ntaub ntawv nyeem tau. Feem ntau suav nrog kuv lub tsheb koj lub tsheb yuav mus. I. E pawg nrog teeb pom kev zoo li tsob ntoo Christmas thiab cov wipers yuav pib txav mus. vim tias daim thaiv tsheb npav tuaj yeem ua rau lub tsheb npav puas.

Kauj Ruam 3: Txuas Nws thiab Pib Nrhiav Cov Ntaub Ntawv

Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv
Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv
Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv
Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv
Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv
Txuas nws thiab Pib Nrhiav Cov Ntaub Ntawv

Ua ntej koj txuas, thov kuaj xyuas kom zoo ua ntej koj nqes nws mus rau koj lub tsheb. Qhov kawg uas koj xav ua yog, xa lub zog rau koj lub CAN-BUS uas tuaj yeem tshuab koj lub Tsheb ECU.

Kuv tsis tau ua qhov kev saib xyuas kom raug thiab tsuas yog tom qab kuv paub tias kuv tsis tau txais cov ntaub ntawv kuv puas pom kuv txuas kuv lub Laptop USB ncaj qha rau Arduino USB Power. Luckily tsis muaj dab tsi tshwm sim.

Hauv cov duab ntawm cov kauj ruam no kuv siv kuv lub Lenovo Laptop thauj khoom nrog Linux Mint. Tawm-ntxhib koj tuaj yeem siv ib qho kev ua haujlwm txuas rau koj Arduino qhov chaw nres nkoj txuas, 1. Teeb lub khoos phis tawj ntawm koj lub tsheb thiab txuas lub hwj chim Arduino CAN-BUS nrog USB cable.

2. Pib Putty lossis Arduino serial Monitor (Kuv nyiam Putty), Thaum nws txuas nrog koj yuav tsum pom cov lus hauv kab lus txuas qhia rau koj tias nws tau tswj hwm pib Can-Bus shield.

3. Qhib lub tsheb. Nws tsis tas yuav pib tsuav yog tus yuam sij nyob hauv txoj haujlwm.

4. Txuas Arduino mus rau CAN-BUS. Lub sijhawm nws txuas nrog cov ntaub ntawv yuav pib ntws mus rau hauv lub console.

Kauj Ruam 4: Cov Ntaub Ntawv thiab Nws Txhua Yam Txhais Li Cas

Cov Ntaub Ntawv thiab Nws Txhua Yam Txhais Li Cas
Cov Ntaub Ntawv thiab Nws Txhua Yam Txhais Li Cas
Cov Ntaub Ntawv thiab Nws Txhua Yam Txhais Li Cas
Cov Ntaub Ntawv thiab Nws Txhua Yam Txhais Li Cas

Thaum cov ntaub ntawv khaws tseg nws yuav muab pov tseg rau hauv HEX hom hauv qab no.

ID, BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7, BIT8

Tus ID feem ntau sawv cev rau Node hauv koj lub tsheb.

Cia peb ua piv txwv yooj yim. (Cov hauv qab no tau tsim thiab tsis muaj tiag, tsuas yog ua piv txwv)

Cua Txias Node ID = 0x402 END_TURN AIRCON OFF = 13 END_TURN AIRCON ON = 14 SET AIRCON BLOWER TO LOW = 7C SET AIRCON BLOWER TO MEDIUM 8C SET AIRCON BLOWER TO HIGH 9C

Yog li yog tias peb tig lub Aircon thiab teeb nws hauv nruab nrab cov lus yuav zoo li no0x402, 13, 8C

tib yam mus rau lwm qhov, piv txwv li Central LockingCentral Locking ID = 0x503LOCK txhua lub qhov rooj = 14

Yog li yog tias koj nias lub pob kom xauv txhua lub qhov rooj cov lus yuav zoo li qhov no

0x 502, 14 ib

Qee cov ntawv sau ntxiv.

Qee cov lus tau hais los ntawm lub xeev thiab qee qhov lossis ib ntus.

Piv txwv 1. Lub taub hau teeb raws li lub xeev tsav. Thaum koj teeb tsa lub tsheb hloov mus rau txoj haujlwm tshwj xeeb ntawm lub node yuav nthuav tawm cov lus ntau thiab ntau dua. Yog tias koj yuav tsum cuam tshuam nrog CAN-BUS xa lus kom tua lub taub hau teeb. Nws yuav kaw ib ntus thiab rov qhib dua vim hais tias lub node qhov twg hloov pauv tau teeb tsa lub taub hau yuav rov xa xov dua kom qhib nws.

Piv txwv 2. Hla txoj hauv kev ntawm koj lub taub hau xov tooj cua. thaum koj nias lub pob thiab nws yog lub pob me me uas yuav ua rau thiab cuam tshuam tam sim ntawd thaum koj tso nws tseg, Nws yuav xa ib tsab ntawv mus hla txoj kab thiab tsis txhob rov qab mus txog thaum koj thov nias lub pob dua.

Feem ntau cov nyees khawm ib ntus yog qhov muaj txiaj ntsig tshaj plaws vim tias koj tuaj yeem tswj cov yam ntxwv hauv koj lub tsheb los ntawm kev xa ib qho lus txib yam tsis muaj kev txhawj xeeb tias koj cov lus txib yuav dhau mus sau. Qhov twg raws li lub xeev tau tsav cov yam ntxwv yuav raug sau tseg tas mus li.

Qee cov lus qhia thiab tswv yim

Pom koj tam sim no tuaj yeem pov cov ntaub ntawv koj tuaj yeem siv nws los tsim koj tus kheej Arduino circuits uas yuav ua raws li cov lus tau pom ntawm CAN-BUS. rau qhov piv txwv. Hais tias koj nruab tom qab teeb pom kev lag luam. Tsis tas yuav khawb mus rau koj cov xov hluav taws xob uas twb muaj lawm koj tuaj yeem teeb tsa koj lub taub hau ntawm nws tus kheej thiab tsuas yog tig lawv thaum koj Arduino pom cov lus ntawm CAN-BUS.

Kev xa cov ntaub ntawv mus rau CAN-BUS

Yog tias koj ua raws cov lus qhia thaum pib ntawm cov lus qhia no koj tau teeb tsa SEEEDStudio cov tsev qiv ntawv. Hauv Arduino IDE muaj qee qhov piv txwv koj tuaj yeem sim.

Paub tus ID thiab CAN0-BUS cov lus ntawm lub node uas koj xav nrog cuam tshuam nrog.

Hmoov tsis qhov no tsis yog txoj haujlwm yooj yim heev. Tab sis ntawm no yog Lub Tswv Yim. Siv Putty's Logging feature thiab pov tseg tag nrho cov ntaub ntawv sib kho mus ua ntaub ntawv. Cia Arduino saib xyuas lub tsheb npav tuaj yeem kwv yees li 5 Mins thiab tom qab ntawd txuag lub cav tawm ntawm txoj kev.

Tom qab ntawd pib qhov kev sib kho tshiab thiab pib pov tseg cov ntaub ntawv. Tab sis lub sijhawm no thaum nws pov tseg cov ntaub ntawv nias lub pob. Tsis txhob nias ntau tshaj ib lub pob. Nias lub khawm ob peb zaug los lav tias nws ntes lub pob nyem.

Tom qab ntawd siv qee qhov kev sib piv cov cuab yeej thiab sib piv cov ntawv kom pom qhov sib txawv. Excel ua haujlwm zoo rau qhov no.

Qee tus lej koj tuaj yeem sim

Yog tias koj muaj Jeep 2010 Rubicon tus qauv ib yam li kuv (Kuv paub tseeb hauv qab no tseem yuav ua haujlwm rau cov qauv '07, '08', 09)

Koj tuaj yeem sim cov lus hauv qab no. Thauj cov qauv piv txwv los ntawm Arduino piv txwv cov ntawv qhia zaub mov thiab kev hloov pauv muaj feem cuam tshuam.

Koom Rear Locker: CAN.sendMsgBuf (0x2B0, 0, 4, stmp);

Left Blinker On: CAN.sendMsgBuf (0x2A8, 0, 6, stmp);

Txoj Cai Blinker Ntawm: CAN.sendMsgBuf (0x2A8, 0, 6, stmp);

ESP On/OFF: CAN.sendMsgBuf (0x2B0, 0, 4, stmp);

Hauv kuv cov lus qhia tom ntej no kuv yuav xa qee cov ntaub ntawv mus rau kuv Jeep's CAN-BUS los qhia tias koj tuaj yeem cuam tshuam nrog nws li cas.

Hmoov zoo!

Kauj ruam 5: Saib Video

Saib daim vis dis aus kom CAN-BUS zoo dua!

Pom zoo: