fossa icon indicating copy to clipboard operation
fossa copied to clipboard

Big refactor, pulls out bloat, adds web-installer web-config

Open arcbtc opened this issue 1 year ago • 5 comments

arcbtc avatar Aug 14 '24 22:08 arcbtc

On opening fossa.ino I still see:

image

I then removed the \Arduino\libraries\ folder of libraries previously imported, and copied the libraries back in.

Successfully compiled and uploaded.

However, does not detect coins (the coins are register and going into the machine) or allow notes to be sent through. Presumably .available() is false as the devices unsuccessfully enabled.

Windows 11
IDE 2.3.2 & IDE IDE 1.8.19
ESP32 Dev Module

Can you please confirm these settings (standard for ESP32 Dev Module) are correct:

image

Also set the serial monitor to 115200 baud but not seeing serial messages for some reason now.

I do miss the funky UI ;-)

�������������������������,W��2�Ɂtype GPIO (1) successfully set to 0x4010599c
[   935][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 21 successfully set to type GPIO (1) with bus 0x16
[   944][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c
[   955][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 22 successfully set to type GPIO (1) with bus 0x17
[   965][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SCK (37) successfully set to 0x400e0fc8
[   977][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MISO (38) successfully set to 0x400e0eec
[   989][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_MOSI (39) successfully set to 0x400e0e0c
[  1001][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type SPI_MASTER_SS (40) successfully set to 0x400e0cdc
[  1013][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c
[  1024][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 14 successfully set to type GPIO (1) with bus 0xf
[  1034][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 14 successfully set to type SPI_MASTER_SCK (37) with bus 0x3
[  1044][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c
[  1055][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type GPIO (1) with bus 0xd
[  1065][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type SPI_MASTER_MISO (38) with bus 0x3
[  1076][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c

[  1087][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type GPIO (1) with bus 0xe
[  1097][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type SPI_MASTER_MOSI (39) with bus 0x3
[  2002][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c
[  2013][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 23 successfully set to type GPIO (1) with bus 0x18
[  2023][V][esp32-hal-uart.c:408] uartBegin(): UART1 baud(300) Mode(800003c) rxPin(33) txPin(32)
[  2032][V][esp32-hal-uart.c:497] uartBegin(): UART1 not installed. Starting installation
[  2040][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 33 successfully set to type UART_RX (2) with bus 0x3ffbdcac
[  2051][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 32 successfully set to type UART_TX (3) with bus 0x3ffbdcac
[  2061][V][esp32-hal-uart.c:560] uartBegin(): UART1 initialization done.
[  2068][V][esp32-hal-uart.c:408] uartBegin(): UART2 baud(4800) Mode(800001c) rxPin(4) txPin(-1)
[  2077][V][esp32-hal-uart.c:497] uartBegin(): UART2 not installed. Starting installation
[  2085][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 4 successfully set to type UART_RX (2) with bus 0x3ffbdccc
[  2095][V][esp32-hal-uart.c:560] uartBegin(): UART2 initialization done.
[  2102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4010599c
[  2113][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 2 successfully set to type GPIO (1) with bus 0x3
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   378436 B ( 369.6 KB)
  Free Bytes        :   341984 B ( 334.0 KB)
  Allocated Bytes   :    28488 B (  27.8 KB)
  Minimum Free Bytes:   336236 B ( 328.4 KB)
  Largest Free Block:   114676 B ( 112.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------  
     1 : UART_TX[0]
     2 : GPIO
     3 : UART_RX[0]
     4 : UART_RX[2]
    12 : SPI_MASTER_MISO[2]
    13 : SPI_MASTER_MOSI[2]
    14 : SPI_MASTER_SCK[2]
    15 : GPIO
    21 : GPIO
    22 : GPIO
    23 : GPIO
    32 : UART_TX[1]
    33 : UART_RX[1]
    39 : GPIO
============ After Setup End =============

BenGWeeks avatar Aug 16 '24 00:08 BenGWeeks

Try arduino 2, that's what I compiled on. On the coin mech they register for me, prob wiring issue.

arcbtc avatar Aug 16 '24 00:08 arcbtc

I can add back the funky homescreen?

arcbtc avatar Aug 16 '24 00:08 arcbtc

No rush. I was thinking of spending some time on the UX/UI anyway. I do like the approach of separating the functionality into separate ino files now.

Tomorrow I'll rule out the board and connect in directly. I think having the same connector types as the bill and coin acceptors on the LNBits board would also ensure cables are connected the right way round (I'm assuming they are as they power on).

BenGWeeks avatar Aug 16 '24 00:08 BenGWeeks

All other settings the same for the board, e.g. JTAG enabled (tested switching it to FTFI Adapter)?

BenGWeeks avatar Aug 16 '24 01:08 BenGWeeks