Go to advanced search

by johnlane
Sat Mar 09, 2019 10:12 am
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 6
Views: 375

Re: MIDI UART Interface using 6N138 Optocoupler

Well it turns out that the problem is the software. I wrote my own test program in a few lines of Python to dump the byte stream and noticed that there were MIDI Clock (0xF8 = 248) status bytes in the stream and these were not handled neither by the Python example nor ttymidi. In fact, they just ser...
by johnlane
Thu Mar 07, 2019 9:08 am
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 6
Views: 375

Re: MIDI UART Interface using 6N138 Optocoupler

@silverlock, I took out the 10K resistor and it behaves exactly the same. I also tried different values for R2 and R3 but only succeeded in making it not work at all. I don't understand the choice of value for those resistors. In case it helps shed any light, here is the 6N138 datasheet . I bought a...
by johnlane
Thu Mar 07, 2019 12:06 am
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 6
Views: 375

MIDI UART Interface using 6N138 Optocoupler

Hello, I have been experimenting with MIDI on the Pi and my latest endaevour has been to input MIDI through the UART (instead of taking the easy option of a USB dongle). I have breadboarded the circuit below and it does work but it is very slow and solving that is what I hope someone may be able to ...
by johnlane
Fri Feb 01, 2019 9:32 am
Forum: Graphics, sound and multimedia
Topic: Timidity output device
Replies: 9
Views: 866

Re: Timidity output device

I thought I'd have a trawl through the source code and, from what I can tell (at least with the 2.15.0 sources ), the only way to control the output device is to use the "TIMIDITY_PCM_NAME" environment variable. I could not find any mention whatsoever of neither "plughw" nor "audio.alsa.device" anyw...
by johnlane
Thu Jan 31, 2019 9:06 pm
Forum: Graphics, sound and multimedia
Topic: Timidity output device
Replies: 9
Views: 866

Re: Timidity output device

Hey, well passing "audio.alsa.device=hw:1" didn't work for me. But this did: $ TIMIDITY_PCM_NAME=hw:1 timidity -iA -Os Found that when searching the net for "audio.alsa.device", it does not appear to be documented on the man page. My version of Timidity is "TiMidity++ version 2.15.0", I am running A...
by johnlane
Wed Jan 30, 2019 8:15 pm
Forum: Graphics, sound and multimedia
Topic: Timidity output device
Replies: 9
Views: 866

Re: Timidity output device

Hi, here's my output: # cat /proc/asound/cards 0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA bcm2835 ALSA 1 [IQaudIODAC ]: IQaudIODAC - IQaudIODAC IQaudIODAC 2 [Interface ]: USB-Audio - USB MIDI Interface USB MIDI Interface at usb-3f980000.usb-1.3, full speed # grep ^soundfont /etc/timidity++/timidity.cfg ...
by johnlane
Tue Jan 29, 2019 9:48 pm
Forum: Graphics, sound and multimedia
Topic: Timidity output device
Replies: 9
Views: 866

Re: Timidity output device

Hi, thanks for your reply, but I can't get it to work. It works just fine with Fluidsynth but I cannot get sound out of Timidity (through the Dac, I can get sound via the onboard audio). My /proc/asound/cards 0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA bcm2835 ALSA 1 [IQaudIODAC ]: IQaudIODAC - IQaudIODA...
by johnlane
Mon Jan 14, 2019 10:22 am
Forum: Graphics, sound and multimedia
Topic: Timidity output device
Replies: 9
Views: 866

Timidity output device

I'm experimenting with MIDI on a Pi, I'm using a PiDac for audio output. I have a working setup using FluidSynth but wanted to try Timidity. However, I've been RTFM for some time on this but i cannot find an option to specify the output device. I need to specify the PiDac instead of the default outp...
by johnlane
Tue Sep 19, 2017 10:32 am
Forum: Troubleshooting
Topic: Pi Zero W identifying as "B Rev 2"
Replies: 20
Views: 5167

Re: Pi Zero W identifying as "B Rev 2"

