Page 1 of 1

Help!!! G15 doesnt reply

PostPosted: Thu May 29, 2014 1:54 pm
by zargoun
i found the example for getting the temperature of the motor in the usermanual.

i have tried to use it, but there is no reply from the G15, i used realterm to verify my code. my code does work very well since the realterm receive whenever i send from my IOIO, and my IOIO receive whenever i send from realterm

here is the code :

CODE: SELECT_ALL_CODE
void ioioLoop(IOIO ioio) throws ConnectionLostException {
 
  led.write(false);
 
  DTR.write(true);
  try {
   
    try {
        out.write(0xFF);                         
         out.write(0xFF);
         out.write(0x01);
         out.write(0x04);
         out.write(0x02);
         out.write(0x2B);
         out.write(0x01);
         out.write(0xCC);
    }
    catch (IOException e){
    }
   
    delay(20);
   
    DTR.write(false);
   
     try {
       int count =7;

   
   
    int count1 = in.available();
   
    if (count1 > 0){

     in.read(reading); 
     
   
    }
     }
    catch (IOException e){
    }
   
   
   

    Thread.sleep(20);
  }
  catch (InterruptedException e) {
  }
}

Re: Help!!! G15 doesnt reply

PostPosted: Thu May 29, 2014 3:09 pm
by sich
How do you connect the G15 to your IOIO board? Did you use GD02? G15 cube servo communicate with half-duplex UART. And lastly, does your G15's ID = 0x01?

Re: Help!!! G15 doesnt reply

PostPosted: Thu May 29, 2014 3:45 pm
by zargoun
sich WROTE:How do you connect the G15 to your IOIO board? Did you use GD02? G15 cube servo communicate with half-duplex UART. And lastly, does your G15's ID = 0x01?


yes i have used GD02 and successfully control the motor, however i still need the feedback
i sat the CTRL pin low to receive. but still no response

Re: Help!!! G15 doesnt reply

PostPosted: Thu May 29, 2014 7:31 pm
by yonghui
U will the missed the response packet if u DTR response is slow. Pls use an IO pin to control the g15 driver Ctrl pin. Switch to receive mode as fast as possible. G15 reply in 500us after it receive a complete packet. If u r late then u will miss it since the g15 driver is still set to transmit mode

Sent from my Nexus 4 using Tapatalk