Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

kminternals · Brother Knitting Machine Internals

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 196
  • Category: Knitting
  • Founded: Nov 24, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 199 - 228 of 302   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#199 From: Davi Post <post@...>
Date: Wed Apr 11, 2012 7:44 am
Subject: Re: Re: KH-950i - interfacing - Anyone?
ayargh
Send Email Send Email
 
I've modified img2track to handle a 32K memory, and write 32 sectors of data files. I'd like to take a look at sample data from the KH-950i to see if there are compatibility issues before I release this version. Looking forward to having it tested on various models.

I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?

Thanks,

--Davi


On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...> wrote:


PDDemulator.py is producing files for pairs of 1K block. The KH950i (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and writes its memory image to disk across 32 1K files. In order to manipulate them on a PC, either the app which plays with them needs to either load in all 32 files, or load a single 32K file.

Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat) - the 930 seems to be a 2K machine - to manipulate.

I haven't yet played with your image2track program, but I'm looking forward to taking a look soon, it sounds good.

We're running a set of Steve's tools which I've modified accordingly 'to speak 950' and they are working well so far as we can tell.

I'll also document and upload what we've seen on the 950i for you guys soon.

My earlier post had an error, and the correction is as follows:

"So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the config block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."

Kevin


On 9 April 2012 19:16, ayargh <post@...> wrote:
 

Thanks Kevin, I'm interested in the details on the memory of the KH-950i.

I don't think you'll need modifications to PDDemulator.py, unless the KH-950i uses a different floppy drive. (For the 950, it would be more appropriate to produce a file-nn.dat that holds all 32 sectors of data, but that file is only for debugging.) The knitting machine knows how to store its memory in 1K disk sectors.

Have you seen my img2track program (announced in another thread)? It makes several improvements to the process. I'm hoping to add support for the other models in the 900 series that use the same floppy disc interface.

Your info will help. Please upload one or two examples of your data to the Files area of this group. (Just file-01.dat and file-16.dat are sufficient for each track 1 pattern.)

Thanks,

--Davi



--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Ok. Progress made overnight.
>
> I've made some guesses at the 930 and seem to have come up with a winner (
> http://www.flickr.com/photos/kentfield/6904212212/)
>
> I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000 to
> 0x07FF, as per Steve's document (
> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324).
> This I've assumed produces 2 files when run on the PDDemulator, 00.dat and
> 01.dat. The emulator then concatenates these two files as file-01.dat as
> Becky kindly pointed out I'd missed in the documentation.
>
> The 950i behave differently. I get 32 files: 00.dat through 31.dat, which
> the PDDemulator bunches up as file-01.dat through file-16.dat.
>
> file-01.dat looks like Steve's document starts - with the 'catalogue' of
> pattens, and file-16.dat ends with the 'config' at the end of Steve's
> document - the current machine state I believe.
>
> So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the
> config block starting at 0x76E0, and the pattern data back filling from
> 0x76DF.
>
> So Ideally I need a change to the PDDemulator.py script which can take a
> flag saying we're talking to the 950i and create a 32K large memory image.
> I don't know yet if the insertpattern.py script will accept a large file
> like this as input - we'll see I guess! The the splitfile2track.py script
> will need to be able to split out a 32K image to 16 2K files - no idea yet
> if it will do that, time to find out I guess.
>
> I don't know a lot of Python - I do C, but I'll take a look, unless anyone
> jumps in and offers....
>
> Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930) which
> Steve says are always the same are different on the 950i - I'd guess at
> least one of these says which machine this is, and maybe we could work the
> tools to autodetect this from the file if we can work this out.
>
> I get to play with my Aunt's KH-970i next weekend, maybe I can learn some
> more from this, and also a PPD pattern programming device, which should be
> able to create a disk image for each of the machines in theory, so perhaps
> can learn more from this.
>
> I'll keep you updated.
>
> Kevin
>
>
>
>
> On 5 April 2012 21:34, Kevin Blain <kevin.blain@...> wrote:
>
> > Cool, thanks.
> >
> >
> > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >
> > When we try to knit the pattern we create, we get a blank pattern out. I
> > think the 950i stores everything in a slightly different format to the 930,
> > so I guess I'm testing the water here to find out if I'm going over new
> > ground... If so I'll dive in!
> >
> > How many nn.dat files do you get, and how many file-nn.dat flies? We're
> > getting file-01.dat through 16 or 'track1' from the machine, 17-32 for
> > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as track
> > 2, but we also get 64.dat through 79.dat
> >
> > The latter group seem blank, but those in file-16.dat seem to contain
> > 0x06e0 to 0x07ff data containing the machine setup data - though with
> > differences to Steve's document.
> >
> > Worth me detailing it then?
> >
> > Kevin
> >
> >
> >
> > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@...> wrote:
> >
> >
> >
> > Hi Kevin,
> >
> > I can't help with 950-specific info, but the "file-01.dat" thing is
> > documented in the tutorial on adafruit:
> >
> > http://ladyada.net/learn/electroknit/backup.html (last part) &
> > http://ladyada.net/learn/electroknit/dumppatt.html
> >
> > It's a file that contains all the patterns, and it's made by the emulator,
> > not the knitting machine. Hope that helps a little!
> >
> > Becky
> >
> > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@...> wrote:
> >
> >> **

> >>
> >>
> >> Hi
> >>
> >> Let me introduce myself briefly, I'm an embedded electronic engineer by
> >> trade, with a girlfriend who has a knitting passion and now a KH950i.
> >>
> >> So I've been playing with the excellent work by Becky, Steve, John, and
> >> others to try and get the thing to talk to me.
> >>
> >> Where I'm at:
> >>
> >> Reading and Writing disk images to the laptop seems to be going without
> >> much pain, the PDDemulate python script seems to do its job just fine.
> >>
> >> Has anyone actually got it working properly with the 950i?
> >>
> >> So far, there seems to be differences in the file contents to what I've
> >> been reading on the net, which is mostly 930 based information.
> >>
> >> For example, the stucture of the 00.dat file looks like it follows the
> >> structure mentioned here:
> >> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324but moving on through the doc, where it looks at addresses 0x06e0 onwards,

> >> I don't see this, tough I see similar data in the 63.dat file
> >>
> >> I also note that as well as having 00.dat and 01.dat, the contents of the
> >> two together appear in file-01.dat - this doesn't seem to be documented
> >> anywhere, is this unique to the 950i or has this info just missed
> >> documenting up till now?
> >>
> >> Kevin
> >>
> >>
> >
> >
> >
>






#200 From: Kevin Blain <kevin.blain@...>
Date: Wed Apr 11, 2012 8:15 am
Subject: Re: Re: KH-950i - interfacing - Anyone?
jb_ussu
Send Email Send Email
 
Cool - sounds good. I'll try and remember to upload some memory images this evening.

Yes: 32K on the 950i front, and yes: 200 wide by 998 rows. My partner created an image that was 4 pattern cards (each card is 60x150) wide and 7 high, and the resultant file produced was 200 x 998.

Come the weekend I should have my hands on a PPD which can create pattern data for any of the machines, so in theory should be able to generate an appropriate collection of data for each of those machines you list.

From what I remember, using the PPD is akin to water torture when it comes to actually creating patterns

Kevin

On 11 April 2012 08:44, Davi Post <post@...> wrote:
 

I've modified img2track to handle a 32K memory, and write 32 sectors of data files. I'd like to take a look at sample data from the KH-950i to see if there are compatibility issues before I release this version. Looking forward to having it tested on various models.


I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?

Thanks,

--Davi


On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...> wrote:


PDDemulator.py is producing files for pairs of 1K block. The KH950i (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and writes its memory image to disk across 32 1K files. In order to manipulate them on a PC, either the app which plays with them needs to either load in all 32 files, or load a single 32K file.

Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat) - the 930 seems to be a 2K machine - to manipulate.

I haven't yet played with your image2track program, but I'm looking forward to taking a look soon, it sounds good.

We're running a set of Steve's tools which I've modified accordingly 'to speak 950' and they are working well so far as we can tell.

I'll also document and upload what we've seen on the 950i for you guys soon.

My earlier post had an error, and the correction is as follows:

"So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the config block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."

Kevin


On 9 April 2012 19:16, ayargh <post@...> wrote:
 

Thanks Kevin, I'm interested in the details on the memory of the KH-950i.

I don't think you'll need modifications to PDDemulator.py, unless the KH-950i uses a different floppy drive. (For the 950, it would be more appropriate to produce a file-nn.dat that holds all 32 sectors of data, but that file is only for debugging.) The knitting machine knows how to store its memory in 1K disk sectors.

Have you seen my img2track program (announced in another thread)? It makes several improvements to the process. I'm hoping to add support for the other models in the 900 series that use the same floppy disc interface.

Your info will help. Please upload one or two examples of your data to the Files area of this group. (Just file-01.dat and file-16.dat are sufficient for each track 1 pattern.)

Thanks,

--Davi



--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Ok. Progress made overnight.
>
> I've made some guesses at the 930 and seem to have come up with a winner (
> http://www.flickr.com/photos/kentfield/6904212212/)
>
> I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000 to
> 0x07FF, as per Steve's document (
> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324).
> This I've assumed produces 2 files when run on the PDDemulator, 00.dat and
> 01.dat. The emulator then concatenates these two files as file-01.dat as
> Becky kindly pointed out I'd missed in the documentation.
>
> The 950i behave differently. I get 32 files: 00.dat through 31.dat, which
> the PDDemulator bunches up as file-01.dat through file-16.dat.
>
> file-01.dat looks like Steve's document starts - with the 'catalogue' of
> pattens, and file-16.dat ends with the 'config' at the end of Steve's
> document - the current machine state I believe.
>
> So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the
> config block starting at 0x76E0, and the pattern data back filling from
> 0x76DF.
>
> So Ideally I need a change to the PDDemulator.py script which can take a
> flag saying we're talking to the 950i and create a 32K large memory image.
> I don't know yet if the insertpattern.py script will accept a large file
> like this as input - we'll see I guess! The the splitfile2track.py script
> will need to be able to split out a 32K image to 16 2K files - no idea yet
> if it will do that, time to find out I guess.
>
> I don't know a lot of Python - I do C, but I'll take a look, unless anyone
> jumps in and offers....
>
> Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930) which
> Steve says are always the same are different on the 950i - I'd guess at
> least one of these says which machine this is, and maybe we could work the
> tools to autodetect this from the file if we can work this out.
>
> I get to play with my Aunt's KH-970i next weekend, maybe I can learn some
> more from this, and also a PPD pattern programming device, which should be
> able to create a disk image for each of the machines in theory, so perhaps
> can learn more from this.
>
> I'll keep you updated.
>
> Kevin
>
>
>
>
> On 5 April 2012 21:34, Kevin Blain <kevin.blain@...> wrote:
>
> > Cool, thanks.
> >
> >
> > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >
> > When we try to knit the pattern we create, we get a blank pattern out. I
> > think the 950i stores everything in a slightly different format to the 930,
> > so I guess I'm testing the water here to find out if I'm going over new
> > ground... If so I'll dive in!
> >
> > How many nn.dat files do you get, and how many file-nn.dat flies? We're
> > getting file-01.dat through 16 or 'track1' from the machine, 17-32 for
> > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as track
> > 2, but we also get 64.dat through 79.dat
> >
> > The latter group seem blank, but those in file-16.dat seem to contain
> > 0x06e0 to 0x07ff data containing the machine setup data - though with
> > differences to Steve's document.
> >
> > Worth me detailing it then?
> >
> > Kevin
> >
> >
> >
> > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@...> wrote:
> >
> >
> >
> > Hi Kevin,
> >
> > I can't help with 950-specific info, but the "file-01.dat" thing is
> > documented in the tutorial on adafruit:
> >
> > http://ladyada.net/learn/electroknit/backup.html (last part) &
> > http://ladyada.net/learn/electroknit/dumppatt.html
> >
> > It's a file that contains all the patterns, and it's made by the emulator,
> > not the knitting machine. Hope that helps a little!
> >
> > Becky
> >
> > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@...> wrote:
> >
> >> **

