2

Author Topic: error in vrbot(voice recognition) example code  (Read 3450 times)

0 Members and 1 Guest are viewing this topic.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
error in vrbot(voice recognition) example code
« on: May 14, 2012, 06:22:54 PM »
i've downloaded the voice recognition project in the examples and modified the project design to add my hardware and generated the files then modified the example to put my own code to control the hw after rebuild all i found this errors"../hardware.h:33:21: error: libdefs.h: No such file or directory
../hardware.h:34:18: error: core.h: No such file or directory
../hardware.h:35:19: error: timer.h: No such file or directory
../hardware.h:36:17: error: a2d.h: No such file or directory
../hardware.h:37:21: error: rprintf.h: No such file or directory
../hardware.h:38:17: error: led.h: No such file or directory
../hardware.h:41:20: error: switch.h: No such file or directory
../hardware.h:42:20: error: errors.h: No such file or directory
../hardware.h:43:18: error: uart.h: No such file or directory
../hardware.h:44:20: error: buffer.h: No such file or directory
../hardware.h:45:20: error: segled.h: No such file or directory
../hardware.h:46:38: error: Motors/Toshiba/TB6612FNG.h: No such file or directory
../hardware.h:47:43: error: Audio/Text2Speech/Text2Speech.h: No such file or directory
../hardware.h:48:45: error: Sensors/Distance/Ping/PingSonar.h: No such file or directory
In file included from ../hardware.h:49,
                 from ../VR_Axon2_demo.c:5:
../lib/lib_timerdef.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_timerdef.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Timer'
In file included from ../hardware.h:50,
                 from ../VR_Axon2_demo.c:5:
../lib/lib_iopins.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
../lib/lib_iopins.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
In file included from ../VR_Axon2_demo.c:5:
../hardware.h:56: warning: type defaults to 'int' in declaration of 'MAKE_WRITER'
../hardware.h:56: warning: parameter names (without types) in function declaration
../hardware.h:57: warning: type defaults to 'int' in declaration of 'MAKE_READER'
../hardware.h:57: warning: parameter names (without types) in function declaration
../hardware.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__C_uart1'
../hardware.h:65: warning: type defaults to 'int' in declaration of 'MAKE_WRITER'
../hardware.h:65: warning: parameter names (without types) in function declaration
../hardware.h:66: warning: type defaults to 'int' in declaration of 'MAKE_READER'
../hardware.h:66: warning: parameter names (without types) in function declaration
../hardware.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__C_Voice_Recognition'
../hardware.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_button_'
../hardware.h:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_led_display_'
../hardware.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_marquee_'
../hardware.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_led_'
../hardware.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_left_'
../hardware.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_right_'
../hardware.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_motor_bank_'
../hardware.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_sonar_'
In file included from ../VR_Axon2_demo.c:6:
../VR_library.h:9: warning: return type defaults to 'int'
../VR_library.h: In function 'MAKE_WRITER':
../VR_library.h:9: warning: type of 'writerVoice_Recognition' defaults to 'int'
../VR_library.h:10: warning: implicit declaration of function 'Voice_RecognitionSendByte'
../VR_library.h:10: error: 'byte' undeclared (first use in this function)
../VR_library.h:10: error: (Each undeclared identifier is reported only once
../VR_library.h:10: error: for each function it appears in.)
../VR_library.h: In function 'VR_Module_change_language':
../VR_library.h:19: error: 'Writer' undeclared (first use in this function)
../VR_library.h:19: error: expected ';' before 'old'
../VR_library.h:21: warning: implicit declaration of function 'rprintf'
../VR_library.h:24: warning: implicit declaration of function 'Voice_RecognitionGetByte'
../VR_library.h:25: warning: implicit declaration of function 'delay_ms'
../VR_library.h:27: warning: implicit declaration of function 'rprintfInit'
../VR_library.h:27: error: 'old' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_init':
../VR_library.h:33: warning: implicit declaration of function 'bufferFlush'
../VR_library.h:33: error: 'rx_Voice_Recognition_Buffer' undeclared (first use in this function)
../VR_library.h:34: error: 'tx_Voice_Recognition_Buffer' undeclared (first use in this function)
../VR_library.h:41: error: 'Writer' undeclared (first use in this function)
../VR_library.h:41: error: expected ';' before 'old'
../VR_library.h:51: error: 'old' undeclared (first use in this function)
../VR_library.h:54: error: 'writerVoice_Recognition' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_start_recognition':
../VR_library.h:110: error: 'Writer' undeclared (first use in this function)
../VR_library.h:110: error: expected ';' before 'old'
../VR_library.h:127: error: 'old' undeclared (first use in this function)
../VR_library.h: In function 'VR_Module_get_result':
../VR_library.h:152: error: 'Writer' undeclared (first use in this function)
../VR_library.h:152: error: expected ';' before 'old'
../VR_library.h:154: error: 'old' undeclared (first use in this function)
../VR_library.h:177: error: expected ';' before 'old'
../VR_Axon2_demo.c: At top level:
../VR_Axon2_demo.c:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'appInitSoftware'
../VR_Axon2_demo.c: In function 'go_back':
../VR_Axon2_demo.c:33: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:34: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_forward':
../VR_Axon2_demo.c:41: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:42: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_left':
../VR_Axon2_demo.c:49: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:50: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'go_right':
../VR_Axon2_demo.c:60: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:61: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: In function 'robot_stop':
../VR_Axon2_demo.c:71: error: 'motor_left' undeclared (first use in this function)
../VR_Axon2_demo.c:72: error: 'motor_right' undeclared (first use in this function)
../VR_Axon2_demo.c: At top level:
../VR_Axon2_demo.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'appControl'
"

