I'm new to the Arduino platform, but I LOVE it. It's really easy.
I've been writing some simple stuff to learn. Until now the Arduino has been hooked up to my MacBook, so no problem there with connecting or whatever.
The idea is that the Arduino serves as a server controller thermostat later on. This idea includes the Arduino being connected to my (always on) home (file) server, running FreeNAS. FreeNAS will monitor the stream of sensor data received from the Arduino, etcetera. Problem is, where my MacBook finds the Arduino and can read the serial console using tail -f /dev/tty.usbmodemfa131, FreeNAS doesn't recognize the Arduino. I can write the sketches on my MacBook, so I don't need the IDE on FreeNAS, just want to be able to read and write the serial console.
Now I've been searching on the internet for some time now. All I can find is that FreeBSD/FreeNAS needs the uarduno port. And this is where it stops for me, I have no clue on how to install this.
ThomasR2:
I'm new to the Arduino platform, but I LOVE it. It's really easy.
I've been writing some simple stuff to learn. Until now the Arduino has been hooked up to my MacBook, so no problem there with connecting or whatever.
The idea is that the Arduino serves as a server controller thermostat later on. This idea includes the Arduino being connected to my (always on) home (file) server, running FreeNAS. FreeNAS will monitor the stream of sensor data received from the Arduino, etcetera. Problem is, where my MacBook finds the Arduino and can read the serial console using tail -f /dev/tty.usbmodemfa131, FreeNAS doesn't recognize the Arduino. I can write the sketches on my MacBook, so I don't need the IDE on FreeNAS, just want to be able to read and write the serial console.
Now I've been searching on the internet for some time now. All I can find is that FreeBSD/FreeNAS needs the uarduno port. And this is where it stops for me, I have no clue on how to install this.
Does anyone here have any experience with this?
My only experience with FreeNAS was once using it as a fileserver much like you're doing; I didn't do anything really fancy with it, and later switched to a DLINK NAS-320 (?) system which I've been happily using since.
That said, since it is BSD based, maybe this link can help you out - you essentially need to set up or connect to the Arduino using a virtual USB serial port on the NAS box in BSD:
So - look at that thread, and maybe do some more googling on "freebsd usb virtual serial port" and the like search terms. Enough googling and experimentation should help you sort the problem (and if you do get it sorted, post back to this thread what you did and how you did it, to help others with the same or similar problems!)...
I couldn't really figure out what in that discussion I needed. I tried installing ucom, by enabling this in loader.conf. This didn't really help, at least I didn't find out on what serial port this helped anything. I triend /dev/cuau0, etc. When I connect and disconnect the Arduino, only thing in /dev/ that changes is ugen2.2. This isn't accessible as an Arduino serial console.
Switching to Debian or anything else is nearly impossible for me. This is a real DIY NAS, FreeNAS runs on a 2GB USB stick and six 2TB disks on ZFS. Debian is not optimized for the usage I prefer.
Since I see that here is a manual to get the Arduino IDE running on FreeBSD (and probably with the ability of communicating via serial console), it seems to me it should be possible to access the Arduino from FreeNAS/FreeBSD as a virtual serial port.