Thanks a lot FireBird. I'll try that today.If I understand you correctly, infData_Set() will do what youre looking for.
Adding data to INF
-
- WebController
- Beiträge: 472
- Registriert: Di 7. Mai 2013, 05:11
- Wohnort: Australia
AW: Adding data to INF
-
- WebController
- Beiträge: 472
- Registriert: Di 7. Mai 2013, 05:11
- Wohnort: Australia
AW: Adding data to INF
I have tested infData_isAvail(), infData_Get(), infData_Delete() and infData_Set() in my TAP today and all appear to be functioning as advertised.
I have not yet used infData_Set() to update data in place, when I do I'll post an update.
I even used infData_Set() and then did a "Make Snapshot" and the infData remained intact.
Thanks again FireBird.
I have not yet used infData_Set() to update data in place, when I do I'll post an update.
I even used infData_Set() and then did a "Make Snapshot" and the infData remained intact.
Thanks again FireBird.

-
- WebController
- Beiträge: 472
- Registriert: Di 7. Mai 2013, 05:11
- Wohnort: Australia
AW: Adding data to INF
I can't seem to read infData from a recording on external media.
I use infData_Set() while the recording is still local. Then I copy (all 3 files INF/MPG/NAV) to an external USB drive.
The INF is there and recognised because I can see the standard Topfield info box.
I tried both TAP_Hdd_ChangeDir() and chdir() to set the "current" directory before attempting infData_isAvail() / infData_Get(), but neither would allow me to read the infData.
When I call HDD_GetAbsolutePathByTypeFileUTF8() using playInfo.file, it returns the entire path as I expect, "/mnt/sdb1/Archives/<My Recording>.mpg.inf".
I expected TAP_Hdd_ChangeDir() to fail, and it did with a return code = 1.
I have tested the return code for chdir() and the function returns 0 (success). I have even tested with a deliberately wrong directory and got -1, so I'm pretty sure that chdir() is working.
Is it possible that in order to support external media, this module will have to use standard C file I/O functions instead of the TAP API I/O functions? Or have I done something wrong?
I use infData_Set() while the recording is still local. Then I copy (all 3 files INF/MPG/NAV) to an external USB drive.
The INF is there and recognised because I can see the standard Topfield info box.
I tried both TAP_Hdd_ChangeDir() and chdir() to set the "current" directory before attempting infData_isAvail() / infData_Get(), but neither would allow me to read the infData.
When I call HDD_GetAbsolutePathByTypeFileUTF8() using playInfo.file, it returns the entire path as I expect, "/mnt/sdb1/Archives/<My Recording>.mpg.inf".
I expected TAP_Hdd_ChangeDir() to fail, and it did with a return code = 1.
I have tested the return code for chdir() and the function returns 0 (success). I have even tested with a deliberately wrong directory and got -1, so I'm pretty sure that chdir() is working.
Is it possible that in order to support external media, this module will have to use standard C file I/O functions instead of the TAP API I/O functions? Or have I done something wrong?
Zuletzt geändert von DeltaMikeCharlie am Do 16. Mai 2013, 07:48, insgesamt 1-mal geändert.
- FireBird
- Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
- Beiträge: 28983
- Registriert: Fr 9. Dez 2005, 09:59
- Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k - Wohnort: Wien
AW: Adding data to INF
The TAP API doesn't work outside of the /mnt/hd mount point. The only chance you have is to mount an external drive below that point. It is possible to work around the API but that will take some time because I’m currently busy with a different project.