Pages: [1]   Go Down
Author Topic: Pduino: GetOverlappedResult error  (Read 1560 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone

i have the following setup:
- arduino mega 2560
- pure data on win 7, 32 bit
- firmata 2.1 on arduino
- a pure data patch which sends alternating HIGH and LOW to digital pin 4 and 6

After a couple of HIGH, LOW i get a "WriteFile:GetOverlappedResult error 31" on pure data and connection to arduino is broken. But: Running the same patch on pure data on osx, connected to arduino, works perfect.

I thought of the win 7 driver for arduino mega 2560 having a problem, may be?

Does anyone have an idea what might be the problem and what could be done to prevent the error?

Thanks a lot
jp
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
what could be done to prevent the error?
Isn't that obvious? Get a mac.

Seriously, what baud rates are you using?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
  { A device attached to the system is not functioning. }
  ERROR_GEN_FAILURE = 31;

Proceeding on the assumption that the problem is hardware related (which it could be)...
What do you have connected to the Arduino?
Check Device Manager after the failure.  Does the operating system label the device as "functioning correctly"?

Proceeding on the assumption that the problem is software related (which it could be)...
I believe Windows 7 is up to Service Pack 2.  Is the operating system up-to-date?
The problem may be a bug in Firmata.  It appears Firmata is at version 2.2.  Have you tested with the latest version of Firmata?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

many thanks for your responses. In the mean time on Mac osx i have observed a problem which is very similar to what i have described from windows 7:

- baudrate is at 57600
- i use the SimpleDigitalFirmata.pde firmware from firmata
- i have a midi track running at 120bpm with 7 instruments
- on osx for a couple of seconds it runs and pure data sends a HIGH and LOW to arduino for each midi note it receives from Logic Pro
- then there's something like a message-jam and only very few random HIGHs and LOWs remain being sent to arduino
- i have to manualy reset the comport connection and then it works again for a few seconds until it gets jammed again...
- i also tried at a baudrate of 115200. it's the same problem
- i use a short usb cable, don't know if length of usb cable matters somehow?
- the problem on osx could be related to what happens on windows 7, but i'm not sure it is so

at the moment it's all i know

may be someone has an idea, thanks
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
- i have to manualy reset the comport connection and then it works again for a few seconds until it gets jammed again...

How are you performing the "reset"?  Unplug the board?  Through a software tool?
Logged

Pages: [1]   Go Up
Jump to: