Giter Site home page Giter Site logo

vuori / linux-minidisc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linux-minidisc/linux-minidisc

43.0 43.0 9.0 6.91 MB

Free software for accessing MiniDisc devices (fork with NetMD fixes—use upstream for HiMD devices)

License: GNU General Public License v2.0

Makefile 0.02% C 48.94% QMake 1.13% Shell 1.28% Python 25.63% CMake 0.15% Perl 0.08% Prolog 4.56% C++ 18.21%

linux-minidisc's People

Contributors

adam820 avatar aisopous avatar alexanders avatar andriynavr avatar andyboeh avatar danielbsp avatar duratarskeyk avatar glaubitz avatar invictaz avatar karcherm avatar liquidxd avatar martencassel avatar martinvican avatar martinwguy avatar mistydemeo avatar morgansleeper avatar nix-pepe avatar pixelkaiser avatar pkslot avatar subfusc avatar tharp avatar thp avatar ticky avatar vpelletier avatar vuori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-minidisc's Issues

Write does not seem to complete correctly

When writing a track, it appears to not finalize the write properly. My NetMD device seems to be waiting for something else from the host that isn't sent.

➜  netmdcli git:(master) ✗ ./netmdcli -v send ~/Desktop/Track.wav
Net MD Walkman
Raw title:
Disc Title: <Untitled>

audio file size : 39522976 bytes
supported audio file detected
data chunk position at 152
audio data size read from file :           39522816 bytes
audio data size calculated from file size: 39522816 bytes
netmd_acquire_dev: Unknown Error
netmd_secure_leave_session : No error
netmd_secure_set_track_protection : No error
netmd_secure_enter_session : No error
netmd_secure_send_key_data : No error
netmd_secure_session_key_exchange : No error
netmd_secure_setup_download : No error
generating packet 1 : 1048552 bytes
generating packet 2 : 1048576 bytes
generating packet 3 : 1048576 bytes
generating packet 4 : 1048576 bytes
generating packet 5 : 1048576 bytes
generating packet 6 : 1048576 bytes
generating packet 7 : 1048576 bytes
generating packet 8 : 1048576 bytes
generating packet 9 : 1048576 bytes
generating packet 10 : 1048576 bytes
generating packet 11 : 1048576 bytes
generating packet 12 : 1048576 bytes
generating packet 13 : 1048576 bytes
generating packet 14 : 1048576 bytes
generating packet 15 : 1048576 bytes
generating packet 16 : 1048576 bytes
generating packet 17 : 1048576 bytes
generating packet 18 : 1048576 bytes
generating packet 19 : 1048576 bytes
generating packet 20 : 1048576 bytes
generating packet 21 : 1048576 bytes
generating packet 22 : 1048576 bytes
generating packet 23 : 1048576 bytes
generating packet 24 : 1048576 bytes
generating packet 25 : 1048576 bytes
generating packet 26 : 1048576 bytes
generating packet 27 : 1048576 bytes
generating packet 28 : 1048576 bytes
generating packet 29 : 1048576 bytes
generating packet 30 : 1048576 bytes
generating packet 31 : 1048576 bytes
generating packet 32 : 1048576 bytes
generating packet 33 : 1048576 bytes
generating packet 34 : 1048576 bytes
generating packet 35 : 1048576 bytes
generating packet 36 : 1048576 bytes
generating packet 37 : 1048576 bytes
last packet: packet_data_length=725528 + frame_padding=1536 = chunksize=727064
generating packet 38 : 727064 bytes
netmd_prepare_packets : No error
total transfer size : 39524376 bytes, 19299 frames of 2048 bytes
1048576 of 39524376 bytes (2%) transferred (1048576 of 1048576 bytes in packet)
2097152 of 39524376 bytes (5%) transferred (1048576 of 1048576 bytes in packet)
3145728 of 39524376 bytes (7%) transferred (1048576 of 1048576 bytes in packet)
4194304 of 39524376 bytes (10%) transferred (1048576 of 1048576 bytes in packet)
5242880 of 39524376 bytes (13%) transferred (1048576 of 1048576 bytes in packet)
6291456 of 39524376 bytes (15%) transferred (1048576 of 1048576 bytes in packet)
7340032 of 39524376 bytes (18%) transferred (1048576 of 1048576 bytes in packet)
8388608 of 39524376 bytes (21%) transferred (1048576 of 1048576 bytes in packet)
9437184 of 39524376 bytes (23%) transferred (1048576 of 1048576 bytes in packet)
10485760 of 39524376 bytes (26%) transferred (1048576 of 1048576 bytes in packet)
11534336 of 39524376 bytes (29%) transferred (1048576 of 1048576 bytes in packet)
12582912 of 39524376 bytes (31%) transferred (1048576 of 1048576 bytes in packet)
13631488 of 39524376 bytes (34%) transferred (1048576 of 1048576 bytes in packet)
14680064 of 39524376 bytes (37%) transferred (1048576 of 1048576 bytes in packet)
15728640 of 39524376 bytes (39%) transferred (1048576 of 1048576 bytes in packet)
16777216 of 39524376 bytes (42%) transferred (1048576 of 1048576 bytes in packet)
17825792 of 39524376 bytes (45%) transferred (1048576 of 1048576 bytes in packet)
18874368 of 39524376 bytes (47%) transferred (1048576 of 1048576 bytes in packet)
19922944 of 39524376 bytes (50%) transferred (1048576 of 1048576 bytes in packet)
20971520 of 39524376 bytes (53%) transferred (1048576 of 1048576 bytes in packet)
22020096 of 39524376 bytes (55%) transferred (1048576 of 1048576 bytes in packet)
23068672 of 39524376 bytes (58%) transferred (1048576 of 1048576 bytes in packet)
24117248 of 39524376 bytes (61%) transferred (1048576 of 1048576 bytes in packet)
25165824 of 39524376 bytes (63%) transferred (1048576 of 1048576 bytes in packet)
26214400 of 39524376 bytes (66%) transferred (1048576 of 1048576 bytes in packet)
27262976 of 39524376 bytes (68%) transferred (1048576 of 1048576 bytes in packet)
28311552 of 39524376 bytes (71%) transferred (1048576 of 1048576 bytes in packet)
29360128 of 39524376 bytes (74%) transferred (1048576 of 1048576 bytes in packet)
30408704 of 39524376 bytes (76%) transferred (1048576 of 1048576 bytes in packet)
31457280 of 39524376 bytes (79%) transferred (1048576 of 1048576 bytes in packet)
32505856 of 39524376 bytes (82%) transferred (1048576 of 1048576 bytes in packet)
33554432 of 39524376 bytes (84%) transferred (1048576 of 1048576 bytes in packet)
34603008 of 39524376 bytes (87%) transferred (1048576 of 1048576 bytes in packet)
35651584 of 39524376 bytes (90%) transferred (1048576 of 1048576 bytes in packet)
36700160 of 39524376 bytes (92%) transferred (1048576 of 1048576 bytes in packet)
37748736 of 39524376 bytes (95%) transferred (1048576 of 1048576 bytes in packet)
38797312 of 39524376 bytes (98%) transferred (1048576 of 1048576 bytes in packet)
39524376 of 39524376 bytes (100%) transferred (727064 of 727064 bytes in packet)
netmd_transfer_song_packets : transfer took 112 seconds (344 kB/sec)
netmd_secure_send_track : No error
New Track: 0
netmd_exch_message: netmd_poll failed
netmd_secure_commit_track failed : Unknown Error
netmd_secure_session_key_forget : No error
netmd_secure_leave_session : No error
netmd_release_dev : Unknown Error