> >>
> >>
> >> Hi
> >>
> >> Let me introduce myself briefly, I'm an embedded electronic engineer by
> >> trade, with a girlfriend who has a knitting passion and now a KH950i.
> >>
> >> So I've been playing with the excellent work by Becky, Steve, John, and
> >> others to try and get the thing to talk to me.
> >>
> >> Where I'm at:
> >>
> >> Reading and Writing disk images to the laptop seems to be going without
> >> much pain, the PDDemulate python script seems to do its job just fine.
> >>
> >> Has anyone actually got it working properly with the 950i?
> >>
> >> So far, there seems to be differences in the file contents to what I've
> >> been reading on the net, which is mostly 930 based information.
> >>
> >> For example, the stucture of the 00.dat file looks like it follows the
> >> structure mentioned here:
> >> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324but moving on through the doc, where it looks at addresses 0x06e0 onwards,

> >> I don't see this, tough I see similar data in the 63.dat file
> >>
> >> I also note that as well as having 00.dat and 01.dat, the contents of the
> >> two together appear in file-01.dat - this doesn't seem to be documented
> >> anywhere, is this unique to the 950i or has this info just missed
> >> documenting up till now?
> >>
> >> Kevin
> >>
> >>
> >
> >
> >
>







#201 From: "CobiCreations" <thetallasseekids@...>
Date: Wed Apr 11, 2012 12:21 pm
Subject: Electronics on KH970 CB1
cobicreations52
Send Email Send Email
 
Hi Kevin and Steve especially...as I am hoping that maybe you can help me.  I
purchased a KH970 awhile back from a dealer to use with DAK as my KH930 as you
know, would not take a full large pattern.  I am a 60 year old that knows little
about computers, other than how to navigate for my specific design programs for
machine embroidery, and DAK, and of course I can navigate internet sites.  I
also am dyslexic, so after months of trying all sorts of "solution suggestions"
from repair folks, none have worked.  It will load the patterns that are already
in the machine, but NOT from the FB100 or from the DAK  program with the correct
cable.  The message  get is that the cables are not connected, but they are.  I
bought pin protectors, as tow repair folks thought it might be the pins.  I
bought a new cable as someone suggested my cable might be bad (yet it loads to
the KH930).  I bought several books (I am dyslexic, but not as challenged as
some are) and the detailed explanations I followed the best I can, to no avail.

After 3 more days of frustration (again) doing all the steps over and over again
with the manuals and books,(done this more times than I care to remember) I
still got the same messages on the CB1 unit, so again called repair folks I know
of, and one gentleman informed me that it is a problem with the mother board,
that unlike the K930 mother board,(which I did replace a couple of years ago
myself) that completely shuts down, the KH970 board may fail in one area, and
not another, which is why I never suspected the CB1 units board, since I could
bring up a pattern from the ones already in the machine.  I have spent including
for the machine itself which was $1,500.00 about $1,900 to try to get a solution
to upload to the machine failures.  Now the gentleman also told me that often
once one portion of that mother board fails, it may or may not completely fail.
He also indicated that there is "no fix" for the board, as there are no
replacements available.

I am so disappointed, as the whole purpose of purchasing this machine was to be
able to upload my own designs from DAK in one step. I am not home much (drive an
18 wheeler) so time is very precious as I knit on the machines almost non-stop
for charity as well as trying to develop a small business for the future, and
all my Christmas gifts to friends and family.  To be honest, tis machine
frustration has driven me to tears, as I kept thinking it was "operator error",
as the knitting groups I asked for help in all suggested that it was me, not he
machine. Without the capability of the CB1 to work properly, and the fear of it
failing entirely, and no "help in site from a repair", I am just "undone", as to
get this machine to begin with I sold a Husqvarna/Viking Designer 1 very
reluctantly to be able to pay for it. Is there any hope you can offer?  At this
point I have only made one baby blanket from the designs already in the machine,
and each time I do get home, I try again to no avail.  I read your post, and
realize you are light years ahead of what my brain can understand, being of the
generation that came very late to computers, combined with the dyslexia that
goes into full throttle as my brain tries to read and understand technology
beyond my comprehension, though I try!  Any help and advice would be greatly
appreciated! TIA, Blessings, Cobi

#202 From: "Kevin" <kevin.blain@...>
Date: Wed Apr 11, 2012 5:51 pm
Subject: Re: KH-950i - interfacing - Anyone?
jb_ussu
Send Email Send Email
 
4 files uploaded.

Kevin

--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Cool - sounds good. I'll try and remember to upload some memory images this
> evening.
>
> Yes: 32K on the 950i front, and yes: 200 wide by 998 rows. My partner
> created an image that was 4 pattern cards (each card is 60x150) wide and 7
> high, and the resultant file produced was 200 x 998.
>
> Come the weekend I should have my hands on a PPD which can create pattern
> data for any of the machines, so in theory should be able to generate an
> appropriate collection of data for each of those machines you list.
>
> From what I remember, using the PPD is akin to water torture when it comes
> to actually creating patterns
>
> Kevin
>
> On 11 April 2012 08:44, Davi Post <post@...> wrote:
>
> > **
> >
> >
> > I've modified img2track to handle a 32K memory, and write 32 sectors of
> > data files. I'd like to take a look at sample data from the KH-950i to see
> > if there are compatibility issues before I release this version. Looking
> > forward to having it tested on various models.
> >
> > I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store
> > a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?
> >
> > Thanks,
> >
> > --Davi
> >
> >
> > On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...>wrote:
> >
> >>
> >>
> >> PDDemulator.py is producing files for pairs of 1K block. The KH950i
> >> (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and
> >> writes its memory image to disk across 32 1K files. In order to manipulate
> >> them on a PC, either the app which plays with them needs to either load in
> >> all 32 files, or load a single 32K file.
> >>
> >> Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat)
> >> - the 930 seems to be a 2K machine - to manipulate.
> >>
> >> I haven't yet played with your image2track program, but I'm looking
> >> forward to taking a look soon, it sounds good.
> >>
> >> We're running a set of Steve's tools which I've modified accordingly 'to
> >> speak 950' and they are working well so far as we can tell.
> >>
> >> I'll also document and upload what we've seen on the 950i for you guys
> >> soon.
> >>
> >> My earlier post had an error, and the correction is as follows:
> >>
> >> "So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the
config
> >> block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."
> >>
> >> Kevin
> >>
> >>
> >> On 9 April 2012 19:16, ayargh <post@...> wrote:
> >>
> >>> **
> >>>
> >>>
> >>> Thanks Kevin, I'm interested in the details on the memory of the KH-950i.
> >>>
> >>> I don't think you'll need modifications to PDDemulator.py, unless the
> >>> KH-950i uses a different floppy drive. (For the 950, it would be more
> >>> appropriate to produce a file-nn.dat that holds all 32 sectors of data,
but
> >>> that file is only for debugging.) The knitting machine knows how to store
> >>> its memory in 1K disk sectors.
> >>>
> >>> Have you seen my img2track program (announced in another thread)? It
> >>> makes several improvements to the process. I'm hoping to add support for
> >>> the other models in the 900 series that use the same floppy disc
interface.
> >>>
> >>> Your info will help. Please upload one or two examples of your data to
> >>> the Files area of this group. (Just file-01.dat and file-16.dat are
> >>> sufficient for each track 1 pattern.)
> >>>
> >>> Thanks,
> >>>
> >>> --Davi
> >>>
> >>>
> >>> --- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > Ok. Progress made overnight.
> >>> >
> >>> > I've made some guesses at the 930 and seem to have come up with a
> >>> winner (
> >>> > http://www.flickr.com/photos/kentfield/6904212212/)
> >>> >
> >>> > I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000
> >>> to
> >>> > 0x07FF, as per Steve's document (
> >>> >
> >>>
https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324
> >>> ).
> >>> > This I've assumed produces 2 files when run on the PDDemulator, 00.dat
> >>> and
> >>> > 01.dat. The emulator then concatenates these two files as file-01.dat
> >>> as
> >>> > Becky kindly pointed out I'd missed in the documentation.
> >>> >
> >>> > The 950i behave differently. I get 32 files: 00.dat through 31.dat,
> >>> which
> >>> > the PDDemulator bunches up as file-01.dat through file-16.dat.
> >>> >
> >>> > file-01.dat looks like Steve's document starts - with the 'catalogue'
> >>> of
> >>> > pattens, and file-16.dat ends with the 'config' at the end of Steve's
> >>> > document - the current machine state I believe.
> >>> >
> >>> > So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with
> >>> the
> >>> > config block starting at 0x76E0, and the pattern data back filling from
> >>> > 0x76DF.
> >>> >
> >>> > So Ideally I need a change to the PDDemulator.py script which can take
> >>> a
> >>> > flag saying we're talking to the 950i and create a 32K large memory
> >>> image.
> >>> > I don't know yet if the insertpattern.py script will accept a large
> >>> file
> >>> > like this as input - we'll see I guess! The the splitfile2track.py
> >>> script
> >>> > will need to be able to split out a 32K image to 16 2K files - no idea
> >>> yet
> >>> > if it will do that, time to find out I guess.
> >>> >
> >>> > I don't know a lot of Python - I do C, but I'll take a look, unless
> >>> anyone
> >>> > jumps in and offers....
> >>> >
> >>> > Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930)
> >>> which
> >>> > Steve says are always the same are different on the 950i - I'd guess at
> >>> > least one of these says which machine this is, and maybe we could work
> >>> the
> >>> > tools to autodetect this from the file if we can work this out.
> >>> >
> >>> > I get to play with my Aunt's KH-970i next weekend, maybe I can learn
> >>> some
> >>> > more from this, and also a PPD pattern programming device, which
> >>> should be
> >>> > able to create a disk image for each of the machines in theory, so
> >>> perhaps
> >>> > can learn more from this.
> >>> >
> >>> > I'll keep you updated.
> >>> >
> >>> > Kevin
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > On 5 April 2012 21:34, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > > Cool, thanks.
> >>> > >
> >>> > >
> >>> > > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >>> > >
> >>> > > When we try to knit the pattern we create, we get a blank pattern
> >>> out. I
> >>> > > think the 950i stores everything in a slightly different format to
> >>> the 930,
> >>> > > so I guess I'm testing the water here to find out if I'm going over
> >>> new
> >>> > > ground... If so I'll dive in!
> >>> > >
> >>> > > How many nn.dat files do you get, and how many file-nn.dat flies?
> >>> We're
> >>> > > getting file-01.dat through 16 or 'track1' from the machine, 17-32
> >>> for
> >>> > > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as
> >>> track
> >>> > > 2, but we also get 64.dat through 79.dat
> >>> > >
> >>> > > The latter group seem blank, but those in file-16.dat seem to contain
> >>> > > 0x06e0 to 0x07ff data containing the machine setup data - though with
> >>> > > differences to Steve's document.
> >>> > >
> >>> > > Worth me detailing it then?
> >>> > >
> >>> > > Kevin
> >>> > >
> >>> > >
> >>> > >
> >>> > > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@> wrote:
> >>> > >
> >>> > >
> >>> > >
> >>> > > Hi Kevin,
> >>> > >
> >>> > > I can't help with 950-specific info, but the "file-01.dat" thing is
> >>> > > documented in the tutorial on adafruit:
> >>> > >
> >>> > > http://ladyada.net/learn/electroknit/backup.html (last part) &
> >>> > > http://ladyada.net/learn/electroknit/dumppatt.html
> >>> > >
> >>> > > It's a file that contains all the patterns, and it's made by the
> >>> emulator,
> >>> > > not the knitting machine. Hope that helps a little!
> >>> > >
> >>> > > Becky
> >>> > >
> >>> > > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@> wrote:
> >>> > >
> >>> > >> **
> >>>
> >>> > >>
> >>> > >>
> >>> > >> Hi
> >>> > >>
> >>> > >> Let me introduce myself briefly, I'm an embedded electronic
> >>> engineer by
> >>> > >> trade, with a girlfriend who has a knitting passion and now a
> >>> KH950i.
> >>> > >>
> >>> > >> So I've been playing with the excellent work by Becky, Steve, John,
> >>> and
> >>> > >> others to try and get the thing to talk to me.
> >>> > >>
> >>> > >> Where I'm at:
> >>> > >>
> >>> > >> Reading and Writing disk images to the laptop seems to be going
> >>> without
> >>> > >> much pain, the PDDemulate python script seems to do its job just
> >>> fine.
> >>> > >>
> >>> > >> Has anyone actually got it working properly with the 950i?
> >>> > >>
> >>> > >> So far, there seems to be differences in the file contents to what
> >>> I've
> >>> > >> been reading on the net, which is mostly 930 based information.
> >>> > >>
> >>> > >> For example, the stucture of the 00.dat file looks like it follows
> >>> the
> >>> > >> structure mentioned here:
> >>> > >>
> >>>
https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324\
butmoving on through the doc, where it looks at addresses 0x06e0 onwards,
> >>>
> >>> > >> I don't see this, tough I see similar data in the 63.dat file
> >>> > >>
> >>> > >> I also note that as well as having 00.dat and 01.dat, the contents
> >>> of the
> >>> > >> two together appear in file-01.dat - this doesn't seem to be
> >>> documented
> >>> > >> anywhere, is this unique to the 950i or has this info just missed
> >>> > >> documenting up till now?
> >>> > >>
> >>> > >> Kevin
> >>> > >>
> >>> > >>
> >>> > >
> >>> > >
> >>> > >
> >>> >
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>