i've tried my own code alone in another project it goes well with no errors then i've tested the voice recognition without any modification the same error above the prob. was in the example

here is a copy of the modified project so anyone can help me and tell my why this error pops up

regards
« Last Edit: May 14, 2012, 06:29:19 PM by aaa3a »

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,150
  • Helpful? 109
Re: error in vrbot(voice recognition) example code
« Reply #1 on: May 17, 2012, 11:47:28 AM »
You seem to have multiple projects in the same folder and have generated one as C and the other as C++. That's a no no. Keep your projects in separate folders.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #2 on: May 17, 2012, 04:48:32 PM »
i am new to programing and i didn't found vrbot lib in webbotlib in the project designer so i've used the one in the example and add my new hardware so after compiling found this error so what i have to do to combine the vrbot lib to my project is there any new version of webbotlib or project designer contains vrbot or there is a modification can be made to the vrbot example to work with my other hardware


Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,150
  • Helpful? 109
Re: error in vrbot(voice recognition) example code
« Reply #3 on: May 17, 2012, 05:28:26 PM »
WebbotLib doesn't have any built-in support for the vrbot so I'm assuming that you downloaded the vrbot example code from this website and so maybe others users of this site may have used it.
Still - it doesn't change what I said earlier. You've got 2 projects in one directory/folder and that on its own will give you errors. Sort your projects into different folders and it may then compile (I say 'may' as I'm not familiar with the vrbot code).
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #4 on: May 18, 2012, 04:09:24 AM »
my dear friend  i want to make a robot with vrbot and sonar sensor , toshiba motor driver ,text to speech ,led  so who can support me to combine all those together as the vrbot not included in project designer and the webbotlib i've tried to use the project designer file that comes with the example and add to it my hardware then generated the project which generated all this errors

so if you know someone to support me in vrbot please tell me how to contact him
do you think Admin can have a solution ?

« Last Edit: May 18, 2012, 08:10:57 AM by aaa3a »

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,150
  • Helpful? 109
Re: error in vrbot(voice recognition) example code
« Reply #5 on: May 18, 2012, 12:41:07 PM »
.... which generated all this errors....
Yes - This is because you have two projects in one directory. Told you that twice now I think.

Quote
so if you know someone to support me in vrbot please tell me how to contact him
do you think Admin can have a solution ?
I think Admin may have written the vrbot code , not sure, haven't used/seen the code. You could ask him - but I think he may say that you need to fix your project/folder problem first.

Over and out
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #6 on: May 21, 2012, 03:50:10 PM »
i gave up i've tried to compile the project again in c not c++ and the code is pure c and the directory doesn't contains any c++ files but the lib of vrbot has a prob. the project designer couldn't write it well or something and i think i should write it manual which is a complex operation i can't do it with my little knowledge in programing also the admin didn't reply me till now the one who write the code and my robot still on shelf waiting me to work in it any ideas

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #7 on: June 03, 2012, 07:34:44 PM »
aaa3a, the problem isn't from the vrbot code, it's as Webbot said - you have two projects in the same folder.

I recommend starting over and then try compiling again. Then add the vrbot code last.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #8 on: June 03, 2012, 08:00:29 PM »
hey boss welcome back what i did lastly i generated new project with my motor driver and other sensors in c code not c++ and add urt0 for voice recognition and then i put the vrbot example code and include "vrlibrary.h" and also generated error if you have some time can you make project for me using toshiba motor driver 2pins and vrbot just as an example and i'll modify it as the example i downloaded for voice controlled robot has xhardware and hardware.h and i don't know how to deal with it i've tried to use the prj file in project designer and add my devices to it and then included vrlibrary.h to my code but that didn't work i fixed the c++ code it just a pure c now with a new folder there is something in including the vrbot lib in my code i don't know it because there is no vrbot lib in webbotlib i have to add it manually to my code after generated it but i don't know how isn't it done by just add vrlibrary.h to my code using include and insert uart to my project design for vrbot or there is something i missed

thanx

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #9 on: June 03, 2012, 08:24:15 PM »
errrr . . .

Can you break your questions up into sentences with periods? My mind is having trouble formatting it all . . .

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #10 on: June 04, 2012, 05:21:01 AM »
hey boss welcome back
what i did lastly i generated new project with my motor driver and other sensors in c code not c++
then add urt0 for voice recognition. i put the vrbot example code and include "vrlibrary.h" and also generated error.
if you have some time can you make project for me using toshiba motor driver 2pins and vrbot just as an example.
i'll modify it as the example i downloaded for voice controlled robot it has xhardware and hardware.h .
i don't know how to deal with it i've tried to use the prj file in project designer and add my devices to it then included vrlibrary.h to my code but that didn't work
i fixed the prob of combination c and c++ code in the same folder it just a pure c now with a new folder
there is something in including the vrbot lib in my code i don't know it because there is no vrbot lib in webbotlib
i have to add it manually to my code after generated it. but i don't know how isn't it done by just add vrlibrary.h to my code using include and insert uart to my project design for vrbot or there is something i missed ?

did you like this format :))

