
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
wifi-cc3100
Advanced tools
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.
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.
Name | Tessel | CC3100BOOST | Description |
---|---|---|---|
GND | 1 | 3.2 | Ground |
SCK | 5 | 1.7 | SPI Clock |
MISO | 6 | 2.7 | SPI master in/slave out |
MOSI | 7 | 2.6 | SPI master out/slave in |
CS | 8 | 2.3 | SPI Chip Select |
IRQ | 9 | 2.2 | Interrupt request |
nHIB | 10 | 1.5 | Hibernate |
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.
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.
FAQs
Node.js module for connecting CC3100 to the Tessel.
We found that wifi-cc3100 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.