Everything seems to work up until New Track: 0, at which point my device flashes Edit, and the applications seems to halt. After several seconds, netmdcliresponds with the rest of the log above, and the device is stuck in write mode with Edit on the display. In some cases, if I kill power to the device the track appears to be written and can play but might be corrupt leading to problems with reading when re-staring the device (the longer the device is powerd up, the longer it takes for the device to read the disk when it re-starts) It seems like the device just continues writing garbage after netmdcli kills the connection.

If I do manage to successfully write a single track, I can't seem to write subsequent tracks at any point after without erasing the disk.

Device is a MZ-N420D for what it's worth.

netmdcli commands dont seem permanent.

I've been playing a bit with netmdcli but none of my command seems to be 'permanent', even if the -v flag indicates something might be happening. For instance, I'm trying to wipe an MD in order to move some new files onto it:

'''
[13:09:05 last:0s ~/linux-minidisc/netmdcli] ./netmdcli
Net MD Walkman
Raw title: Tryntje Oosterhuis for once in my life
Disc Title: Tryntje Oosterhuis for once in my life

Track 0: UnPROT UNKNOWN - 00:47:56 - You will know
Track 1: UnPROT UNKNOWN - 04:00:23 - I wish
Track 2: UnPROT UNKNOWN - 04:04:69 - I was made to love him
Track 3: UnPROT UNKNOWN - 03:48:37 - Pastime paradise
Track 4: UnPROT UNKNOWN - 03:37:31 - Don't you worry 'bout a thing
Track 5: UnPROT UNKNOWN - 02:37:44 - Lately
Track 6: UnPROT UNKNOWN - 01:30:48 - Overjoyed
Track 7: UnPROT UNKNOWN - 03:17:60 - For once in my life
Track 8: UnPROT UNKNOWN - 05:01:12 - All i do
Track 9: UnPROT UNKNOWN - 05:05:42 - Higher grond
Track 10: UnPROT UNKNOWN - 05:01:74 - Living for the city
Track 11: UnPROT UNKNOWN - 05:30:21 - These 3 words
Track 12: UnPROT UNKNOWN - 04:59:04 - Love in need of love today
Track 13: UnPROT UNKNOWN - 04:48:48 - Sire Duke
Track 14: UnPROT UNKNOWN - 03:14:06 - Signed,Sealed delivered i'm yours
Track 15: UnPROT UNKNOWN - 03:28:16 - Superstition
Track 16: UnPROT UNKNOWN - 12:42:43 - Do i do
Track 17: UnPROT UNKNOWN - 01:24:02 -

--Empty Groups--

[13:09:44 last:0s ~/linux-minidisc/netmdcli] ./netmdcli -v delete 1 17
Net MD Walkman
Raw title: Tryntje Oosterhuis for once in my life
Disc Title: Tryntje Oosterhuis for once in my life

delete: removing track 17
delete: removing track 16
delete: removing track 15
delete: removing track 14
delete: removing track 13
delete: removing track 12
delete: removing track 11
delete: removing track 10
delete: removing track 9
delete: removing track 8
delete: removing track 7
delete: removing track 6
delete: removing track 5
delete: removing track 4
delete: removing track 3
delete: removing track 2
delete: removing track 1
[13:09:49 last:0s ~/linux-minidisc/netmdcli] ./netmdcli
Net MD Walkman
Raw title: Tryntje Oosterhuis for once in my life
Disc Title: Tryntje Oosterhuis for once in my life

Track 0: UnPROT UNKNOWN - 00:47:56 - You will know
Track 1: UnPROT UNKNOWN - 04:00:23 - I wish
Track 2: UnPROT UNKNOWN - 04:04:69 - I was made to love him
Track 3: UnPROT UNKNOWN - 03:48:37 - Pastime paradise
Track 4: UnPROT UNKNOWN - 03:37:31 - Don't you worry 'bout a thing
Track 5: UnPROT UNKNOWN - 02:37:44 - Lately
Track 6: UnPROT UNKNOWN - 01:30:48 - Overjoyed
Track 7: UnPROT UNKNOWN - 03:17:60 - For once in my life
Track 8: UnPROT UNKNOWN - 05:01:12 - All i do
Track 9: UnPROT UNKNOWN - 05:05:42 - Higher grond
Track 10: UnPROT UNKNOWN - 05:01:74 - Living for the city
Track 11: UnPROT UNKNOWN - 05:30:21 - These 3 words
Track 12: UnPROT UNKNOWN - 04:59:04 - Love in need of love today
Track 13: UnPROT UNKNOWN - 04:48:48 - Sire Duke
Track 14: UnPROT UNKNOWN - 03:14:06 - Signed,Sealed delivered i'm yours
Track 15: UnPROT UNKNOWN - 03:28:16 - Superstition
Track 16: UnPROT UNKNOWN - 12:42:43 - Do i do
Track 17: UnPROT UNKNOWN - 01:24:02 -

--Empty Groups--

[13:09:51 last:0s ~/linux-minidisc/netmdcli]
'''