For anyone else reading this thread after seeing the wrong hardware reported in `/proc/cpuinfo`, I saw this on a Zero and I believe it is due to the kernel version. Kernel 4.4 reports BCM2708 $ cat /proc/cpuinfo Hardware : BCM2708 $ uname -a Linux foo 4.4.48-2-ARCH #1 Mon Feb 13 19:53:47 MST 2017 ar...
by johnlane
Mon Feb 13, 2017 12:42 pm
Forum: General discussion
Topic: FCC Certification for Pi in a Box
Replies: 24
Views: 5626

Re: FCC Certification for Pi in a Box

I have a similar question, but more around CE, WEEE and RoHS marking in the EU (UK). I wondered, with all the maker activity surrounding the Raspberry Pi and similar products, how "cottage industry" projects handle the impact of certification requirements for products derived from certified products...
by johnlane
Wed Mar 04, 2015 9:49 am
Forum: General discussion
Topic: Performance of network file copying over SSH
Replies: 4
Views: 805

Re: Performance of network file copying over SSH

@wrankin, here are some stats for "scp" $ scp user@otherhost:/path/to/big/file . gave 1.9MB/s, and $ scp -C user@otherhost:/path/to/big/file . gave <500Kib/s (it varied betweeen mid-400s to mid-300s most of the time, settled down at around 380KiB/s). But, as @heater pointed out, it's an inappropriat...
by johnlane
Tue Mar 03, 2015 8:59 pm
Forum: General discussion
Topic: Performance of network file copying over SSH
Replies: 4
Views: 805

Performance of network file copying over SSH

I thought I'd share this... Normally if I want to copy a file I just do this $ scp user@otherhost:/path/to/remote/file /path/to/local/file It works and for most uses, it's fire and forget with no thought about network performance because it's fast enough . Now, I just had the need to transfer a litt...
by johnlane
Sat Feb 07, 2015 8:04 pm
Forum: Arch
Topic: Does "unshare --pid" work for you?
Replies: 3
Views: 1299

Re: Does "unshare --pid" work for you?

was that as root?
sorry should have stipulated that. thanks for replying.
by johnlane
Sat Feb 07, 2015 7:54 pm
Forum: Arch
Topic: Does "unshare --pid" work for you?
Replies: 3
Views: 1299

Does "unshare --pid" work for you?

I am trying to confirm the existence of a problem with unshare on ARM. Would anyone mind performing the below commands, as root if possible, and posting their results please? # zgrep CONFIG_PID_NS=y /proc/config.gz # unshare --pid ls # uname -srvmo My results are CONFIG_PID_NS=y unshare: unshare fai...
by johnlane
Sat Jan 10, 2015 7:52 pm
Forum: General discussion
Topic: connecting directly to ADSL
Replies: 12
Views: 2785

Re: connecting directly to ADSL

B.Goode - nice to see someone saw my comment re doing it for the fun of doing it :D The maplin site says "Full rate operation with up to 8 Mbps downstream data rate and up to 1 Mbps upstream". It also says "firmware updatable" whatever that means - there's no indication of what can be updated, etc. ...
by johnlane
Sat Jan 10, 2015 5:24 pm
Forum: General discussion
Topic: connecting directly to ADSL
Replies: 12
Views: 2785

Re: connecting directly to ADSL

I have a TG585 at the moment and I am sure that my Linux itables firewall and bind9 DNS wound run rings around it. One of the drivers for my wanting to do it myself is that the Thomson/Technicolor firmware is a load of rubbish and cannot be relied upon. My wired LAN is headed through a switch with 2...
by johnlane
Sat Jan 10, 2015 4:47 pm
Forum: General discussion
Topic: connecting directly to ADSL
Replies: 12
Views: 2785

connecting directly to ADSL

