Closed Dineshkumar-code closed 3 years ago
gpio is as arduino adc - open read... look code wiringAnalog
pinMode(1, OUTPUT) digitalWrite(1, 1/0 )
analogOpen(0); val = analogRead(0);
pin table: https://github.com/Wiz-IO/framework-quectel/blob/master/arduino/cores/bg96/wiring_analog.c#L32
while using analogOpen(0); val = analogRead(0);
like that above I am getting restart problem on bg96 dev module is any solution for that
no idea ... debug code or ask Quectel support - the Arduino use QuecOpen API
it's reset and goes on void setup over some period, driver get disable and enable occur.. any solution for that
firmware BG96MAR02A09M1G_01.011.01.011 ( recommended )
Where to get the firmware version
They is no response from Quectel, Is possible to get firmware version from you...
https://forums.quectel.com/ I am not authorized to share Quectel tools
ok Sir
or contact with your local Quectel support
I got same firmware version but GPIO's are not controllable as mentioned GPIO mapping, adc reading same restart issue occur.
debug code or use QuecOpen API ( ThreadX API )
debug code or use QuecOpen API ( ThreadX API )
void setup() { Serial1.begin(115200); Serial1.println("inside Initialization"); pinMode(pin_num,INPUT); analogOpen(pin_num); // put your setup code here, to run once: }
void loop() {
int val = analogRead(1); Serial1.println("val : "); Serial1.println(val);
//delay(1000); // Serial1.println(val); // put your main code here, to run repeatedly: }
then the module get restarting on bg96
loop() must end with delay(1) as yield... it is RTOS
okay
i dont have SDK325 is a problem to use threadx method without that..
BG96MAR02... is SDK2 Arduino here support only SDK2
SDK3 & 4 have MMU enabled
can I get any docs or videos for controlling gpio using threadx method for BG96
ask from your local Quectel support QuecOpen/ThreadX SDK ... there is examples and documentation
kindly give some gpio and adc examples of arduino platform for BG96