Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wifi-cc3100

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wifi-cc3100

Node.js module for connecting CC3100 to the Tessel.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

wifi-cc3100

Node.js module for connecting CC3100 to the Tessel.

I have started to look at getting the CC3100 to work with the tessel. This is the next version of the wlan chip currently used in the tessel. Improvements over the current chip would be 802.11n support, more concurrent sockets, higher throughput and less buggy.

Hardware

Connecting the CC3100 to the tessel is easiest done with the CC3100BOOST, which is a small breakout board for the actual chip. Hooking it up to the tessel is as easy as connecting 7 cables. You can use any port on the tessel for this, since they all share the same SPI channel.

Visualization

NameTesselCC3100BOOSTDescription
GND13.2Ground
SCK51.7SPI Clock
MISO62.7SPI master in/slave out
MOSI72.6SPI master out/slave in
CS82.3SPI Chip Select
IRQ92.2Interrupt request
nHIB101.5Hibernate

Software

The source code for the software is available in a GitHub repo at https://github.com/LinusU/wifi-cc3100. Easiest to get started is to clone the repo and run the test-file included. It has the port hard-coded to B so either use that or edit test.js.

git clone http://github.com/LinusU/wifi-cc3100.git
cd wifi-cc3100
tessel run test.js

It will print out a lot of debugging info and hopefully also print out Ready! which indicates that the board was reseted and initialised. The test code will right now try to connect to a unsecured network called FlatRoof, just because that is my setup.

Hacking

To get started with development of the module just start by editing test.js to include what you want to test. Then edit index.js to add the implementation. The implementation of the messages is inside lib/msg.js, it implements serialising and deserialising to the wire. The protocol is implemented in lib/protocol.js and can be used to send a message to the chip, and then wait for response.

index.js has top level methods that packs together a message and sends it via the protocol. The main method here is protocol.send(opcode, descriptors, payload, cb). opcode, descriptors and payload are described on the TI Wiki, see Protocol description below. cb is a callback that will be called once the chip answers.

I recommend downloading the SDK to see exactly what descriptors and payload should contain. The name of the function corresponds to the messages, search their driver source code.

  • Protocol description - Look here for what messages to send to the chip.
  • CC3100 API - Look here for more info on the messages.
  • CC3100 SDK - Look here for the exact data to send in the messages.

FAQs

Package last updated on 23 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc