This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

CC2650: How to send data from Arduino to CC2650 over UART

Expert 2340 points

Replies: 341

Views: 3374

Part Number: CC2650

Hello,

I tried the following example at sunmaysky blog and it's working. It says pressing Ctlr+Enter it will send character "0x0A".to launchpad .By typing input and prassing "Ctrl+enter"it takes inputs.I checked this code.

https://sunmaysky.blogspot.com/2017/11/using-contiki-udp-client-to-send-onoff.html

I modified the code to give any keyboard input(By using a for loop to convert input to hex) from pc to launchpad and viewed from teraterm and it worked.Then I tried to give a serial input from an arduino(rx,tx) to cc2650 launchpad (DIO3-rx,DIO2-tx) and view from tera term.But it seems no results give.Is it a problem with "Ctrl+Enter"?????.. Should we code Arduino to give "ctrl+enter" at the end of each input line..So how to trigger the launchpad serial port to get  the input.????I tried so many times by coding arduino by serial.write   \n,\r\n,\r,0x0A  ike that after the input datal.It seems nothing happen.

The simple arduino code as follows,

int no=10;
void setup() {
Serial.begin(15200);

}

void loop() {

Serial.print(no);
delay(5);
Serial.write(0x0A);



delay(500);


no++;

}

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.