Saturday, July 7, 2018

Orange Pi Zero serial port


Orange Pi Zero ports in the small cube system have a serial port on the power port (micro USB) as well as power.

The only thing I've found so far says that the baud rate is 115200 baud.  On the linux system I hooked it to turned out to connect at 9600 baud.

http://www.orangepi.org/Docs/LogintotheOrangePi.html

Otherwise this note on connecting (I'm guessing they didn't use an RPI 3+) to another SOC board is okay.

minicom connects fine.

The other note on the raspian system running on the RPI 3+ is that the device is /dev/ttyAMA0

Also, have not figured out how to get the current raspian to come up on this system w/o a network cable attached.

Wifi is connected manually with the cli interface instructions elsewhere and works once up.  But from a power on, the system is stuck somewhere with no console or other output on the ttyAMA0 port to indicate what is stuck.

and if one lets the orangepizero come to an end (blinking that is on the RJ45 ports, plugging in a live network doesn't get it to continue to successful boot.



Wednesday, July 4, 2018

system sources, remote and local

Intel NUC
   https://www.intel.com/content/.../mini-pcs.html

   NUC6iSYK
      http://Intel.../documents/boardsandkits/NUC6i5SYB_NUC6i3SYB_TechProdSpec.pdf

Orange Pi
   http://www.orangepi.org/downloadresources/

   Zero
      https://www.armbian.com/orange-pi-zero/

Friendly Arm
    http://wiki.friendlyarm.com/wiki/index.php/Main_Page

   Nano Pi Neo
       http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO
   Nano Pi Neo2
      http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2
   Nano Pi Neo Dock
      http://wiki.friendlyarm.com/wiki/index.php/1-bay_NAS_Dock_v1.2_for_NanoPi_NEO/NEO2
   NanoPC T4
      http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4 

Solidrun

   Cubox i4pro
      https://www.solid-run.com/downloads/

Raspberry Pi

   Zero
   Zero W
   Raspberrypi 2
   Raspberrypi 3+
      https://www.raspberrypi.org/downloads/raspbian/

Hardkernel
   https://wiki.odroid.com/

   Odroid HC2
      https://wiki.odroid.com/odroid-xu4/os_images/third_party
      https://www.hardkernel.com/main/products/prdt_info.php?g_code=G151505170472 

display operating system versions


windows systems

system info msc page

linux

armbian    /etc/armbian-release


Tuesday, June 26, 2018

run program on windows minimized



Manual method, set from "normal" "maximized" "minimized' in properties.
https://www.cnet.com/how-to/how-to-automatically-start-a-program-minimized-in-windows/

launch via command prompt minimized

https://stackoverflow.com/questions/23057448/open-program-minimized-via-command-prompt

To open notepad in minimized mode:
start /min "" "C:\Windows\notepad.exe"
To open MS word in minimized mode:
start /min "" "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE"



-30-

windows 10 startup at first logon



We only need to have our program running after the first user login, so no need for an earlier start.  Also none of the functions are required to be present when the user is not logged on, so logoff killing all applications, including this one is okay.

The start menu example:

C:\Users\jws\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

is sufficient for starting the fso.  shortcut to app needs to be installed there to launch

manual way to do it:
https://www.windowscentral.com/how-launch-apps-automatically-during-startup-windows-10

shell:startup

shell:AppsFolder

will bring up installed apps and startup folder (abs path above) for the user it is run on.

application is run w/o admin privileges so should be find with just a shortcut, not rights elevation.

https://www.howtogeek.com/208224/how-to-add-programs-files-and-folders-to-system-startup-in-windows-8.1/

With registry entries

https://winaero.com/blog/how-to-add-or-remove-startup-apps-in-windows-10/

To add or remove startup apps for the current user from the Registry, you need to follow the instructions below:
  • Open Registry Editor.
  • Go to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
  • There you will find startup items for current users which are stored in the Registry:
If we need runonce vs. run always.

https://docs.microsoft.com/en-us/windows/desktop/SetupApi/run-and-runonce-registry-keys

The Windows registry includes the following four keys:
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
 complaint from github about Installshield

https://github.com/HandBrake/HandBrake/issues/414




-30-

Monday, June 25, 2018

crontab examples



example:  to run a program every 5 minutes

*/5 * * * * /root/checkmotion/checkmotion.sh

https://crontab.guru/every-5-minutes 

https://crontab.guru/examples.html

crontab template

*/5      *       *       *       *
Minute   hour    day     month   day
                (month)         (week)


*           any value
,           value list separator
-           range of values
/           step values
@yearly     (non-standard)
@annually   (non-standard)
@monthly    (non-standard)
@weekly     (non-standard)
@daily      (non-standard)
@hourly     (non-standard)
@reboot     (non-standard)


to edit crontab;

export EDITOR=vi
crontab -e

(or editor of choice)

-30-

Sunday, June 24, 2018

raspberry pi bluetooth audio


as of 10/2017 versions of raspbian, it appears that bluetooth raspberry pi bluetooth adio doesn't work.

A lot of the thread below is for any bluetooth (probably adding a USB adapter for the RPI).

My attempt is for Raspberry Pi Model 3 B which has bluetooth  on the board.

Select audio device by right clicking the gui symbol and selecting audio device.

https://www.raspberrypi.org/forums/viewtopic.php?t=192859

https://raspberrypi.stackexchange.com/questions/53408/automatically-connect-trusted-bluetooth-speaker

https://www.raspberrypi.org/magpi/bluetooth-audio-raspberry-pi-3/

note after all the audio crap, VLC playback of video produces a black box, no video on the 7" raspberry pi screen frame buffer.  Not so useful.

bluetoothctl
scan on
<search for device>
copy device address
pair <device>
connect <device>

should show connected on gui bluetooth gui.

right click the gui audio, and bluetooth device should be available as a device for audio.

-30-