JJRobots COMMUNITY

Full Version: Github code - is it correct?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is the code on github in repo B-ROBOT_EVO2 really the working code? I note the following (in the setup() of the main file)

// Start UDP SERVER on port 2222, telemetry port 2223
//Serial.println("Start UDP server");
//ESPsendCommand("AT+CIPMUX=0", "OK", 3); // Single connection mode
//ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode
//char Telemetry[80];
//strcpy(Telemetry,"AT+CIPSTART="UDP","");
//strcat(Telemetry,TELEMETRY);
//strcat(Telemetry,"",2223,2222,0");
//ESPsendCommand(Telemetry, "OK", 3);

// Start TCP SERVER
ESPsendCommand("AT+CIPMUX=1", "OK", 3); // Single connection mode
ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode
ESPsendCommand("AT+CIPSERVER=1,2222", "OK", 3); // TCP server

The UDP setup is all commented out, and instead there's a TCP server being. I verified that the iPhone robot control app actually sends UDP. So, how can this work?

And further, the commands to start the TCP server won't be accepted by the ESP; transparent mode is incompatible with CIPMUX=1 and CIPSERVER=1 (at least on the ESP version I was using).
Further support for my post...this guy loaded the github repo code and reports this debug output

(05-02-2017 03:57 PM)zorkwan Wrote: [ -> ]AT+CIPMODE=1

CIPMUX and CIPSERVER must be 0

ERROR
!Timeout!
AT+CIPSERVER=1,2222

Note, no UDP startup; instead, an error from the line in TCP setup:

ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode

There's no way that the github code is correct! C'mon, where's some support from jjRobots???
Hi, sorry for the delay but we were on a mini holidays...
You are right, there are a bug on the version on Github. We have no released the new BROBOT_EVO2 "officially" so the actual repositoty is in "developer mode" and we were testing some things and the code had a bug.
Now we have corrected the code on the repository and is working ok. Probably there will be more changes on near furure.

Sorry for the inconveniences,
Jose.

(05-03-2017 03:29 PM)timjwilson Wrote: [ -> ]Further support for my post...this guy loaded the github repo code and reports this debug output

(05-02-2017 03:57 PM)zorkwan Wrote: [ -> ]AT+CIPMODE=1

CIPMUX and CIPSERVER must be 0

ERROR
!Timeout!
AT+CIPSERVER=1,2222

Note, no UDP startup; instead, an error from the line in TCP setup:

ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode

There's no way that the github code is correct! C'mon, where's some support from jjRobots???
Reference URL's