Bitcoin Forum
March 25, 2017, 03:38:42 PM *
News: Latest stable version of Bitcoin Core: 0.14.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] 5 BTC - Noisy ttyUSB0 line?  (Read 1332 times)
Obsi
Jr. Member
*
Offline Offline

Activity: 30


View Profile
April 14, 2012, 02:21:39 AM
 #1

SOLVED!
1490456322
Hero Member
*
Offline Offline

Posts: 1490456322

View Profile Personal Message (Offline)

Ignore
1490456322
Reply with quote  #2

1490456322
Report to moderator
1490456322
Hero Member
*
Offline Offline

Posts: 1490456322

View Profile Personal Message (Offline)

Ignore
1490456322
Reply with quote  #2

1490456322
Report to moderator
1490456322
Hero Member
*
Offline Offline

Posts: 1490456322

View Profile Personal Message (Offline)

Ignore
1490456322
Reply with quote  #2

1490456322
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
af_newbie
Legendary
*
Offline Offline

Activity: 1008



View Profile
April 14, 2012, 04:02:56 AM
 #2

I've got a BFL single that I've been hashing with on another computer. It works fine there, but I have to move it over to my system now. I'm running 64bit Kubuntu 11.04.

Apparently my system has got some kind of interference or something going on, because /dev/ttyUSB0 spits out '2`2`2`2`' (repeating) along with the regular communications from the single. For example, when I start CGMINER it will error out with something along the lines of

Code:
[2012-04-13 19:03:55] BitForce ZDX reports: 2`2`2`OK
2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`
2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`2`
[2012-04-13 19:03:55] Thread 0 failure, exiting

I've tried every single USB port, external powered USB hub, every USB cable I have and nothing gets rid of it, not sure if it's something internal with my computer or what. External USB disk drives work fine, USB mouse works fine.

Tried futzing with settings using stty & setserial, as well as minicom. The 2`s come through no matter what.

Whoever can get me hashing away on this gets the bounty, whether through a tip (not one like "buy a new motherboard" :-p  ) that allows me to fix the interference, or an efficient line of code to plop into CGMINER's bitforce.c file to rip out all the 2`s.

Thanks

Disconnect BFL, disable all ports in BIOS.  Reboot.  Check syslog to see if anything tries to use the ports.
Enable one port, reboot, again check the syslog.

You suppose to get "OK" from BFL in the first two bytes of the response, but it looks like there is more in the buffer so cgminer keeps reading until '\n' or 256 bytes (size of the read buffer)

That is one weird echo...port settings, maybe?
Can you use terminal to write "ZGX" or "ZDX" to that port, see what comes back?

TheSeven
Hero Member
*****
Offline Offline

Activity: 504


FPGA Mining LLC


View Profile WWW
May 04, 2012, 11:23:05 PM
 #3

Seems like you are using the wrong kernel module for that device. Probably some generic usbserial thing instead of ftdi_sio.
The FTDI chip used in the BFL prepends two status bytes to the actual serial port data before transmitting them via USB, which result in that "2`" pattern. A correctly-working driver will interpret these bytes internally and filter them out from the data stream before passing it to the TTY.

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
TheSeven
Hero Member
*****
Offline Offline

Activity: 504


FPGA Mining LLC


View Profile WWW
May 15, 2012, 10:27:53 PM
 #4

Thank you! Smiley

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
smracer
Donator
Legendary
*
Offline Offline

Activity: 1031



View Profile
May 22, 2012, 02:42:37 AM
 #5

This thread solved my problem as well.  I was using the generic USB drivers.  I switched to ftdi_sio and it solved it!

Thanks!

1smracer15yDLhJG27fd7GV3tegcNjtg2
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!