Very hard to implement a long process dll or applicatio​n in TestStand such as firmware download task.

Hi All
In my daily projects there are many firmware download tasks on mass production for kinds of products sucha s phone, mp3, game box and so on. The common download is performed via USB or serial port.
Firmware download is often a long process what will take up to hundreds of seconds. The download application or dll is often provided by customer or the chipset supplier, I have ever call a download dll in TestStand, the only way is to run the dll in another threading and at the UI threading I monitor the dll's log file for status, it looks a very stupid way to do, things oftn lose control.
This time I have to automatically download firmwares to a mp3(Sigmatel chipset), Sigmatel provided an application for parallel downloading what is very unstable, the application often hangs or crash, I tried to update the application source code but Sigmatel says they will not support if I change something.
If someone use the application, he needs to press the START button, if fail, press the STOP firstly, if crash..... everything lose control. In my opinion, even if I change the application to a dll, there are still long processes, I must let TestStand wait there for the log file information? I do not think that is a good idea.
My thought is this is a usual task in manufacturing, could someone please advice me how do you handle this kind of testing in your test station? How to run a long process task in TestStand and communicatio with it and keep everything in control.
Thanks.
帖子被paulbin在04-06-2008 07:49 PM时编辑过了
*The best Chinese farmer*

Hi,
I have used a VC++ dll
Here are some snipptes
void CProcessLoaderApp:ostMessageToProcess(LPPROCESS_INFORMATION lpProcessInformation,UINT Msg, WPARAM wParam, LPARAM lParam)
 FINDWINDOWHANDLESTRUCT fwhs;
 fwhs.ProcessInfo = lpProcessInformation;
 fwhs.hWndFound  = NULL;
EnumWindows ( EnumWindowCallBack, (LPARAM)&fwhs ) ;
 PostMessage ( fwhs.hWndFound, Msg, wParam, lParam );
BOOL CALLBACK CProcessLoaderApp::EnumWindowRcs5SystemTestCallBac​k(HWND hwnd, LPARAM lParam)
 FINDWINDOWHANDLESTRUCT * pfwhs = (FINDWINDOWHANDLESTRUCT * )lParam;
 DWORD ProcessId;
 CString Title;
 GetWindowThreadProcessId ( hwnd, &ProcessId );
 // note: In order to make sure we have the MainFrame, verify that the title
 // has Zero-Length. Under Windows 98, sometimes the Client Window ( which doesn't
 // have a title ) is enumerated before the MainFrame
 CWnd::FromHandle( hwnd )->GetWindowText(Title);
 if ( ProcessId  == pfwhs->ProcessInfo->dwProcessId && Title.Compare("MyApplicationName_ReplaceThatStuff"​) == 0)
  pfwhs->hWndFound = hwnd;
  return false;
 else
  // Keep enumerating
  return true;
 MainStuff:
SetCursorPos(10,23);
 m_App.PostMessageToProcess(&g_pi,WM_LBUTTONDOWN,0​x01,0x000A0017);
  WaitForSingleObject(Event,200);
 m_App.PostMessageToProcess(&g_pi,WM_LBUTTONUP,0x0​0,0x000A0017);
  WaitForSingleObject(Event,200);
Greetings
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

Similar Messages

  • Ello, I changed my Imac hard drive which no longer worked. I installed a hard drive Western Digital 500 GB 7200 rpm SATA3 WD5002AALX 32M Black. Sometimes I see the hard disk in the utility on the Starter CD, but access seems very slow. By cons when I want

    Hello, I changed my Imac hard drive which no longer worked. I installed a hard drive
    Western Digital 500 GB 7200 rpm SATA3 WD5002AALX 32M Black. Sometimes I see the hard disk in the utility on the Starter CD, but access seems very slow. By cons when I want
    install OS X 10.4.2 on the hard drive, I do not see the disk. What is the problem?

    Thanks for the help
    I started on the installation CD OS X 10.4.2, I used Disk Utility
    to partition the disk according to the document that you have proposed. unfortunately
    I have not succeeded. When I partition the disk, even if I called it Macintosh HD, it
    does not keep the name and it shows disk0s3 instead. I did an erase on disk.
    When I mount the disk it tells me that I must repair. When I tried to repair, I got
    the following message:
    Volume check failed
    The underflying task reported failure on exit
    1 HFS volume checked
    1 volume could not be repaired because of an error.
    I also had a message:
    Invalid b-tree node size.
    Note: The disc is new, but it has already been formatted on a computer Imac 27 inch 2011 OS X Lion.
          I used a USB 2.0 to SATA cable to adjust the formatting.
    What to do to fix it?

  • External hard drive taking really long time to reformat

    I'm reformatting a Seagate 2TB external hard drive that connects using USB 3.0 to my 2014 Macbook Pro (OS X 10.9.4).
    For some idiotic reason (because I had never used it before and wanted to see what happened), when I went to reformat the drive in Disk Utility from FAT32 into 'Mac OS Journaled (Extended)' I selected the option for "7 Pass Secure Erase".  It initially told me it should take "1 day, 7 hours", which seemed like a lot but was consistent with what other Support Communities people have said for such a large drive.
    It's now been reformatting for 20 hours, and the estimated time remaining says "1 day, 1 hour".  The progress bar has moved and it says it's on pass #3, but this seems like it's taking an abnormally long time.  Has something gone wrong?  For reference, I did a 1-pass into reformat into FAT32 on a similar 1TB external and it only took me around 20 minutes (so I estimated the new one would take ~5 hours (20 * ~2X storage space, 7 passes). I know "estimated time" on a computer always defies the laws of mathematics, but if "6 hours" is actually 20 hours, will I really be waiting for another 80 hours?  Can I do anything to speed this up?
    More importantly, can I stop the reformat and try it a gain with 1-pass, now that I've initiated the idiot way of doing it?  I don't want to screw the drive up or make it unreadable, it's brand new, but I don't want to have to leave my laptop on for the next 3 and a half days.
    Please help!  Thanks so much!

    SquareWarren wrote:
    I'm reformatting a Seagate 2TB external hard drive that connects using USB 3.0...
    ...I know "estimated time" on a computer always defies the laws of mathematics, but if "6 hours" is actually 20 hours, will I really be waiting for another 80 hours?  Can I do anything to speed this up?...
    I don't know which Seagate external you're using but my experience with a number of GoFlex externals has been that very little thought was given to ventilation, and, as a result, the drives tended to overheat. Watching the transfer rate using Activity Monitor during normal backup use, I found that after running a while and getting hot, the transfer rate went from MB's to KB's/sec. You're not actually transferring anything but the drive is being written to, so I'd expect the write speed to drop and what is already going to be a long process will just get longer. Sorry.

  • Disk Utility has been trying to make a partition on hard drive for a long time

    Disk Utility has been trying to make a partition on hard drive for a long time, I want to make 2nd partition and install the Snow Leopard on 2nd disk,
    Lion is very slow on my Early 2011 MBP.

    I am using MBP early 2011 with Osx Lion,
    Lion was slow for me and I have no external HD to backup my files,
    Than I want to make 2 partititon of my internal HD to backup my files to it, and also want to install Snow Leopard to that new partition using the CDs comes with my MBP.
    After that.
    I was using Disk Utility to partition my MBP to install Snow Leopard to my second part. While partitioning my Disk Utility did not complete and wouldn't continue the process, I waited about 30 minutes to see if it fix itself, so I cancelled it and restart the Mac, upon rebooting I opened Disk Utility to try again and I noticed I lost 400 gigabytes of space. I tried to "Erasing Free Space" but after a couple of minutes it finished and the same problem 400 GBs of lost space.
    Is there a way to fix this and regain my lost hard drive space?

  • My WD external hard drive will no longer show up on my Macbook pro.

    My WD external hard drive will not longer show up on my macbook pro.  The light turns on and you can hear it running but it won't show up either in finder or in the disk utility.  This happened a while ago but I really want to get all my photos off the hard drive.  Is there anything I can do to get my computer to read it again or get my data off of it?
    I don't have access to another Mac to test it. 
    Thank you

    dead sata bridge card. very common problem.
    see all about it here:
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD
    verify HD on another Mac however, if same, dead SATA card most likely

  • Methodology used in Hard Core Implementation?

    "What is the methodolgy used in Hard Core Implementation"?

    Hello Farhan,
    Please go through the following links................you'll have a clear picture on all 5 steps of implementing SAP in very detail, including the activities involved in each phase.
    <a href="http://www.sapfans.com/sapfans/asap/be_01_e.htm">Introduction</a>
    <a href="http://www.sapfans.com/sapfans/asap/be_02_e.htm">Phase 1: Project Preparation</a>
    <a href="http://www.sapfans.com/sapfans/asap/be_03_e.htm">Phase 2: Business Blueprint</a>
    <a href="http://www.sapfans.com/sapfans/asap/be_04_e.htm">Phase 3: Realization</a>
    <a href="http://www.sapfans.com/sapfans/asap/be_05_e.htm">Phase 4: Final Preparation</a>
    <a href="http://www.sapfans.com/sapfans/asap/be_06_e.htm">Phase 5: Go Live & Support</a>
    <b>Reward points if helpful</b>
    Regards
    Sai

  • Running long processes

    I have a series of pages that perform the following
    functions:
    1. Query the database and present a list of selectable items
    with checkboxes next to each item. The user selects any number of
    items to report on.
    2. The selected items within the form are sent to a
    processing page that generate CFDOCUMENT pdf reports via a series
    of queries to the database for each item. The generated reports are
    saved to a temporary directory on the server and when the last
    report is created, they are zipped up and emailed to the user.
    All of this works quite well except that it can be a fairly
    long process especially if a fair number of items are selected. I
    can override the CF page timeout with the CFSETTING tag but there
    is an issue with the browser timing out. I had implemented a
    progress bar with a series of CFFLUSH commands to keep the browser
    receiving content, eliminating the browser timeout. However, the
    page now seems to ignore the flush commands and just displays it
    all at the end instead of incrementally. This seemed to happen when
    I changed the submitting form to one that posts the form data
    instead of calling the processing page with url variables. This was
    required when I went to a multiselect option. I'm not sure if this
    is the cause but I have tried everything I can to get the CFFLUSH
    flushing again to no avail.
    Is there a way to get the server to process the request in
    background mode? Since the user makes a request and doesn't receive
    any meaningful content on the screen after the request (they just
    expect the email to be sent), is there any way to make the server
    process the request even if the user disconnects or goes onto
    another page? This would be ideal. If not, does anyone have
    suggestions on getting CFFLUSH to work again. I have tried all the
    obrious things like checking for tags that are incompatible with
    the CFFLUSH tag and the IE need to have a certain amount of content
    sent to it before the CFFLUSH. Simple test pages seem to work.

    RE: bpdevlin
    I think you're on the right track. Capture and store whatever
    data you need (even credentials if necessary) in a new database
    table. As a side-note; if you are concerned about the credentials
    being in the database, you could consider using encryption.
    You could then create a new scheduled process with
    <cfschedule>, and have that process run pretty much
    immediately (by scheduling the task for a date in the past). That
    process would query the database for the data it needs, and then
    proceed with its "work". Once it's done "working", it could report
    a "done" status back to the database, or simply delete the record
    entirely.
    The front-end could periodically check for this "done" status
    (or for the absence of the record in the database), to know when it
    can send the user to the "view report/results" page. There are a
    lot of ways to accomplish this; one simple approach I've taken in
    the past is to embed a 1-pixel X 1-pixel <iframe> in the page
    that runs the "check if done" script over and over again. While
    this is happening, the main page/window could show an animated GIF
    that simply says "Please wait while we process your request...."
    (or something along those lines)
    There are a lot of different ways you could approach this,
    but I just thought I'd throw a few ideas out there to get your
    creative juices flowing :)
    Best of luck with it.

  • IPhone 5 shuts off, very hard to start back up

    Every once in a while my iPhone 5 shuts down by itself. This has nothing to do with how much it's charged, or whether or not it's in a charger at the time. It just shuts itself all the way off. When it does this I have a very hard time starting it back up. Power button doesn't make any difference at all, nor does holding home and power button. Plug it in to charger, push buttons, unplug it, push buttons again. Eventually the logo shows up - after about 10 minutes of trying different variations and combinations. Again, this has nothing to do with how much the phone ha been charged, and I always charge on a surge suppressor. I have done factory resets with no avail. I'm assuming no one is going to give me much help on this beyond "Take it to the Genus Bar," which hasn't worked since it can't be replicated on demand. I just want to know if anyone else has had this problem.

    Michael,
    Thanks for bearing with me through that process. That's the first time I've done it through these forums and it was painless.
    Your battery does in fact need to be serviced. It just crossed the line of no return, and it will not get better. The apple stores will replace the battery for $79, but it shows you're under warranty until 6/6/15. This means, they should replace your battery within warranty.

  • Hi Guys, suddenly I am not able to hear on my iphone 3GS whenever I receive a incoming call(it's very hard to hear wat the other people us saying)

    Hi Guys, suddenly I am not able to hear on my iphone 3GS whenever I receive a incoming call(it's very hard to hear wat the other people is saying)

    I had my GENIUS appointment today. They did a couple of tests by plugging my iPhone into a macbook and both came back without showing problem. However as the genius was working with my phone he ran into the same problem with 3G and I had taken some screen shots showing full signal strength but unable to make a call, failure to send mms, and internet unable to connect, so he switched out my phone for a new one as I am still under warranty for another 3 months.
    Make sure you backup your data and restore your phone as a new phone before going in to see a Genius, otherwise they may choose to try that process first and do some diagnotistic tests before being able to switch it out, and that can take up to 4 days.
    Best guess by the Genius was that it was a hardware problem with the internal cellular antenna. He also recommended I get a new (free) SIM card from AT&T which I did (kiosk was in same mall)
    So bottom line...if your 3G is messed up, make an appointment with Apple Genius. Thanks to all who tried to help, but mostly thank you apple Genius for great customer service.

  • Rating music in IOS 5 made very hard

    Since the update to IOS 5 the now called "Music" player automatically displays the album artwork when playing another song, even if I select the song explicitly by tapping on it. This makes rating my music very hard since I have always to switch back to the list view by tapping the list icon in the lower right corner.
    I do not like applications that assume I am stupid and do the thinking for me. Apple is on the way to match Microsoft ...
    Why am In not even enabled to switch this behavior off? For rating music the iPad is now nearly useless.
    @Apple: Please change this behavior or give us options to select what WE want. Could not be that hard ...

    I'd like to second this. If I have put the music app in list view it shouldn't switch on me every time the song changes. I like to put on a playlist of unrated music and star each song. This "feature" makes the process very annoying.

  • Firewire external mobil disk hard drive is no longer recognized

    After last system update, my firewire external mobil disk hard drive is no longer recognized. Any solutions?
    Why does MacOS go backwards... gets worse over time?

    Thought you could use this info about getting FireWire to work! I have had no trouble with any update Apple puts out (the Combo update is what I normally choose). Are you running 9.2 like your specs. say? You are in the Tiger forum, so I'll assume you haven't updated your Macs specs.
    First, you should always Repair Permissions in Disk Utility before and after any update; I would do that now. If you installed your update with FireWire plugged in, your Mac may not recognize it anymore.
    Try resetting your FireWire ports by disconnecting all FW devices, shut down your Mac and unplug it from AC power (wall socket) for 30 minutes. plug it back in and try FW.
    If that did'nt work, download the combo update from this site (yours may be corrupt), not Software Update, disconnect all firewire + USB devices except keyboard + mouse, Repair Permissions, re-install update, Repair Permissions again + try. Yours may be the 10.4.5 Combo update. Others reading, download the Combo that applies to your system.
    If that still did'nt get it Zap the PRAM. While restarting Mac hold down the following key combo Command-Option-P-R. Keep holding those keys down till you hear the second start-up chime, then release.
    For those of you with Macs that are not PowerBooks or iBooks, a bad internal battery can cause FireWire to not be recognized, so make sure it's good!
    Good Luck!
    Cheers!
    DALE

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • I want a proper update for my phone (intex cloud fx).i want to copy and paste the text,keyboard is very hard to type.need some main appswhich available inplystr

    i have some some main problems with this phone . the browser is not good . i want opera or uc browser in store . i not able to copy or paste any text msgs ,this is a problem. i have seen that when i try to update my phone , it showing error . i seen something is there that is too gud in this phone . i requisted firefox to increase its problem solving and make good and user friendly os like android . there are many things which i like very much on this phone but , on the same side there are lots of backlogs are there .
    such as :
    1)no whats app (connect a2 app is there but i didnot like it .bec its very slow n giving me too much problem)
    2)keyboard is very hard to type because its width is low ,so i cant able to type gud . atleast chage it in u r next update.
    3)the browser is not good . giving many problem in downloading and looses its data after i close it . its forfotting my data like passwords every time.
    4) file manager is too slow .( taking much time for loading ).

    Hi rajkumarukkuturi,
    Thank you for your feedback, however all of the feedback for the developers can be submitted at input.mozilla.org.
    If you need any support, please consider creating a new thread containing the specific details of your issue.
    Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently.
    Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you.
    Thank you.

  • My external hard drive will no longer connect to my macpro......any ideas on how to solve this problem??

    My external hard drive will no longer connect to my macbook pro via FW800........Any ideas on how to solve this??

    Reset the SMC, see this Apple note: http://support.apple.com/kb/HT3964
    Also reset the PRAM:
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    In most cases, those two actions will fix the port issue. If it's still an issue, you may need to see if the external hard drive can connect to another system, to ensure it's not having problems.

  • My Toshiba external hard drive is no longer being recognised by my Macbook Air - solution?

    My Toshiba external hard drive is no longer being recognised by my Macbook Air. The light on the hard drive is on, but it won't appear on my computer's desktop or anywhere else. How can I fix this?

    Hi rivraff,
    If you are having issues mounting an external hard drive volume, you may want to see if it shows up and/or can be repaired in Disk Utility; you may find the following article helpful:
    Apple Support: Using Disk Utility to verify or repair disks
    http://support.apple.com/kb/ht1782
    Regards,
    - Brenden

Maybe you are looking for