elechouse / VoiceRecognitionV3

Arduino library for elechouse Voice Recognition V3 module
79 stars 50 forks source link

Arduino 101 and VoiceRecognition V3 command error message #3

Open newtotech opened 8 years ago

newtotech commented 8 years ago

Every time I try to execute a command via serial com I keep getting an error message like "Train with signature failed or timeout." or more like "(command) failed or timeout" but the lights indicate that it has worked. It also will not pull the any signatures or check records and when I input the settings command I get the "settings failed or timeout." response.

am I doing something wrong?

Oh, I'm using the V3 module with my Arduino 101 board. the txd and rxd pins are connected to my tx and rx digital input pins 0 and 1.

wilson-elechouse commented 8 years ago
                                                                                  You seems to connect it to the wrong pins. The VR3 board should be connected to softserial pins                                                                                                                                                                                                                                                                                                                                         Wilson ShenBusiness ManagerFrom BlackBerry smartphone.                                                                                                                                                                                                                From: newtotechSent: Monday, May 23, 2016 08:49To: elechouse/VoiceRecognitionV3Reply To: elechouse/VoiceRecognitionV3Subject: [elechouse/VoiceRecognitionV3] when I execute a command with the V3 I keep getting an error message (#3)Every time I try to execute a command via serial com I keep getting an error message like "Train with signature failed or timeout." or more like "(command) failed or timeout" but the lights indicate that it has worked. It also will not pull the any signatures or check records and when I input the settings command I get the "settings failed or timeout." response.

am I doing something wrong?

Oh, I'm using the V3 module with my Arduino 101 board. the txd and rxd pins are connected to my tx and rx digital input pins 0 and 1.

—You are receiving this because you are subscribed to this thread.Reply to this email directly or view it on GitHub

newtotech commented 8 years ago

Can you help me identify the "soft serial" pins on the Arduino 101?

I have tried everything I know of and I cannot get it to work.

wilson-elechouse commented 8 years ago

please refer to this video https://vimeo.com/94925137

2016-05-31 9:41 GMT+08:00 newtotech notifications@github.com:

Can you help me identify the "soft serial" pins on the Arduino 101?

I have tried everything I know of and I cannot get it to work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-222574892, or mute the thread https://github.com/notifications/unsubscribe/AEPYDBuRVyzAeASOCmCbI3ASJF8ECFflks5qG5HDgaJpZM4IkHlT .

newtotech commented 8 years ago

So, after doing more research it turns out that I am using the soft serial pins on the Arduino 101. Those pins are the digital IO pins 0 and 1 unlike the Arduino Uno which uses the digital IO pins 2 and 3 for soft serial.

At this time I believe I may have a defective VR V3 board. I will purchase another board and give that a try. However, you might want to try your product and code with the Arduino 101 to ensure that it is compatible.

newtotech commented 7 years ago

After my last comment about purchasing a new V3 board, I gave up and just put the board away. I pulled the board back out about a week ago and have been looking into the issues I am having. It appears the indicator light just continues to stay on. When I input "settings" or "vr" I get the message "check system settings error or timeout" but when I input "sigtrain 0 ON" the light starts blinking and switches from red to yellow like it's working, it even acts as it's recording my voice as I'm speaking as if it trying to verify the voice label. This tells me that I have everything hooked up correctly and the V3 board is receiving my instructions. However, the serial monitor prints "Train with signature failed or timeout." before the lights even stop blinking.

any idea what could cause this? could this be a programing error? or compatibility error?

wilson-elechouse commented 7 years ago

We suggest you try the following way to test it. https://vimeo.com/94926818 You could use Arduino as USB-TTL

2017-04-23 9:28 GMT+08:00 newtotech notifications@github.com:

After my last comment about purchasing a new V3 board, I gave up and just put the board away. I pulled the board back out about a week ago and have been looking into the issues I am having. It appears the indicator light just continues to stay on. When I input "settings" or "vr" I get the message "check system settings error or timeout" but when I input "sigtrain 0 ON" the light starts blinking and switches from red to yellow like it's working. This tells me that I have everything hooked up correctly and the V3 board is receiving my instructions. However, the serial monitor prints "Train with signature failed or timeout." before the lights even stop blinking.

any idea what could cause this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-296412914, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPYDIwm7pAtL98iKNZDYAT5oCCkt1tsks5ryqk4gaJpZM4IkHlT .

Misiukas1966 commented 7 years ago

Good afternoon, Wilson! My voice recognition board has stopped working the lights blink but it does not receive any commands, it has some idea of what could have happened because it worked very well. Using vr_sample_train I always get the return Check recognizer failed or timeout.

Thank you Antonio tela1

wilson-elechouse commented 7 years ago

Make sure the wire connection is correct. It seems to be the communication problem.

2017-09-27 3:49 GMT+08:00 Misiukas1966 notifications@github.com:

Good afternoon, Wilson! My voice recognition board has stopped working the lights blink but it does not receive any commands, it has some idea of what could have happened because it worked very well. Using vr_sample_train I always get the return Check recognizer failed or timeout.

Thank you Antonio [image: tela1] https://user-images.githubusercontent.com/32310829/30880980-9a7e182c-a2da-11e7-9d62-97462f120859.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-332314714, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPYDH3i5RazHSLkO1mrbbuIlWsqDxGZks5smVU6gaJpZM4IkHlT .

Misiukas1966 commented 7 years ago

Thanks for the quick return Wilson! The conccoes are certain this happened when recording a new command maybe the sequence of lights tell you what can be. Is there any way to reset the board? Follow the link with the video of the board;

https://www.youtube.com/watch?v=XcwN62FpGvc&feature=youtu.be

Antonio

Sorry for my bad English :(

wilson-elechouse commented 7 years ago

Hi, if the module could not receive any data, this command occurs. Possible reasons:

  1. Wire connection problem
  2. UART interface damage. if you have ever connected TX/RX to GND/VCC, the pins might be burned.

Try to bridge TX and RX, then power it up. It is hardware reset method.

2017-09-27 22:23 GMT+08:00 Misiukas1966 notifications@github.com:

Thanks for the quick return Wilson! The conccoes are certain this happened when recording a new command maybe the sequence of lights tell you what can be. Is there any way to reset the board? Follow the link with the video of the board;

https://www.youtube.com/watch?v=XcwN62FpGvc&feature=youtu.be

Antonio

Sorry for my bad English :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-332537912, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPYDC7LHN-WjjV2xpPmKMJ6qbMnhl0eks5smlpZgaJpZM4IkHlT .

Misiukas1966 commented 7 years ago

Thank you again! I believe the pins are burned. I'll ask for a new board on your site soon probably to simpleVR. Thank you very much for your attention. Antonio

ghost commented 6 years ago

same problem in mine also, how to hardware reset the v3 module

lfg6000 commented 5 years ago

Not all inputs will work for SoftwareSerial. I learned this the hard way. Look at digitalPinToPCICR() in pins_Arduino.h to see what pins i/o will work.

SoftwareSerial on the AVR Adafruit ItsyBitsy 32u4

ulum34 commented 4 years ago

Hi, i have a problem in my voice recognition board image

why does the output keep coming out continuously even though I haven't said a word ? thank you

vaibhavgosavi10 commented 4 years ago

Can I use vr 3 library for vr1

mathewcigi1997 commented 2 years ago

This code wont work on higher version of Arduino IDE. Please use Arduino v1.0 or v1.0.6 Also change "myVR.begin(9600); " to "myVR.begin(19200); " in the vr_sampletrain I hope this work for all ^^

Don't forget to look that your connections are proper. 5v == 5v GND == GND RXD == pin 3 TXD == pin 2

I used Arduino UNO. I think this will work for every Arduino board.

IslamEmran commented 2 years ago

You guys should connect the pin TXD from VR unit With any digital pin, but it must be taken into account that it is not (PWM) As for the pin RXD, it must be connected to any digital pin, but provided that it is (PWM)

For example, if you are using an Arduino Mega, you can take the pins:

Arduino Mega------------------->VR

GND-----------------------------> GND

VCC------------------------------>5V

50-------------------------------->TXD

3--------------------------------->RXD

Now it looks like we have solved that problem

RealTech360 commented 2 years ago

image I have face 2 problem

RealTech360 commented 2 years ago

I have face 2 problem1st problem train voice not working, 2nd image

BilalKhalid-22 commented 1 year ago

Every time I try to execute a command via serial com I keep getting an error message like "Train with signature failed or timeout." or more like "(command) failed or timeout" but the lights indicate that it has worked. It also will not pull the any signatures or check records and when I input the settings command I get the "settings failed or timeout." response.

am I doing something wrong?

Oh, I'm using the V3 module with my Arduino 101 board. the txd and rxd pins are connected to my tx and rx digital input pins 0 and 1.

I was doing the same thing after spending a lot of time i came to know that TXD pin should be connected with RX pin of Arduino and RXD pin should be connected with TX pin of Arduino

ETH65 commented 1 year ago

Hello, I am using V3.1 with ESP32 Feather: The VR3 responds correctly to the 'help', 'train', 'getsig', 'record', 'clear', and 'vr' commands. It does not, however LOAD any records to the Recognizer: the load command returns “Load failed or timeout.” 'vr' command returns no records loaded. Any ideas, please?

Setup: Adafruit ESP32 Feather (“Huzzah32”) Elechouse VR3.1 External power supply for 5V (resistor bridge for VR3 TX -> RX on the ESP32)

Software: Github: elechouse/VoiceRecognitionV3 by Wilson-elechouse, dated Jan11, 2017 Installed modified VoiceRecognitionV3.h and VoiceRecognitionV3.cpp from here: [https://blog.frankvh.com/2022/02/21/esp32-support-for-elechouse-voice-recognition-module-v3/]

Operation: I am running the vr_sample_train program. It compiles and loads without errors. Communication with the VR3 is possible, as commands with the VR module and Recognizer are being answered.

Error condition:
the load command returns “Load failed or timeout.” No record is loaded onto the Recognizer: 'vr' command returns no records loaded.

lllewsor commented 1 year ago

Hello guys ! I had a similar problem with an Arduino Mega 2560. The problem was with the wiring. I finally connected TX to pin 50 and RX to pin 3 and... bingo !

khaled312001 commented 10 months ago

Did somebody find any solution?

ETH65 commented 10 months ago

Hello, I was able to resolve the problem that I reported in this chat on Feb 16th, 2023. Here's what I found (2 parts): (1) I did a UART trace and found that the load instruction seemed incomplete. So I amended the file VoiceRecognitionV3.cpp, adding two lines 1203 and 1204. The modified file is here attached as *.zip file. (2) the ESP32 operates with 3.3V while the VR3 operates with 5V. The 3.3V is less than 70% of required CMOS voltage therefore the ESP TX messages are not recognized reliably by the VR3. I used a level shifter SN74AHCT125N to adjust voltage levels. With those two modifications the VR3 works very reliably with the ESR32 in my application. I hope this helps.
VoiceRecognitionV3.zip

khaled312001 commented 10 months ago

thank

Hello, I was able to resolve the problem that I reported in this chat on Feb 16th, 2023. Here's what I found (2 parts): (1) I did a UART trace and found that the load instruction seemed incomplete. So I amended the file VoiceRecognitionV3.cpp, adding two lines 1203 and 1204. The modified file is here attached as *.zip file. (2) the ESP32 operates with 3.3V while the VR3 operates with 5V. The 3.3V is less than 70% of required CMOS voltage therefore the ESP TX messages are not recognized reliably by the VR3. I used a level shifter SN74AHCT125N to adjust voltage levels. With those two modifications the VR3 works very reliably with the ESR32 in my application. I hope this helps. VoiceRecognitionV3.zip

thank you very much

khaled312001 commented 10 months ago

Hello, I was able to resolve the problem that I reported in this chat on Feb 16th, 2023. Here's what I found (2 parts): (1) I did a UART trace and found that the load instruction seemed incomplete. So I amended the file VoiceRecognitionV3.cpp, adding two lines 1203 and 1204. The modified file is here attached as *.zip file. (2) the ESP32 operates with 3.3V while the VR3 operates with 5V. The 3.3V is less than 70% of required CMOS voltage therefore the ESP TX messages are not recognized reliably by the VR3. I used a level shifter SN74AHCT125N to adjust voltage levels. With those two modifications the VR3 works very reliably with the ESR32 in my application. I hope this helps. VoiceRecognitionV3.zip

how run this code with arduino uno in arduino ide please image

ETH65 commented 10 months ago

Hi, I don't know exactly how to do this in your case and set-up. This is what I would try:

good luck!

Thanks and best regards Eckart


From: khaled ahmed @.> Sent: Wednesday, January 10, 2024 3:42:31 AM To: elechouse/VoiceRecognitionV3 @.> Cc: ETH65 @.>; Comment @.> Subject: Re: [elechouse/VoiceRecognitionV3] Arduino 101 and VoiceRecognition V3 command error message (#3)

Hello, I was able to resolve the problem that I reported in this chat on Feb 16th, 2023. Here's what I found (2 parts): (1) I did a UART trace and found that the load instruction seemed incomplete. So I amended the file VoiceRecognitionV3.cpp, adding two lines 1203 and 1204. The modified file is here attached as *.zip file. (2) the ESP32 operates with 3.3V while the VR3 operates with 5V. The 3.3V is less than 70% of required CMOS voltage therefore the ESP TX messages are not recognized reliably by the VR3. I used a level shifter SN74AHCT125N to adjust voltage levels. With those two modifications the VR3 works very reliably with the ESR32 in my application. I hope this helps. VoiceRecognitionV3.ziphttps://github.com/elechouse/VoiceRecognitionV3/files/13881471/VoiceRecognitionV3.zip

how run this code with arduino uno in arduino ide please

— Reply to this email directly, view it on GitHubhttps://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-1884411273, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A56NDCTE3XIKO5JBFIHXGQ3YNZH7PAVCNFSM4CEQPFJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGQ2DCMJSG4ZQ. You are receiving this because you commented.Message ID: @.***>

khaled312001 commented 10 months ago

can you help me to fix loading error after train module didn't load the voice , i use arduino uno and vr V3.1 image VoiceRecognitionV3.zip

ETH65 commented 10 months ago

Hi, The library file I embedded in the chat is customized for ESP32. I am not sure if that library file works for the UNO. I suggest that you download the library of the same name from GitHub and then add the two lines that I modified in "my" version.

Thanks and best regards Eckart


From: khaled ahmed @.> Sent: Wednesday, January 10, 2024 9:09:30 AM To: elechouse/VoiceRecognitionV3 @.> Cc: ETH65 @.>; Comment @.> Subject: Re: [elechouse/VoiceRecognitionV3] Arduino 101 and VoiceRecognition V3 command error message (#3)

can you help me to fix loading error after train module didn't load the voice , i use arduino uno and vr V3.1 image.png (view on web)https://github.com/elechouse/VoiceRecognitionV3/assets/58705759/8a346a79-ec2d-4c1e-ab86-62394915cee9 VoiceRecognitionV3.ziphttps://github.com/elechouse/VoiceRecognitionV3/files/13888731/VoiceRecognitionV3.zip

— Reply to this email directly, view it on GitHubhttps://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-1884920261, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A56NDCX5KEIF6SM24SRAEX3YN2OJVAVCNFSM4CEQPFJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGQ4TEMBSGYYQ. You are receiving this because you commented.Message ID: @.***>

khaled312001 commented 10 months ago

Hi, The library file I embedded in the chat is customized for ESP32. I am not sure if that library file works for the UNO. I suggest that you download the library of the same name from GitHub and then add the two lines that I modified in "my" version. Thanks and best regards Eckart ____ From: khaled ahmed @.> Sent: Wednesday, January 10, 2024 9:09:30 AM To: elechouse/VoiceRecognitionV3 @.> Cc: ETH65 @.>; Comment @.> Subject: Re: [elechouse/VoiceRecognitionV3] Arduino 101 and VoiceRecognition V3 command error message (#3) can you help me to fix loading error after train module didn't load the voice , i use arduino uno and vr V3.1 image.png (view on web)https://github.com/elechouse/VoiceRecognitionV3/assets/58705759/8a346a79-ec2d-4c1e-ab86-62394915cee9 VoiceRecognitionV3.ziphttps://github.com/elechouse/VoiceRecognitionV3/files/13888731/VoiceRecognitionV3.zip — Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A56NDCX5KEIF6SM24SRAEX3YN2OJVAVCNFSM4CEQPFJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGQ4TEMBSGYYQ. You are receiving this because you commented.Message ID: @.***>

Screenshot_2024-01-12-23-41-03-574_com foxdebug acode Are these the two lines should I add?

ETH65 commented 10 months ago

Yes, those two lines.

Thanks and best regards Eckart


From: khaled ahmed @.> Sent: Friday, January 12, 2024 4:42:52 PM To: elechouse/VoiceRecognitionV3 @.> Cc: ETH65 @.>; Comment @.> Subject: Re: [elechouse/VoiceRecognitionV3] Arduino 101 and VoiceRecognition V3 command error message (#3)

Hi, The library file I embedded in the chat is customized for ESP32. I am not sure if that library file works for the UNO. I suggest that you download the library of the same name from GitHub and then add the two lines that I modified in "my" version. Thanks and best regards Eckart … ____ From: khaled ahmed @.> Sent: Wednesday, January 10, 2024 9:09:30 AM To: elechouse/VoiceRecognitionV3 @.> Cc: ETH65 @.>; Comment @.> Subject: Re: [elechouse/VoiceRecognitionV3] Arduino 101 and VoiceRecognition V3 command error message (#3https://github.com/elechouse/VoiceRecognitionV3/issues/3) can you help me to fix loading error after train module didn't load the voice , i use arduino uno and vr V3.1 image.png (view on web)https://github.com/elechouse/VoiceRecognitionV3/assets/58705759/8a346a79-ec2d-4c1e-ab86-62394915cee9 VoiceRecognitionV3.ziphttps://github.com/elechouse/VoiceRecognitionV3/files/13888731/VoiceRecognitionV3.zip — Reply to this email directly, view it on GitHub<#3 (comment)https://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-1884920261>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A56NDCX5KEIF6SM24SRAEX3YN2OJVAVCNFSM4CEQPFJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGQ4TEMBSGYYQ. You are receiving this because you commented.Message ID: @.***>

Screenshot_2024-01-12-23-41-03-574_com.foxdebug.acode.png (view on web)https://github.com/elechouse/VoiceRecognitionV3/assets/58705759/ada29354-f2f5-4252-8c82-39244ec06a5e Are these the two lines should I add?

— Reply to this email directly, view it on GitHubhttps://github.com/elechouse/VoiceRecognitionV3/issues/3#issuecomment-1889986755, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A56NDCWVW3YCI7AXCBFSTVDYOGU5ZAVCNFSM4CEQPFJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYHE4TQNRXGU2Q. You are receiving this because you commented.Message ID: @.***>