chrisweather / RocMQTTdisplay

Dynamic Passenger Information system with multiple displays for Model Railroad Stations controlled by Rocrail, Node-RED or other sources.
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

WIKI 1 to 6 executed, but get a black screen after uploading, what's wrong, please help #19

Closed ksw2404 closed 2 years ago

ksw2404 commented 2 years ago

hi, i have finished wiki points 1 to 6, but till now the display is not working yet, i only get a black screen, i don't know what i did wrong, i just haven't finished wiki point 7 yet, I do not understand that point, because I do not know where to enter this in rocrail, the explanation is also too unclear for that, I have created everything, connected it and uploaded everything and it works, the connections are good, you can see that on the display ie is uploading, but when it's finished you get a black screen, so I forgot something or made a mistake somewhere, can you help me fix the error so that it works and help with wiki point 7, how to do this and where in rocrail.

I hear from you

chrisweather commented 2 years ago

Do you see different status messages on the display when you connect the controller to power via USB? If that's not the case check the wiring of the display.

Did you configure the correct controller board in the Arduino IDE? Which controller do you have?

Here you can find a demo workspace for rocrail where all config is done already for testing the displays: https://github.com/chrisweather/RocMQTTdisplay/tree/main/demo

ksw2404 commented 2 years ago

Hi,

The cables are connected properly, if you upload via esp8266 uploader then the text ends at "display 1" and then the screen goes black, is also the last thing in the report, so apparently the upload did not go well?. The mqqt broker is also well connected, you can see messages coming in from rocrail. So I don't know what step I did wrong, I don't understand step 7 of your wiki, I checked the demo link, but where to add these files? i will also add the report of the esp8266 data uploader below, maybe i entered some data wrong, maybe i did some steps wrong, i don't know, i did wiki step 1/6 exactly, but maybe it is missing something

The controller/card = Node mcu ESP-12.

want to see what was done wrong or what i forgot and explain where to add the demo files in rocrail

The report =

Starting Roc-MQTT display... Load configuration from /rmdcfg.txt

Save configuration in /rmdcfg.txt

Sec loading from /rmdsec.txt

Load template data from /rmdtpl.txt

Load templates from /rmdtpl00.txt /rmdtpl01.txt /rmdtpl02.txt /rmdtpl03.txt /rmdtpl04.txt /rmdtpl05.txt /rmdtpl06.txt /rmdtpl07.txt /rmdtpl08.txt /rmdtpl09.txt

Roc-MQTT view Version 1.07

Current MQTT broker IP address: 127.0.0.1

FOR CONFIGURATION OPEN: http://RocMQTTdisplayC01 or http://(IP disabled)

Views enabled: 1/8 Screen size: 128 x 32 Display: 1 connected to multiplexer port (SCx, SDx): 0 Display ID: D01

OTA Ready -> Port: RocMQTTdisplayC01 on (IP disabled)

Web server started and listening for requests

chrisweather commented 2 years ago

Can you access this site in a browser? FOR CONFIGURATION OPEN: http://RocMQTTdisplayC01

Current MQTT broker IP address: 127.0.0.1 This is the local host address. The controller cannot access this adress from your network. You must find out the IP address of your PC that is running the MQTT broker and change it in the controller configuration.

The Rocrail demo workspace can be opened with rocrail.

ksw2404 commented 2 years ago

Hi, the link http://Roc MQTT display C01 works, I added the wifi ip address, but nothing changed, what do I have to change so that the controller can access it? In addition to an ethernet connection, my pc also has a wifi connection, I followed the instruction via youtube when setting up the mqtt broker, it also works if you enter the local ip address, you also see that rocrail sends messages.

I have the following controller by the way: https://www.amazon.nl/gp/product/B01N9RXGHY/ref=ppx_yo_dt_b_asin_title_o01_s01?ie=UTF8&th=1 , it says that it has a wlan and Bluetooth, isn't it the case that the controller has its own ip address, so somewhere there is a setting wrong. But the following things must be entered in the Configuration, are these data correct?

WIFI Devicename RocMQTTdisplayC01 WIFI reconnect delay (ms) 5000 OTA Hostname RocMQTTdisplayC01 OTA Port 8266

Do you have to create an OTA file in Arduino ide yourself? and add to the esp8266?.

But if you upload the display you still get the text up to display 1, it does not go any further.

