From: Valters V. <va...@in...> - 2002-02-08 17:23:17
|
Super. Just send me the full archive of your source code, and I will merge your changes into CVS and will release new source package! Asif Hamza wrote: >Hi guys > >As mentioned before, I was able to send a 4 Meg mp3 to the > player. I listened to it 4 times, trying to hear if there > were any discrepancies, but it played perfectly! > >Last night I started implementing the download file > commands. Nothing fancy, just copied the same framework > you guys used and altered the commands being sent to match > those in the protocol document. > >I ran into a small problem: I sent the name of the file to > download, get the acknowledgement, then send the read > command. The nomad screen says "Reading file" . But when I > try to read the data, nothing happens! The nomad screen > changes to "Waiting" for a while, then returns to normal! > >Valters, could you send me the details of your reverse > engineering. I have soft-ce, and would like to sort out > this problem! Could you send me the file in which the low > level commands are, as well as any other details, if you > can!! > >Anyway, the change log as promised! > >1) Altered #include "ecp_linux.h" to #include "ecp_win32.h" > in cmd.h and ecp_win32.cpp > >2) Removed all the #include <netinet/in.h> > >3) Removed all the DeviceIoControl commands. > ecp_win32::open now only calls CreateFile > >4) Removed all ::ioctl commands. ecp_win32::close was > altered to call CloseHandle with the handle returned by > CreateFile as paramater > >5) Commented out the contents of const char *ModeString > (USHORT mode). Both VC++ 6.0 and Borland Builder 5 don't > recognise these commands. > >6) Added class member int m_fd to class ecp_port int > ecp_win32.h > >7) Changed all size_t to unsigned > >8) Altered the contents of ecp_port::read to referance the > given variables buf and count instead of the undefined > o_buf & i_len > >9) Added DWORD dwBytesReturned; to ecp_port::read and > ecp_port::write as these were used and not declared > >10) In player.cpp, function bool player::list_files(), the > statement printing out the free internal memory, was > in an unreachable section of code. > >Some changes do to my compiler( I started using gcc using > Cygwin, moved to VC++ 6, and finally settled on Borland > builder 5) > >Compiler specific changes: >1) Changed class log to class Log > >Thats about it!! I'll send you all the source code > tomorrow. >I'm not confidant of checking it into CVS myself. >Also, since I'm using C++ Builder 5, I don't want to > introduce any bugs that may affect the other platforms. > > > > > > > >== >Brought to you by Ananzi Shopping for Valentines Day specials, competitions and free goodies! >[http://www.ananzishopping.co.za] > > > |