Issue regarding - Experimental replication

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Enclosing all relevant docs. Sort it out. @Sahil_K 

0 Likes
1 Solution

shuvra1,

The files you provided in the previous post is EXACTLY the same as the ones you provided in the first post of this thread.

The Potentiostat.zip is NOT the original Olav Bjerke project.  It has been altered.

If I can obtain the original  project, I might be able to glean new information that might help you.

The main issue starts with the fact that you changed the VID and PID from the original settings to the settings used for the USB UART.

Based on this pic:

Len_CONSULTRON_1-1663851454987.png

you are stating the original VID and PID are 0x04B5 and 0x0081 respectively.

All the parameters listed in the "Device Descriptors" are important to the USB communications used by the Python scripts.

I must note that I have limited experience in USB configuration.  It would be best for someone else with more experience to weigh in on this issue.

Once a USB slave device is powered up on the USB bus, the PC looks for a '.inf' file where the VID and PID match.  In this case, I changed the VID to 0x4B5 and the PID to 0x0081.

You will notice in a Device Manager snip, that the device "Potentiostat" shows up but the icon symbol on top of it (Len_CONSULTRON_2-1663854662033.png) indicates it is not operational.

Reading the event for this device it indicates the read VID and PID but the Driver Name: equals null.  (It could not identify the driver to use.)

Len_CONSULTRON_3-1663854735286.png

Since it couldn't find the .inf file that matches the VID and PID, it couldn't determine which .sys driver file to load.  (Sometimes a special .dll file is also used.)

This is why the original  Olav Bjerke project files may be necessary.  Beside setting the proper USB configuration data in the "Device Descriptor" the support files (.inf, .sys and possibly .dll) may be necessary to continue to move forward.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

64 Replies
lock attach
Attachments are accessible only for community members.

Differentiate between two data sheets & Identify the problem & revert me back

0 Likes
lock attach
Attachments are accessible only for community members.

How to change these values?

0 Likes
lock attach
Attachments are accessible only for community members.
0 Likes
lock attach
Attachments are accessible only for community members.

Please try these files.

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Kindly provide your email id so that I can provide you that or else I should share that file tomorrow as zip file compatible. I need it.Please look in to it wisely. Highly obliged. Kindly share a screen shot & send me that file or project workspace of a psoc creator. 

Install all ML package

Using. - pip install -

Mentioned in his thesis.

Combine all files in a common folder then shift +right click then open power shell window then write python Potentiostat_GUI.py press enter.

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Where to place this code? 

shuvra1_0-1664261151480.png

shuvra1_1-1664261172311.png

 

0 Likes

shuvra1,

Placing the CY_ISR(dacInterrupt) inside main.c as it is listed in the OB thesis pdf is just fine.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

shuvra1_0-1664282845995.png

After debug

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Kindly fix the issue

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Kindly fix this issue

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

Is the USBFS problem has been occurred?? It is not executed properly.

0 Likes

shuvra1,

I still cannot get the python environment to work.  I am working on it.

By the way you mentioned:

"Install all ML package

Using. - pip install -

Mentioned in his thesis."

This is not true.  The "ML package" and "Using pip" is NOT mentioned in his thesis.

Please DO NOT "scream" on this forum.  This is not polite to those who wish to help.

People like myself are trying to help within the time and resources available.

The Python environment that needs to be established properly is a sophisticated system and the information provided in the OB thesis paper is fairly "light-weight".  It primarily assumes the reader knows enough of the specifics on how to operate with Python.

Python is NOT one of my strengths.  I've researched how to properly load the Python environment with mostly bad results.

I can understand that you are frustrated and ma be running into a time deadline.  Have you consider getting help from a professional "paid" resource in Python expertise?

Usually when I hit a "brick wall" on an issue, I spend a lot of my time performing debugging session and experiments to identify the culprit factors.   I do reach out to forums for ideas and assistance but I am not guaranteed answers.

 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_1-1664282953318.png

Debugging is running what that means>?

shuvra1_2-1664282995720.png

 

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_1-1664282953318.png

Debugging is still running what that means>?

shuvra1_2-1664282995720.png

 

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_3-1664283984636.png

 

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664284252071.png

 

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

shuvra1_0-1664284823246.png

How to reolve?

0 Likes

shuvra1, 

This latest post indicates the CY8C5888LT-LP097 compiled successfully.

What problem are you trying to solve?

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

shuvra1_0-1664285384512.pngshuvra1_1-1664285395141.png

Check 2nd line

0 Likes

shuvra1,

I'm running one of the later projects you provided on my CY8CKIT-059.

In debugger mode, my code gets past line 88 in main.c

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

shuvra1_0-1664286657353.png

Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A

0 Likes

Continuing target program
The target program has stopped at: file: main.c line: 88 function: main address: 0x0000015A

0 Likes
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

The target program has stopped at: file :main.c line: 00 function : main address. Continouing target program.

 

Please debugg & solve the issue.

0 Likes
lock attach
Attachments are accessible only for community members.
shuvra1
Level 5
Level 5
100 sign-ins 10 likes given 100 replies posted

https://stackoverflow.com/questions/26526217/why-cant-i-call-the-pyusb-function-dev-read-repeatedly-...

I am having the same kind of error .... Please let's resolve this.........

0 Likes