#203 From: Davi Post <post@...>
Date: Thu Apr 12, 2012 4:48 am
Subject: Re: Re: KH-950i - interfacing - Anyone?
ayargh
Send Email Send Email
 
Thanks Kevin. Interesting, your data has some values I have not seen in the KH-930 test data. How did you produce these files?

What I'm looking for is data stored with a 552 command into disc sectors using the emulator. Can you try the following?

Clear the KM with 888, and power off, then on. Do a 552 store command, then send us sectors 00.dat and 31.dat (the rest should be blank).

Clear with 888 again, and use INPUT to give it the dimensions of a pattern (no need to enter data pixels of the pattern). Store to (emulated) disc again, and send us the same first and last sectors. (Maybe you did this to generate the files you sent?)

Knowing what values are stored for blank patterns, I hope to make img2track generate valid data for the KH-950i.

If anyone out there can do this for other models (940, 965i, 970), that would be useful too.

Glad you were able to confirm that your pattern data fills backwards from 0x7EDF. That is encouragingly similar to a KH-930 (just with a larger memory).

Thanks,

--Davi


On Wed, Apr 11, 2012 at 12:51 PM, Kevin <kevin.blain@...> wrote:
4 files uploaded.

Kevin

--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Cool - sounds good. I'll try and remember to upload some memory images this
> evening.
>
> Yes: 32K on the 950i front, and yes: 200 wide by 998 rows. My partner
> created an image that was 4 pattern cards (each card is 60x150) wide and 7
> high, and the resultant file produced was 200 x 998.
>
> Come the weekend I should have my hands on a PPD which can create pattern
> data for any of the machines, so in theory should be able to generate an
> appropriate collection of data for each of those machines you list.
>
> From what I remember, using the PPD is akin to water torture when it comes
> to actually creating patterns
>
> Kevin
>
> On 11 April 2012 08:44, Davi Post <post@...> wrote:
>
> > **
> >
> >
> > I've modified img2track to handle a 32K memory, and write 32 sectors of
> > data files. I'd like to take a look at sample data from the KH-950i to see
> > if there are compatibility issues before I release this version. Looking
> > forward to having it tested on various models.
> >
> > I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store
> > a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?
> >
> > Thanks,
> >
> > --Davi
> >
> >
> > On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...>wrote:
> >
> >>
> >>
> >> PDDemulator.py is producing files for pairs of 1K block. The KH950i
> >> (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and
> >> writes its memory image to disk across 32 1K files. In order to manipulate
> >> them on a PC, either the app which plays with them needs to either load in
> >> all 32 files, or load a single 32K file.
> >>
> >> Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat)
> >> - the 930 seems to be a 2K machine - to manipulate.
> >>
> >> I haven't yet played with your image2track program, but I'm looking
> >> forward to taking a look soon, it sounds good.
> >>
> >> We're running a set of Steve's tools which I've modified accordingly 'to
> >> speak 950' and they are working well so far as we can tell.
> >>
> >> I'll also document and upload what we've seen on the 950i for you guys
> >> soon.
> >>
> >> My earlier post had an error, and the correction is as follows:
> >>
> >> "So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the config
> >> block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."
> >>
> >> Kevin
> >>
> >>
> >> On 9 April 2012 19:16, ayargh <post@...> wrote:
> >>
> >>> **
> >>>
> >>>
> >>> Thanks Kevin, I'm interested in the details on the memory of the KH-950i.
> >>>
> >>> I don't think you'll need modifications to PDDemulator.py, unless the
> >>> KH-950i uses a different floppy drive. (For the 950, it would be more
> >>> appropriate to produce a file-nn.dat that holds all 32 sectors of data, but
> >>> that file is only for debugging.) The knitting machine knows how to store
> >>> its memory in 1K disk sectors.
> >>>
> >>> Have you seen my img2track program (announced in another thread)? It
> >>> makes several improvements to the process. I'm hoping to add support for
> >>> the other models in the 900 series that use the same floppy disc interface.
> >>>
> >>> Your info will help. Please upload one or two examples of your data to
> >>> the Files area of this group. (Just file-01.dat and file-16.dat are
> >>> sufficient for each track 1 pattern.)
> >>>
> >>> Thanks,
> >>>
> >>> --Davi
> >>>
> >>>
> >>> --- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > Ok. Progress made overnight.
> >>> >
> >>> > I've made some guesses at the 930 and seem to have come up with a
> >>> winner (
> >>> > http://www.flickr.com/photos/kentfield/6904212212/)
> >>> >
> >>> > I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000
> >>> to
> >>> > 0x07FF, as per Steve's document (
> >>> >
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324
> >>> ).
> >>> > This I've assumed produces 2 files when run on the PDDemulator, 00.dat
> >>> and
> >>> > 01.dat. The emulator then concatenates these two files as file-01.dat
> >>> as
> >>> > Becky kindly pointed out I'd missed in the documentation.
> >>> >
> >>> > The 950i behave differently. I get 32 files: 00.dat through 31.dat,
> >>> which
> >>> > the PDDemulator bunches up as file-01.dat through file-16.dat.
> >>> >
> >>> > file-01.dat looks like Steve's document starts - with the 'catalogue'
> >>> of
> >>> > pattens, and file-16.dat ends with the 'config' at the end of Steve's
> >>> > document - the current machine state I believe.
> >>> >
> >>> > So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with
> >>> the
> >>> > config block starting at 0x76E0, and the pattern data back filling from
> >>> > 0x76DF.
> >>> >
> >>> > So Ideally I need a change to the PDDemulator.py script which can take
> >>> a
> >>> > flag saying we're talking to the 950i and create a 32K large memory
> >>> image.
> >>> > I don't know yet if the insertpattern.py script will accept a large
> >>> file
> >>> > like this as input - we'll see I guess! The the splitfile2track.py
> >>> script
> >>> > will need to be able to split out a 32K image to 16 2K files - no idea
> >>> yet
> >>> > if it will do that, time to find out I guess.
> >>> >
> >>> > I don't know a lot of Python - I do C, but I'll take a look, unless
> >>> anyone
> >>> > jumps in and offers....
> >>> >
> >>> > Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930)
> >>> which
> >>> > Steve says are always the same are different on the 950i - I'd guess at
> >>> > least one of these says which machine this is, and maybe we could work
> >>> the
> >>> > tools to autodetect this from the file if we can work this out.
> >>> >
> >>> > I get to play with my Aunt's KH-970i next weekend, maybe I can learn
> >>> some
> >>> > more from this, and also a PPD pattern programming device, which
> >>> should be
> >>> > able to create a disk image for each of the machines in theory, so
> >>> perhaps
> >>> > can learn more from this.
> >>> >
> >>> > I'll keep you updated.
> >>> >
> >>> > Kevin
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > On 5 April 2012 21:34, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > > Cool, thanks.
> >>> > >
> >>> > >
> >>> > > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >>> > >
> >>> > > When we try to knit the pattern we create, we get a blank pattern
> >>> out. I
> >>> > > think the 950i stores everything in a slightly different format to
> >>> the 930,
> >>> > > so I guess I'm testing the water here to find out if I'm going over
> >>> new
> >>> > > ground... If so I'll dive in!
> >>> > >
> >>> > > How many nn.dat files do you get, and how many file-nn.dat flies?
> >>> We're
> >>> > > getting file-01.dat through 16 or 'track1' from the machine, 17-32
> >>> for
> >>> > > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as
> >>> track
> >>> > > 2, but we also get 64.dat through 79.dat
> >>> > >
> >>> > > The latter group seem blank, but those in file-16.dat seem to contain
> >>> > > 0x06e0 to 0x07ff data containing the machine setup data - though with
> >>> > > differences to Steve's document.
> >>> > >
> >>> > > Worth me detailing it then?
> >>> > >
> >>> > > Kevin
> >>> > >
> >>> > >
> >>> > >
> >>> > > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@> wrote:
> >>> > >
> >>> > >
> >>> > >
> >>> > > Hi Kevin,
> >>> > >
> >>> > > I can't help with 950-specific info, but the "file-01.dat" thing is
> >>> > > documented in the tutorial on adafruit:
> >>> > >
> >>> > > http://ladyada.net/learn/electroknit/backup.html (last part) &
> >>> > > http://ladyada.net/learn/electroknit/dumppatt.html
> >>> > >
> >>> > > It's a file that contains all the patterns, and it's made by the
> >>> emulator,
> >>> > > not the knitting machine. Hope that helps a little!
> >>> > >
> >>> > > Becky
> >>> > >
> >>> > > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@> wrote:
> >>> > >
> >>> > >> **
> >>>
> >>> > >>
> >>> > >>
> >>> > >> Hi
> >>> > >>
> >>> > >> Let me introduce myself briefly, I'm an embedded electronic
> >>> engineer by
> >>> > >> trade, with a girlfriend who has a knitting passion and now a
> >>> KH950i.
> >>> > >>
> >>> > >> So I've been playing with the excellent work by Becky, Steve, John,
> >>> and
> >>> > >> others to try and get the thing to talk to me.
> >>> > >>
> >>> > >> Where I'm at:
> >>> > >>
> >>> > >> Reading and Writing disk images to the laptop seems to be going
> >>> without
> >>> > >> much pain, the PDDemulate python script seems to do its job just
> >>> fine.
> >>> > >>
> >>> > >> Has anyone actually got it working properly with the 950i?
> >>> > >>
> >>> > >> So far, there seems to be differences in the file contents to what
> >>> I've
> >>> > >> been reading on the net, which is mostly 930 based information.
> >>> > >>
> >>> > >> For example, the stucture of the 00.dat file looks like it follows
> >>> the
> >>> > >> structure mentioned here:
> >>> > >>
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324butmoving on through the doc, where it looks at addresses 0x06e0 onwards,
> >>>
> >>> > >> I don't see this, tough I see similar data in the 63.dat file
> >>> > >>
> >>> > >> I also note that as well as having 00.dat and 01.dat, the contents
> >>> of the
> >>> > >> two together appear in file-01.dat - this doesn't seem to be
> >>> documented
> >>> > >> anywhere, is this unique to the 950i or has this info just missed
> >>> > >> documenting up till now?
> >>> > >>
> >>> > >> Kevin
> >>> > >>
> >>> > >>
> >>> > >
> >>> > >
> >>> > >
> >>> >
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/kminternals/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/kminternals/join
   (Yahoo! ID required)

