-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program only starts when sensor is not attached #3
Comments
Hi Ulrich, thank you for your message. Just a couple of questions:
Could you please send me this logfile? Just in case you don't see the "AppData" folder: It's a hidden folder, therefore you must enable hidden folders in the Explorer. Best regards |
Hi Philipp, The MCP2221A gets recognised and listed as I plug it in. I had the opportunity to try it on an old laptop. Where everything works fine. Best regards |
Hi Ulrich, okay, good to hear that the hardware is working with an other laptop. This means that it's unlikely to be a hardware issue. Are both laptops you've tried running Windows 11? To be honest, I've only tried it on Windows 10 so far. I've build a Debug version of the application. This is exactly the same software as version 1.2.1, except that a terminal opens as soon as the app is started. Could you please check, if there are any error messages shown in the terminal? Thanks a lot for your effort and sorry for the inconvenience. Best regards |
Send without seeing your answer first :-( Good Morning Philipp, I didn't tell the complete hardware yet: Load cell --> NAU7882 --> MCP2221 --> USB On the desktop computer where CriticalForce.exe does only start without sensor it's Windows 11 home. Tried USB 2.0 and 3.0. Best regards |
Hi Philipp, I'm doing now everything with your Debug version on Windows 11. Not depending if the sensor is plugged in the debug.log always gets touched but stays empty. Starting with sensor attached: Starting without sensor attached: Started out of a terminal with ".\CriticalForce_DEBUG.exe" the results are the same. I compared it with the old laptop with windows 10. Here are, as you will know, a background process and one foreground process. Both of them terminating when closing the app. Best regards |
Hi Ulrich, that is very strange. I've got no idea, whats happening here. I've built another debug version, where I've manually added some print statements. Ideally, the terminal output should look like this: Could you please tell me, up to which comment/number it is working for you? Best regards |
Hi Philipp,
sorry, I'm not at home at the moment but I'll test it in a week.
Best regards
Ulrich
*Von: *Philipp Bulling ***@***.***>
*An: *OddgitHub/Critical-Force ***@***.***>
*Kopie: *Git572 ***@***.***>; Author ***@***.***>
*Datum: *09.04.2023 11:50:24
*Betreff: *Re: [OddgitHub/Critical-Force] Program only starts when sensor is not attached (Issue #3)
…
Hi Ulrich,
that is very strange. I've got no idea, whats happening here. I've built another debug version[https://www.dropbox.com/s/v454o229i3jeqyr/CriticalForce_DEBUG2.exe?dl=1], where I've manually added some print statements. Ideally, the terminal output should look like this:
[https://user-images.githubusercontent.com/120595692/230766063-a4c69b1e-de41-4290-aa86-838d3dd1ff2f.png][Terminal][https://user-images.githubusercontent.com/120595692/230766063-a4c69b1e-de41-4290-aa86-838d3dd1ff2f.png]
Could you please tell me, up to which comment/number it is working for you?
Best regards Philipp
—
Reply to this email directly, view it on GitHub[#3 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ARFHCWEZK3UKRAHEBCVJL6LXAKA5XANCNFSM6AAAAAAWVODEFM].
You are receiving this because you authored the thread.[Verfolgungsbild][https://github.com/notifications/beacon/ARFHCWGG7JFGEEFUC6INZ63XAKA5XA5CNFSM6AAAAAAWVODEFOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZPDHLO.gif]
|
I think that the device disappears should be no problem, this also happens on my computer. Unfortunately, I've got no idea, whats happening here. You said, the NAU7802 is connected to the MCP2221 via the Qwiic connector and the setup is working fine on an other computer? |
Hi Philipp, the Sensor is this one and yes, it works o.K. on my old laptop with windows 10, which is nearly used to capacity just running windows :-) Do you think it would help anything to run the debug version from source per "python start.py"? The normal v1.2.1 didn't give any output on the terminal (but I think that's how it is written). Best regards |
Yes, it could be helpful, if you would run the app directly as Python script. Are you familiar with Python? |
I started a little bit into python a few years ago. To say I'm familiar would be to much. But it's an object orientated language - I'll try my best :-) I'd say, tell me what you need / want me to do and I can tell you if I'm familiar enough :-) P.S. Running scripts from a terminal would be also o.K. for me, I'm not glued to Visual Studio. |
The problem is that "import board" loads an external module. So it seems to be a problem with the MCP2221A, not with the Critical Force software itself. Not sure, how we can debug this. One issue could be, that setting the Environment Variables fails. You could open a terminal and navigate to the folder with the "start.py" script. Then type the following in the command line: Next start the script with If that doesn't help, you could check out this documentation, on how to setup the MCP2221A |
Setting the BLINKA_MCP2221 to 1 didn't help. O.k. going to your link: here comes one beep upper->lower, then lower->upper, then the console stops and isn't accessible any more. |
Okay, thanks for trying this. Unfortunately, I'm afraid that I'm not able to help you. It seems to be a problem with the MCP2221A. Could you maybe post your problem in the adafruit forum? |
Sorry, I'm very bussy these days, but I will post it in the adafruit forum |
If I try to start the program with the weight sensor attached there are two beep sounds but nothing visible happens.
The program starts right into the gui without the sensor attached, but with the Warning: "Could not detect weight sensor! Please connect a fingerboard to your computer." Which is correct :-)
If I can do anything to help debug this problem, please let me know.
Ulrich
--
Running on Windows 11 Home Edition 22H2, aktuelle Updates
The text was updated successfully, but these errors were encountered: