Template: A7670X Cat-1 HAT Jetson Guide
From Waveshare Wiki
Hardware connection
Set the jumpers to B area, and the 3V3 to PWR.
Test with minicom
1. Connect the A7600X Cat-1/GSM/GPRS HAT to Jetson Nano.
2. Open a terminal and install the minicom tool.
sudo apt-get install minicom
3. Open a minicom and test with AT commands.
sudo minicom -D /dev/ttyTHS1 -b 115200
To exit the minicom, you can press Ctrl+a and then press X. To configure, you can pres Ctrl+A and then Z.
Network testing
- RNDIS method
- Connect the USB interface of A7670X modules to Raspberry Pi or Jetson Nano by micro USB cable. Check if the ttyUSB1 port is recognized normally.
sudo ls /dev/ttyUSB*
- Configure the module by minicom.
sudo minicom -D /dev/ttyUSB1
- Run the following commands and the A7670x module will reboot.
AT+DIALMODE=0 AT$MYCONFIG="usbnetmode",0
- Check if a new USBx port is recognized by ifconfig command. (It is USB0 for Pi and USB1 for Jetson Nano).
ifconfig
- Applay the IP address of the USBx port.
sudo dhclient -v usb0
- Test the USBx port and try to ping a website, for example, google.com.
sudo ping -I usb0 www.google.com
- If the network is not available, please configure DNS for a try.
sudo route add -net 0.0.0.0 usb0
- If you want to restore the network mode, please send the following AT command by minicom:
AT+DIALMODE=1
- PPPD method, please refer to the following link.
Python Example
Install libraries:
sudo apt-get python3-pip sudo pip3 install pyserial sudo apt-get install p7zip
Open a terminal and download the example:
cd ~ wget https://files.waveshare.com/upload/f/f3/AT7600X_Cat_Hat_Demo.7z sudo apt-get install p7zip-full 7z x A7600X_Cat_HAT_Demo.7z -r -o./ sudo chmod 777 -R /home/pi/A7600X_Cat_HAT_Demo
Run the examples:
sudo python TCP.py