<*> To change settings via email:
   kminternals-digest@yahoogroups.com
   kminternals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   kminternals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/



#204 From: Davi Post <post@...>
Date: Thu Apr 12, 2012 6:46 am
Subject: Progress deciphering the data format
ayargh
Send Email Send Email
 
Those of you who have delved into the internals of the Electroknit memory format may be interested in some progress I made in deciphering some critical locations.

To develop img2track, I studied Steve's documentation on the data files, and ran a bunch of my own experiments using his emulator. I figured out three important words in the data, which are pointers to data patterns and the pattern directory.

The key discovery was that these pointers are stored as offsets from the end of the file (the highest memory address).

The first word (2 bytes) of each 7-byte directory entry is the offset to the pattern's data.

The word at location 0700 gives the offset to the start of available pattern storage (growing backwards).

The word at 0710 gives the offset to the next available directory entry.

(The word at 070A appears to be the offset to the last row of the current pattern, but my program doesn't use this.)

When I wrote a program to set these three pointers appropriately, the KM loaded the pattern correctly. This avoids the step in the previous hack of manually creating an empty container with the desired pattern dimensions before inserting the data.

Steve had previously documented many other locations in the data. (See his docs/file-data.txt.) Some are essential, but most are not necessary for loading a pattern -- the machine will regenerate them as needed. 

I've experimented with setting the Selector and motif data, hoping to avoid having to run through these settings manually before knitting. (The machine calculates position automatically, but you have to enter number of copies when using Selector 2.) This is not working, probably other settings are required. There are further mysteries left to be conquered!

The critical locations are documented near the top of the img2track Python code.

Thanks to Steve Conklin and John Hogerhuis for pioneering this effort!

--Davi Post


#205 From: Kevin Blain <kevin.blain@...>
Date: Thu Apr 12, 2012 8:13 am
Subject: Re: Re: KH-950i - interfacing - Anyone?
jb_ussu
Send Email Send Email
 
There's no input button on the 950i.

It's got a mylar sheet reader; it 'scans' in pattens on sheets which are drawn at 60 stitches wide by 150 rows high. You can either read into memory, or knit directly from the sheet.

Other than that, that should be what we did - what's not making sense?

Kevin


On 12 April 2012 05:48, Davi Post <post@...> wrote:
 

Thanks Kevin. Interesting, your data has some values I have not seen in the KH-930 test data. How did you produce these files?


What I'm looking for is data stored with a 552 command into disc sectors using the emulator. Can you try the following?

Clear the KM with 888, and power off, then on. Do a 552 store command, then send us sectors 00.dat and 31.dat (the rest should be blank).

Clear with 888 again, and use INPUT to give it the dimensions of a pattern (no need to enter data pixels of the pattern). Store to (emulated) disc again, and send us the same first and last sectors. (Maybe you did this to generate the files you sent?)

Knowing what values are stored for blank patterns, I hope to make img2track generate valid data for the KH-950i.

If anyone out there can do this for other models (940, 965i, 970), that would be useful too.

Glad you were able to confirm that your pattern data fills backwards from 0x7EDF. That is encouragingly similar to a KH-930 (just with a larger memory).

Thanks,

--Davi


On Wed, Apr 11, 2012 at 12:51 PM, Kevin <kevin.blain@...> wrote:
4 files uploaded.

Kevin

--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Cool - sounds good. I'll try and remember to upload some memory images this
> evening.
>
> Yes: 32K on the 950i front, and yes: 200 wide by 998 rows. My partner
> created an image that was 4 pattern cards (each card is 60x150) wide and 7
> high, and the resultant file produced was 200 x 998.
>
> Come the weekend I should have my hands on a PPD which can create pattern
> data for any of the machines, so in theory should be able to generate an
> appropriate collection of data for each of those machines you list.
>
> From what I remember, using the PPD is akin to water torture when it comes
> to actually creating patterns
>
> Kevin
>
> On 11 April 2012 08:44, Davi Post <post@...> wrote:
>
> > **
> >
> >
> > I've modified img2track to handle a 32K memory, and write 32 sectors of
> > data files. I'd like to take a look at sample data from the KH-950i to see
> > if there are compatibility issues before I release this version. Looking
> > forward to having it tested on various models.
> >
> > I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store
> > a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?
> >
> > Thanks,
> >
> > --Davi
> >
> >
> > On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...>wrote:
> >
> >>
> >>
> >> PDDemulator.py is producing files for pairs of 1K block. The KH950i
> >> (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and
> >> writes its memory image to disk across 32 1K files. In order to manipulate
> >> them on a PC, either the app which plays with them needs to either load in
> >> all 32 files, or load a single 32K file.
> >>
> >> Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat)
> >> - the 930 seems to be a 2K machine - to manipulate.
> >>
> >> I haven't yet played with your image2track program, but I'm looking
> >> forward to taking a look soon, it sounds good.
> >>
> >> We're running a set of Steve's tools which I've modified accordingly 'to
> >> speak 950' and they are working well so far as we can tell.
> >>
> >> I'll also document and upload what we've seen on the 950i for you guys
> >> soon.
> >>
> >> My earlier post had an error, and the correction is as follows:
> >>
> >> "So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the config
> >> block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."
> >>
> >> Kevin
> >>
> >>
> >> On 9 April 2012 19:16, ayargh <post@...> wrote:
> >>
> >>> **
> >>>
> >>>
> >>> Thanks Kevin, I'm interested in the details on the memory of the KH-950i.
> >>>
> >>> I don't think you'll need modifications to PDDemulator.py, unless the
> >>> KH-950i uses a different floppy drive. (For the 950, it would be more
> >>> appropriate to produce a file-nn.dat that holds all 32 sectors of data, but
> >>> that file is only for debugging.) The knitting machine knows how to store
> >>> its memory in 1K disk sectors.
> >>>
> >>> Have you seen my img2track program (announced in another thread)? It
> >>> makes several improvements to the process. I'm hoping to add support for
> >>> the other models in the 900 series that use the same floppy disc interface.
> >>>
> >>> Your info will help. Please upload one or two examples of your data to
> >>> the Files area of this group. (Just file-01.dat and file-16.dat are
> >>> sufficient for each track 1 pattern.)
> >>>
> >>> Thanks,
> >>>
> >>> --Davi
> >>>
> >>>
> >>> --- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > Ok. Progress made overnight.
> >>> >
> >>> > I've made some guesses at the 930 and seem to have come up with a
> >>> winner (
> >>> > http://www.flickr.com/photos/kentfield/6904212212/)
> >>> >
> >>> > I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000
> >>> to
> >>> > 0x07FF, as per Steve's document (
> >>> >
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324
> >>> ).
> >>> > This I've assumed produces 2 files when run on the PDDemulator, 00.dat
> >>> and
> >>> > 01.dat. The emulator then concatenates these two files as file-01.dat
> >>> as
> >>> > Becky kindly pointed out I'd missed in the documentation.
> >>> >
> >>> > The 950i behave differently. I get 32 files: 00.dat through 31.dat,
> >>> which
> >>> > the PDDemulator bunches up as file-01.dat through file-16.dat.
> >>> >
> >>> > file-01.dat looks like Steve's document starts - with the 'catalogue'
> >>> of
> >>> > pattens, and file-16.dat ends with the 'config' at the end of Steve's
> >>> > document - the current machine state I believe.
> >>> >
> >>> > So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with
> >>> the
> >>> > config block starting at 0x76E0, and the pattern data back filling from
> >>> > 0x76DF.
> >>> >
> >>> > So Ideally I need a change to the PDDemulator.py script which can take
> >>> a
> >>> > flag saying we're talking to the 950i and create a 32K large memory
> >>> image.
> >>> > I don't know yet if the insertpattern.py script will accept a large
> >>> file
> >>> > like this as input - we'll see I guess! The the splitfile2track.py
> >>> script
> >>> > will need to be able to split out a 32K image to 16 2K files - no idea
> >>> yet
> >>> > if it will do that, time to find out I guess.
> >>> >
> >>> > I don't know a lot of Python - I do C, but I'll take a look, unless
> >>> anyone
> >>> > jumps in and offers....
> >>> >
> >>> > Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930)
> >>> which
> >>> > Steve says are always the same are different on the 950i - I'd guess at
> >>> > least one of these says which machine this is, and maybe we could work
> >>> the
> >>> > tools to autodetect this from the file if we can work this out.
> >>> >
> >>> > I get to play with my Aunt's KH-970i next weekend, maybe I can learn
> >>> some
> >>> > more from this, and also a PPD pattern programming device, which
> >>> should be
> >>> > able to create a disk image for each of the machines in theory, so
> >>> perhaps
> >>> > can learn more from this.
> >>> >
> >>> > I'll keep you updated.
> >>> >
> >>> > Kevin
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > On 5 April 2012 21:34, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > > Cool, thanks.
> >>> > >
> >>> > >
> >>> > > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >>> > >
> >>> > > When we try to knit the pattern we create, we get a blank pattern
> >>> out. I
> >>> > > think the 950i stores everything in a slightly different format to
> >>> the 930,
> >>> > > so I guess I'm testing the water here to find out if I'm going over
> >>> new
> >>> > > ground... If so I'll dive in!
> >>> > >
> >>> > > How many nn.dat files do you get, and how many file-nn.dat flies?
> >>> We're
> >>> > > getting file-01.dat through 16 or 'track1' from the machine, 17-32
> >>> for
> >>> > > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as
> >>> track
> >>> > > 2, but we also get 64.dat through 79.dat
> >>> > >
> >>> > > The latter group seem blank, but those in file-16.dat seem to contain
> >>> > > 0x06e0 to 0x07ff data containing the machine setup data - though with
> >>> > > differences to Steve's document.
> >>> > >
> >>> > > Worth me detailing it then?
> >>> > >
> >>> > > Kevin
> >>> > >
> >>> > >
> >>> > >
> >>> > > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@> wrote:
> >>> > >
> >>> > >
> >>> > >
> >>> > > Hi Kevin,
> >>> > >
> >>> > > I can't help with 950-specific info, but the "file-01.dat" thing is
> >>> > > documented in the tutorial on adafruit:
> >>> > >
> >>> > > http://ladyada.net/learn/electroknit/backup.html (last part) &
> >>> > > http://ladyada.net/learn/electroknit/dumppatt.html
> >>> > >
> >>> > > It's a file that contains all the patterns, and it's made by the
> >>> emulator,
> >>> > > not the knitting machine. Hope that helps a little!
> >>> > >
> >>> > > Becky
> >>> > >
> >>> > > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@> wrote:
> >>> > >
> >>> > >> **
> >>>
> >>> > >>
> >>> > >>
> >>> > >> Hi
> >>> > >>
> >>> > >> Let me introduce myself briefly, I'm an embedded electronic
> >>> engineer by
> >>> > >> trade, with a girlfriend who has a knitting passion and now a
> >>> KH950i.
> >>> > >>
> >>> > >> So I've been playing with the excellent work by Becky, Steve, John,
> >>> and
> >>> > >> others to try and get the thing to talk to me.
> >>> > >>
> >>> > >> Where I'm at:
> >>> > >>
> >>> > >> Reading and Writing disk images to the laptop seems to be going
> >>> without
> >>> > >> much pain, the PDDemulate python script seems to do its job just
> >>> fine.
> >>> > >>
> >>> > >> Has anyone actually got it working properly with the 950i?
> >>> > >>
> >>> > >> So far, there seems to be differences in the file contents to what
> >>> I've
> >>> > >> been reading on the net, which is mostly 930 based information.
> >>> > >>
> >>> > >> For example, the stucture of the 00.dat file looks like it follows
> >>> the
> >>> > >> structure mentioned here:
> >>> > >>
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324butmoving on through the doc, where it looks at addresses 0x06e0 onwards,
> >>>
> >>> > >> I don't see this, tough I see similar data in the 63.dat file
> >>> > >>
> >>> > >> I also note that as well as having 00.dat and 01.dat, the contents
> >>> of the
> >>> > >> two together appear in file-01.dat - this doesn't seem to be
> >>> documented
> >>> > >> anywhere, is this unique to the 950i or has this info just missed
> >>> > >> documenting up till now?
> >>> > >>
> >>> > >> Kevin
> >>> > >>
> >>> > >>
> >>> > >
> >>> > >
> >>> > >
> >>> >
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/kminternals/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/kminternals/join
   (Yahoo! ID required)

