Skip to main content
Visitor II
May 4, 2020
Solved

how to make serial communication?

  • May 4, 2020
  • 11 replies
  • 3281 views

Hi,

I bought ST25RU3993-EVAL board.I want to reading tag's id. Can I make serial communication? I write console "minicom" .Then i set baudrate=3000000 and 8N1 and no flow control. But there is no text in terminal. How to make serial communication?

    This topic has been closed for replies.
    Best answer by Cedric Dalban

    Hello Uyalc,

    all these checks (pretuning, autotuning, output power, receive gain management, ...) are quite easy to handle and modify with the Windows GUI.

    Unfortunately there is no equivalent of such GUI on Linux, you will have set all parameters manually.

    pretuning:

    The current demoEvalAPI.c does not contains such feature demo code.

    Please find attached STUHFL_demoInteractive.c (based on v2.1.0) updated with pre-tuning function (menu 't').

    Nota: depending on the selected pre-tuning algo you will have to play on resetFreqsTuning() value as a seed.

    autotuning:

      STUHFL_T_ST25RU3993_Gen2Inventory_Cfg invGen2Cfg;

      invGen2Cfg.autoTuningAlgo = TUNING_ALGO_FAST;  // FAST is OK, for the time being MEDIUM is a bit too long for autotuning (will be significantly improved in next release)

      invGen2Cfg.autoTuningInterval = 7;

      invGen2Cfg.autoTuningLevel = 20;

      SetGen2InventoryCfg(&invGen2Cfg);

    parameters:

      your parameters seem to be relatively ok,

      with session S2, better to targetDepletionmode to  invGen2Cfg.targetDepletionMode = true;

      I can see you are using custom frequency, better would be you use full profile frequencies range

    receive gain monitoring:

    you have to set the sensitivity value (TxRxCfg.rxSensitivity) such as the tags are seen (increase sensitivity) but noise is not polluting (decrease sensitivity).

    Nota: all the tuning related features will be significantly improved in releases above 2.1.0.

    hoping all of this helps.

    regards,

    Cedric.

    11 replies

    ST Employee
    May 21, 2020

    Hello Uyalc,

    The fact you are able to use windows GUI is really good, indeed what I can suggest for you to get the best appropriate parameters to be used in your Linux application is:

    • you instrument the FW code to output all settings (file ...\Firmware\Src\stream_dispatcher.c) received by FW on UART
    • you set all appropriate configuration through the Windows GUI
    • your run some inventories to ensure you have appropriate settings
    • you replicate the same configuration options in your Linux application based on outputs you logged on UART

    The functions you have to address for your configuration update are mainly the ones in setupGen2Config() (file STUHFL_DemoEvalAPI.c) + the tuning ones ;)

    best regards,

    Cedric.