MPLab X

20170106

(PIC32MX695F512L)

Dell XPS 2710 W10

Installed full MP Lab X 3.50 package all options

Near end of install it

  1. Reminded me to use switcher for IDe V8.x to MPLab X switching
  2. Optionally took me to links for:
    • XC compilers (I downloaded XC32)
    • Harmony 2.0 beta
    • MPLab Code Configurator
  3. Gave me host ID and license type links
    • I got trial license using host id and ran provided .bat file

Opened provided MPLab X project, got error re missing plib.h etc

  • DL & Installed:
    • PIC32 Legacy Peripheral Libraries – Windows 6/17/15
    • Installer said IMPORTANT to install after compiler so note to self to uninstall in reverse order

Still get error so tried:

  • File->Project properties->XC32 (Global Options) and checked Use Legacy libc

Now I get:

In file included from ../xxxx/xxxx.c:7:0:
c:\program files (x86)\microchip\xc32\v1.42\pic32mx\include\lega-c\plib.h:41:30: fatal error: peripheral/adc10.h: No such file or directory
 #include <peripheral/adc10.h>

So:

  • Project properties->XC32-xc32-gxx:
    • Option Categories: = Preprocessing & messages
      • Added specifc path “C:\Program Files (x86)\Microchip\xc32\v1.40\pic32mx\include\lega-c”

Uninstalled all, installed MPLab X 3.15, XC32 1.33 per KE2

Host ID is 5cf9dddd73e2 for XC 1.33

STM F4 Discovery IDE

Install CooCox IDE CoIDE-1.7.8

Install GCC ARM compiler gcc-arm-none-eabi-6_2-2016q4-20161216-win32

Install STM32 Link utility (Installs drivers as well) is file en.stsw-link004

When you go to build your project, it will ask for the path to the compiler, complete that and you are away

HTTP Response codes quicklist reference for RestAPI

Method Method
200 OK 201 Created
202 Accepted 203 Not authorized
204 No content 205 Reset content
206 Partial content
300 Multiple choice 301 Moved permanently
302 Found 303 See other
304 Not modified 306 (unused)
307 Temporary redirect
400 Bad request 401 Unauthorized
402 Payment required 403 Forbidden
404 Not found 405 Method not allowed
406 Not acceptable 407 Proxy auth required
408 Timeout 409 Conflict
410 Gone 411 Length required
412 Preconditions failed 413 Request entity too large
414 Requested URI too long 415 Unsupported media
416 Bad request range 417 Expectation failed
500 Server error 501 Not implemented
502 Bad gateway 503 Service unavailable
504 Gateway timeout 505 Bad HTTP version

EMW3165 IT SOM

Ubuntu 15.10 Desltop 64 bit installed on VBox 5.0 (Win 10 host)

Lets follow:

http://www.seeedstudio.com/recipe/344-programming-emw3165-with-broadcom-wiced-and-gcc.html

  • EMW3165 is soldered to EMWE-3165

Downloaded WICED-SDK-3.3.1

7/20/2015 UPDATE: 
After installing the IDE you may not see all the APPs.  Press F5 in Eclipse to refresh and all the Apps will show.



Known Limitations & Notes

---------------------------------------------------------------------

 

* Features not yet supported in WICED-SDK-3.3.1

   - IAR Embedded Workspace native support

 

* Platform Restrictions:

BCM943341WCD1

- Wi-Fi Direct not support

- SPI bus not supported

- Enterprise security and AMQP not tested

- Apple Homekit and WAC not supported

- Apps appliance, temp_control, mfg_test, AMPQ not working

BCM4390WCD2

- Wi-Fi Direct not supported

- WPS may timeout with some access points

- Enterprise security not tested

- Apple Homekit and WAC not supported

- Apps appliance, temp_control, mfg_test, AMPQ not working

BCM43362     

         - Enterprise security, AMQP and mfg_test not tested

- Apps appliance and temp_control not working

BCM43364    

         - Enterprise security and AMQP not tested

- Apps appliance, temp_control, AMPQ not working

- wl --serial x fqacurcy y is not supported

       BCM43909

- Enterprise security and AMQP not tested

- Apps appliance, temp_control not supported

- wl --serial x iscanresults is not supported

Following the step from SEEDSTUDIO:

SETTING UP THE WICED FOR EMW PROJECT
1. First of all, make sure you have git installed on your machine. Try typing "git" into a terminal window and if that gives you an error message, look up how to install git on your operating system.

2. In a terminal window, navigate to where you want to set up WICED, for example "~/repos".

3. Run "git clone https://github.com/MXCHIP-EMW/WICED-for-EMW.git". This will create a new directory in the current directory called "WICED-for-EMW".

