Hi
I want to add these lines to arducopter software for Serial3 or telemetry:
AT+CGATT? //attached to GPRS ?
AT+IPR=57600
AT+IFC=2,2 //"it's better to use hardware flow control"
AT+CIPMODE=1 //Enable transparent mode
AT+CSTT="internet" //set APN
AT+CIICR //open GPRS
AT+CIFSR // Get local IP address
AT+CIPSERVER=1,1234//Start the TCP server, listening port:1234
I cant use the same structure as Andreas did in Modem_v2.6 becouse of the FastSerial.h are not beeing used any more i think?!?
Can someone point me in the right directions on how to implement these at commands?
Regards
Ludvig
Tags:
Permalink Reply by MrLudvig on February 10, 2013 at 10:11am Hi
Can someone tell me how send AT commands from APM2.5 using HAL.
I have been trying to use
hal.uartC->println("AT+CFUN=1,1");
as i understand hal.uartC is 57600.
But i dont think my APM send this command. Is this the right command to use??
Regards
Ludvig
Permalink Reply by MrLudvig on February 11, 2013 at 12:30pm Hi
If i load a basic sketch to my APM 2,5 board and use FastSerial.h with this commands:
Serial.print("AT+CFUN=1,1");
Then the sim900 responds.
If i load Arducopter 2.9.1 and use this command:
hal.uartA->print("AT+CFUN=1,1");
The sim900 dont responds to the command. I have monitored the output and i get AT+CFUN=1,1 at baud 57600
i dont really understand the diffrence between these command.
Can someone please tell me what im doing wrong?
Best Regards
Ludvig
Permalink Reply by Jerry on February 16, 2013 at 9:28am Change the AT commands here and give Sorens code a try...http://code.google.com/p/ardupilot-cellular-extension/source/browse...
Permalink Reply by Søren Kuula on March 1, 2013 at 3:14pm Hi, my integration README is for ArduPlane but with a little effort it should work just fine on ArduCopter too. I didn't do too much for Copter because my own one never flew far enough for me to need mobile :)
The main points are that MobileStream replaces one of the UARTs that GCS_* talks with, and that it itself gets a UART (the same as the one removed from GCS, typically) to talk with the modem on.
The task() method must be called often, like fastLoop. I have been careful not to put anything there that may infloop :)
Regards
Soren
Permalink Reply by alex morris on May 10, 2013 at 12:00pm Hi,
Hope my question fits this thread.. Apologies for hijacking if not. I'm trying to apply your cellular extension to version ArduPlane 2.68, but having trouble compiling the firmware. Any suggestion you may have would be most appreciated. I followed instructions in your README, but make fails.
%% libraries/APM_RC/APM_RC_APM1.o
/code/ardupilot-ArduPlane-2.68/libraries/APM_RC/APM_RC_APM1.cpp:27:23: fatal error: WProgram.h: No such file or directory
compilation terminated.
make: *** [/tmp/ArduPlane.build/libraries/APM_RC/APM_RC_APM1.o] Error 1
The error is kind of a lie.. The WProgram.h file does exist, it lives in /code/ardupilot-ArduPlane-2.68/libraries/Desktop/include. Could my build environment be incorrect somehow, and that is why this header file is "not found?"
Note: I have the ArduPlane 2.72 source, and I can compile and upload firmware to my APM2.5 board ok. I'm using 3DR 900mhz telemetry radios for basic tests, they work fine. Mission Planner connects to aircraft just fine, and so does QGroundcontrol. Also, I can connect to the Drone Cell over usb (FTDI) and send AT commands to it. It sees its SIM card, it registers to the cell network, and gets an IP address. All this to indicate that I don't have a hardware problem. Just hoping for maybe some helpful words from someone skilled at software dev.
Thank you, and kind regards,
alex
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.1298 members
51 members
249 members
106 members
51 members
© 2013 Created by Chris Anderson.
Powered by
