Skip to content

Instantly share code, notes, and snippets.

View tomasinouk's full-sized avatar

Tomas Blaha tomasinouk

View GitHub Profile
@tomasinouk
tomasinouk / test_coms_with_SARA_R4.py
Created January 8, 2022 04:32
Testing communication with SARA R410M on iLab Challenger Board
import board
import busio
import digitalio
import time
uart = busio.UART(board.SARA_TX,board.SARA_RX,rts=board.SARA_RTS, cts=board.SARA_CTS, baudrate=115200,timeout=5)

I have done this on Challenger LTE board link, which is RP2040 based.

You need to enable data serial at boot (boot.py), this is disabled by default. When the board boots you need to run file serial_passthrough.py the program.

Your computer will report new COM/Serial port. Use that to talk with the device connected to uart of the CircuitPython board.

Create files on CIRCUITPY

file: boot.py

@tomasinouk
tomasinouk / SMS_commands.sh
Created October 26, 2023 05:29
Implementing SMS commands from multiple phone numbers and notifications to multiple phone numbers for Advantech cellular routers such as ICR-3232, ICR-2432, etc.
PHONE1=+61423207744
PHONE2=+6141038#####
BIN0_TEXT_OUT_OFF="OUT_0 is set to 1"
BIN0_TEXT_OUT_ON="OUT_0 is set to 0"
for i in $PHONE1 $PHONE2; do
logger -t "SMS_COMMAND" "Have these phone no $i"
done