- curl, usb-modeswitch, grep, awk, sudo (not necessary, last step can fail safely)
- balong_flash in $PATH ( https://github.com/forth32/balongflash.git )
- atinout in $PATH ( https://github.com/beralt/atinout.git will work fine )
- 2 files we flash (core sw update version 22.x, WebUI installer), we use these (you can probably use different balong-compatible):
- core sw: "E3372sUpdate_22.298.03.02.965.BIN" / "E3372sUpdate_22.298.03.02.965.exe"
- webui: "Update_WEBUI_17.100.06.00.03_Hilink_V7R2_9x25_CPIO.exe"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| ###################################################################### | |
| # | |
| # File : split_bootimg.pl | |
| # Author(s) : William Enck <enck@cse.psu.edu> | |
| # Description : Split appart an Android boot image created | |
| # with mkbootimg. The format can be found in | |
| # android-src/system/core/mkbootimg/bootimg.h | |
| # | |
| # Thanks to alansj on xda-developers.com for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Root pair | |
| mkdir /root/ca | |
| cd /root/ca | |
| mkdir certs crl newcerts private | |
| chmod 700 private | |
| touch index.txt | |
| echo 1000 > serial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <mcp2515_can.h> // https://github.com/Seeed-Studio/Seeed_Arduino_CAN | |
| #define GID_SHOW_TEXT | |
| /*/////////////////////////////////////////////////////// | |
| Opel/Vauxhall configs | |
| HSCAN - Dual-wire, High Speed CAN-BUS, 500 kbps | |
| MSCAN - Dual-wire, Medium Speed CAN-BUS, 95 kbps | |
| SWCAN - Single-wire, Low Speed CAN-BUS, 33.3 kbps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <LoRa.h> // https://github.com/sandeepmistry/arduino-LoRa/ | |
| #define LORA_NSS 15 // D8(GPIO15) | |
| #define LORA_MOSI 13 // D7(GPIO13) | |
| #define LORA_MISO 12 // D6(GPIO12) | |
| #define LORA_SCK 14 // D5(GPIO14) | |
| #define LORA_RST 16 // D0(GPIO16) | |
| #define LORA_DIO0 05 // D1(GPIO05) /* This pin is only needed for receive callback mode, and it MUST be a hardware interrupt pin */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AstraH_ZafiraB_IPC_Utils { | |
| private: | |
| static constexpr inline bool isDigit(char c) { | |
| return ('0' <= c && '9' >= c); | |
| } | |
| public: | |
| static constexpr uint8_t SECURITY_CODE_LENGTH = 4; | |
| static constexpr uint8_t VIN_NUMBER_LENGTH = 17; | |
| static constexpr uint8_t CODE_IDENT_LENGTH = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <mcp2515.h> // https://github.com/autowp/arduino-mcp2515 | |
| #define SPI_CS_PIN 10 // SPI Chip Select | |
| #define SERIAL_SPEED 115200 | |
| MCP2515 mcp2515(SPI_CS_PIN); | |
| struct can_frame canMsg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Arduino Pro Micro Blink Test | |
| #if !defined(LED_BUILTIN_RX) | |
| constexpr uint8_t LED_BUILTIN_RX = 17; // The RX Blue LED | |
| #endif | |
| #if !defined(LED_BUILTIN_TX) | |
| constexpr uint8_t LED_BUILTIN_TX = 30; // The TX Green LED | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <mcp2515.h> // https://github.com/autowp/arduino-mcp2515 | |
| // SPI Chip Select | |
| #if defined(ESP8266) | |
| constexpr uint8_t SPI_CS_PIN = 15; // ESP8266 - Make sure to use a 3.3V CAN transceiver(LTC2875, MAX3051, TCAN33x, SN65HVD23x, TPT133x) | |
| #else | |
| constexpr uint8_t SPI_CS_PIN = 10; // Arduino | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static constexpr const uint32_t SERIAL_SPEED = 115200; | |
| /** WARNING --> If you are using an external power supply do not connect VM pin to the mcu <-- WARNING **/ | |
| // Motor connections (Must use PWM pins) | |
| #if defined(ESP8266) | |
| constexpr uint8_t IN1 = 4; | |
| constexpr uint8_t IN2 = 5; | |
| #else // Arduino | |
| constexpr uint8_t IN1 = 5; | |
| constexpr uint8_t IN2 = 6; |
OlderNewer