Jump to content
IGNORED

Multiple skunks and JCP


CyranoJ

Recommended Posts

Hi

 

Just wondering if anyone (Tursi?) has modified JCP to allow multiple skunkboards connected to a single PC?

 

I should get my second skunk shortly, and it would be nice to have two build scripts, one to target my K-model jaguar, and one to target my M-model jaguar.

 

On that note, anywhere cheap(ish) to get a Jaguar powerpack (that won't blow a skunkboard up) mailed international? :D

  • Like 1
Link to comment
Share on other sites

I've looked at the source code for jcp. It looks like there's no explicit support for multiple Skunkboards connected for the same PC; it will use whichever happens to be first in the USB devices list. But improving that appears to be pretty simple.

 

The relevant code is in the findEZ() function. It enumerates all USB devices until it finds one whose Vendor ID/Product ID couple matches the Skunkboard's, then opens the device.

 

To support multiple Skunkboards, I would add a command-line parameter to specify the serial number of the board you want to use, and insert an additional condition in findEZ() (after the device had been opened) to check that the serial number is the correct one, by reusing code from DoSerialInfo(). If so, it would proceed as usual; if not, it would close the device using usb_close(udev), and resume the scan.

  • Like 4
Link to comment
Share on other sites

It looks like there's no explicit support for multiple Skunkboards connected for the same PC; it will use whichever happens to be first in the USB devices list. But improving that appears to be pretty simple.

 

That might be good enough - I guess only one Jag will be powered up at a time and in receive mode.

Link to comment
Share on other sites

yes you can scan ID (serial) and USB port, but not everytime you start jcp because if one is transfering and then the second jcp is started it could interfere. so your solution only would work if you use one skunk at a time but the idea was not to turn both jaguars off, then you must do it with another approach.

 

So better do it this way.

 

Option in JCP to scan skunk serial and usb port nr.

The use a config file

 

The make 2 batchfiles.

 

In the batchfile type: START JCP <config file> normal parameters for JCP <skunkfile>

 

The second batchfile aswell, both will launch as seperate thread so they will not interfere.

In the config file

 

- serial nr skunkboard

- usbport nr.

 

That's all I think.

Link to comment
Share on other sites

yes you can scan ID (serial) and USB port, but not everytime you start jcp because if one is transfering and then the second jcp is started it could interfere.

I don't know the inner workings of libusb, but there's probably a way to know that a device has already been opened by another process, and exclude it from the list.

 

Using USB port numbers is less reliable than using the Skunkboard's serial number, because they're arbitrary and can change if you plug/unplug devices.

Link to comment
Share on other sites

  • 2 weeks later...

Hi

 

Just wondering if anyone (Tursi?) has modified JCP to allow multiple skunkboards connected to a single PC?

 

I should get my second skunk shortly, and it would be nice to have two build scripts, one to target my K-model jaguar, and one to target my M-model jaguar.

 

On that note, anywhere cheap(ish) to get a Jaguar powerpack (that won't blow a skunkboard up) mailed international? :D

 

 

What are the concerns between these two models of Jaguars that you need two build scripts?

Link to comment
Share on other sites

  • 3 months later...

Could you point me to the documentation please where the difference between gpu bugs in the K and M consoles are written.

 

Differences were posted on jagware.org or here in the past, searching jagware might be the best bet I recall one instance when I gave a modded Jaguar to CJ. We found Project One would black screen on it, I kind of half remember something about that massive gpu object on the title screen. All I really remember was CJ complaining that I must have hurt the Jaguar when I modded it :)

 

I just can't remember, it was so long ago while working on only the second thing we attempted, dark days when using the force was the only way :)

Edited by sh3-rg
  • Like 2
Link to comment
Share on other sites

I asked because that info about diff between m & k was not mentioned in the dev docs i got.

 

IIRC the differences were not documented, hardly surprising given what people say regarding the tech ref etc. Maybe Atari covered themselves with a few Thou Shalt Nots or maybe some things just never became a problem until someone tried to do a little tinkering in less-explored corners of the Jaguar... or maybe CJ just imagined it all thanks to the power of rum.

  • Like 4
Link to comment
Share on other sites

  • 1 month later...

Hello,

Just wish to know if one of you have checked this jcp (Win32 or x64) update I did some weeks ago and available at:

http://3do.cdinteractive.co.uk/viewtopic.php?f=35&t=3606

You have to enter your USB port (0, 1, etc.) to select the Jaguar. At that time, I didn't think about the use of the Skunkboard serial (but I may add it in the future).

Thanks,

  • Like 5
Link to comment
Share on other sites

Hello,

Just wish to know if one of you have checked this jcp (Win32 or x64) update I did some weeks ago and available at:

http://3do.cdinteractive.co.uk/viewtopic.php?f=35&t=3606

You have to enter your USB port (0, 1, etc.) to select the Jaguar. At that time, I didn't think about the use of the Skunkboard serial (but I may add it in the future).

Thanks,

 

Probably not the best place to post releases, looks like you have an audience of one (I noticed only one download of the 32-bit version before I took a copy of the 64-bit one, that would be the one other person posting in the thread I assume).

 

Thanks for the release.

Edited by sh3-rg
  • Like 2
Link to comment
Share on other sites

 

Probably not the best place to post releases, looks like you have an audience of one (I noticed only one download of the 32-bit version before I took a copy of the 64-bit one, that would be the one other person posting in the thread I assume).

 

Thanks for the release.

I think I have an explanation about the number of downloads. When I updated / edited the message in my original thread, it did reset the download number to 0. I updated my original message to avoid to stack pile versions in the thread.

This jcp version is not the 1st one I did; the 1st one took more downloads but it had a Windows XP compatibility problem (which was solved in the current release). If you find an issue, please let me know, and I will look at it.

 

In the web site, there is a also a discussion about M68K debugging (Code::Blocks, GDB, jserve & Skunkboard) and an updated jserve version (a new one is in progress but I need time to test it more, and I may include the Skunkboard detection version - which may be more user friendly that to give an usb port).

 

Regards,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...