<*> To change settings via email:
   kminternals-digest@yahoogroups.com
   kminternals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   kminternals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




#206 From: Davi Post <post@...>
Date: Thu Apr 12, 2012 6:15 pm
Subject: Re: Re: KH-950i - interfacing - Anyone?
ayargh
Send Email Send Email
 
Sorry, I had no idea the 950i was such a different machine. I'm looking at the manual for it, I see it has more complex options for the pattern selector and positioning information. This may be challenging to hack. 

Can you tell me exactly how the files you uploaded were produced?

Does the 950i use the 888 command to clear memory? Can you do that, store to emulated disc, and send the result? I think that will show us the minimal info the machine needs.

Thanks,

--Davi


On Thu, Apr 12, 2012 at 3:13 AM, Kevin Blain <kevin.blain@...> wrote:


There's no input button on the 950i.

It's got a mylar sheet reader; it 'scans' in pattens on sheets which are drawn at 60 stitches wide by 150 rows high. You can either read into memory, or knit directly from the sheet.

Other than that, that should be what we did - what's not making sense?

Kevin


On 12 April 2012 05:48, Davi Post <post@...> wrote:
 

Thanks Kevin. Interesting, your data has some values I have not seen in the KH-930 test data. How did you produce these files?


What I'm looking for is data stored with a 552 command into disc sectors using the emulator. Can you try the following?

Clear the KM with 888, and power off, then on. Do a 552 store command, then send us sectors 00.dat and 31.dat (the rest should be blank).

Clear with 888 again, and use INPUT to give it the dimensions of a pattern (no need to enter data pixels of the pattern). Store to (emulated) disc again, and send us the same first and last sectors. (Maybe you did this to generate the files you sent?)

Knowing what values are stored for blank patterns, I hope to make img2track generate valid data for the KH-950i.

If anyone out there can do this for other models (940, 965i, 970), that would be useful too.

Glad you were able to confirm that your pattern data fills backwards from 0x7EDF. That is encouragingly similar to a KH-930 (just with a larger memory).

Thanks,

--Davi


On Wed, Apr 11, 2012 at 12:51 PM, Kevin <kevin.blain@...> wrote:
4 files uploaded.

Kevin

--- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@...> wrote:
>
> Cool - sounds good. I'll try and remember to upload some memory images this
> evening.
>
> Yes: 32K on the 950i front, and yes: 200 wide by 998 rows. My partner
> created an image that was 4 pattern cards (each card is 60x150) wide and 7
> high, and the resultant file produced was 200 x 998.
>
> Come the weekend I should have my hands on a PPD which can create pattern
> data for any of the machines, so in theory should be able to generate an
> appropriate collection of data for each of those machines you list.
>
> From what I remember, using the PPD is akin to water torture when it comes
> to actually creating patterns
>
> Kevin
>
> On 11 April 2012 08:44, Davi Post <post@...> wrote:
>
> > **
> >
> >
> > I've modified img2track to handle a 32K memory, and write 32 sectors of
> > data files. I'd like to take a look at sample data from the KH-950i to see
> > if there are compatibility issues before I release this version. Looking
> > forward to having it tested on various models.
> >
> > I think the 940, 950i, 965i, and 970 all use a 32K memory. (They can store
> > a pattern as large as 200 stitches by 998 rows.) Can anyone confirm this?
> >
> > Thanks,
> >
> > --Davi
> >
> >
> > On Tue, Apr 10, 2012 at 9:09 AM, Kevin Blain <kevin.blain@...>wrote:
> >
> >>
> >>
> >> PDDemulator.py is producing files for pairs of 1K block. The KH950i
> >> (which has a 62256 32Kx8 static ram chip in it) has 32K of memory, and
> >> writes its memory image to disk across 32 1K files. In order to manipulate
> >> them on a PC, either the app which plays with them needs to either load in
> >> all 32 files, or load a single 32K file.
> >>
> >> Currently Steve's tools for the 930 load in a 2K file (e.g. file-01.dat)
> >> - the 930 seems to be a 2K machine - to manipulate.
> >>
> >> I haven't yet played with your image2track program, but I'm looking
> >> forward to taking a look soon, it sounds good.
> >>
> >> We're running a set of Steve's tools which I've modified accordingly 'to
> >> speak 950' and they are working well so far as we can tell.
> >>
> >> I'll also document and upload what we've seen on the 950i for you guys
> >> soon.
> >>
> >> My earlier post had an error, and the correction is as follows:
> >>
> >> "So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with the config
> >> block starting at 0x7EE0, and the pattern data back filling from 0x7EDF."
> >>
> >> Kevin
> >>
> >>
> >> On 9 April 2012 19:16, ayargh <post@...> wrote:
> >>
> >>> **
> >>>
> >>>
> >>> Thanks Kevin, I'm interested in the details on the memory of the KH-950i.
> >>>
> >>> I don't think you'll need modifications to PDDemulator.py, unless the
> >>> KH-950i uses a different floppy drive. (For the 950, it would be more
> >>> appropriate to produce a file-nn.dat that holds all 32 sectors of data, but
> >>> that file is only for debugging.) The knitting machine knows how to store
> >>> its memory in 1K disk sectors.
> >>>
> >>> Have you seen my img2track program (announced in another thread)? It
> >>> makes several improvements to the process. I'm hoping to add support for
> >>> the other models in the 900 series that use the same floppy disc interface.
> >>>
> >>> Your info will help. Please upload one or two examples of your data to
> >>> the Files area of this group. (Just file-01.dat and file-16.dat are
> >>> sufficient for each track 1 pattern.)
> >>>
> >>> Thanks,
> >>>
> >>> --Davi
> >>>
> >>>
> >>> --- In kminternals@yahoogroups.com, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > Ok. Progress made overnight.
> >>> >
> >>> > I've made some guesses at the 930 and seem to have come up with a
> >>> winner (
> >>> > http://www.flickr.com/photos/kentfield/6904212212/)
> >>> >
> >>> > I'm assumed that the 930 only has 2K of internal memory, mapped 0x0000
> >>> to
> >>> > 0x07FF, as per Steve's document (
> >>> >
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324
> >>> ).
> >>> > This I've assumed produces 2 files when run on the PDDemulator, 00.dat
> >>> and
> >>> > 01.dat. The emulator then concatenates these two files as file-01.dat
> >>> as
> >>> > Becky kindly pointed out I'd missed in the documentation.
> >>> >
> >>> > The 950i behave differently. I get 32 files: 00.dat through 31.dat,
> >>> which
> >>> > the PDDemulator bunches up as file-01.dat through file-16.dat.
> >>> >
> >>> > file-01.dat looks like Steve's document starts - with the 'catalogue'
> >>> of
> >>> > pattens, and file-16.dat ends with the 'config' at the end of Steve's
> >>> > document - the current machine state I believe.
> >>> >
> >>> > So the 950i therefore has 32K of memory, 0x0000 through 0x7FFF, with
> >>> the
> >>> > config block starting at 0x76E0, and the pattern data back filling from
> >>> > 0x76DF.
> >>> >
> >>> > So Ideally I need a change to the PDDemulator.py script which can take
> >>> a
> >>> > flag saying we're talking to the 950i and create a 32K large memory
> >>> image.
> >>> > I don't know yet if the insertpattern.py script will accept a large
> >>> file
> >>> > like this as input - we'll see I guess! The the splitfile2track.py
> >>> script
> >>> > will need to be able to split out a 32K image to 16 2K files - no idea
> >>> yet
> >>> > if it will do that, time to find out I guess.
> >>> >
> >>> > I don't know a lot of Python - I do C, but I'll take a look, unless
> >>> anyone
> >>> > jumps in and offers....
> >>> >
> >>> > Some of the bytes in the 'config' area (0x06e0 to 0x07ff on the 930)
> >>> which
> >>> > Steve says are always the same are different on the 950i - I'd guess at
> >>> > least one of these says which machine this is, and maybe we could work
> >>> the
> >>> > tools to autodetect this from the file if we can work this out.
> >>> >
> >>> > I get to play with my Aunt's KH-970i next weekend, maybe I can learn
> >>> some
> >>> > more from this, and also a PPD pattern programming device, which
> >>> should be
> >>> > able to create a disk image for each of the machines in theory, so
> >>> perhaps
> >>> > can learn more from this.
> >>> >
> >>> > I'll keep you updated.
> >>> >
> >>> > Kevin
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > On 5 April 2012 21:34, Kevin Blain <kevin.blain@> wrote:
> >>> >
> >>> > > Cool, thanks.
> >>> > >
> >>> > >
> >>> > > Yeah, I'd clearly missed that, but deduced it from what I saw.
> >>> > >
> >>> > > When we try to knit the pattern we create, we get a blank pattern
> >>> out. I
> >>> > > think the 950i stores everything in a slightly different format to
> >>> the 930,
> >>> > > so I guess I'm testing the water here to find out if I'm going over
> >>> new
> >>> > > ground... If so I'll dive in!
> >>> > >
> >>> > > How many nn.dat files do you get, and how many file-nn.dat flies?
> >>> We're
> >>> > > getting file-01.dat through 16 or 'track1' from the machine, 17-32
> >>> for
> >>> > > track2 and 00.dat to 31.dat as track 1 and 32.dat through 63.dat as
> >>> track
> >>> > > 2, but we also get 64.dat through 79.dat
> >>> > >
> >>> > > The latter group seem blank, but those in file-16.dat seem to contain
> >>> > > 0x06e0 to 0x07ff data containing the machine setup data - though with
> >>> > > differences to Steve's document.
> >>> > >
> >>> > > Worth me detailing it then?
> >>> > >
> >>> > > Kevin
> >>> > >
> >>> > >
> >>> > >
> >>> > > On 5 Apr 2012, at 20:47, Becky Stern <becky.stern@> wrote:
> >>> > >
> >>> > >
> >>> > >
> >>> > > Hi Kevin,
> >>> > >
> >>> > > I can't help with 950-specific info, but the "file-01.dat" thing is
> >>> > > documented in the tutorial on adafruit:
> >>> > >
> >>> > > http://ladyada.net/learn/electroknit/backup.html (last part) &
> >>> > > http://ladyada.net/learn/electroknit/dumppatt.html
> >>> > >
> >>> > > It's a file that contains all the patterns, and it's made by the
> >>> emulator,
> >>> > > not the knitting machine. Hope that helps a little!
> >>> > >
> >>> > > Becky
> >>> > >
> >>> > > On Thu, Apr 5, 2012 at 3:06 PM, Kevin <k.blain@> wrote:
> >>> > >
> >>> > >> **
> >>>
> >>> > >>
> >>> > >>
> >>> > >> Hi
> >>> > >>
> >>> > >> Let me introduce myself briefly, I'm an embedded electronic
> >>> engineer by
> >>> > >> trade, with a girlfriend who has a knitting passion and now a
> >>> KH950i.
> >>> > >>
> >>> > >> So I've been playing with the excellent work by Becky, Steve, John,
> >>> and
> >>> > >> others to try and get the thing to talk to me.
> >>> > >>
> >>> > >> Where I'm at:
> >>> > >>
> >>> > >> Reading and Writing disk images to the laptop seems to be going
> >>> without
> >>> > >> much pain, the PDDemulate python script seems to do its job just
> >>> fine.
> >>> > >>
> >>> > >> Has anyone actually got it working properly with the 950i?
> >>> > >>
> >>> > >> So far, there seems to be differences in the file contents to what
> >>> I've
> >>> > >> been reading on the net, which is mostly 930 based information.
> >>> > >>
> >>> > >> For example, the stucture of the 00.dat file looks like it follows
> >>> the
> >>> > >> structure mentioned here:
> >>> > >>
> >>> https://github.com/adafruit/knitting_machine/blob/master/docs/file-data.txt#L324butmoving on through the doc, where it looks at addresses 0x06e0 onwards,
> >>>
> >>> > >> I don't see this, tough I see similar data in the 63.dat file
> >>> > >>
> >>> > >> I also note that as well as having 00.dat and 01.dat, the contents
> >>> of the
> >>> > >> two together appear in file-01.dat - this doesn't seem to be
> >>> documented
> >>> > >> anywhere, is this unique to the 950i or has this info just missed
> >>> > >> documenting up till now?
> >>> > >>
> >>> > >> Kevin
> >>> > >>
> >>> > >>
> >>> > >
> >>> > >
> >>> > >
> >>> >
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/kminternals/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/kminternals/join
   (Yahoo! ID required)