now waiting for the answer even in hex format ;)

regards

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #11 on: June 04, 2012, 10:32:58 AM »
Quote
i put the vrbot example code and include "vrlibrary.h" and also generated error.
That's the problem - don't do that :P


1) Using Project Designer, create a whole new project. Generate, then Compile.

2) Then only put the vr_library.h file into your project folder - don't put any other example files in there!

3) In your .c file, add the library:
Code: [Select]
#include "hardware.h" //already there
#include "VR_library.h" //voice recognition library

4) Compile your code again.

5) You may now study the file VR_Axon2_demo.c to see how to use the library. But do not put this file in your folder! :P

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #12 on: June 04, 2012, 06:50:41 PM »
i did what you said exactly but in step 4 (compiling after include vrbot lib) a lot of errors generated as below

avr-gcc -g -Wall -DF_CPU=16000000 -mmcu=atmega640 -gdwarf-2 -fpack-struct -fshort-enums  -funsigned-char -funsigned-bitfields -I"../../design_tools/libirary/webbotlib_v2"  -MD -MP -MT test.o -MF dep/test.o.d  -std=gnu99  -O0 -c -o test.o test.c
In file included from test.c:2:
vr_library.h: In function 'VR_Module_init':
vr_library.h:33: error: 'rx_Voice_Recognition_Buffer' undeclared (first use in this function)
vr_library.h:33: error: (Each undeclared identifier is reported only once
vr_library.h:33: error: for each function it appears in.)
vr_library.h:34: error: 'tx_Voice_Recognition_Buffer' undeclared (first use in this function)
make: *** [test.o] Error 1
Build failed with 4 errors and 0 warnings...

i think some functions should declared in hardware.h for vrbot uart2
attached the project folder

please check it

thanx

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #13 on: June 04, 2012, 07:07:51 PM »
Progress!

1) Open up your Project Designer file

2) Add a hardware UART called Voice_Recognition

Click 'Communications' and drag over 'UART' from the left.

Use these settings:
Hardware=2
baud=9600
rxBuf=80
txBuf=20

3) Regenerate your PD file

4) In AVR Studio, reload your files, then Recompile All

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #14 on: June 04, 2012, 07:22:28 PM »
if you checked my attachment you will find already uart 2 exist with receive buffer 80 and transmit 20 and 9600 baud rate i have checked hardware.h i didn't find any declaration function for receive and transmit buffer

please check the attachment if you have time because pd don't write code for buffer in hardware.h


Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #15 on: June 04, 2012, 07:42:31 PM »
hmmmm it appears you have an outdated version of vr_library.h. It was no longer compatible with the most recent WebbotLib version.

I just uploaded the most recent version here:
http://www.societyofrobots.com/downloads/Axon2_Voice_Recognition_Software.zip

