Menu

pydarts on Raspberry no suitable serial port

Anonymous
2020-02-26
2021-03-13
  • Anonymous

    Anonymous - 2020-02-26

    hey folks!
    tried installing Pydarts on raspberry pi 3
    installed sourcecode like instructed in wiki
    uploaded arduino sketch 7x12 sample and all works in serial monitor, plugged into raspberry...
    when i start game intro plays and after that it crashes with following debug message:
    pydarts

     
    • poilou

      poilou - 2020-02-26

      Hi !

      What's the name of your serial interface ? (/dev/ttyX)

      Could you try to setup the config file manually and come back ?

      Cheers :)

      On 26/02/2020 15:16, noreply@sourceforge.net wrote:

      hey folks!
      tried installing Pydarts on raspberry pi 3
      installed sourcecode like instructed in wiki
      uploaded arduino sketch 7x12 sample and all works in serial monitor, plugged into raspberry...
      when i start game intro plays and after that it crashes with following debug message:
      pydarts


      pydarts on Raspberry no suitable serial port


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
    • Oleg Ershov

      Oleg Ershov - 2021-03-13

      I would like to know what models of darts boards use 7x12. What's your model?

       
  • Anonymous

    Anonymous - 2020-02-26

    Thanx poilou for fast response!
    the name of device is /dev/ttyUSB0
    tried on Arduino serial monitor on raspberry and everything works just fine...
    how to setup cfg file manually?
    what has to be in it?
    I dont really know what you mean...
    greetz

     
    • poilou

      poilou - 2020-02-26

      Just edit with nano, vi, leafpad or any other text editor :

      /home/user/.pydarts/pydarts.cfg

      and put "serialport:/dev/ttyUSB0" in place of this line :)

      "serialport:False"

      Then you can calibrate again launching pydarts with the
      --forcecalibration option.

      Cheers !

      On 26/02/2020 17:32, noreply@sourceforge.net wrote:

      Thanx poilou for fast response!
      the name of device is /dev/ttyUSB0
      tried on Arduino serial monitor on raspberry and everything works just fine...
      how to setup cfg file manually?
      what has to be in it?
      I dont really know what you mean...
      greetz


      pydarts on Raspberry no suitable serial port


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
    • poilou

      poilou - 2020-02-26

      But it's pretty strange that pydarts doesn't find /dev/ttyUSB0 by itself.

      It's supposed to, if you plugged in your arduino or your dart board.

      If some days you've got a clue I'll correct this issue.

      Cheers!

      On 26/02/2020 17:32, noreply@sourceforge.net wrote:

      Thanx poilou for fast response!
      the name of device is /dev/ttyUSB0
      tried on Arduino serial monitor on raspberry and everything works just fine...
      how to setup cfg file manually?
      what has to be in it?
      I dont really know what you mean...
      greetz


      pydarts on Raspberry no suitable serial port


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Anonymous

    Anonymous - 2020-02-26

    ok, but the folder is emty, there is no setup.cfg

     
  • Anonymous

    Anonymous - 2020-02-26

    in /home/pi/.pydarts theres only a score.db file

     
    • poilou

      poilou - 2020-02-27

      Do you use the latest available source code ?

      There should be a pydarts.cfg file once you've fully performed the
      calibration. Press space key until the end if necessary.

      Cheers!

      On 26/02/2020 18:28, noreply@sourceforge.net wrote:

      in /home/pi/.pydarts theres only a score.db file


      pydarts on Raspberry no suitable serial port


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Anonymous

    Anonymous - 2020-02-27

    thank you for fast response...
    then please tell me how to callibrate when game crashes before calibration starts because theres no serial port detected?

    there must be something wrong with latest source, on windows its the same thing, pydarts_v1.2.0-beta1_win_x32_bin.zip works fine, latest sorcecode no serial device detected...

     
  • Anonymous

    Anonymous - 2020-02-27

    thank you poilou for fast response again!

    ok, now i know what my problem was...
    i downloaded the last source snapshot, but that did not work
    pydarts_v1.2.0-beta1-src.zip works!

    but now theres a new problem:
    After calibrating, the inner fields are not calibrated because they have different keys
    for example outer ring of field 9 is "D", inne Field is "f"...
    is there a way to set both keys for one fields in setup.cfg manually?

     
    • poilou

      poilou - 2020-02-27

      Hi again :)

      Regarding the source code :

      The source code on windows require now Microsoft Visual C++ 14 to
      install netifaces package. I have updated the documentation
      https://obilhaut.freeboxos.fr/pydarts-wiki/doku.php?id=pydarts_on_microsoft_windows#using_pydarts_source_code.
      Python 2.7 is not supported anymore and my tests will only be done with
      python 3.8 and above.

      About the board :

      In pyDarts, like on all boards I have encountered so far, there is :

      • outter ring (Triples)
      • inner ring (Doubles)
      • Outter and inner Simples that stand on the same electronic path
      • Inner bull
      • outter bull

      So in total 62 different crossing in the matrix (eventually see wiki
      about the matrix)

      What do you expect exactly ? To give the same key to Triples and Doubles
      ? This could eventually be an option in the code, but I think will never
      be included in the sketch file.

      Could you explain a bit more ?

      Cheers!

      On 27/02/2020 13:29, noreply@sourceforge.net wrote:

      thank you poilou for fast response again!

      ok, now i know what my problem was...
      i downloaded the last source snapshot, but that did not work
      pydarts_v1.2.0-beta1-src.zip works!

      but now theres a new problem:
      After calibrating, the inner fields are not calibrated because they have different keys
      for example outer ring of field 9 is "D", inne Field is "f"...
      is there a way to set both keys for one fields in setup.cfg manually?


      pydarts on Raspberry no suitable serial port


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Anonymous

    Anonymous - 2020-02-27

    Thank you for your Helpfulnes again!

    On windows i have c++14, but installed the last snapshot that didnt work for me...

    i was talking about the inner single ring and outer single ring, they are NOT on the same electronic path, like i sayed before : when i hit Single 9 its a " D" as serial output while inner single Ring is a "f"...
    i have a solution for that now, just gonna change the Arduino code so that outer and inner single will give same key...

     
  • Anonymous

    Anonymous - 2020-02-27

    Thank you for your Helpfulnes again!

    On windows i have c++14, but installed the last snapshot that didnt work for me...

    i was talking about the inner single ring and outer single ring, they are NOT on the same electronic path, like i sayed before : when i hit Single 9 its a " D" as serial output while inner single Ring is a "f"...
    i have a solution for that now, just gonna change the Arduino code so that outer and inner single will give same key...

     
  • Anonymous

    Anonymous - 2020-02-28

    worked, thank you very much for your help!!!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.