<*> To change settings via email:
   kminternals-digest@yahoogroups.com
   kminternals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   kminternals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/







#207 From: Steve Conklin <steve@...>
Date: Mon Apr 16, 2012 12:43 pm
Subject: Re: Progress deciphering the data format
ysconklin
Send Email Send Email
 
Davi,

This is great news. I'd like to get this into the documentation -
could you send me a diff to my document, or better yet send a pull
request for the adafruit git repo with the changes?

This information is also what I needed to do more work on a new python
class I'm working on to encapsulate knitting data, whenever I have
time to get back to that . . .

Steve

#208 From: Steve Conklin <steve@...>
Date: Mon Apr 16, 2012 1:39 pm
Subject: Re: Electronics on KH970 CB1
ysconklin
Send Email Send Email
 
Cobi (and list),

Sorry to take so long to respond -

   First my disclaimers - I know nothing about the KH970, but am basing
this upon what I know about the KH930 and technology of that era.

If the following is difficult to follow, please email me directly, and
I'd be happy to discuss this with you on the phone.

The short version is that your machine might be repairable in the
hands of someone with some electronics knowledge. These machines are
so hard to ship without damage, or I'd offer to look at it for you.
Where are you located? (no need to be too specific) Maybe we can find
someone near you with the right skills to help you.

The electronics on those those machines are built using a low level of
integration and generic through-hole parts. In basic terms, this
means:

0. They are often repairable
1. There are a lot of parts on the board
2. The parts are generally common devices and still available, with
some exceptions
3. It's not uncommon to have failures which result in loss of one area
of functionality (floppy disk connection, for example)
4. In the CMOS chips used in that era, common failures include damage
due to static electricity, which commonly happens on chips connected
to external connectors like the floppy connector.
5. With some time and electronics knowledge, it's often possible to
find and fix these problems.

Since the machine knits using internal patterns, we know that the
internal microprocessor and the control electronics work. This is
good, because it means that most of the parts which are likely to be
"impossible to replace" are working.

I think it's probable that your machine has a failure in the chip(s)
which connect to the floppy drive connector. For someone with skill in
electronics, it might be possible to diagnose and repair this. If it
were me and it were my machine, I'd open the machine and try it, but -
it's not my machine, and I'm pretty experienced and comfortable with
these things.

As I recall from the KH-930, the chip connected to the floppy drive
was a simple 4xxx series CMOS logic part, a hex inverter or quad NAND
or something like that. These are very easy to get.

If it were my machine, here are the steps I'd take:

1. Take anti-static procedures - work on a conductive mat or even a
piece of anti-static packing foam. Wear a grounding bracelet connected
to the mat, and connect the knitting machine frame to the mat.

2. Remove the cover and examine the board with the floppy connector.
Figure out which chip the traces from the connector connect to, and
sketch out the pinout of that connector and label everything.

3. (If possible) Connect the floppy drive and power up the machine and
the drive. Using an oscilloscope, check the signals at the inputs and
outputs of the logic gates on that chip, and try to verify that one of
them is not working as it should. Try to observe it when attempting to
save a pattern, etc. Continue diagnosis, hopefully until a bad part is
found.

4. Order a replacement part. If the original part is a 4000 series
CMOS part, it will have a number like CD4009 or CD4012. If the
original part has no suffix or an 'A' suffix, then death due to static
electricity was almost certainly the problem - the original A series
parts were very susceptible. You will replace it with a B series part,
as that's all that's available now - it will work fine.

5. Note the orientation of the old part. One end will have a notch, or
perhaps a molded dot on the corner. If the PC board isn't marked, you
can make a mark with a marker near that end. Be sure to put the new
part in the same way.

Carefully remove the bad part and replace it. If you don't have
desoldering equipment, then with through-hole Dual-Inline packages
(which this probably uses) the best way to do this without risk to the
board is to clip each lead close to the chip using a small pair of
flush cutters, and remove the chip body. Then using hemostats heat and
remove each pin. Now remove the excess solder from each hole. This is
really the step which is most likely to cause damage to the board,
which may be hard to repair. There are several ways to do this and
it's a topic unto itself, so here's a web page which does a good job
of discussing it: http://www.aaroncake.net/electronics/desolder.htm

6. Install the new part and solder it in place.

7. Test the knitting machine, and put it back together. If it doesn't
work, keep troubleshooting.

This sounds daunting, but it shouldn't be more than a few hours work,
even at a relaxed pace (not counting ordering the part). The
electronics in these machines is actually more repairable than a lot
of recent electronics, but it takes some time.

I hope this is helpful,

Steve

#209 From: Kevin Blain <kevin.blain@...>
Date: Mon Apr 16, 2012 4:15 pm
Subject: Re: Re: Electronics on KH970 CB1
jb_ussu
Send Email Send Email
 
Cobi, Steve, et al.

My findings over the weekend were that the KH970 / CB1 use a slightly different set of rules for talking to the FB100 as per the 930, for example.

I need to document more fully, as a lot of ground was covered last weekend...

The CB-1 / KH970 will not talk to Steve's software as-is - I do not know specifically about DesignAKnit, so cannot comment. It should be perfectly ok at talking to the FB100 though.

As Steve says, you most likely have a perfectly repairable fault - though the 970 I suspect will have a bit more surface mount in than what Steve has seen in the 930 - I think we're on about circa 1994 now. I'm in the UK, so I'm not in a useful position to be able to offer repair services either. You need to find / make an electronics geek friend, and buy them some beer....

If it comes to it, I would happily buy the CB-1 module from you though, if it you ever decide it's unservicable, I may be able to learn some more from it, and fix it, but nothing I can do in the short term. Of course you then end up with having no machine.

Kevin


On 16 April 2012 14:39, Steve Conklin <steve@...> wrote:
 

Cobi (and list),

Sorry to take so long to respond -

First my disclaimers - I know nothing about the KH970, but am basing
this upon what I know about the KH930 and technology of that era.

If the following is difficult to follow, please email me directly, and
I'd be happy to discuss this with you on the phone.

The short version is that your machine might be repairable in the
hands of someone with some electronics knowledge. These machines are
so hard to ship without damage, or I'd offer to look at it for you.
Where are you located? (no need to be too specific) Maybe we can find
someone near you with the right skills to help you.

The electronics on those those machines are built using a low level of
integration and generic through-hole parts. In basic terms, this
means:

0. They are often repairable
1. There are a lot of parts on the board
2. The parts are generally common devices and still available, with
some exceptions
3. It's not uncommon to have failures which result in loss of one area
of functionality (floppy disk connection, for example)
4. In the CMOS chips used in that era, common failures include damage
due to static electricity, which commonly happens on chips connected
to external connectors like the floppy connector.
5. With some time and electronics knowledge, it's often possible to
find and fix these problems.

Since the machine knits using internal patterns, we know that the
internal microprocessor and the control electronics work. This is
good, because it means that most of the parts which are likely to be
"impossible to replace" are working.

I think it's probable that your machine has a failure in the chip(s)
which connect to the floppy drive connector. For someone with skill in
electronics, it might be possible to diagnose and repair this. If it
were me and it were my machine, I'd open the machine and try it, but -
it's not my machine, and I'm pretty experienced and comfortable with
these things.

As I recall from the KH-930, the chip connected to the floppy drive
was a simple 4xxx series CMOS logic part, a hex inverter or quad NAND
or something like that. These are very easy to get.

If it were my machine, here are the steps I'd take:

1. Take anti-static procedures - work on a conductive mat or even a
piece of anti-static packing foam. Wear a grounding bracelet connected
to the mat, and connect the knitting machine frame to the mat.

2. Remove the cover and examine the board with the floppy connector.
Figure out which chip the traces from the connector connect to, and
sketch out the pinout of that connector and label everything.

3. (If possible) Connect the floppy drive and power up the machine and
the drive. Using an oscilloscope, check the signals at the inputs and
outputs of the logic gates on that chip, and try to verify that one of
them is not working as it should. Try to observe it when attempting to
save a pattern, etc. Continue diagnosis, hopefully until a bad part is
found.

4. Order a replacement part. If the original part is a 4000 series
CMOS part, it will have a number like CD4009 or CD4012. If the
original part has no suffix or an 'A' suffix, then death due to static
electricity was almost certainly the problem - the original A series
parts were very susceptible. You will replace it with a B series part,
as that's all that's available now - it will work fine.

5. Note the orientation of the old part. One end will have a notch, or
perhaps a molded dot on the corner. If the PC board isn't marked, you
can make a mark with a marker near that end. Be sure to put the new
part in the same way.

Carefully remove the bad part and replace it. If you don't have
desoldering equipment, then with through-hole Dual-Inline packages
(which this probably uses) the best way to do this without risk to the
board is to clip each lead close to the chip using a small pair of
flush cutters, and remove the chip body. Then using hemostats heat and
remove each pin. Now remove the excess solder from each hole. This is
really the step which is most likely to cause damage to the board,
which may be hard to repair. There are several ways to do this and
it's a topic unto itself, so here's a web page which does a good job
of discussing it: http://www.aaroncake.net/electronics/desolder.htm

