Bitcoin Forum
May 10, 2024, 02:23:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Speaking to Spondoolies Hardware with the serial port  (Read 1868 times)
MaximeAD (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 101


cryptominer.ca


View Profile WWW
March 14, 2015, 07:37:56 PM
 #1

Hi everyone,

I wondered if anyone successfully used the serial port on a Spondoolies device? I am trying to get it done with my SP20 and I am not able to make it work! I don't understand what I did wrong and I want to make sure that it is working for someone as I'll try to replicate is setup!

Firstly, we can get the UART settings on SP website http://www.spondoolies-tech.com/blogs/technical-blog/17587524-our-serial-settings-for-uart :
Quote
HW flow control - NO

SOFTWARE flow control - NO

115200

8N1

Secondly, I contacted the SP support to know what was the pinout of the serial port:
Quote
Here is the pinout for our serial cable:

Pin 5 GND
Pin 3 CPU RX (input to miner box CPU)
Pin 2 CPU TX (output from miner box CPU)

Signals logic level is 3.3V

Thirdly, I bought this device and made a RJ45 to RJ12 adapter with the pinout in consideration to be able to plug it in the SP20.

However, all I can get is gibberish on the console.. The bauds rate looked fine to me, but it didn't work... I'm thinking it could be an error in the pinout, but I'm supposed that if I didn't make it right, I would receive nothing on the console...

What are you guys thinking? Did someone have any success with this port?

Thank you!

http://www.cryptominer.ca - Bitcoin Miner Hosting Solutions
1715350994
Hero Member
*
Offline Offline

Posts: 1715350994

View Profile Personal Message (Offline)

Ignore
1715350994
Reply with quote  #2

1715350994
Report to moderator
1715350994
Hero Member
*
Offline Offline

Posts: 1715350994

View Profile Personal Message (Offline)

Ignore
1715350994
Reply with quote  #2

1715350994
Report to moderator
1715350994
Hero Member
*
Offline Offline

Posts: 1715350994

View Profile Personal Message (Offline)

Ignore
1715350994
Reply with quote  #2

1715350994
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
sidehack
Legendary
*
Offline Offline

Activity: 3318
Merit: 1848

Curmudgeonly hardware guy


View Profile
March 15, 2015, 05:29:06 AM
 #2

From the device page you linked:

Quote
This USB cable has an embedded FTDI 232 and RS232 level shifter to produce true RS232 levels.

RS323 digital signals are typically in the neighborhood of +/-8V or so, which if they're telling you the RX and TX are on 3.3V logic level, you definitely need to not use that cable. Grab something CP2102-based - heck, even a Prisma adapter (or Novak's not-AM Prisma adapter) would do it since those use a 3.3V logic and can operate at that baud rate.

