HTCC-AB01 How communicate with Raspberry Pi

Hi,

I want make a HTCC-AB01 LoRa communication with Raspberry Pi 3 (send messages from HTCC-AB01 to Raspberry Pi and omvendt).

Could you recommend me some hat or some LoRa module to do that?

Thanks,

You can use HTCC-AM02.

Using UART to communicate with raspberry pi.
https://heltec.org/project/htcc-am02/

Hi Jason Xu,

Can I use the HTCC-AM01 without arduino and communicate to Raspberry Pi using UART with AT Commands?

Thanks,
XCO

hi,

The anwser is Yes.

OK, I’ve already purchased the HTCC-AM01

Thanks,
XCO

Hi,

I’m using two HTCC-AB01.
One programed with arduino, that have to send a message when I push a button.
The other one is programed with arduino example LoRa AT_Command, connect through serial port to Raspberry PI, waiting for receive a message from the other module.

The problem is that no always module in Raspberry Pi side receive correctly the message, sometimes the reply from module when message is in is “Rx error”.

Why appear this message sometimes “Rx error”?

This is my arduino configuration:
#define RF_FREQUENCY 868000000
#define TX_OUTPUT_POWER 12
#define LORA_SPREADING_FACTOR 7
#define LORA_BANDWIDTH 0
#define LORA_CODINGRATE 1
#define LORA_PREAMBLE_LENGTH 8
#define LORA_SYMBOL_TIMEOUT 0
#define LORA_IQ_INVERSION_ON false
#define LORA_FIX_LENGTH_PAYLOAD_ON false
#define RX_TIMEOUT_VALUE 1000

And this is my AT command from raspberry Pi to module (programed with AT_Command example):
sendAT(“AT+XXX”)
sendAT(“AT+AutoLPM=0”)
sendAT(“AT+LORAWAN=0”)
sendAT(“AT+LoraSet=868000000,12,7,0,1,8,1,0,0”)
sendAT(“AT+PrintMode=0”)
sendAT(“AT+RX=0”)

This is my received messages:
-AT+RX=0
+OK
Received String:/E3A659831414/impacto
RSSI:-35, SNR:12, Size:23
-AT+RX=0
+OK
Rx error
-AT+RX=0
+OK
Received String:/E3A659831414/impacto
RSSI:-35, SNR:12, Size:23
-AT+RX=0
+OK

May be I miss something in the configuration.

Thanks,
XCO

According to this serial print log:Rx error.

That mean: your device have received the data but the CRC BAD.

Hi,

Do you know the reason of CRC BAD?

Are my configuration parameters are OK?

Thanks,
XCO

Hi,

The error was in the arduino program.

Thanks

I’m not sure exactly what you are wanting to do, whether you are needing to send AT commands in particular or just communicate via LoRa, but there are several LoRa hats available for the Raspberry Pi that would allow you to communicate more directly with the Pi. This (LoRa Pi Hat) is but one example, and there are details provided via this link on how to configure various processors to communicate via LoRa with a Raspberry Pi (although not vice versa at this point).

Hi,

Thanks for the help.

Currently I’m using a LTCC-AM01 connected through serial port to PI to communicate with HTCC-AB01.

Thanks,
XCO