- SCLK : LaunchPad DIO10
- MOSI : LaunchPad DIO9
- MISO : LaunchPad DIO8
- CS : LaunchPad DIO14
- GND : LaunchPad GND
- VCC : LaunchPad 3V3
Showing posts with label ENC28J60. Show all posts
Showing posts with label ENC28J60. Show all posts
Thursday, March 9, 2017
SPI connection between LAUNCHXL-CC1310/LAUNCHXL-CC2650 and ENC28J60 to run 6lbr
You can do the following SPI connection between ENC28J60 and LAUNCHXL-CC1310/LAUNCHXL-CC2650 to run 6lbr
Wednesday, January 11, 2017
Build 6lbr running on CC2650DK, CC1310DK, LAUNCHXL-CC2650 or LAUNCHXL-CC1310
The following steps show how to build 6lbr running CC2650DK or CC1310DK
1. Refer to http://sunmaysky.blogspot.tw/2016/03/running-6lbr-on-cc2538dk-with-enc28j60.html which shows you how to connect ENC28J60 to SmartRF06EB.
2. git clone --recursive https://github.com/cetic/6lbr
3. Change "#define CETIC_6LBR_NVM_DEFAULT_CHANNEL 26" in \6lbr\examples\6lbr\6lbrnvm-data.h to "#define CETIC_6LBR_NVM_DEFAULT_CHANNEL 25"
4. Add "#define RF_CORE_CONF_CHANNEL 25" into common configuration in \6lbr\examples\6lbr\project-conf.h
5. Change directory to \6lbr\examples\6lbr
6. Change the macro CETIC_6LBR_NVM_SIZE from 2048 to 4096 in file cc26xx-int-nvm.c (p.s. this is not necessary if you use LAUNCHXL-CC2650 or LAUNCHXL-CC1310)
#define CETIC_6LBR_NVM_SIZE 4096//2048
7a. Run "make TARGET=srf06-cc26xx BOARD=srf06/cc26xx all" for CC2650DK or
7b. Run "make TARGET=srf06-cc26xx BOARD=srf06/cc13xx all" for CC1310DK or
7c. Run "make CC26XX_NVM=ext TARGET=srf06-cc26xx BOARD=launchpad/cc2650 all" for LAUNCHXL-CC2650 or
7d. Run "make CC26XX_NVM=ext TARGET=srf06-cc26xx BOARD=launchpad/cc1310 all" for LAUNCHXL-CC1310
8. Download cetic_6lbr_router.bin under \6lbr\examples\6lbr\bin_srf06-cc26xx to CC2650DK , CC1310DK, LAUNCHXL-CC2650, or LAUNCHXL-CC1310 with Flash Programmer 2.
9. You should see the following outputs on UART of CC2650DK , CC1310DK, LAUNCHXL-CC2650, or LAUNCHXL-CC1310.
9. You can access to [bbbb::100] now.
1. Refer to http://sunmaysky.blogspot.tw/2016/03/running-6lbr-on-cc2538dk-with-enc28j60.html which shows you how to connect ENC28J60 to SmartRF06EB.
2. git clone --recursive https://github.com/cetic/6lbr
3. Change "#define CETIC_6LBR_NVM_DEFAULT_CHANNEL 26" in \6lbr\examples\6lbr\6lbrnvm-data.h to "#define CETIC_6LBR_NVM_DEFAULT_CHANNEL 25"
4. Add "#define RF_CORE_CONF_CHANNEL 25" into common configuration in \6lbr\examples\6lbr\project-conf.h
5. Change directory to \6lbr\examples\6lbr
6. Change the macro CETIC_6LBR_NVM_SIZE from 2048 to 4096 in file cc26xx-int-nvm.c (p.s. this is not necessary if you use LAUNCHXL-CC2650 or LAUNCHXL-CC1310)
#define CETIC_6LBR_NVM_SIZE 4096//2048
7a. Run "make TARGET=srf06-cc26xx BOARD=srf06/cc26xx all" for CC2650DK or
7b. Run "make TARGET=srf06-cc26xx BOARD=srf06/cc13xx all" for CC1310DK or
7c. Run "make CC26XX_NVM=ext TARGET=srf06-cc26xx BOARD=launchpad/cc2650 all" for LAUNCHXL-CC2650 or
7d. Run "make CC26XX_NVM=ext TARGET=srf06-cc26xx BOARD=launchpad/cc1310 all" for LAUNCHXL-CC1310
8. Download cetic_6lbr_router.bin under \6lbr\examples\6lbr\bin_srf06-cc26xx to CC2650DK , CC1310DK, LAUNCHXL-CC2650, or LAUNCHXL-CC1310 with Flash Programmer 2.
9. You should see the following outputs on UART of CC2650DK , CC1310DK, LAUNCHXL-CC2650, or LAUNCHXL-CC1310.
9. You can access to [bbbb::100] now.
Tuesday, March 22, 2016
Running 6lbr on CC2538DK with ENC28J60 and make CC2650STK send sensor data to IBM MQTT quickstart service.
The following steps show how to run 6lbr on CC2538DK with ENC28J60 and make CC2650STK send sensor data to IBM MQTT quickstart service.
For CC2538DK and ENC28J60,
1. Connect CC2538DK with ENC28J60.
2. Git 6lbr develop version from Github
git clone https://github.com/cetic/6lbr
git checkout develop
3. Build 6lbr for CC2538DK with ENC28J60
make TARGET=cc2538dk all
4. Use Flash Programmer 2 to download cetic_6lbr_router.bin (under \6lbr\examples\6lbr\bin_cc2538dk) to CC2538DK.
For CC2650STK,
1. Git Contiki from Github (refer to http://sunmaysky.blogspot.tw/search/label/Cygwin)
2. Add the following lines in project-conf.h of cc26xx-web-demo example to use nullRDC
#undef NETSTACK_CONF_RDC
#define NETSTACK_CONF_RDC nullrdc_driver
3. Build cc26xx-web-demo.bin for CC2650STK
make BOARD=sensortag/cc2650 cc26xx-web-demo.bin
4. Use Flash Programmer 2 to download cc26xx-web-demo.bin to CC2650STK
Enable NAT64 to make CC2650STK can report sensor data to IBM MQTT quickstart service.
1. Connect Ethernet cable to CC2538DK-ENC28J60 and power on to run 6lbr.
2. Use Firefox to open web page at [bbbb::100] and switch to Configuration page. Change channel to 25 and select all options under IP64: to on. Press Submit button to write configurations and restart 6lbr.
3. Turn on CC2650STK to make it join 6lbr. Click on the web link in sensor page.
4.In sensor web page, click "IBM Quickstart"
5. Sensor data from CC2650STK would show on IBM MQTT quickstart service.
For CC2538DK and ENC28J60,
1. Connect CC2538DK with ENC28J60.
- SCLK : CC2538 Port A2 (mapped to RF1.16 on P407 of SmartRF06EB)
- MOSI : CC2538 Port A4 (mapped to RF1.18 on P407 of SmartRF06EB)
- MISO : CC2538 Port A5 (mapped to RF1.20 on P407 of SmartRF06EB)
- CS : CC2538 Port B5 (mapped to RF1.17 on P407 of SmartRF06EB)
2. Git 6lbr develop version from Github
git clone https://github.com/cetic/6lbr
git checkout develop
3. Build 6lbr for CC2538DK with ENC28J60
make TARGET=cc2538dk all
4. Use Flash Programmer 2 to download cetic_6lbr_router.bin (under \6lbr\examples\6lbr\bin_cc2538dk) to CC2538DK.
For CC2650STK,
1. Git Contiki from Github (refer to http://sunmaysky.blogspot.tw/search/label/Cygwin)
2. Add the following lines in project-conf.h of cc26xx-web-demo example to use nullRDC
#undef NETSTACK_CONF_RDC
#define NETSTACK_CONF_RDC nullrdc_driver
3. Build cc26xx-web-demo.bin for CC2650STK
make BOARD=sensortag/cc2650 cc26xx-web-demo.bin
4. Use Flash Programmer 2 to download cc26xx-web-demo.bin to CC2650STK
Enable NAT64 to make CC2650STK can report sensor data to IBM MQTT quickstart service.
1. Connect Ethernet cable to CC2538DK-ENC28J60 and power on to run 6lbr.
2. Use Firefox to open web page at [bbbb::100] and switch to Configuration page. Change channel to 25 and select all options under IP64: to on. Press Submit button to write configurations and restart 6lbr.
3. Turn on CC2650STK to make it join 6lbr. Click on the web link in sensor page.
4.In sensor web page, click "IBM Quickstart"
5. Sensor data from CC2650STK would show on IBM MQTT quickstart service.
Subscribe to:
Posts (Atom)