Author Topic: Albireo - USB/SD/Serial interface for CPC  (Read 55652 times)

0 Members and 1 Guest are viewing this topic.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #175 on: 22:09, 05 January 16 »
This is embarassing, as the preorder list for the first batch of boards is already complete. I don't mind shipping you one of the prototype boards, but it will shift all orders down, and the last person to order will not get a board from the first batch.
@dxs: is it ok if I move you to the second batch? Or, does someone else want to delay his order to the second batch so Prodatron can get a board to work on SymbOS support?

Also, an update: I have ordered the PCBs for the second batch. It will take a few days or weeks before I get them. Please be patient :)


Hi! He can have one of my boards and you set my 2nd board at the end of the list. No problem!  :)

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 212
  • Likes Given: 215
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #176 on: 22:46, 05 January 16 »
Was going to offer the same as TFM... offer is there anyway :)

Offline dodogildo

  • Supporter
  • 464 Plus
  • *
  • Posts: 340
  • Country: tr
  • M'enfin!
  • Liked: 127
  • Likes Given: 79
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #177 on: 01:29, 06 January 16 »



@dxs: is it ok if I move you to the second batch? Or, does someone else want to delay his order to the second batch so Prodatron can get a board to work on SymbOS support?


Wouldn't it be cooler to delay one piece of x2 orders to the 2nd batch instead of moving @dxs?

Offline dxs

  • CPC664
  • ***
  • Posts: 116
  • Country: fr
  • Liked: 111
  • Likes Given: 19
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #178 on: 01:37, 06 January 16 »
Hi, being the last one ordering do what you think is best. Happy soldering btw I know how boring this can be...

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #179 on: 18:43, 06 January 16 »
Hi, being the last one ordering do what you think is best. Happy soldering btw I know how boring this can be...


Oh yes, I'm soldering too at the moment... nice job for weekends  :-X  Since I will really busy this month it's just fine to leave one of my Albis for prodatron, he waits already too long for CPC networking hardware.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #180 on: 17:25, 09 January 16 »
Information about payments
Please wait until I contact you with payment info (I will do so when I have a board ready to ship for you).I don't want to receive payments too much in advance then have people waiting on me to ship the boards. I would then have to handle the pressure of everyone waiting, and also possibly cancelling and rescheduling orders and whatnot. So I prefer that you pay only when your board is ready to ship. Thanks for your patience!

You can pay either using paypal or a bank account transfer. The price is 20 euros, or 24 euros if you want tracked shipping.
If you want, you can order multiple boards. However, I will try to get the boards in the hand of as much people as possible, so I may delay shipping of your second (and third, ...) boards.

If there is a hardware problem, you can send the board back to me and I'll fix or replace it. So don't worry about getting a prototype. (and if you get a final version, I will do the same, because I don't want the boards to be thrown away in case of problems).

Already shipped (with tracking numbers for those who chosen tracked shipping)
Batch 1 waiting list
Status: the PCBs have been ordered, it can take a few weeks before I get them. I have parts of the components to solder, and will order the remaining part when the PCBs are shipped.
  • 4 - cpcmaniaco (x1, prototype board)
  • 5 - ||C||-||E||
  • 6 - majikeyric (x1)
  • 7 - CraigsBar (x2)
  • 9 - TFM (x2)
  • 11 - pelrun
  • 12 - Optimus
  • 13 - Ast
  • 14 - tonio8bits (x2)
  • 16 - hsimpson
  • 17 - SOS
  • 18 - Audronic
  • 19 - gros_minet
  • 20 - Fessor
  • 21 - Sykobee (Briggsy)
  • 22 - skywalky
  • 23 - Jungsi
  • 24 - Poliander
  • 25 - Yannis_uno
  • 26 - Rennert
  • 27 - HAL6128
  • 28 - Joseman
  • 29 - Tai
  • 30 - Grim
  • 31 - reidrac
  • 32 - cosa_nostra_6128
  • 33 - Targhan
  • 34 - oratyper
  • 35 - NiNxPe
  • 36 - Vandalsk (x2)
  • 38 - Dirtybb
  • 39 - Dubliner
  • 40 - ronaldo (x2)
  • 42 - cpcmaniaco (x1)
  • 43 - Munchausen (x2)
  • 45 - jrodriguezv (x2)
  • 47 - netmercer
  • 48 - Shining
  • 49 - archosmo
  • 50 - awergh
  • 51 - wilco2009
  • 52 - dodogildo
  • 53 - Apollo (x2)
  • 55 - dxs
Batch 2 waiting list
Status: Nothing done yet.
  • 56 - majikeyric (second board)
  • 57 - (awaiting orders...)

Offline AlexD

  • CPC464
  • **
  • Posts: 15
  • Country: fr
  • Liked: 3
  • Likes Given: 0
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #181 on: 20:55, 09 January 16 »
Hi there, this project really looks cool!
Is it still possible to order one board ?

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #182 on: 21:38, 09 January 16 »
Yes, it is. I'm waiting for the 50 next boards to be delivered so I can assemble and ship them.

Offline AlexD

  • CPC464
  • **
  • Posts: 15
  • Country: fr
  • Liked: 3
  • Likes Given: 0
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #183 on: 22:18, 09 January 16 »
then count me for one board :)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.175
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3008
  • Likes Given: 5344
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #184 on: 10:38, 10 January 16 »
So this is heading to 100 units then! :)

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 3.463
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 2636
  • Likes Given: 1565
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #185 on: 11:00, 10 January 16 »
Poor Pulko... A pain in ass to solder all before next christmas!  ;D
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #186 on: 11:04, 10 January 16 »
So this is heading to 100 units then! :)