I hope it is clear what I mean. I first tried the netmdcli command as provided by the Ubuntu 18.04 repo, and then I compiled your fork and tried with that. I also tried as super user. Any idea?

netmdcli [abort] message

Thanks for all the work maintaining this package! I'm creating a GUI which is fairly complete now, but I'm having an issue with the tracklisting of netmdcli aborting with SIGABRT.

Net MD Walkman
Raw title:
Disc Title: <Untitled>

Track  0: UnPROT    LP2 - 03:41:20 - TRACK1
Track  1: UnPROT    LP2 - 02:32:11 - TRACK2

--Empty Groups--


[1]    69862 abort      ./netmdcli

Running on MacOS Mojave. Every other netmdcli command seems to work fine.
Any ideas or help you could give me would be awesome.

Suddenly error connecting to device

After a day fiddling and recording a few disks, a few hours ago I kept consistently getting the following error when trying to use the netmdcli command:

$ ~/sync/code/linux-minidisc/netmdcli/netmdcli -v -t
Error opening netmd
Error while opening the USB device

On the MD unit the normal PC->MD message appears, but no command results in any other message, whereas a few hours ago that was no problem. I rebooted a few times, changed disks, turn the MD unit off and on, replugged many times, always the same result. I even left it off for an hour or so.

Is there possibly any state on the computer that interferes? Did I fry the unit?

Building on Ubuntu 18.04

Had to do a few things extra; perhaps the README needs to be updated?

sudo apt-get install libgcrypt20-dev libglib2.0-dev libusb-1.0-0-dev qt4-qmake libid3tag0-dev libmad0-dev
qmake -qt=qt4 CONFIG+=without_mad CONFIG+=without_gui

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.