[Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Who doesn't love third-party apps? Get together and talk about them here.
User avatar
Nazar78
Posts: 2079
youtube meble na wymiar Warszawa
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by Nazar78 »

father.mande wrote:I have also to understand the difference with Nazar78 module size of module are different my cp210x.ko is at 501256 bytes when Nazar78 one is at 552960 bytes
I guess we all learn new things everyday :D I'm sure you're aware of this, the sizes won't always be the same due to several reasons such as environment, compiler version, stripping modules etc. My cp210x.ko size shared here is actually 547088 bytes, taken directly from the tree compiled using (Debian 8.3.0-6) 8.3.0 running in VirtualBox Windows 11 Pro (yeah I know older Debian, yet to upgrade my build tools but it just works). If I were to compile on the NAS itself under chroot (Debian 10.2.1-6) 10.2.1 20210110, (yes you don't need VM as you can compile it on the NAS using containers with less overhead) the cp210x.ko size will be 443656 bytes (refer screenshot). Feel free to try and go figure :?
Screenshot 2022-07-15 210415.png
Screenshot 2022-07-15 210415.png (366.72 KiB) Viewed 8406 times
Good that you boldly brought this up :) so users will be wary installing apps from the internet. I'm also using OctoPrint 1.8.1 on the Nimbustor4 but not using this APKG. I'm running it in NAS chroot connected to my Aquila X2 3D printer wirelessly via USB/IP. I also modified some python modules to suit my needs for Laser and CNC attachments. I prefer to build my own from the source because I don't usually trust even the maintainer if source code is not included i.e. the APKGs on the App Central (not to offend anyone just my style). If I were to share my work, unless it's patched which I will document, else it will be straight from the source. I have a reputation to maintain for my 700+ donors. So guys, do use these apps/modules downloaded online at your security discretion.

I'm just trying to help the community during my free time, hope it's clear :D
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by father.mande »

Hi,

No problem, I don't need APKG to run what I want ... subject is closed ... :D :D

so stopping it is just nothing ... a non event. :mrgreen:
It's certainly a better student approach to push users to build by yourself what he want.

and this free lot of new free time for me.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
photog
Posts: 3
Joined: Thu Jul 21, 2022 10:37 am

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by photog »

Hi Phillipe,

Could you share your ADM 4.1.x APKG?

Thanks in advance,
G
photog
Posts: 3
Joined: Thu Jul 21, 2022 10:37 am

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by photog »

Please disregard. I found the thread that you posted today with the fix. Thanks so much!

https://forum.asustor.com/viewtopic.php ... int#p44209

G
iR0ck
Posts: 5
Joined: Tue Aug 15, 2023 9:11 pm

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by iR0ck »

Hi
New to it. Really want to use Octoprint with my Asustor NAS. My ADM 4.2.2. Could someone please explain the steps to connect NAS with Octoprint?
I have installed Octoprint on NAS, and updated it to version 1.9.2 and on connection, it says "Could not autodetect your printer". Standard, browser Octoprint is connected through ttyUSB0, but NAS Octoprint doesn't have such an option. :?:
Do I need to install 5.13.x_usb_async_drivers.tar on my pi?
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by father.mande »

Hi,

I have build the kernel modules for 4.2.2 ... but not yet integrated (or delivered it)
I am not in my lab, but I will do it ASAP. (even need my lab and my printer to confirm that all work as expected (last test with Octorpint 1.8.2))

Sorry for the inconvenience, I am in travel and at a long distance from my lab.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by father.mande »

Hi,

As a temporary workaround (up I update the APKG ... this need test on ADM version due to change in kernel (same name 5.13.X for 4.2.2 x86_64) ... so need some work and change.

1 get the tar file here
put in /share/Public (or any share you are able to use)
2 extract
tar xzf new_octo_modules.tgz
... this create a folder new_octo_modules
3 cp new modules in Octoprint APKG (kernel 5.13.x for you 5.4.x is for NAS using old 4.0.6.RLQ1 + ex. AS5002T not updated by Asustor)
cp -p new_octo_modules/5.13.x/*.ko /usr/local/AppCentral/octoprint/modules/5.13.x/
4 short way ...
just load module corresponding to your printer :
insmod /usr/local/AppCentral/octoprint/modules/5.13.x/ch341.ko OR cp210x.ko OR pl2303.ko
... if you don't know the module ... load all (one by one)
then eventually change the access right to /dev/ttyUSB0 : chmod 777 /dev/ttyUSB0 ... normally this is done automatically by adm_start_survey_tty.sh launched by octoprint APKG
4 long way
disable octoprint APKG
rm -f /tmp/.octoprint_lock
enable octoprint

This solve usage of printer ... for the video survey, the module need some more work (due to error in modules.dep.bb created by Asustor) ... I will integrate it as soon as possible.

Philippe.
new_octo_modules.tgz
usb modules driver
(773.92 KiB) Downloaded 103 times
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
iR0ck
Posts: 5
Joined: Tue Aug 15, 2023 9:11 pm

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by iR0ck »

father.mande wrote: then eventually change the access right to /dev/ttyUSB0
Thanks, how do I change that? Don't understand
Last edited by iR0ck on Wed Aug 16, 2023 7:47 pm, edited 1 time in total.
iR0ck
Posts: 5
Joined: Tue Aug 15, 2023 9:11 pm

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by iR0ck »

Would be good if someone makes a step-by-step video of how to get it working
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [Octoprint 1.6.1] ADM 3.x & 4.x NOW in AppCentral

Post by father.mande »

Hi,
iR0ck wrote:
father.mande wrote: then eventually change the access right to /dev/ttyUSB0
Thanks, how do I change that? Don't understand
It's in the post, connect you as root/your_admin_password
use dmesg (command in blue in my posts) to get the name of the /dev/ttyUSB... created
use chmod to change access rigth (to all user) :
chmod 777 /dev/ttyUSB0 for ex.

APKG contain a script to do it (if necessary) automatically when a new ttyUSB is created ... it's why I write eventually, in case you don't restart Octoprint in clean state (as after a reboot of the NAS)

The normal step (as APKG do) :
load modules
plug printer (even if all is correct the printer can be plugged before)
define the ttyUSB in octoprint and connect octoprint to the printer

I have only integrated the more common USB serial interface ... so you can check for your printer the good driver require in Linux kernel ... and write a post if the module is unknown or not provide. (lot of USB serial driver exist ... )

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Developer's Corner”