pololu / pololu-usb-sdk

Example code for making your own PC applications that control Pololu USB Devices.
Other
29 stars 24 forks source link

jrkexample #2

Closed aortner closed 5 years ago

aortner commented 5 years ago

if i open jrkexample and run it in visualstudio the program ask me for a serial to connect.

what should i input there? i did try serial from jrk which is shown in jrk configurtion utility ...

is it possible to use the .dll like the jrk2cmd without using a com port to find the jrk

regards andreas

DavidEGrayson commented 5 years ago

The serial number of the Jrk is an 8-digit number that can be found in the Jrk Configuration Utility just to the right of the words "Connected to:". I forget if that example trims off the pound sign (#) so you should try entering the serial number without it (and with it).

None of the code in this SDK uses the Jrk's COM port.

aortner commented 5 years ago

either

00223532

and 00223532

worked @ me.

here is a pic with the Jrk Configuration Utility... ( i close the app when i try it with visualstudio)

image

DavidEGrayson commented 5 years ago

OK, I am glad it is working for you.

aortner commented 5 years ago

sorry it is not working...

if have no feedback

aortner commented 5 years ago

sorry david!

it is not working..

i get no feedback.. and also my second question is not answerd.. how can i connect to jrk without that serial (as it works with jrk2cmd)?

best regards

andreas

Am Mo., 3. Dez. 2018 um 19:22 Uhr schrieb David Grayson < notifications@github.com>:

OK, I am glad it is working for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pololu/pololu-usb-sdk/issues/2#issuecomment-443814052, or mute the thread https://github.com/notifications/unsubscribe-auth/AWEJe16kd7VuLEu70X7WHHyThlCuKOpTks5u1Wv1gaJpZM4Y9lX4 .

-- Gasthaus Ortner Andreas Ortner Badendorf 1 8413 St. Georgen an der Stiefing 0660/7669333 www.gh-ortner.com

DavidEGrayson commented 5 years ago

how can i connect to jrk without that serial (as it works with jrk2cmd)?

COM ports are different from serial numbers, so this a new question that you did not ask before. If you want to change JrkExample to connect to whatever Jrk it finds first, regardless of serial number, you can edit the TryToReconnect function and change if (d.serialNumber == SerialNumberTextBox.Text) to if (true), or just delete that one line.

What do you mean by "i get no feedback.." ? Can you describe what procedure you are using to test JrkExample step-by-step, starting with how you compile the program and run it? What are you expecting the program to do, and how is that different from what it actually does?

DavidEGrayson commented 5 years ago

Actually, I see another problem here that is more important than anything else. I can see from your screenshot that you have a Jrk G2. The Jrk G2 is different from old Jrks, and none of the code in this repository supports the Jrk G2.

You can find example code for Jrk G2 in its user's guide:

https://www.pololu.com/docs/0J73

aortner commented 5 years ago

Thank you very much! Sorry!

Would a .dll also be available for c# for the jrkg2 ? I had sucess with modify code from c and send it directly over usb to jrk (set target) - but it is difficult..

best regards andreas

Am Mo., 3. Dez. 2018 um 20:38 Uhr schrieb David Grayson < notifications@github.com>:

Closed #2 https://github.com/pololu/pololu-usb-sdk/issues/2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pololu/pololu-usb-sdk/issues/2#event-2002392872, or mute the thread https://github.com/notifications/unsubscribe-auth/AWEJe3yiu4ZnNTIm9ShJvdmbtBCJR7ANks5u1X3BgaJpZM4Y9lX4 .

-- Gasthaus Ortner Andreas Ortner Badendorf 1 8413 St. Georgen an der Stiefing 0660/7669333 www.gh-ortner.com

DavidEGrayson commented 5 years ago

There is no C# DLL available for the Jrk G2. Modifying the Jrk class found in this SDK is a good approach if you just need a few commands to work.