Hi, just thinking out load... has anyone connected their Pi directly to their ADSL? By "directly", I mean without going over ethernet but using a USB ADSL modem. These seem thin on the ground; the only one I've found is this one at Maplin. Can anyone share their experiences? Anyone used this specifi...
by johnlane
Sat Dec 27, 2014 8:21 pm
Forum: Arch
Topic: Whole disk encryption (dm-crypt) performance
Replies: 2
Views: 6250

Re: Whole disk encryption (dm-crypt) performance

Just an update for anyone interested, I ran some Phoronix benchmarks on an unencrypted system and one encrypted using LUKS to encrypt the whole disk including the root file system. I tried the default LUKS configuration (aes-xts-plain64 with a 256 bit key) and one with a longer 512-bit key. I used a...
by johnlane
Sat Nov 08, 2014 9:13 pm
Forum: Arch
Topic: Whole disk encryption (dm-crypt) performance
Replies: 2
Views: 6250

Whole disk encryption (dm-crypt) performance

Hello, just a quick question. Can anyone who has used dm-crypt to encrypt drives connected to the Raspberry-Pi please share their experieces, especially regarding performance? I am interested in encrypting systems running on a USB-attached hard drive including the root partition. I don't think it's ...
by johnlane
Tue Dec 03, 2013 9:48 am
Forum: General discussion
Topic: Share your 4TB hard-drive experiences
Replies: 8
Views: 3534

Re: Share your 4TB hard-drive experiences

Hi @bucker, the STBV4000200 is an interesting one but I don't need the whole enclosure thing - just a raw drive because I already have an enclosure for the drive and Pi board.

@texy - you've noticed that I am a time traveller. Good spot :lol: I've corrected the post - thanks for pointing that out.
by johnlane
Sun Dec 01, 2013 12:20 pm
Forum: General discussion
Topic: Share your 4TB hard-drive experiences
Replies: 8
Views: 3534

Share your 4TB hard-drive experiences

I am looking out for a 4TB hard drive to update my Raspberry Pi Server and it boils down to four drives. I wondered if anyone has experience they would be willing to share of using any of these drives with the Raspberry Pi, especially in an always-on (server) configuration. Western Digital WD40EFRX ...
by johnlane
Sat Nov 09, 2013 9:19 am
Forum: Arch
Topic: Ghost blogging platform on ArchLinux ARM
Replies: 2
Views: 3586

Re: Ghost blogging platform on ArchLinux ARM

Thanks, I have it working now. I still got an error "npm ERR! cb() never called", see below. > sqlite3@2.1.16 install /srv/ghost/node_modules/sqlite3 > node build.js [sqlite3]: Checking for http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v11-linux-arm.tar.gz [sqlite3]: http://n...
by johnlane
Fri Nov 08, 2013 6:58 pm
Forum: Arch
Topic: Ghost blogging platform on ArchLinux ARM
Replies: 2
Views: 3586

Ghost blogging platform on ArchLinux ARM

I've just tried to install Ghost on my Pi running Arch. I've seen a few people succeeding with this, but I've seen nothing about it on Arch Linux. When I do `npm install --production`. it fails after a while with > sqlite3@2.1.16 install /srv/ghost/node_modules/sqlite3 > node build.js [sqlite3]: Che...
by johnlane
Fri Sep 13, 2013 9:51 am
Forum: Arch
Topic: uprecords not persisting across a power outage
Replies: 1
Views: 970

uprecords not persisting across a power outage

Hello, not sure whether this falls into a Pi or Arch category but... If my Pi goes down unexpectedly no uprecords data is there when it is powered up again. Any suggestions?

version uptimed 0.3.17
by johnlane
Tue Jun 18, 2013 1:33 pm
Forum: HATs and other add-ons
Topic: SD card sticking out ? Use RSMMC
Replies: 56
Views: 28154

Re: SD card sticking out ? Use RSMMC

I found a 64MB RS-MMC card in a drawer. I thought "great, use it as a boot drive - everything else is on the hdd anyways". I prepped the card but it doesn't boot - same old three flashes routine. It isn't the prepping that's bad as I also tried it on a (smaller) SD card I had lying around. It's a sh...

Go to advanced search