Starting up using the RAK3172

Hi, I need some newbie advice to get this module going, so beare with me. :slight_smile:

Running:
RAK3172-E (RAK3372)
AT+VER=RUI_4.2.0_RAK3172-E
Arduino IDE 2.3.4

Working:
The RUI3-RAK1901-RAK1902-Example works fine, joining and data Ok.

Problems:
With the RUI3-RAK12500-RAK1904-GNSS without the GNSS module.

Compiling works after reducing numbers of supported regions with original Adafruit library for LIS3dh.
Upload seems fine, but after this the at commands are not responsive and I cannot upload without flashing new firmware!?
I’m not sure how to use the custom libraries, is this a required?

Any help much appreciated :pray:

What exactly did you disable?
There are two options that MUST STAY ON:

In which sensor slots did you place the modules?

Edited ==> the code was written for RAK19003 Base Board

RAK12500 MUST BE in Slot C.
RAK1904 MUST BE in Slot D.

If you need to or must use different slots, the code needs changes.
If you use a RAK19007 then use Slot A for the RAK12500 and Slot D for the RAK1904.

What do you mean with “custom libraries”? Of course you need libraries to use the RAK1904 and RAK12500.

1 Like

Thanks for getting back on this @beegee !!

My settings are Ok as it looks.
Support AT + Lorawan&P2P + EU868

Im using RAK19003 and slot D for rak1904

Regarding libraries I was referring to this note, and its a bit unclear for now.

Some follow up here:
Iv might got it working …better :sweat_smile:

I have had problems to add rak1904 and my latest test used RUI3-Wisblock-kit1 (instead of RUI3-RAK12500-RAK1904-GNSS) where I added rak1904.

The original code crashed at init_rak1904() and might have caused my previous problem above??

I just moved the moved the "acc.sensor.set " after the if()

bool init_rak1904(void)
{
	MYLOG("ACC", "ACC sensor initialization begin...");
  
  // Setup interrupt pin
	pinMode(acc_int_pin, INPUT);
  MYLOG("ACC", "Interrupt pin setup complete");
	
  Wire.begin();
	usedWire = &Wire;
  MYLOG("ACC", "I2C communication initialized");

	if (!acc_sensor.begin())
	{
		MYLOG("ACC", "ACC sensor initialization failed");
		return false;
	}

	acc_sensor.setDataRate(LIS3DH_DATARATE_10_HZ);
	acc_sensor.setRange(LIS3DH_RANGE_2_G);
  MYLOG("ACC", "Accelerometer data rate and range set");


22:37:41.524 -> RAKwireless RUI3 Node
22:37:41.524 -> [T_H] Could not initialize SHTC3
22:37:41.572 -> [PRESS] Could not initialize LPS2X on Wire
22:37:41.669 -> [LIGHT] Could not configure OPT3001
22:37:41.764 -> [ACC] ACC sensor initialization begin...
22:37:41.893 -> [ACC] Interrupt pin setup complete
22:37:41.989 -> [ACC] I2C communication initialized
22:37:42.086 -> [ACC] Accelerometer data rate and range set
22:37:42.408 -> +EVT:RAK1904
22:37:42.408 -> [UPLINK] Start
22:37:52.493 -> [UPLINK] Read Sensors
22:37:52.622 -> [UPLINK] Sending packet over LoRaWAN
22:37:52.719 -> [UPLINK] Packet enqueued, size 4
22:37:52.814 -> Current Work Mode: LoRaWAN.
22:37:58.050 -> [TX-CB] TX status 0
22:37:58.050 -> [RX-CB] RX, port 0, DR 3, RSSI -34, SNR 10
22:37:58.146 -> 
22:37:58.307 -> +EVT:TX_DONE

Im not sure if this makes sense, but now I can upload the code again without any craches…!?
Will test on RUI3-RAK12500-RAK1904-GNSS next

Regarding the RUI3-RAK12500-RAK1904-GNSS example, the above change helped there too :slight_smile:

RAKwireless RUI3 Location Tracker
[SETUP] Create timer for interrupt handler
[SETUP] Confirmed mode disabled
[SETUP] Retry = 0
[SETUP] DR = 3
[ACC] ACC sensor initialization begin...
[ACC] Interrupt pin setup complete
[ACC] I2C communication initialized
[ACC] Accelerometer data rate and range set
Current Work Mode: LoRaWAN.
[GNSS] Could not initialize RAK12500 on Wire
[GNSS] Got location
[UPLINK] Packet enqueued, size 23
[TX-CB] TX status 0
[RX-CB] RX, port 0, DR 3, RSSI -34, SNR 10
+EVT:TX_DONE
[ACC] GNSS not active, time since last trigger 26.043 s
[UPLINK] ACC triggered IRQ
[GNSS] Could not initialize RAK12500 on Wire
[GNSS] Got location
[UPLINK] Packet enqueued, size 23
[TX-CB] TX status 0
[RX-CB] RX, port 0, DR 5, RSSI -33, SNR 10
+EVT:TX_DONE

(GNSS not connected)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.