Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

DB export question in FlexLib

rfoust
rfoust Member ✭✭
edited March 2017 in SmartSDR API
I'm trying to follow the database export code in FlexLib and I think maybe I'm not understanding something right.  It looks like Private_GetSSDRDatabaseFile() is supposed to pull the files from the radio and save them locally, but at the top of that function, it calls Private_SendMetaSubsetFile() which appears to want to send a file TO the radio?
 private void Private_GetSSDRDatabaseFile(object obj)        {
            List<string> path_list = (List<string>)obj;
            DatabaseExportComplete = false;
            _metaSubsetTransferComplete = false;
            /* Index 0 contains the meta_subset path */
            Private_SendMetaSubsetFile(path_list[0]);
            int timeout = 0;
            while (_metaSubsetTransferComplete == false && timeout < 50)
            {
                Thread.Sleep(100);
                timeout++;
            }

Answers

  • Steve-N5AC
    Steve-N5AC Community Manager admin
    edited March 2017
    The meta_subset is file that has the request for the data to be pulled from the radio.  When you perform the export, you check specific items that you want to export in the client.  Those selections go in the file.
  • rfoust
    rfoust Member ✭✭
    edited December 2016
    Oh ok, I see.  There is a meta_subset file in the zip file that comes back, is that the same one that got sent to the radio?

    Edit: oh the file in the zip is actually meta_data not meta_subset. Same thing?
  • Steve-N5AC
    Steve-N5AC Community Manager admin
    edited December 2016
    One file goes to the radio asking for data, different file with data comes back
  • rfoust
    rfoust Member ✭✭
    edited December 2016
    Awesome, got it working. Piece of cake! :-)  Thanks!
    C:scripts> (get-flexradio).receivessdrdatabasefile("c:scriptsmeta_data","c:scripts",$true) C:scripts> ls       Directory: C:scripts   Mode                LastWriteTime         Length Name ----                -------------         ------ ---- -a----        3/20/2015  12:11 PM            135 meta_data   C:scripts> ls       Directory: C:scripts   Mode                LastWriteTime         Length Name ----                -------------         ------ ---- -a----        3/20/2015  12:11 PM            135 meta_data -a----        3/20/2015  12:13 PM          44175 SSDR_Config_03-20-15_12.13_PM.ssdr_cfg -a----        3/20/2015  12:13 PM            258 SSDR_Memories_03-20-15_12.13_PM.csv   C:scripts>

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.