Use the new vr_library.h and try again.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #16 on: June 05, 2012, 04:22:20 PM »
now it works with the new vrlib i can compile it without errors but bad news the module can't hear me or may be it is not working
i'm using uart 0 to connect it with axon2 that's because u sent me serial to usb hex that work with uart 0
:) i'm lazy to connect and disconnect from uart 0 to uart 2 so i but it on uart 0 to work on both code
anyway when i am trying to connect to easyVR commander to train the commands some time it work and some time not and now i can't connect to the vrbot with easyvr commander the same prob happened to one of the member i've also used VRbot GUI 1.1.5 the same connection problem can't connect the device on port com2

i've tried the ready made software u sent lastly with the vrlib but no hope

any ideas?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #17 on: June 06, 2012, 08:53:42 AM »
I'm not quite sure what your saying . . .

In the VRbot GUI, when you use the test feature, does it work most of the time when you talk?

In WebbotLib, you can change the UART number to be whatever you want.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #18 on: June 06, 2012, 01:36:07 PM »
i cant connect to vrbot module using vrbot gui also the program in c compiled well without error but the trigger command (robot) not work like the vrbot module can't hear me where is the prob. in uart or in the module itself? as i can't connect to gui also
if i can connect to vrbot gui that's mean the module work fine but i can may be baud rate but a few days ago it connected
i'll send you the code after i go home to check it on your module may be the prob. in mine

thanx boss

i know i am bothering you all the time


Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #19 on: June 06, 2012, 02:24:25 PM »
Quote
i cant connect to vrbot module using vrbot gui
Tell us how you are doing it, what you've checked, and what error you are getting.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #20 on: June 06, 2012, 04:58:15 PM »
i've compiled my own voice recognition code without error but the module can't here me even when i'm using trigger command"robot"
so i have tried to test it in vrbot gui i flashed axon with the code u sent me for using axon as usb to serial cable it use uart 0 but when tried to connect on com2 the vrbot gui gives me error "couldn't detect device connected to port com2 "

so i attached my project folder to check it on your vrbot module and tell me where is the prob.
is it baud rate problem in my voice code or in the usb to serial code u sent or in the module itself

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #21 on: June 08, 2012, 04:08:57 PM »
so i have tried to test it in vrbot gui i flashed axon with the code u sent me for using axon as usb to serial cable it use uart 0 but when tried to connect on com2 the vrbot gui gives me error "couldn't detect device connected to port com2 "
Go to:
Start -> Settings -> Control Panel -> System (icon) -> Hardware (tab) -> Device Manager (button)

In the new window, look for the Axon II. It should say something like 'Silabs xxxxx'. What COM port does it use?

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #22 on: June 08, 2012, 04:19:45 PM »
this is the driver i use for axon II
http://www.silabs.com/Support%20Documents/Software/CP210x_VCP_Win_XP_S2K3_Vista_7.exe

and in my system it use com2

i connect to my axon and flashing my hex normally in the same port com 2 but when i'm using the usb to serial hex on the axon and try to connect to vrbot it can't detect the vrbot on com2 may be there is something in baud rate in the hex you sent it

and what about the code i've attached it for voice control does it work with your vrbot module ?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #23 on: June 08, 2012, 05:03:33 PM »
According to this post you had it working before:
http://www.societyofrobots.com/robotforum/index.php?topic=15630.msg112151#msg112151

Did you change anything?

Check the voltage of your battery, and the voltage to the VRbot.

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #24 on: June 08, 2012, 05:23:24 PM »
the hex for usb to serial cable worked yes but this days some times work and some times not lately it is not working at all i didn't change anything

about the code i've sent you after compiling the vrbot to control my robot with voice if it works with your module this means i have a problem in mine that's what i need to know may be there is something in my uart !! just tell me if it works on your vrbot module this will minimize the no. of probabilities

thanx

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #25 on: June 08, 2012, 05:26:03 PM »
remember this case http://www.societyofrobots.com/robotforum/index.php?topic=13546.msg100185#msg100185
i think i'm experiencing the same problem now

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #26 on: June 08, 2012, 06:19:12 PM »
Check the voltage of your battery, and the voltage to the VRbot. What voltages are you getting?

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #27 on: June 08, 2012, 06:33:09 PM »
battery voltage is 6v with 4000mAh and the vrbot use axon regulated 5 volt pin

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: error in vrbot(voice recognition) example code
« Reply #28 on: June 08, 2012, 06:56:35 PM »
battery voltage is 6v with 4000mAh and the vrbot use axon regulated 5 volt pin
Can you measure it for me with a multi-meter?

Offline aaa3aTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 1
Re: error in vrbot(voice recognition) example code
« Reply #29 on: June 08, 2012, 07:30:38 PM »
5.89 volt

 


Get Your Ad Here

data_list