|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Cypress / First touch I/O module recognition by DS after suspend
Looking for feedback from teams who use the Cypress First Touch I/O module and have it successfully operating with the Driver's Station and their robot...
Does the Drivers Station software recognize the I/O module for you after you suspend it and then wake it up again?(without restarting the DS software or the Classmate itself) The DS recognizes the Cypress I/O module fine for us off a fresh boot of the laptop, and everything operates properly. However when suspended (lid close) and the re-awoken the DS software will not recognize the module. Even restarting the DS software will not result in it being recognized. Rebooting the Classmate is the only way we found to be able to get the Cypress to be recognized again following a suspend. |
|
#2
|
||||
|
||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
This happened to us during a qualification match at FLR on Friday. We closed our laptop, for transporting the robot, and when we opened it up, we though it was working. Little did we know (but quicklly figured out) that none of our controls worked, except for the joysticks, which were plugged direct to the laptop. This is really quite a serious problem, and FRC should make an update telling teams no to do this.
|
|
#3
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
Is this reproducible? I wasn't able to provoke it.
How are devices connected to the USB, what is right, left, and what is on the hub? Finally, is it possible that the FT is drawing too much current or is shorting out? Greg McKaskle |
|
#4
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
We had this same problem in DC. If we shut the lid to the classmate upon reawakening it the cypress board was not recognized. We found that it required a reboot of the classmate to reestablish connection
Our solution was to just carry the classmate to the field open and never shut the lid. ~Allison |
|
#5
|
|||||
|
|||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
If you turn the laptop off and then boot it up while it is connected to the FMS, then it will not find the Cypress board unless you reboot it twice without the FMS. This killed us twice. We also found that once it looses comm to the Cypress board, it keeps sending old data to the cRio, so there is no simple way to detect this loss. We had one Logitech gamepad and the Cypress board connected to the KOP hub, with both ethernet cables on the hub connected to the Classmate. No problems at all during testing at home. Talking to other teams at Kettering, most of the teams that used the Cypress board had a problem with it of some sort. As a side note, it is really annoying how the Cypress board operates on 3.3v while everything else in the system is 5v, they could have picked a better IO board.
|
|
#6
|
||||
|
||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
Yes, 100% reproducible for us:
Attach all devices (see below), boot up, DS opens in Driver. Once stable, close lid. Wake system up. DS software will not recognize I/O board at this point. Restarting DS software (Driver Log-out, then back in, or even going to developer and running there) does not matter; it still will not find it. Quote:
Quote:
But, if we never suspend the system it works fine (throughout an entire day of competition). In addition, the board has LEDs attached to it which do light ("randomly" as they don't get robot-originated commands) even in this condition. It is not shorting out. How does the DS do recognition of the Cypress? Could this be some sort of race where the board may not be fully re-initialized/woken up sufficiently when the DS looks for its presence again? Does it look for it when you do the F1 re-enumeration? Pretty sure we tried that, but would try it again if this is the case. We can also try changing the hook-up scenario and report back. |
|
#7
|
||||
|
||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
Quote:
Quote:
We'd gone a similar route to Allison's team; we've configured our Classmate to not go to suspend when the lid is closed. But this has severe drawbacks in elimination rounds where you'd like to sleep it between matches to preserve battery (and speed the charging process when on charger between match). |
|
#8
|
|||||
|
|||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
You can get the I/O board back by terminating the Cypress service and restarting it under Windows Start -> Administrative Tools -> Services. Takes a few seconds. It's just annoying to have to do, and it's unfortunately one of those "secrets".
I seems to be a Cypress issue. They know about it. Last edited by Mark McLeod : 10-03-2010 at 10:14. Reason: Forgot to say Services |
|
#9
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
I don't have a classmate to experiment with. Does this happen if you plug the Cypress directly into the laptop, then close and reawaken?
I'm confused why we cannot reproduce this. Can you report the version of the driver? Mark, you indicated that Cypress was aware of this. Can you provide a link? Greg McKaskle |
|
#10
|
|||||
|
|||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
This is a 1% problem.
If it's any consolation, I can't reproduce it either, but I also haven't spent much time examining the issue, so maybe I just haven't tried hard enough. Work with a statistically significant number of teams and you'll run across it. We'd see it more if more teams used the IO board. My experience with it has only been a single team at NJ in triage for more serious issues, so not much time was spent on this one problem. A work around was good enough. I believe the problem was narrowed down to the Cypress Board (although I didn't test the USB cable connecting it to the Classmate). Classmates were swapped out and it followed the Cypress board. Cypress board plugged directly into the right Classmate USB port. It could be produced by sleep and by repeatedly plugging and unplugging the USB connector. It only happened on the Enhanced IO for the one I saw. I did not have time to try a different cable or IO board from Spare Parts. Cypress tech. support was consulted by phone by the team before the Regional, so take my comment about Cypress knowing about it with a grain of salt. The mentor is quite experienced in LabVIEW real-time processing however (and expressed the typical complaints about some of the low-level non real-time calls employed ).Last edited by Mark McLeod : 10-03-2010 at 08:27. |
|
#11
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
Thanks. When I said I don't have a Classmate, I meant at my house, BTW.
Can someone with a failure on awaken try this without the I/O board connected? With the board connected, but without any outputs connected, with outputs and no inputs? Also, if you awaken and the board doesn't work, can you verify whether the Control Panel>>Admin Tools>>Services shows the PSOC service running or not? Assuming that the service stops running on awaken, does a reinstall of the PSOC programming tool change things? Greg McKaskle Last edited by Greg McKaskle : 10-03-2010 at 08:14. Reason: clarification |
|
#12
|
|||||
|
|||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
I can contribute answers to some of those questions from my tests with the team at the event. I just can't try it again now.
The service was listed as running after the failure occurs. Stopping and Starting the service cleared it up as you would expect. With the Classmate change:
The Classmates were generally booted without the IO board connected. The IO board was plugged in afterwards. |
|
#13
|
|||||
|
|||||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
I had access to our team's school (and, hence, our OI) for some time last night to experiment with this in a more controlled environment than competition.
While it was happening 100% of the time at competition, I could not reproduce with 100% success rate at our home facility. Significant here is that I did not have the same robot from which to send commands to the board (I had linked it to our 2009 cRIO, but the code on such does not use the extended io as we do in 2010). I could, however, still reproduce it about 60-75% of the time. Happened more often than not when on battery power than plugged in. Still same configuration I mentioned above (right classmate port plugged into hub, which has 2 kit joysticks and the Cypress on it). Quote:
Quote:
Quote:
Quote:
Quote:
|
|
#14
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
A little bit more info about our version of the error
Cypress was connected to hub, which was connected to the classmate through only the black cable. Not sure if classmate was suspended when the field cable was plugged in, but I can confirm that the only thing that fixed the issue was to reboot the classmate. I promptly disabled suspend on lid close. Didn't see the problem again. At eliminations, I re-enabled sleep on close for power conservation, and before every match I checked the I/O before connecting to the field and everything worked. Our alliance partners did get a cypress failure though, rebooting also fixed it for them, but their joysticks weren't working either so it might have been s different problem. P.S. This has never happened off the field for us |
|
#15
|
|||
|
|||
|
Re: Cypress / First touch I/O module recognition by DS after suspend
For what it's worth, this happened to us as well. We closed the laptop cover before a practice match and it decided the First touch no longer existed. Luckily, it was end of day and another mentor saw this thread that night. No harm done. And this turned out to be a blessing in disguise because:
Quote:
If we lost finals because of this problem, we would have been really mad! So thanks for posting about the problem and saving us! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cypress First Touch | scottbot95 | Control System | 2 | 15-02-2010 22:14 |
| Recognition by Schools for FIRST Teams | kfox1731 | General Forum | 10 | 31-03-2008 22:51 |
| **FIRST EMAIL**/2006 FIRST Safety Awareness and Recognition Program | Beth Sweet | FIRST E-Mail Blast Archive | 0 | 24-02-2006 15:34 |
| pic: our FIRST recognition | CD47-Bot | Extra Discussion | 6 | 25-03-2004 23:57 |
| Life After Dean: Who Will Lead FIRST After Kamen and Flowers?? | Joe Matt | General Forum | 25 | 24-06-2002 00:12 |