Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Github code - is it correct?
05-02-2017, 05:55 PM
Post: #1
Github code - is it correct?
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).
Find all posts by this user
Quote this message in a reply
05-03-2017, 03:29 PM
Post: #2
RE: Github code - is it correct?
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???
Find all posts by this user
Quote this message in a reply
05-06-2017, 07:42 PM
Post: #3
RE: Github code - is it correct?
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???
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)