We'll see, maybe the second batch will be smaller if there aren't much more orders. But I guess there may be a new wave of interested buyers for each new software supporting the board, so now that OffseT and Prodatron are working on that, let's see what happens!

Offline Dizrythmia

  • CPC6128
  • ****
  • Posts: 208
  • Country: au
    • Retrospekt
  • Liked: 99
  • Likes Given: 57
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #187 on: 04:43, 11 January 16 »

We'll see, maybe the second batch will be smaller if there aren't much more orders. But I guess there may be a new wave of interested buyers for each new software supporting the board, so now that OffseT and Prodatron are working on that, let's see what happens!
No offense, but that's what I'm waiting for. I'm sure it's an amazing piece of kit but I want to see what software support ends up happening with it first :)

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #188 on: 10:28, 11 January 16 »
Yes, I'm actually quite suprised that 50 people are ready to order the board even if it was clearly mentionned that it currently comes with no software.


Some news on the "batch 1" boards:
The PCBs are on the way from China. I also ordered the missing components during the week-end.


And, I have to fixup the pricing. I soled the prototypes for 20 euros or 24 euros with tracked shipping. However, I will have to raise the price a bit for the final version. The change covers for:
  • Increase of postal fees on 1st of january: tracked shipping now costs me 5.60 euros
  • Extra components on the board: the activity LED and its matching resistor
  • And of course, the time spent assembling the boards, and the tools (solder wire, flux pen, etc) required, the electricity for the soldering iron, a new battery for my multimeter, etc
  • Possible changes in $/€ change rate, paypal fees if you pay using Paypal, etc

So, the price will be:
  • 30 euros including international tracked shipping
  • 25 euros including non-tracked shipping
This is as was originally announced in the first post.

If you already paid for your boards, no need to adjust anything - christmas rebate for you! This only applies to payments made from now on.

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 212
  • Likes Given: 215
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #189 on: 12:11, 11 January 16 »
Yes, I'm actually quite suprised that 50 people are ready to order the board even if it was clearly mentionned that it currently comes with no software.

A community that is enthusiastic for new hardware can only be good - maybe it's because there's been so much good new hardware lately. Anyway, the board is more likely to get software support when >50 people have one :D. Also, it seems like quite minimal software effort (comparatively) is needed to get access to FAT USB/SD drives.

Offline reidrac

  • Supporter
  • 6128 Plus
  • *
  • Posts: 691
  • Country: gb
  • Trying to gamedev!
    • index.php?action=treasury
    • usebox.net
  • Liked: 1186
  • Likes Given: 729
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #190 on: 12:31, 11 January 16 »
Yes, I'm actually quite suprised that 50 people are ready to order the board even if it was clearly mentionned that it currently comes with no software.

There's always the option to wait until someone else cracks the problem, but when you said we had to write drivers, I assumed that the hardware comes with documentation to do that.

Is there any chance to get some docs to look at before the hardware is ready?

I fancy giving it a go myself (given the time); and I assume that there's a risk obviously (hardware with no software, there's a chance that it won't do what it says on the tin).
Released The Return of Traxtor, Golden Tail, Magica and The Dawn of Kernel for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #191 on: 21:15, 11 January 16 »
There is some documentation available.

Some basic description of the hardware and wiring:
Shinra Team

The datasheets for the components:
[ul]
[/ul]

A test program I wrote in BASIC (with access to SD and USB and reading the root directory entries):
http://pulkomandy.tk/drop/ch376.bas

The general workflow is (not all steps are used for all commands):
[ul]
  • Send a command byte
  • Send parameters
  • Wait for INTERRUPT (either a real interrupt if you setup the interrupt routing on Albireo, or polling bit 7 of the status register)
  • Use command 22 to get operation status
  • Use command 27 to get result data
[/ul]