6. Install the new part and solder it in place.

7. Test the knitting machine, and put it back together. If it doesn't
work, keep troubleshooting.

This sounds daunting, but it shouldn't be more than a few hours work,
even at a relaxed pace (not counting ordering the part). The
electronics in these machines is actually more repairable than a lot
of recent electronics, but it takes some time.

I hope this is helpful,

Steve



#210 From: "bart_930" <bart.acres@...>
Date: Tue Apr 17, 2012 1:58 am
Subject: Trouble running PDDemulate.py on WindowsXP (Brother 930)
bart_930
Send Email Send Email
 
Hi all,
Have been working on trying to hack my Brother 930 knitting machine. We had a
spare old computer sitting around our house, which I reformatted and did a fresh
install of XP on it especially (I did this since MProg was Windows only so I
thought that was the best option).

Anyway, I have made it as far as trying to run PDDemulate.py to back up the
knitting machine memory. Here is where I'm getting stuck (see image)

http://i136.photobucket.com/albums/q176/bartacres/brothercommandprompt.jpg

The connection with the machine is clearly active as the command prompt text
progresses when I press buttons on the machine (like 502 or whatever it was)...
it creates an img folder in my brother folder, and things show up in there, but
no file-01.dat and the other files appear to be blank.

Any help or suggestions much appreciated!!

#211 From: Steve Conklin <steve@...>
Date: Tue Apr 17, 2012 2:21 am
Subject: Re: Trouble running PDDemulate.py on WindowsXP (Brother 930)
ysconklin
Send Email Send Email
 
I've never seen this before. The emulator is only reading 861 bytes when it is expecting 1024.

Here's what I think is happening, but it's only a guess.

I think that without using hardware flow control, the emulator is overrunning the serial input buffers on your computer. It could be that the buffer size or input handling is different enough between Linux and Windows that this is a problem that I haven't seen on Linux.

The serial input is set up in the emulator to time out and return after one second, so if characters are lost it will complete the read after one second but have fewer characters than the knitting machine sent.

The solution is to use hardware flow control. Make sure that your RS-232 adapter is connected as described in the last table on this page: http://www.antitronics.com/wiki/index.php?title=Electroknit_Serial_Connections

Also make sure that the pin signals sense is inverted from normal using the FT_PROG utility.

Now, you need to change the python code in the emulator to open the port with hardware flow control. To do this,
edit line 287 and change "rtscts=0" to "rtscts=1".

Let me know if this works. I've started a new version of the emulator which allows using flow control from the command line, but I've been too busy to finish and test it.

Steve

On Mon, Apr 16, 2012 at 8:58 PM, bart_930 <bart.acres@...> wrote:
 

Hi all,
Have been working on trying to hack my Brother 930 knitting machine. We had a spare old computer sitting around our house, which I reformatted and did a fresh install of XP on it especially (I did this since MProg was Windows only so I thought that was the best option).

Anyway, I have made it as far as trying to run PDDemulate.py to back up the knitting machine memory. Here is where I'm getting stuck (see image)

http://i136.photobucket.com/albums/q176/bartacres/brothercommandprompt.jpg

The connection with the machine is clearly active as the command prompt text progresses when I press buttons on the machine (like 502 or whatever it was)... it creates an img folder in my brother folder, and things show up in there, but no file-01.dat and the other files appear to be blank.

Any help or suggestions much appreciated!!



#212 From: "John R. Hogerhuis" <jhoger@...>
Date: Tue Apr 17, 2012 2:53 am
Subject: Re: Trouble running PDDemulate.py on WindowsXP (Brother 930)
jhogerhuis
Send Email Send Email
 
Hi,

Hard time believing that the KM can overrun Windows XP. It should be able to keep up with our old tech, easy peasy.

Another possibility is flaky serial hardware, cabling or driver (lost interrupts) on the PC side or a environmental dependency in the python serial library. Extend the timeout to something ridiculous, for starters, jiggle the cable and see if the bytes eventually dislodge themselves ;-)   I'm only half kidding... if the cable's flow control is flaky and locking things up, jiggling the cable could allow the bytes to flow. Also the bytes could be stuck in buffers  owned by the serial driver and just waiting could allow background polling to eventually pick them up even if chance to run on interrupt was lost for some reason.

Do we have a list of USB->Serial adapters and drivers known to work reliably when connected to KH930 on Windows XP? Might be worth putting something together.

Cheers,

-- John.


#213 From: "bart_930" <bart.acres@...>
Date: Tue Apr 17, 2012 3:08 am
Subject: Re: Trouble running PDDemulate.py on WindowsXP (Brother 930)
bart_930
Send Email Send Email
 
Thanks for the reply Steve.

I jimmied up my FTDI cable as per the instructions at
http://www.ladyada.net/learn/electroknit/ftdicable.html so hopefully they are
accurate. The red cable is split into 2 and inserted into pins 2 and 3.

I tried the code modification that you suggested above. It definitely changed
something. However the problem now is that as soon as I press 552 and hit
'Step', the knitting machine goes blank, seems to basically turn itself off.
Here is the resulting output in command prompt:

http://s136.photobucket.com/albums/q176/bartacres/?action=view¤t=cp1.jpg

I appreciate your help here Steve, and I know that others have been encountering
similar problems, see bottom post here for example
http://forums.adafruit.com/viewtopic.php?f=8&p=135370 so it would be awesome to
find a solution. I suppose I can always install Ubuntu on my dedicated knitting
machine computer if all else fails!

#214 From: "CobiCreations" <thetallasseekids@...>
Date: Tue Apr 17, 2012 9:38 pm
Subject: Steve and Kevin
cobicreations52
Send Email Send Email
 
Thank you both for answering, and maybe there will be an answer in all of this
that makes for solutions for others as well.  All the techno is beyond me! 
Blessings, Cobi

#215 From: "bart_930" <bart.acres@...>
Date: Wed Apr 18, 2012 3:53 am
Subject: Re: Trouble running PDDemulate.py on WindowsXP (Brother 930)
bart_930
Send Email Send Email
 
Thanks for your reply too John.

Update - since I have a computer designated specifically for use with the
knitting machine (oh the joys of having room mates who like to upgrade their
tech often), and I was eager to get my machine up and running, I opted to
install Ubuntu as well, its so easy just insert the CD and it creates its own
partition, dual boot option etc. Everything is working fine now and I have
produced my first knitted panels of custom designs!!

Thanks guys for being hardcore geeks and getting this info out there.

My friends here in Dunedin, New Zealand are about to get themselves some crazy
ass knitwear!!

#216 From: "John R. Hogerhuis" <jhoger@...>
Date: Wed Apr 18, 2012 4:06 am
Subject: Re: Trouble running PDDemulate.py on WindowsXP (Brother 930)
jhogerhuis
Send Email Send Email
 
Indicates to me that it's not a hardware problem so it is either a
Python-Windows platform issue or a driver issue.

Not a big believer in the flow control thing in this case since I
don't think it's really necessary as request-response is self
limiting, PC is not going to run out of buffers, and the PC has plenty
of cycles to spare to handle serial port.

-- John.

#217 From: "Kevin" <kevin.blain@...>
Date: Thu Apr 19, 2012 11:50 am
Subject: Interfacing to more than just the 930
jb_ussu
Send Email Send Email
 
So I've been working on talking to the KH-950i machine using software based on
Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other
devices to the table. As well as picking up a FB-100 floppy drive, I was able to
pick up a PPD-110 and a couple of cartridges, including one for multi colour
patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the
following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy
drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i
and 970.

However, the PPD uses at least one other command (M) which is not implemented in
the emulator which Steve wrote, so I'm working on adding this is so that I can
save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear
with me, so was unable to work out exactly why, but the 970 was unable to detect
the emulator, so I'm thinking there is a handshaking line or maybe just voltage
levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a
4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour
allowed on that particular row. The maximum pattern size drops from 998 rows to
332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on
each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin

#218 From: Steve Conklin <steve@...>
Date: Thu Apr 19, 2012 12:25 pm
Subject: Re: Interfacing to more than just the 930
ysconklin
Send Email Send Email
 
This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.

I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin



#219 From: Kevin Blain <kevin.blain@...>
Date: Thu Apr 19, 2012 12:31 pm
Subject: Re: Interfacing to more than just the 930
jb_ussu
Send Email Send Email
 
I would, but I can't create an account on the wiki...

Kevin


On 19 Apr 2012, at 13:25, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin



#220 From: "M.D." <msflosser@...>
Date: Thu Apr 19, 2012 12:39 pm
Subject: Fair isle and double jacquard
mdaugul
Send Email Send Email
 
As a rather silent lurker to all the discussion 
I thought I might jump in. 
I could be wrong, but as a long time machine knitter, 
I would throw out the idea that most of us don't care so much 
About 3 or more colors in a row. There are the highly motivated
Double jacquard knitters out there but what I think most of us would like 
To see is a system that works easily for fair isle 
Or 2 color knitting. This would Also work as knits and purls with the g carriage. Personally I'd be ecstatic to see my computers and knitting
Machine converse nicely, smoothly and inexpensively on that topic alone. 


Pegi

Sent from my iPhone
On Apr 19, 2012, at 8:25 AM, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin



#221 From: Kevin Blain <kevin.blain@...>
Date: Thu Apr 19, 2012 1:21 pm
Subject: Re: Fair isle and double jacquard
jb_ussu
Send Email Send Email
 
Totally agree!

Among all that stuff I mentioned in my other email, I (we) also picked up a ribber and a garter carriage (slightly faulty, but easily fixable) from my Aunt that weekend, and one thing I think I owe her in return is an 'Aunty friendly' pattern loader from her PC to her machine - the 970. Once I've got the 970 talking to me, I'm quite tempted to re-spin the emulator system into a .Net c# project, which I'm more comfortable with than python, and will lead me to designing a clean UI for her to use. It's that or learn python...

Quite right, in that the two colour fairisle, and g-carraige use exactly the same pattern, the g-carriage having the advantage of not giving all those dangling floats on the back.

This has to be step 1, as it's pretty much understood now. Multi colour needs to be done in time for my Christmas jumper this year though....

My personal timeline:

Then there's the double-bed jacquard tequnique, as you say! That'll be fun, but that's way down the list here....

Kevin




On 19 April 2012 13:39, M.D. <msflosser@...> wrote:
 

As a rather silent lurker to all the discussion 
I thought I might jump in. 
I could be wrong, but as a long time machine knitter, 
I would throw out the idea that most of us don't care so much 
About 3 or more colors in a row. There are the highly motivated
Double jacquard knitters out there but what I think most of us would like 
To see is a system that works easily for fair isle 
Or 2 color knitting. This would Also work as knits and purls with the g carriage. Personally I'd be ecstatic to see my computers and knitting
Machine converse nicely, smoothly and inexpensively on that topic alone. 


Pegi

Sent from my iPhone
On Apr 19, 2012, at 8:25 AM, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin




#222 From: "M.D." <msflosser@...>
Date: Thu Apr 19, 2012 7:35 pm
Subject: Re: Fair isle and double jacquard
mdaugul
Send Email Send Email
 
Sound good!
Let me know when I can get that all
wrapped up in a nice hardware/software package!

Pegi

Sent from my iPhone

On Apr 19, 2012, at 9:21 AM, Kevin Blain <kevin.blain@...> wrote:

 

Totally agree!