Place the file "WICED-SDK-3.3.1.7z.zip" you downloaded from Broadcom into the new directory.

Enter the directory in the terminal and run "./extract-and-patch-WICED".

WICED is now set up and patched to work with EMW3165, as well as EMW3162.
  1. Started a Terminal window
  2. Entered ‘sudo apt-get install git’ seems ok
  3. Entered ‘mkdir WICED’
  4. Entered ‘git clone https://github.com/MXCHIP-EMW/WICED-for-EMW.git’ seems ok
  5. Copied download to ‘WICED – for – EMW’
  6. Entered ‘./extract-and-patch-WICED’
    • Get message re Decompressing WICED, but then I get line:22 7z: command not found
    • Assuming no 7zip installed on Ubuntu be default: Entered ‘sudo apt-get install p7zip’
    • Did that and retried command above
    • Bloody hell, ok after a few retrys, realise that before 6 above need to do a : ‘sudo apt-get install p7zip-full’. [I fucking hate Linux]

———–

EMWE-3165-STLINK-JTAG

Stlink P1 -> P15, JTRST -> Reset

Stlink P4 -> P9, SWCLK -> SWCLK

Stlink P6 -> P5, SWDIO -> SWDIO

Stlink P7 -> P4, 6, 8, 10, 12…. Gnd -> Gnd

But my cheap STLink V2 has a different pinout..

P1 -> P15 Reset

P2 -> P9 SWDCLK

P4 -> P5 SWDIO

P6 -> GND

—-

Default Bootloader needs SW1 down, outputs on serial at 912600

BeagleBone flashing, boot source and other OS reminders

20150816

BeagleBone Black Rev A5C = 2GB eMMC on board

Updating the OS

Ansgtrom was onboard eMMC as supplied and booted up fine onto HDTV using HDMI

Went looking for latest distro and found latest Debian distros at http://beagleboard.org/latest-images (Angstrom depreciated?)

  • Downloaded runnable version, installed and used Win32DiskImager http://sourceforge.net/projects/win32diskimager/ to output unzipped imgage to 16GB micro SD Card
  • Loaded SDCard into BBB and held down User button whilst applying power.
  • Booted ok into desktop

Downloaded latest ‘flash’ version targetted for 2GB eMMC, and preparred another SDCard as per above

Booted ok, and watch on TV as it flashed from SDcard into eMMC

After it powered off removed SDCard and restarted BBB, booted ok and displayed terminal login on screen

Debian minimal eMMC image – installing LXDE desktop

Logged into debian terminal and did:

sudo apt-get update
sudo apt-get -y install lxde lxde-core lxde-icon-theme

Went through each command above and accepted options

NODEMCU getting started

2 x NodeMCU arrived. Website is a bit cryptic.  Turned to YouTube as this video is not too fluffy

Point to note:

  • Github/nodemcu for:
    • nodemcu-firmware
    • nodemcu-flasher
  • Connect ia USB and run flasher and is self evident process

Restart device go to terminal program and connect for interactive Lua session.

Then a LUA uploader:

  • github.com/hwiguna for ‘Lua Uploader’

 

 

IOT SOM options

Linux onboard

RT5350

VoCore: http://vocore.io/store/index

Ingenic M150

Halley Development kit

http://www.ingenic.com/en/?newton/id/7.html

MTK MT7620N

http://wrtnode.com/

Qualcomm Atheros AR9331 SoC

http://www.black-swift.com/


Non OS

ESP2866

An interesting option based on negligible pricing.

Restricted in sockets, but still possibly useful.

Interesting firmware options, either download to unit itself (SDK available) or for simple applications/ 2 x Node Lua variants:

Example apps, seems to fit a lot into ESP2866:

http://harizanov.com/2015/02/wifi-thermostat-with-weekly-scheduler/

http://harizanov.com/wiki/wiki-home/three-channel-wifi-relaythermostat-board/

http://nodelua.org/

http://www.electrodragon.com/?s=esp8266&post_type=product

So, have some ordered and will see what can be done with these.

EMW3165

Looks very good on paper just waiting for GCC support

Limited toolsets available, limited information.

Ordered a couple + dev board

IOT Protocols

In the background I am trying to be mindful of message services from embedded devices to consumers.

So it will be useful to start to collect some thoughts on whats already being done out there..

Activity Streams

http://activitystrea.ms/

MQTT

http://dejanglozic.com/2014/02/24/the-queue-is-the-message/

http://www.computerworld.com/article/2496621/emerging-technology/the-internet-of-things-gets-a-protocol—-it-s-called-mqtt.html

AMQP

https://www.rabbitmq.com/tutorials/amqp-concepts.html

http://stormmq.com/blog/amqp/