Cool, quiet and up to 1TH pod miner, on sale now!
Currently in development - 200+GH USB stick; 6TH volt-adjustable S1/3/5 upgrade kit
Server PSU interface boards and cables. USB and small-scale miners. Hardware hosting, advice and odd-jobs. Supporting the home miner community since 2013 - http://www.gekkoscience.com
MaximeAD (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 101


cryptominer.ca


View Profile WWW
March 15, 2015, 12:06:07 PM
 #3

Thank you sidehack!

I'll look into that. Seriously, I was kind of lost with all those protocols and standards. I never used a serial cable before!

http://www.cryptominer.ca - Bitcoin Miner Hosting Solutions
Prelude
Legendary
*
Offline Offline

Activity: 1596
Merit: 1000



View Profile
March 15, 2015, 12:08:32 PM
 #4

Hi Max,

I'm curious, what will using the serial port allow you to do with the SP20? (once you get it working)
MaximeAD (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 101


cryptominer.ca


View Profile WWW
March 15, 2015, 12:15:47 PM
 #5

I suppose/hope it will give me access to a root console.

Could be very helpful to debug a machine when it doesn't connect to network or you don't know its IP address.

http://www.cryptominer.ca - Bitcoin Miner Hosting Solutions
klondike_bar
Legendary
*
Offline Offline

Activity: 2128
Merit: 1005

ASIC Wannabe


View Profile
March 15, 2015, 01:40:25 PM
 #6

Which connector are you using on the SP20? Is it the actual 20PIn connector on an individual hashing board, or a smaller connector on the control board?

if on the control board, this is probably useful: https://github.com/Spondoolies-Tech/u-boot
Quote
- Serial Ports:
      CONFIG_PL010_SERIAL

      Define this if you want support for Amba PrimeCell PL010 UARTs.

      CONFIG_PL011_SERIAL

      Define this if you want support for Amba PrimeCell PL011 UARTs.

      CONFIG_PL011_CLOCK

      If you have Amba PrimeCell PL011 UARTs, set this variable to
      the clock speed of the UARTs.

      CONFIG_PL01x_PORTS

      If you have Amba PrimeCell PL010 or PL011 UARTs on your board,
      define this to a list of base addresses for each (supported)
      port. See e.g. include/configs/versatile.h

      CONFIG_PL011_SERIAL_RLCR

      Some vendor versions of PL011 serial ports (e.g. ST-Ericsson U8500)
      have separate receive and transmit line control registers.  Set
      this variable to initialize the extra register.

      CONFIG_PL011_SERIAL_FLUSH_ON_INIT

      On some platforms (e.g. U8500) U-Boot is loaded by a second stage
      boot loader that has already initialized the UART.  Define this
      variable to flush the UART at init time.

- Pre-Console Buffer:
      Prior to the console being initialised (i.e. serial UART
      initialised etc) all console output is silently discarded.
      Defining CONFIG_PRE_CONSOLE_BUFFER will cause U-Boot to
      buffer any console messages prior to the console being
      initialised to a buffer of size CONFIG_PRE_CON_BUF_SZ
      bytes located at CONFIG_PRE_CON_BUF_ADDR. The buffer is
      a circular buffer, so if more than CONFIG_PRE_CON_BUF_SZ
      bytes are output before the console is initialised, the
      earlier bytes are discarded.

      'Sane' compilers will generate smaller code if
      CONFIG_PRE_CON_BUF_SZ is a power of 2

It looks like you might need to access UART while a bootSD is in the system.



if you're using the 20pin hashboard connector, youll need to run CGminer on your pc and send a golden nonce at the correct baudrate and listen for a matcing hash.

24" PCI-E cables with 16AWG wires and stripped ends - great for server PSU mods, best prices https://bitcointalk.org/index.php?topic=563461
No longer a wannabe - now an ASIC owner!
miguelmorales85
Hero Member
*****
Offline Offline

Activity: 544
Merit: 506


View Profile
March 21, 2015, 03:59:21 PM
 #7

Why would I use the UART serial connection when I have ssh through Ethernet Huh
MaximeAD (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 101


cryptominer.ca


View Profile WWW
March 21, 2015, 08:58:42 PM
 #8

Why would I use the UART serial connection when I have ssh through Ethernet Huh
Could be very helpful to debug a machine when it doesn't connect to network or you don't know its IP address.

http://www.cryptominer.ca - Bitcoin Miner Hosting Solutions
MaximeAD (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 101


cryptominer.ca


View Profile WWW
March 31, 2015, 06:30:28 AM
 #9

I was motivated tonight..! The shipping of a CP2102-based device was taking too long so I tried with a Raspberry Pi I have at home. I'm not used to UART and all that, but figured out they had the same voltage level and may work...

The good news is that it worked  Grin! During the booting of the device, I have kernel messages from the SP20 as I would expect.

However... When I try to login with the serial port, it doesn't work... I don't know why. It looks like once the device is booted, I receive maybe 1 character on 2 and I cannot login. Maybe it is the baud rate that slightly changes after boot time? Maybe my Raspberry? Maybe another parameter?

I'll continue to investigate..

http://www.cryptominer.ca - Bitcoin Miner Hosting Solutions
Guy Corem
Donator
Legendary
*
Offline Offline

Activity: 1414
Merit: 1051


Spondoolies, Beam & DAGlabs


View Profile WWW
March 31, 2015, 10:20:54 AM
 #10

http://www.spondoolies-tech.com/products/serial-cable-1

New Mimblewimble implementation: https://www.beam.mw
Spondoolies is now part of Blockstream: https://blog.blockstream.com/en-blockstream-mining-builds-momentum-with-spondoolies-acquisition/
Kaspa is a POW cryptocurrencty which implements GhostDAG protocol: https://kaspanet.org/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!