Among all that stuff I mentioned in my other email, I (we) also picked up a ribber and a garter carriage (slightly faulty, but easily fixable) from my Aunt that weekend, and one thing I think I owe her in return is an 'Aunty friendly' pattern loader from her PC to her machine - the 970. Once I've got the 970 talking to me, I'm quite tempted to re-spin the emulator system into a .Net c# project, which I'm more comfortable with than python, and will lead me to designing a clean UI for her to use. It's that or learn python...

Quite right, in that the two colour fairisle, and g-carraige use exactly the same pattern, the g-carriage having the advantage of not giving all those dangling floats on the back.

This has to be step 1, as it's pretty much understood now. Multi colour needs to be done in time for my Christmas jumper this year though....

My personal timeline:

Then there's the double-bed jacquard tequnique, as you say! That'll be fun, but that's way down the list here....

Kevin




On 19 April 2012 13:39, M.D. <msflosser@...> wrote:
 

As a rather silent lurker to all the discussion 
I thought I might jump in. 
I could be wrong, but as a long time machine knitter, 
I would throw out the idea that most of us don't care so much 
About 3 or more colors in a row. There are the highly motivated
Double jacquard knitters out there but what I think most of us would like 
To see is a system that works easily for fair isle 
Or 2 color knitting. This would Also work as knits and purls with the g carriage. Personally I'd be ecstatic to see my computers and knitting
Machine converse nicely, smoothly and inexpensively on that topic alone. 


Pegi

Sent from my iPhone
On Apr 19, 2012, at 8:25 AM, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin




#223 From: "CobiCreations" <thetallasseekids@...>
Date: Fri Apr 20, 2012 1:55 pm
Subject: trying to learn and "digest"what I am reading
cobicreations52
Send Email Send Email
 
Hi, I can feel the excitement in the posts, so I AM trying to grasp what is
"happening", but the computer language eludes me.....

Like Pegi though, I am that does not like floats, so DBJ is an answer when using
fair isle patterns.  Also someone in another group a long time back said she
uses her PPD together with her laptop, something about turning the lap top into
a faux TV, but she had a TV device on her computer.  I bought the wrong one, so
kind of gave up.  My TV that is supposed to work with it is in another
room,(sewing) and the newer model is in the knitting room, so I have not even
used the PPD

Also the CB1 unit to the KH970, after comparing notes with another gal with one,
will not respond to the commands as hers does, especially in regards to the use
of cables either DAK or the FB100 series, so there is an issue.  I am the
"repair person" at home, either I do it or find someone who can.  That goes for
home repairs,the basic stuff.  My hubby is not of the mind to delve into what he
considers "not in his knowledge base", where in my ming whatever I can save by
doing it myself, can possibly be used f more supplies....He helps with what he
can when I am in the midst of repairing something and need a hand though... This
is NOT a complaint, he is my best friend, and supports me in my "doings"
whatever they may be, knitting, sewing, embroidery, and I did try to bribe him
to learn the machines.....but alas I cannot spend time chasing a small white
ball with a skinny stick!  That was my deal, I will play golf with you if you
will knit with me....  smile, he has said "it looks way too complicated!  I hand
and machine knit....

I will keep following along, and maybe it will somehow sink in????  I use XP,
though I have a windows 7 that my sewing and knitting programs aren't supposed
to like.  Blessings, Cobi

#224 From: "CobiCreations" <thetallasseekids@...>
Date: Fri Apr 20, 2012 1:59 pm
Subject: compatability
cobicreations52
Send Email Send Email
 
I forgot to mention.... the higher up models such as 940-970 are supposed to be
able to read the lower model's patterns, but if saved in a 970 format for
instance, then it cannot be read by the KH machines under it, ie; 930 etc.  This
is when using the FB100 series.  Is that the same in what you are doing Steve
and Kevin?  Blessings, Cobi

#225 From: Steve Conklin <steve@...>
Date: Fri Apr 20, 2012 2:44 pm
Subject: Re: Fair isle and double jacquard
ysconklin
Send Email Send Email
 
I think that the general interest for actually knitting is not multi-color or anything fancy. But for the non-software hackers, hopefully I can explain why it's interesting to the people working on the software side of things . . .

In order to create and improve the software that talks to the machines and manipulates patterns, we need to understand what all the different locations within the saved data from the machine are for. Everything from the machine is saved - the knitting pattern(s), the current row needle seetings, the next row needle settings, the settings of all the switches on the machine, etc. A lot of work has been done to figure this out but there are still big gaps in what's known about how it all works. So by figuring out how things like multi-color patterns are stored, it's very likely that we'll learn things which are useful in the general case.

Right now, most of the work has been done on the KH-930 data format, but the more we know about that machine and all the others, the more we'll be able to extend knowledge about all of them. This may not make sense to non-programmers, but after you've been looking at something like this for a while, you can look at a data dump which has things arranged differently, and sort of recognize different parts of the data.

I hope that this is a helpful explanation.

Steve

On Thu, Apr 19, 2012 at 2:35 PM, M.D. <msflosser@...> wrote:
 

Sound good!
Let me know when I can get that all
wrapped up in a nice hardware/software package!

Pegi

Sent from my iPhone

On Apr 19, 2012, at 9:21 AM, Kevin Blain <kevin.blain@...> wrote:

 

Totally agree!


Among all that stuff I mentioned in my other email, I (we) also picked up a ribber and a garter carriage (slightly faulty, but easily fixable) from my Aunt that weekend, and one thing I think I owe her in return is an 'Aunty friendly' pattern loader from her PC to her machine - the 970. Once I've got the 970 talking to me, I'm quite tempted to re-spin the emulator system into a .Net c# project, which I'm more comfortable with than python, and will lead me to designing a clean UI for her to use. It's that or learn python...

Quite right, in that the two colour fairisle, and g-carraige use exactly the same pattern, the g-carriage having the advantage of not giving all those dangling floats on the back.

This has to be step 1, as it's pretty much understood now. Multi colour needs to be done in time for my Christmas jumper this year though....

My personal timeline:

Then there's the double-bed jacquard tequnique, as you say! That'll be fun, but that's way down the list here....

Kevin




On 19 April 2012 13:39, M.D. <msflosser@...> wrote:
 

As a rather silent lurker to all the discussion 
I thought I might jump in. 
I could be wrong, but as a long time machine knitter, 
I would throw out the idea that most of us don't care so much 
About 3 or more colors in a row. There are the highly motivated
Double jacquard knitters out there but what I think most of us would like 
To see is a system that works easily for fair isle 
Or 2 color knitting. This would Also work as knits and purls with the g carriage. Personally I'd be ecstatic to see my computers and knitting
Machine converse nicely, smoothly and inexpensively on that topic alone. 


Pegi

Sent from my iPhone
On Apr 19, 2012, at 8:25 AM, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin





#226 From: Steve Conklin <steve@...>
Date: Fri Apr 20, 2012 2:45 pm
Subject: Re: compatability
ysconklin
Send Email Send Email
 
Cobi, this is the sort of information gem that could really help a lot. I didn't know this.

Thanks

Steve

On Fri, Apr 20, 2012 at 8:59 AM, CobiCreations <thetallasseekids@...> wrote:
 

I forgot to mention.... the higher up models such as 940-970 are supposed to be able to read the lower model's patterns, but if saved in a 970 format for instance, then it cannot be read by the KH machines under it, ie; 930 etc. This is when using the FB100 series. Is that the same in what you are doing Steve and Kevin? Blessings, Cobi



#227 From: Steve Conklin <steve@...>
Date: Fri Apr 20, 2012 2:48 pm
Subject: Re: Interfacing to more than just the 930
ysconklin
Send Email Send Email
 
Wow, that's a major screw up and it's been there forever. Sorry about that.

I fixed the wiki and you can now create an account, which will be reviewed and approved.

http://www.antitronics.com/wiki/index.php?title=Main_Page

The login page should have a link to request an account.

Steve

On Thu, Apr 19, 2012 at 7:31 AM, Kevin Blain <kevin.blain@...> wrote:
 

I would, but I can't create an account on the wiki...

Kevin


On 19 Apr 2012, at 13:25, Steve Conklin <steve@...> wrote:

 

This is all really great information! I think it's time to create some tables showing which machines have compatible formats and what the other differences are.


I have suspected that the multi-color programming uses some of the memory locations which are unknown so far, so maybe we have a way to expand that knowledge.

Also, the fact that the 970 doesn't work like the rest may mean that Cobi's machine isn't broken after all.

Please feel free to create or modify the wiki pages on antitronics with information that you discover. Here is the base page for knitting machine info:

Steve

On Thu, Apr 19, 2012 at 6:50 AM, Kevin <kevin.blain@...> wrote:
 

So I've been working on talking to the KH-950i machine using software based on Steve's package for the KH-930 and things are looking good.

Over the weekend, I opened up the spectrum somewhat, but adding on a few other devices to the table. As well as picking up a FB-100 floppy drive, I was able to pick up a PPD-110 and a couple of cartridges, including one for multi colour patterns. I also spent a bit of time playing with a KH-970 machine.

As it stands, using the PPD device, I can create images on the cartridge for the following machines:

KH930, KH940, KH950i, KH270

and transfer images from the PPD to the machine - the PPD emulates a floppy drive at this point.

I also know that the image created for the 950i works happily on the 965, 965i and 970.

However, the PPD uses at least one other command (M) which is not implemented in the emulator which Steve wrote, so I'm working on adding this is so that I can save directly from PPD to emulator.

Connecting to the 970 yielded it's own problems, and I didn't have any test gear with me, so was unable to work out exactly why, but the 970 was unable to detect the emulator, so I'm thinking there is a handshaking line or maybe just voltage levels which threw me off - will investigate!

The multicolour cartridge is quite interesting (Copyright 1994), as it allows a 4 colour pattern to be designed, with a limitation of 3 colours per row.

The multicolour cartridge works on 1 of 4 different modes:

1) KH940, 950i, 270
2) KH930
3) KH900
4) KH965, 965i

I believe this works by using 3 memory rows per knitted row, 1 for each colour allowed on that particular row. The maximum pattern size drops from 998 rows to 332 rows, which stacks up.

I don't yet know if there's any information about which 3 colours are used on each row, but I have the manual, so I guess I should take a read.

Interesting times....

Kevin




#228 From: "CobiCreations" <thetallasseekids@...>
Date: Sat Apr 21, 2012 3:32 pm
Subject: Pegi/Steve
cobicreations52
Send Email Send Email
 
When Doing DBJ to avoid floats, you are using both, the ribber and the
machine.....is that the problem????
It is my understanding that the 930 having less memory when using the Disk drive
loads large portions in segments, of a pattern, but the 940 and up can load
fully a large pattern in one segment, ie 901,902 etc,  I am not experienced on
the floppy as I got it reasonably priced to test on the KH970 as a suggestion
from a dealer to try to upload the designs that way.....of course it did not
work.
When deciding to do DBJ on a pattern, the carriage setting on the electronics is
changed, so would that not be the same way to do it?  To date the DBJ I have
done is on punch cards, as the KH970 was purchased for that as well.
There also is an automatic color changer made by Brother, don't have one so not
sure how that would play into what you are doing, but my understanding is that
it will change up to 6 colors on the KH970, and 2 on the KH930.....not sure that
info is correct, not having one to test, but if so, somehow that has to be
"read" and acted upon on the machine????
Also a gal I know input manually her own pattern into her KH940, got it back
using the floppy drive and saved it to use on other machines, her 965i could
read it but NOT her KH970, she thinks it was how she formatted it.... so there
may be other little things that can affect using a pattern across the many
models.  It appears that each machine may have it's own way of getting info???
Blessings, Cobi

Messages 199 - 228 of 302   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help