Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
The npm package wifi-cc3100 receives a total of 0 weekly downloads. As such, wifi-cc3100 popularity was classified as not popular.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.