i cant make the serial port to work plz help.

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

i cant make the serial port to work plz help.

Post by ljungberg » Wed Jan 29, 2020 3:45 pm

hi

i have spent lots of time get the serial port to work but i cant. i have found that different guide are a bit different like other names, missing things to check or fils that does not exist. has an update made the old guides not working on new software?

i have read bellow links till the point now that i can write em down from memory.
https://wiki.protoneer.co.nz/Raspberry_Pi_CNC
https://wiki.protoneer.co.nz/Raspberry_ ... tart_Guide
https://wiki.protoneer.co.nz/Raspberry_ ... Card_Image
http://www.hobbytronics.co.uk/raspberry-pi-serial-port

this is what i tried last time:
1 fresh install of the protoneer v4,10 using BalenaEtcher. Following this guide:
https://www.raspberrypi.org/documentati ... /README.md
2. fit the cnc hat on the rpi.
3. boot up and start the “rpi3 serial port config” icon on the desktop.
4. test the serial connection and failed every device point.
5. follow the “command line interface” in “quick start guide”
6. change the device in point step 4 to /dev/ttyAMAO. Baud rate is correct from beginning.
7. in step 6 I get thrown out of the program and get to terminal with the text:
minicom: cannot open /dev/ttyAMAO: No such file or directory
8. still the same result with “TestSerialPort”

Please help me I have spent at least 40 hours to fix this and I just cant.
could someone help me and explain what I did wrong before I go insane.
how should it be done?

Btw when I did look in to the “start cnc.js run once,,,,,,” it points at /Home/Pi/.cncrc”
when using the terminal I cant find it using “LS” in /home/Pi folder and it could not be found using the graphic way too.

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

Re: i cant make the serial port to work plz help.

Post by ljungberg » Thu Jan 30, 2020 12:03 am

due to sleep deprivation i miss read.
now one step closer but is this good or bad?
Attachments
test serial port.JPG
test serial port.JPG (87.17 KiB) Viewed 926 times

GeoffS
Posts: 16
Joined: Fri Dec 06, 2019 10:41 am
Location: Tasmania

Re: i cant make the serial port to work plz help.

Post by GeoffS » Thu Jan 30, 2020 12:51 am

It's good, it shows that /dev/ttyAMA0 is present.
I'd try the mincom connection again. Your previous post seemed to show a O instead of 0 in /dev/ttyAMA0 so check that it is zero and not capital O.
Regards
Geoff

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

Re: i cant make the serial port to work plz help.

Post by ljungberg » Thu Jan 30, 2020 1:02 am

ohh now i feel stupid.

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

Re: i cant make the serial port to work plz help.

Post by ljungberg » Thu Jan 30, 2020 1:22 am

but when i change in the minicom to Dev/serial0. i can here the stepper motors start but not on ttyAMA0.
i cant jogg it and the start cnc js run .... it put out a ode ip 127.0.1.1:80 but thats not my wifi ip.
what am i missing?
the "start cnc js run only once"
is it once every boot or ever?
what dose it do?


pic:
https://ibb.co/p671Jgf

Bertus Kruger
Site Admin
Posts: 1678
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: i cant make the serial port to work plz help.

Post by Bertus Kruger » Thu Jan 30, 2020 6:06 pm

ljungberg wrote:
Thu Jan 30, 2020 1:22 am
the "start cnc js run only once"
is it once every boot or ever?
This need to be run once every boot. It starts the CNCJS service...

Bertus Kruger
Site Admin
Posts: 1678
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: i cant make the serial port to work plz help.

Post by Bertus Kruger » Thu Jan 30, 2020 6:35 pm

ljungberg wrote:
Thu Jan 30, 2020 1:22 am
but when i change in the minicom to Dev/serial0. i can here the stepper motors start but not on ttyAMA0.
i cant jogg it and the start cnc js run .... it put out a ode ip 127.0.1.1:80 but thats not my wifi ip.
Above you quoted the wrong ip. its 127.0.0.1 as per your screen shot.

127.0.0.1 is the localhost/computer you are on. The RPi in your case...

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

Re: i cant make the serial port to work plz help.

Post by ljungberg » Thu Jan 30, 2020 8:01 pm

Bertus Kruger wrote:
Thu Jan 30, 2020 6:35 pm
ljungberg wrote:
Thu Jan 30, 2020 1:22 am
but when i change in the minicom to Dev/serial0. i can here the stepper motors start but not on ttyAMA0.
i cant jogg it and the start cnc js run .... it put out a ode ip 127.0.1.1:80 but thats not my wifi ip.
Above you quoted the wrong ip. its 127.0.0.1 as per your screen shot.

127.0.0.1 is the localhost/computer you are on. The RPi in your case...
Ok but that makes no sense, to me at least.
The pi is only connected to wifi, how come it has 2 ips?
So it should only have 192.168.0.168 or what it was. Not 127.....

Is there a tool to test grbl connection?

As you can see in BCNC the jogger buttons cant be used.
So something is wrong.

Also I get a notice that bcnc can be updated, would that help me?

The serial port tester test several things. Is that different protocols that can be assigned to the serial port?

Any ide how I can get it to work?

ljungberg
Posts: 26
Joined: Tue May 09, 2017 11:12 am

Re: i cant make the serial port to work plz help.

Post by ljungberg » Thu Jan 30, 2020 10:58 pm

do i need to upload the grbl to the arduino somehow?

GeoffS
Posts: 16
Joined: Fri Dec 06, 2019 10:41 am
Location: Tasmania

Re: i cant make the serial port to work plz help.

Post by GeoffS » Thu Jan 30, 2020 11:31 pm

Your Pi will have two IP addresses, 127.0.0.1 which is called the loopback address and the IP address you assign to it .
Connecting to the loopback address will work but only if you are accessing it from the PI itself. For network access from another computer on the network, you use the assigned IP address (192.168.1.168 in your case).

You will need to upload grbl to the Arduino if not already done. This can be done via the Arduino IDE or through one of the scripts in RPI-CNC-Config-Scripts/resources/scripts.
Regards
Geoff

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests