What is the minimum processor frequency to bit bang CAN FD protocol - can-bus

I am working on a report on bit banging for various communication protocols.
I need information on hardware requirement to implement a particular protocol, mainly the minimum processor frequency requirement to run the code of bit banging for CAN FD ,MLVDS.
It will be better if get to know a more generic frequency requirement for running the code of bit banging for most of the communication protocols.
If anyone has worked on it ,plz help me out .Any suggestions on sources where i can get this will be also helpful.
Thank you in Advance

Related

fuzzy logic for RPL objective function experiment

I'm intending to develop a new OF for RPL in cooja simulator, the thing is that I don't find any tutorial or example on how to do so!
Also, There are hundreds of published papers on this work, yet no guidance on how to conduct your own experiements!
Any help or tutorial i can follow.
Furthermore, i need to know what are possible tools needed to do so, like matlab, python or C++ libraries?
too much confused and cannot figure out where to start actually.
Please Help
Please Help I have been searching and reading alot, nothing found but journal papers discusses things theoritically.

Control of shift registers with ESP8266 and MicroPython

I've an issue with my current micropython project on my ESP8266. I've a 10x10 LED matrix which i would like to control via 4 shift registers.
In general 3 pins are required for the controlling DATA, LATCH and CLOCK. After some hours of internet searching the most promising solution was the usage of SPI, where also found some useful instructions for the pyboard (thank you for the code btw):
https://forum.micropython.org/viewtopic.php?t=1219
I tried to replace the pyboard specific librarys with the general machine module for the ESP8266 to get access to the SPI class. It worked fine till a specific point but the main issue at the moment is that it was not capable provide a binary signal at the DATA pin.
To be honest I'm a little bit confused about the write methods in the machine.SPI class. The docu says the return value is None. So in general what is the purpose of a write method with a return value of None (sry for the maybe silly question)
Is there maybe another solution to get a binary signal out of the data pin? I'm not sure anymore if the usage of SPI is the best way to manage the controlling. Do you have some other examples or tutorials to get deeper into the topic?
Thank you for your kind response in advance,
BR charlzo

Alternative ZigBee Stack

Is there any stack that can be an alternative for the Microchip ZigBee Stack? I have a PIC18F27J53 microcontroller and MRF24J40MB Transceiver. I tried to read and understand the examples included in the Microchip ZigBee Stack but I have no luck. I think the examples are too complex for beginners like me. I only intend to send and receive data to and from sensor nodes. Also, PIC18F27J53 is not included in the Zena Configuration Tool device list.
Any help will be much appreciated.
1.You can try cc2500 rf pro. Its easier, cleaner and quite inexpensive than ZigBee.
2. OR even better you can try to use ZigBee with the arduino. You have inbuilt libraries, and if you say you are a beginner, then sending data will be as easy as writing to the UART port, which is by the way a one line command. 3. OR if you dont mind lower frequencies you can go for the standard rf module (or so it is called). You can find more about it, and how to use it here. http://extremeelectronics.co.in/rf/rf-communication-between-microcontrollers-part-i/
I would go for Option 2 first, then 3 then 1. (since you said that you are a beginner).

bluetooth communication in nxj

I'm nxj beginner.
I have some questions about bluetooth communication between PC and brick.
First, when bluetooth communication occurs, where is the birthplace processing this datas?
In other words, I want to know whether these datas will be processed on CPU or brick.
Second, what is exact roles CPU and brick in bluethooth communication?
That means what is processed on CPU and what is processed on brick.
I have searched almost web site but I can't find this anywhere.
Please help me. Thanks.
You can see it in the package structure.
lejos.nxt.*
This package contains classes running on the NXT-brick. All code in this package will be compiled for the brick and will run on the brick.
lejos.pc.*
Here the difference is not that clear. This is java-code you compile for personal computer. So most code runs on your computer. But some classes (e.g: RemoteMotorController) only send messages to the NXT-brick which gives commands to the motors.
lejos.pc.comm provides API's that allow you to communicate/control the nxt robot from the PC.
When importing the the libs to an Android project, it allows you to build an instance of the same environment used on a pc, but within android.
I agree it can be tough finding some things out. It would be great if there was as stronger lejos presence on SO
This question is months old and has remained un-answered I actually have a lot of questions about it myself, but I might be able to provide some insight for utter novices.
when using bluetooth with Android and NXJ robots, you use either lejos.pc.comm or lejos.NXJ.
Both provide APi's to do almost the same thing, but work a little differently. I don't know nearly enough about the NXJ api, but I do know that it is the one that lets you manipulate the robot much more effectively, such as outputting data to it's LCD screen, which you can't do with the pc.comm api
As far as I can tell, the pc.comm API uses both Android Bluetooth API's and it's own protocols to allow communication with Lego LCP commands.
(I want to come back to this, but I'm writing a dissert on the topic so I'll try to update it in a couple of days. Seems not many are interested though, shame)

Getting started - creating an iPhone app that controls another (non-iOS) device via bluetooth commands

All,
Apologies in advance - this question might be too open-ended for SO.
Anyway... A friend of mine (an engineer and entrepreneur) is in the process of building a high-tech piece of lab equipment. He's asked me about the feasibility of building an iPhone/iPad/iPod application that would allow users to control the device via Bluetooth, so I'm helping him gather some information. I'm hoping to get a few pointers on how to get started. Specifically:
Would this require a native app, or could this be accomplished with HTML5 (with or without something like PhoneGap?)
Can you point me to a good primer on bluetooth networking? Everything I've found assumed a VERY high level of pre-existing knowledge.
What are the basics on how something like this is accomplished? Is there a single, established protocol for how one device "controls" another, or is bluetooth more like SSL - just a pipe that allows you to convey any type of message?
I realize this question is incredibly broad and detailed - so I'm not really looking for specifics. But obvious Google searches don't turn up much, and I'm otherwise having a hard time finding a good starting point.
Thanks in advance.
You can communicate via bluetooth in two ways: One is using the Low Energy Bluetooth capabilities of iOS 5 and newer iPhone/ipads.
https://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html#//apple_ref/doc/uid/TP40011295
Unfortunately the documentation is sparse and will require some hacking away. If you choose this route I would consider starting here and learning as much as you can about how the protocols work before hacking into the framework:
http://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx
The limitations of this route are that it might not be best for sending a lot of data. I have only built stuff that sent simple commands which it does work great for.
The other option is the external accessory framework. This will require you to get an mfi license from apple (not fun). You will also need to pay royalties. But it will do what you want. You won't need to concern yourself much with underlying protocols if you use this, the framework provides a friendly api for processing streams.
http://developer.apple.com/library/ios/#documentation/ExternalAccessory/Reference/ExternalAccessoryFrameworkReference/_index.html

Resources