Closed rock-crusher closed 2 years ago
I’ll have a look. Perhaps we have a validation issue with the field.
I assume this means you have figured out all the hardware setup. What happens when you type it in.
Hi again rstrouse, When I type it in, the system just automatically defaults it back to 12:00pm. As far as getting it all figured out… lol, far from it. I’m just playing around with the relays right now on my work bench getting familiar with the circuits and scheduling in Nixie. I’m able to schedule the relays and get them to fire when I want, but then something glitches and things start going wonky. I’ll lose control of a relay and can’t get it to work again. I’ll refresh everything, reboot, delete the circuits/schedules start over and add them new again and nothing, I can’t get even one now to engage. Excuse me; I can get them all to work manually in REM by clicking on the relay buttons, but it’s like Nixie somehow starts acting erratic and disassociates itself. I can’t figure out the egg timer. Not sure quite how to initiate it, and when I think I do, it never shuts off no matter how the timing parameters are set. Another thing I haven’t figured out is the buttons in Nixie’s settings/appearance tab. I can click on them, but they do nothing I’m aware of. Once again I must be doing something wrong, maybe you can throw me a bone or two. Thank you rstrouse
Issue 1 I pushed up a fix for the time selection weirdness. There was a bug in the handling for the 12 hour clock were it was not honoring the minutes.
Issue 2 For your relay, lets make sure we are looking at the same thing. Are you saying that when you click on circuit 3 in dashPanel it does not change the little indicator to green? If it does then it is sending the signal to REM and REM is responding that it processed the request.
If you are looking at the little LEDs on the Sequent board, the Sequent 8 relay board has the screen printing backwards on the indicator LEDs on the board. At the time of printing the numbering got printed on the other side of the board. What this did is make the relay 1 light the relay 8 led and relay 7 light the relay 2 led.
For troubleshooting you can open up the pm2 monit
then select the njsPC item on the monitor. Then watch the console to see if there are any errors when you press circuit 3 on the dashPanel.
Issue 3 @tagyoureit pushed some changes to fix the egg timer. If you want to know more about what an egg timer does it is in this section of the wiki https://github.com/tagyoureit/nodejs-poolController/wiki/Nixie-Controller-Setup#circuits----aux-circuits
EDIT: To fix 1 & 3 pull njsPC and dashPanel. Then be sure to hard refresh your browser.
cd ~/nodejs-poolController
git pull
npm i
cd ~/nodejs-poolController-dashPanel
git pull
npm i
Then restart your pi and when you access dashPanel hard refresh the browser.
The buttons in the last screenshot are to change the way dashPanel displays the sections of the display. Simply drag them to the location and order where you want them to display. For instance, in your case you do not have a filter pressure sensor so simply drag the filters bubble to the hidden items list. I also always drag the virtual circuits bubble there as well.
Hi again, Well, I tried everything you suggested to no avail; the only thing that it seemed to fix is that I now have control of circuit #3 again. Problem still exists for the egg timer, it never turns off. The 12:00pm issue still exists too. Funny thing with the egg timer is when the button is pushed it engages and the green light turns on firing the correct relay, but the countdown on the button starts out at 3hrs 50min even though I have it set for only 1min. By the way, I have tried the above suggestions you have outlined twice with no success and yes I rebooted along with the hard refresh of the browser.
That is the correct behavior for the timer because you started it in the middle of the schedule so it will work off the schedule time.
rstrouse, Lol… makes perfect sense! I feel like such a dumb ass. Also, the 12:00 issue is now working great!! (wonder why it took so long for it to take effect on my end?).
Anyway, I’ll continue on with my quest. As you know this is all extremely new for me, but let me tell you a great learning experience and although frustrating at times (my dumb ass) it is super fun too!
Thanks again for taking the time to help me.
No worries happy to help. Some of this stuff ends being obvious when you have the goggles that were required to write the functionality then when somebody not wearing them looks at it you realize where the gaps are in function and documentation.
The reason the 12:00 issue finally fixed itself is likely because you didn't get a hard refresh on the browser and it was using the cached script. These have an expiration date set on them so eventually the browser asked for the new files with the new script in it. dashPanel is a dynamic set of pages that are built on the fly so the cache mechanisms on the express web server are not able to appropriately look for cached files.
I suspect that most folks would have difficulty with the wiring but muddle their way through the configuration. I spent more time documenting (how to) on the wiring part but less time on configuration. This is partially, because the concepts are similar to commercial offerings out there.
Bear in mind there is definitely the possibility for software errors since the source of all errors is code and Nixie is made up mostly of code. Add to that neither I or @tagyoureit have all the equipment we rely a lot on folks providing feedback on their equipment and take some educated guesses when we need to.
Back again, as you knew I would be… lol. Maybe a little help with getting my VSF pump setup? I’ve connected the RS485 cable to the pump and Building Automation Card, Green on A & yellow on B terminal. The jumpers on the card are in place, the RS485 pass through is in place. I keep getting the: Unable to open RS485 port message? I know there is some procedure for this, so if you could just send me in the right direction. Thank you
Did you change the settings on the pi as indicated here. https://github.com/rstrouse/relayEquipmentManager/wiki/Sequent-Microsystems-Boards#rs-485-tab
If you did then navigate to the Controller -> RS485 tab in the dashPanel configuration screens. Enter ‘/dev/ttyS0’ as the port name.
Yes the pi has already been changed, and I keep getting the Unable to open RS485 port message.
First lets verify the following
ls /dev/ttyS0
Yes, it is set up exactly as you show it above.
I have been configuring all of this via wifi. Could this have anything to do with why I keep receiving the Unable to open RS485 port /dev/ttyS0 ?
Also, I don’t have the disc battery installed in the MEGA-BAS, is this a problem? Is it necessary? The kit I bought didn’t have one included. What kind of battery is it when I go to purchase one?
First some answers. WiFi should not matter. The battery is a CR2450 but it is for the RTC on the board so it should not matter.
I have a couple of questions
Did you set up an RDP or VNC connection to access the pi?
Is this a Pi3 or Pi4?
Just to be sure when you perform the command ls /dev/ttyS0
it returns the part in yellow like above?
Things to try Turn Bluetooth off on the pi (it will be the little Bluetooth icon on the pi taskbar)?
Run the command ls -l /dev/ttyS0
and paste the results here.
Run the command groups pi
and paste the results here.
If the port exists lets try to see if there is any traffic on the port. Hit ctrl + c to exit.
od -x < /dev/ttyS0
Yes, RDP, but I’m not doing the set-up using that. I have a keyboard, mouse & monitor directly connected to the PI4.
PI4
Yes it does, attached image of result.
It has always been off, attached image.
Attached image
Run the command groups pi and paste the results here.
If the port exists lets try to see if there is any traffic on the port. Hit ctrl + c to exit. od -x < /dev/ttyS0
Attached image
Does the pump (VSF) need to be configured in some special way from its menu, or is it just plug-n-play? I couldn’t find anything scrolling through its menu regarding this.
It will be just plug and play. Nixie will send the appropriate commands via RS485. Under the pumps section in the configuration you add the pump as a VSF and tell it which circuits/features should make the pump run at which speed.
Yes, I’ve done all that and set-up a schedule for it as well. When the schedule dictates for it to turn on “Spa” as I have it set-up for, the spa button green light turns on in the "features" window and it also shows the amount of time left for it to run. Problem is, the actual pump does nothing. Any other thoughts, suggestions?
This is because we have not been able to get your RS485 port working. I am researching now why you might be getting a permissions issue opening the port.
When Nixie starts communicating with the pump the VSF display will change to "Display Not Active" and you will be controlling the pump through Nixie over RS485.
Understood, Thank you for all your efforts!
Funny thing now, when I check the RS485 port on the controller tab I now get this: attached image As opposed to yesterday when I got this: attached image It still doesn’t work, but can what is circled in red be changed to get it working?
It cannot change it if it cannot access it.
My bad, just realized the port name was changed from Local to Network. I must have done it when screwing around.
No worries, I am trying to figure out how to change the port permissions so that they stick. They really made this overly complicated when they added bluetooth to the pi.
Can I get you to enter the following command then try to save the port
sudo chmod 0666 /dev/ttyS0
If this works it will only work until the next reboot. Not sure why your port would not have all the permissions.
Just tried it, unfortunately it did not work
Just for shucks can I get you to change the port name to /dev/serial0
then try to save it. It is so very odd that the permissions are not correct for this. I have tried repeatedly to make a pi do what yours is doing but I cannot seem to get it to fail using /dev/ttyS0
when bluetooth is disabled and the MEGA-BAS is set to pass thru on the RS485 tab.
yes, it saved, now what?
Are you seeing traffic now? Do you have the VSF pump defined in the configuration?
No traffic, nothing has changed. Yes, VSF pump is defined in the configuration.
Run ls -l /dev/serial*
and post the results here.
Run the following commands
cd ~/nodejs-poolController
git pull
Wait until dashPanel reconnects then select the hamburger menu.
Then navigate to the Logging tab and press Capture Replay then Begin Capture on the dialog.
After you do that go to the RS485 Port and save the port.
Go back to the Logging tab and press Cancel Capture. It will download a file to your browser. Upload that file here.
Ok so it is trying to send messages to the pump but the pump is not responding. Flip the green and yellow wires going to the pump.
OK, did that and still nothing has changed.
Make sure the pump isn't running a schedule; try to put it in Filter 1 and try again.
"try to put it in Filter 1 and try again." Going to need help with that
should I put the wires back, green on A and yellow B?
On your pump, how has it been running in standalone mode? On a schedule?
no schedule
A should be yellow and B should be green.
Lets try something different. I am surprised that the pump does not say "Display Not Acitve"
cd ~
git clone https://github.com/SequentMicrosystems/megabas-rpi.git
cd megabas-rpi
sudo make install
Then after all this has finished run the following command and shoot a screenshot.
megabas 0 rs485rd
Then issue the following command
megabas 0 rs485wr 0 9600 1 0 1
Hmmm.... that is exactly what I would have expected to see if it was all configured properly so nothing there.
I have installed this board 3 times and all 3 times the RS485 connection was on /dev/ttyS0
. There were not any issues with permissions. Let me look inside your /boot/config.txt
. Can you upload that file here from your raspberry pi?
I’m a little confused about the conflicting RS485 color code. In the below image it says green to A, yellow to B, but you have me the opposite?
Yes the original documentation that we got this information from was backwards. We need to update the wiki.
Ok so it is trying to send messages to the pump but the pump is not responding. Flip the green and yellow wires going to the pump.
If it is sending messages to the pump, then could it be something wrong with my pump? It does work when controlled directly from the panel screen mounted on top of the motor itself.
Issue: In the nixie scheduler when setting the on/off times the minutes are not changeable while in the 12:00pm hour. When you try, it automatically reverts back to 12:00pm. For instance, if you set the time as 12:37pm the system automatically resets the time back to12:00pm for some reason. All the other hours 1-11 am or pm you can set any minute you desire.
I’m sure it’s just something I’m doing wrong. Any Ideas?