So what do I need to adjust to get the display working?

The demo I don't understand how you add that in rocrail.

Greetings

chrisweather commented 2 years ago

You are close to the solution. I assume rocrail and the MQTT broker run on the same PC. That's why they find each other via localhost or 127.0.0.1 Run a command prompt on your PC and type 'ipconfig / all' This will tell you the real IP address. Enter this IP address in the controller configuration. The display controller needs the IP address of your PC (ofter similar to 192.168.xxx.yyy) in the Configuration to communicate with the broker.

Extract the rmddemo.zip to a folder on your harddisc. From Rocrail chose File/Open Workspace and select the folder you just created.

ksw2404 commented 2 years ago

Hi,

I ran the ip config, many ip addresses come out

Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . : fritz.box Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 3168 Physical Address. . . . . . . . . : 30-E3-7A-11-D1-A4 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::5f4:c890:92e2:f93f%4(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.178.24(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Monday, August 22, 2022 21:09:06 Lease Expires. . . . . . . . . . : Thursday, September 1, 2022 21:17:49 Default Gateway . . . . . . . . . : 192.168.178.1 DHCP Server . . . . . . . . . . . : 192.168.178.1 DHCPv6 IAID . . . . . . . . . . . : 254862202 DHCPv6 Client DUDE. . . . . . . . : 00-01-00-01-20-DE-06-04-C0-7C-D1-FE-26-00 DNS Servers . . . . . . . . . . . : 192.168.178.1

I assume I need the following ip address : IPv4 Address. . . . . . . . . . . : 192.168.178.24(Preferred)

I will enter this and see what will happen

Do I need to change anything in the conforation screen?

Greetings

chrisweather commented 2 years ago

Attached the config for 1 display directly connected to the controller. image

ksw2404 commented 2 years ago

Hi, still nothing, and I copied the report again and no change in IP address.

Starting Roc-MQTT-Display... Loading configuration from /rmdcfg.txt

Saving configuration to /rmdcfg.txt

Loading sec from /rmdsec.txt

Loading template data from /rmdtpl.txt

Loading templates from /rmdtpl00.txt /rmdtpl01.txt /rmdtpl02.txt /rmdtpl03.txt /rmdtpl04.txt /rmdtpl05.txt /rmdtpl06.txt /rmdtpl07.txt /rmdtpl08.txt /rmdtpl09.txt

Roc-MQTT-Display Version 1.07

Current MQTT broker IP address: 192.168.178.24

FOR CONFIGURATION OPEN: http://RocMQTTdisplayC01 or http://(IP unset)

Display enabled: 1 / 8 Display size: 128 x 32 Display: 1 connected to multiplexer port (SCx, SDx): 0 Display ID: D01

OTA Ready -> Port: RocMQTTdisplayC01 at (IP unset)

Web server started and listening for requests

I copied the print screen, but to no avail, it's strange. Also that the controller does not contact the broker

chrisweather commented 2 years ago

https://github.com/eclipse/mosquitto/issues/1985

ksw2404 commented 2 years ago

Should the IP address in the rocrail demo change to my own ip address or leave it as is?

so far it still doesn't work. at some point in the Wiki point 4 software install it says the following

Compile and upload the RocMQTTdisplay.ino sketch to the controller. , but is it the intention that the data is also visible when you do the reset together with the monitor, this data is not included, only the data data.

Greetings

ksw2404 commented 2 years ago

Hi,

I connected new WeMos D1, a large version, but to no avail.

How is it possible that the Wemos D1 esp8266 does not connect as stated in the report?

here the report

FOR CONFIGURATION OPEN: http://RocMQTTdisplayC01 or http://(IP unset)

Display enabled: 1 / 8 Display size: 128 x 32 Display: 1 connected to multiplexer port (SCx, SDx): 0 Display ID: D01

OTA Ready -> Port: RocMQTTdisplayC01 at (IP unset)

As for the Mosquitto broker, I followed all the advice, such as adding a test file, but to no avail. It is a pity that no progress can be made in this way.

But what difference is a raspberry pi going to make, then you still have the localhost ip address hassle? Quite difficult to find a good raspberry pi, there are many types, from €15 to €175.00, there are even external servers that offer Mosquitto broker, that also doesn't work in my opinion

hope you have the solution for me, to solve this problem

Greetings