Of course, if you have questions, I can try to answer them.

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #192 on: 10:10, 13 January 16 »
Information about payments
Please wait until I contact you with payment info (I will do so when I have a board ready to ship for you).I don't want to receive payments too much in advance then have people waiting on me to ship the boards. I would then have to handle the pressure of everyone waiting, and also possibly cancelling and rescheduling orders and whatnot. So I prefer that you pay only when your board is ready to ship. Thanks for your patience!

You can pay either using paypal or a bank account transfer. The price is 25 euros, or 30 euros if you want tracked shipping.
If you want, you can order multiple boards. However, I will try to get the boards in the hand of as much people as possible, so I may delay shipping of your second (and third, ...) boards.

If there is a hardware problem, you can send the board back to me and I'll fix or replace it. So don't worry about getting a prototype. (and if you get a final version, I will do the same, because I don't want the boards to be thrown away in case of problems).

Already shipped (with tracking numbers for those who chosen tracked shipping)
Batch 1 waiting list
Status: the PCBs have been ordered, it can take a few weeks before I get them. I have parts of the components to solder, and will order the remaining part when the PCBs are shipped.
  • 4 - cpcmaniaco (x1, prototype board)
  • 5 - ||C||-||E||
  • 6 - majikeyric (x1)
  • 7 - CraigsBar (x1)
  • 8 - TFM (x1)
  • 9 - pelrun
  • 10 - Optimus
  • 11 - Ast
  • 12 - tonio8bits (x2)
  • 14 - hsimpson
  • 15 - SOS
  • 16 - Audronic
  • 17 - gros_minet
  • 18 - Fessor
  • 19 - Sykobee (Briggsy)
  • 20 - skywalky
  • 21 - Jungsi
  • 22 - Poliander
  • 23 - Yannis_uno
  • 24 - Rennert
  • 25 - HAL6128
  • 26 - Joseman
  • 27 - Tai
  • 28 - Grim
  • 29 - reidrac
  • 30 - cosa_nostra_6128
  • 31 - Targhan
  • 32 - oratyper
  • 33 - NiNxPe
  • 34 - Vandalsk (x2)
  • 36 - Dirtybb
  • 37 - Dubliner
  • 38 - ronaldo (x2)
  • 40 - cpcmaniaco (x1)
  • 41 - Munchausen (x2)
  • 43 - jrodriguezv (x2)
  • 45 - netmercer
  • 46 - Shining
  • 47 - archosmo
  • 48 - awergh
  • 49 - wilco2009
  • 50 - dodogildo
  • 51 - Apollo (x2)
  • 53 - dxs
  • 54 - AlexD
  • 55 - jaime
Batch 2 waiting list
Status: Nothing done yet.
  • 56 - majikeyric (second board)
  • 57 - CraigsBar (second board)
  • 58 - TFM (second board)
  • 59 - (awaiting orders...)

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 491
  • Country: de
    • index.php?action=treasury
  • Liked: 243
  • Likes Given: 1213
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #193 on: 22:26, 13 January 16 »
Some basic description of the hardware and wiring:
Shinra Team
...
A test program I wrote in BASIC (with access to SD and USB and reading the root directory entries):
http://pulkomandy.tk/drop/ch376.bas

The general workflow is (not all steps are used for all commands):
[ul]
  • Send a command byte
  • Send parameters
  • Wait for INTERRUPT (either a real interrupt if you setup the interrupt routing on Albireo, or polling bit 7 of the status register)
  • Use command 22 to get operation status
  • Use command 27 to get result data
[/ul]

Of course, if you have questions, I can try to answer them.
At first sight it looks very easy in handling it, even in BASIC (...I'm really not a very advanced nor a good programmer). Therefore my question: I understand the polling principle? During polling I'm not able to do anything parallel, because I always check some status bits. "Waiting for an interrupt" sounds for me, that I'm able to do other things and an interrupt interrupts my program somewhere? How do my program know if an interrupt emerge? Is it possible to do that in BASIC? (Is this a stupid question?)
...proudly supported Schnaps Demo and Pentomino, NQ-Music-Disc with GFX

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #194 on: 09:50, 14 January 16 »
It will be difficult to use the interrupts from pure BASIC, because it makes no plans for external interrupts (you only have the AFTER and EVERY statements, but these are not enough as they are designed to wait for the Gate Array interrupts).


As the first boards are being delivered, I got questions about the SD card socket. It is not a push/push or push/pull type as usual. You need to unlock it by pulling it towards the top of the board, theen lift it open like this: http://www.digikey.com/-/media/Images/Product%20Highlights/H/Hirose%20Electric%20Co%20Ltd/Hirose%20DM3CS%20Connector/hirose-dm3cs-2.jpg?la=en&ts=385828a8-3d05-4bba-ad73-95667476d7eb . Then you insert the microSD card and close it.

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #195 on: 16:37, 17 January 16 »
Hi,
This week-end I have updated the documentation page and wrote a new test program. It all happens at Shinra Team.

What you will find (towards the bottom of the page):
  • A rough translation (with lots of help from Google Translate) of CH376DS2.pdf. This is the low-level commands to control USB. The translation does not make a lot of sense yet, but,
  • An extension of my previous BASIC listing testing the use of a standard USB mouse (with 3 buttons and scroll wheel). Even with this simple BASIC test, the mouse seems to reply quite nicely. The CH376 can be configured to interrupt the z80 only when something changes (buttons or mouse position), and the mouse will report by how much it has moved since last time, so the reply to the interrupts needs not be very fast.

Of course, while the mouse is used, no access to mass storage is possible (you need to remove the USB drive to plug the mouse, and the CH376 can only drive either the USB port or the SD card, but not both at the same time). I hope everyone is ok with no mouse moves while there is disk activity?

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #196 on: 02:11, 18 January 16 »
Can't wait to work with it  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 212
  • Likes Given: 215
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #197 on: 09:41, 18 January 16 »
Of course, while the mouse is used, no access to mass storage is possible (you need to remove the USB drive to plug the mouse, and the CH376 can only drive either the USB port or the SD card, but not both at the same time). I hope everyone is ok with no mouse moves while there is disk activity?

So you can't have a hub and multiple devices?

Sounds like really useful example code :)

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #198 on: 12:26, 18 January 16 »
I haven't tried plugging an hub yet. I think it can work, but maybe not at the same time as the internal mass storage/fat32 driver.
In the example code for the mouse you can see there is a "set address" step. The idea is that when a device is plugged on a hub, you need to assign it an (unique) address. Then you can use this address to talk to the device. the default address for newly plugged devices is always 0. There is apparently some way for one device to get address 0, until it is configured. Then, you can use address 0 to configure the next device, and so on.
I will have to experiment more with that to decide what works and what doesn't.

Offline PulkoMandy

  • 464 Plus
  • *****
  • Posts: 338
  • Country: fr
  • Liked: 269
  • Likes Given: 1
Re: Albireo - USB/SD/Serial interface for CPC
« Reply #199 on: 10:31, 23 January 16 »

Information about payments
Please wait until I contact you with payment info (I will do so when I have a board ready to ship for you).I don't want to receive payments too much in advance then have people waiting on me to ship the boards. I would then have to handle the pressure of everyone waiting, and also possibly cancelling and rescheduling orders and whatnot. So I prefer that you pay only when your board is ready to ship. Thanks for your patience!


You can pay either using paypal or a bank account transfer. The price is 25 euros, or 30 euros if you want tracked shipping.
If you want, you can order multiple boards. However, I will try to get the boards in the hand of as much people as possible, so I may delay shipping of your second (and third, ...) boards.


If there is a hardware problem, you can send the board back to me and I'll fix or replace it. So don't worry about getting a prototype. (and if you get a final version, I will do the same, because I don't want the boards to be thrown away in case of problems).


Already shipped (with tracking numbers for those who chosen tracked shipping)

Please let me know when your board is delivered!

Batch 1 waiting list
Status: 50 PCBs received. I have the components to assemble 25 boards (about one per day, if I do this in the evening), and I will order more components once these 25 first are assembled and shipped.
  • 12! - Optimus
  • 13! - Ast
  • 14! - tonio8bits (x2)
  • 16 - CraigsBar (x1)
  • 17 - gros_minet
  • 18 - Fessor
  • 19 - Sykobee (Briggsy)
  • 20 - skywalky
  • 21 - Jungsi
  • 22 - Poliander
  • 23 - Yannis_uno
  • 24 - Rennert
  • 25 - HAL6128
  • 26 - Joseman
  • 27 - Tai
  • 28* - Grim
  • 29 - reidrac
  • 30 - cosa_nostra_6128
  • 31 - Targhan
  • 32 - oratyper
  • 33 - NiNxPe
  • 34 - Vandalsk (x2)
  • 36 - Dirtybb
  • 37 - Dubliner
  • 38 - ronaldo (x2)
  • 40~ - cpcmaniaco (x1)
  • 41 - Munchausen (x2)
  • 43 - jrodriguezv (x2)
  • 45 - netmercer
  • 46 - Shining
  • 47 - archosmo
  • 48 - awergh
  • 49 - wilco2009
  • 50 - dodogildo
  • 51 - Apollo (x2)
  • 53 - dxs
  • 54 - AlexD
  • 55 - jaime
Batch 2 waiting list
Status: Nothing done yet.
  • 56 - majikeyric (second board)
  • 57 - CraigsBar (second board)
  • 58 - TFM (second board)
  • 59 - (awaiting orders...)
« Last Edit: 10:23, 13 February 16 by PulkoMandy »