SLIP protocol support for Nanostack
pelioniot / sal-stack-nanostack-slip Goto Github PK
View Code? Open in Web Editor NEWSLIP protocol support for Nanostack
License: Other
SLIP protocol support for Nanostack
License: Other
Hi there,
Sorry if i'm missing something, I've been digging for a few hours now and can't see where the SlipMACDriver actually initiates a transmission.
In practice this presents as [ERR ][slip]: Ran out of TX Buffers.
and there does not appear to be any slip packet output over serial (also the serial send method is never called, validated in the debugger).
The transmission process as far as I can see:
SlipMACDriver::slip_if_tx()
is called to send a SLIP packet
txIrq()
for the current instanceSlipMACDriver::txIrq()
gets called on the completion of the underlying serial tx
pCurSlipTxBuffer
pCurSlipTxBuffer
once it is emptySo once a transmission has been started, provided the underlying serial interrupt is being called (which also appears to be a problem on my platform, par for the embedded course).
But in the first instance, or if there isn't a transmission already in flight it'll never begin another transmission?
My suggestion would be that txIrq()
should be fired from the slip_if_tx()
method after registering the callback, or alternately via a signal to the SLIP_IRQ_Thread
, but I am unsure as to how this was intended to work.
Thanks for the help (again!),
Ryan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.