• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About mindrunner

  • Rank

Profile Information

  • Gender
    Not Telling
  1. mindrunner

    Serial port issues

    Cool, sounds good for me! I am gonna try that out.
  2. mindrunner

    Serial port issues

    Thats what I assumed first as well. I already implemented threading. However, since the communication with the FPGA is totally synchronous, it actually does not make any difference. Anyway, I could figure out the following facts: 1) Downstreaming data from fpga is possible with 3MBit 2) When sending data, I am losing bytes. Probably because the FPGA is not able to read fast enough. Since there is no threading on that side, there is no "easy" way around. I already got an idea... Will try that out later. 3) Python is really CPU intensive when reading data. Reading with 3MBits stresses one of my cores to 100%, which might be the reason for losing data here. (Thanks Jaxartes) Cheers Lukas
  3. mindrunner

    Serial port issues

    1. Like Alvie said, every read byte is written to a file. 2. Will check that tomorrow, but I doubt that 3MBit of data burns my CPU 3. I dont get the question. FPGA and PC uses different baud rates, I am not getting any stable communication, which is the expected. 4. I dont like screen for reading serial port, because it kind of messes around with newlines. I rather use picocom instead, which unfortunately cannot handle more than 115200 baud. But might give it a go tomowwow as well. @Alvie: After running the simple string communication tests with your program a ported my java code to c. I am now reading my data with a c program. The serial i/o routines are exactly the ones from you. However, I can get a stable connection at 250000 baud, transferring 120kb/s of data. 3 MBaud gives me lots of errors. Its kind of strange. It is still Misoc/LM32 on the FPGA side. I would like to port it to ZPUino, but I do not know if I have got enough time left for that. Cheers Lukas
  4. mindrunner

    Serial port issues

    I already tried the different linebreak variations. Also this null-byte is kind of mysterious. Where does it come from? I am definitely never sending it...
  5. mindrunner

    Serial port issues

    At the moment, I am able to reliably read with a c program from the serial port. Reading from a ZPUino SoC gives me full 3MBit. Misoc is slower. Unfortunately, I made most of my tests with python which seems to have problems to read the Data correctly. Maybe I am using it wrong, I have no idea... FPGA side: http://pastebin.com/yS2zReDr PC side: serialread.py http://pastebin.com/qD5WMNGv called with: ./serialread.py /dev/ttyUSB1 3000000 output: http://pastebin.com/fkDTXsck I would be really interested, what I am doing wrong.
  6. mindrunner

    Serial port issues

    Hi! I have a weird problem with my papilio pro board. I am sending large amounts of data over the uart port to an attached computer. Sometimes, the computer reads a nullbyte (0x00), which was not sent by me. I tried ZPUino and Misoc's LM32 on the papilio side and a couple of Java serial libraries as well as pyserial on the computer's side for reading. All with the same problem. Some guys in IRC told me that this might be an hardware related issue an I need to stitch the ground plane together with a bunch of short bridges across signal traces. Is this a well known problem? I am not a hardware expert, so I might need some advice or maybe a picture from a fixed board to exactly know what I need to do. Thank you!