Why isn't 4B5B used like I2C, SPI? [closed] - serial-port

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was explaining I2C/SPI serial protocols to my friend when he mentioned there's a way to send data between two devices using one wire with the 4B5B protocol. If this is true, why isn't 4B5B used to, say, send data between arduino and peripheral devices?

The short answer is that 4B5B isn't a protocol you can use while I2C and SPI are.
I2C and SPI qualify as OSI Network level 1 and 2 specifications, covering both physical electrical specifications of connection between devices and how the connected devices use the connection to communicate. 4B5B is merely a bit encoding scheme, covering only how to represent 4 bits of data in 5 bits of signal to ensure that the resulting signal has adequate auto-clocking content. 4B5B is not a "protocol" or a level 1 or level 2 network specification, meaning that if you try to connect two devices "using 4B5B" you will still have far too many unspecified details to be able to actually create a connection over which you can exchange data.

Here's a not so useful answer: I think the main reason why it is not part of the Arduino platform is that it isn't implemented on most of the chips on which Arduino is built:
Arduino Nano and Uno are based on ATmega168/ATmega328. Neither 168 nor 328 have 4B5B nor Dallas 1-wire protocol support.
Arduino Due uses ATSAM3x8e. It likewise lacks support for one-wire protocols
Arduino Lenonardo uses a different AVR-architecture chip, the ATmega32u4, but same story.
In the end, the question probably should be put to Atmel rather than Arduino designers.

Related

How to setup the direct optical fiber cable internet connection using media converter (Tp-link MC110CS) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have an optical fiber internet connection. They spliced and joined one side of the SC with the optical fiber cable and the other end of the SC to the modem (Huawei EchoLife EG8141A5).and also they configured a new wlan setup in the modem and its working fine.
Now my modem is not working. So I bought a TP-Link Archer C6 modem and a TP-Link MC110CS media converter. How to configure this modem with these components.!
I connected the SC port from the optical cable to the TX port, I connected the RJ45 cable and the other end to the modem from the media converter, but it did not work.
The media converter (or SFP module) needs to match the optical line's protocol.
The TP-Link MC110CS uses 100BASE-FX which isn't likely to be used. 1000BASE-LX (dual fiber) or 1000BASE-BX10 (single fiber) is much more likely - both won't work with your converter.
Also possible is a GPON variant (single fiber generally) which you'd need to ask your ISP about. GPON won't work with a simple media converter but requires an compatible ONT. If it is GPON you should never connect a TX port from any other variant to it - depending on the exact wavelengths, you might be seriously interrupting transmissions from a whole ODN group.
Also with fiber, you need to take care of using a correct connector: PC/SPC/UPC (grey or blue SC connector) are interchangeable (flat end face), but a green connector indicates an angled end face and must be matched at all times. Using a flat end-face connector in an APC jack (or vice versa) can permanently damage the end faces, requiring replacement.

Whats the difference between Mini-A USB and Mini-B USB connector to power up Arduino Nano? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to connect my Arduino Nano to PC via USB cable. It is described that it needs USB Mini-B connector. But all Mini-B cables are out of stock and only USB Mini-A are available. Will it work with Mini-A. Because I did not find any differences between those two types in terms of connector shape.
No Mini-A will not work.
Type-A connectors are for upstream connections (PC) and Type-B for downstream peripherals (Arduino)
Mini-A was a thing in early 2000s for USB-OTG applications but dropped out of the standard in 2007.
Also they have a different shape. Otherwise a different name wouldn't make much sense.
I don't know where you live but unless it's the Mount Everest it is rather impossible that you cannot get a A-Mini-B cable. Just pick another vendor.
There is a difference in both the cable types i.e., shape, pins etc. You cannot use type-A cable for your Arduino Nano to connect with your computer. I have a solution I used for some modules to program those, you can use FTDI programmer or Arduino UNO as ISP programmer for other Arduino boards, just you need to make some connections between Arduino UNO and Arduino Nano 6-pin jumper according to the pin configurations, the select exact port No. and use Arduino as ISP programmer in programmer setting in Arduino IDE. Here I suggest you to get connected with the SSLA technical support team for getting better assistance from them.

Communication between 2 GSM 900A modems [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am supposed to work on project which involves communication between 2 GSM 900A modems. The main idea is to acquire data in remote location through Arduino (Arduino Mega in my case) and transmitting the data to the Server which will be my laptop, in which that communication part i use 2 GSM 900A modems. I am new to GSM modems so could you please help me with your ideas for establishing communication between 2 modems..
I posted a blog on this topic which is given below. I think it may be helpful for you. link:http://www.jellyfishtechnologies.com/category/embedded/
GSM modems do not follow a common standard, although the command set does tend to be a superset of Hayes AT. You will need to refer to documentation and development kits for your particular devices.

Does anyone have any sample code or suggestions to help me to interface my 100 pin uc3a1512to a device via RS-485? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am attempting to connect and control a device which only accepts RS-485 input. I wish to communicate to this device via my existing UC3A1512. Does anyone have any existing source code or examples that may help me to create this interface?
I need a method of outputting data via RS-485 format.
I do not need to establish round trip communication, I simply need the ability to send commands to the device.
I have looked at Atmel's website and also on AVRFreaks and I see nothing of value to my project.
Please review page 10 of this Adobe PDF from Lin Engineering to understand more about the device I need to communicate with.
RS-485 is just the electrical specification for a differential serial bus. There are many different data formats that can be used. To connect RS-485 to a microcontroller you need some hardware driver IC, there are plenty to choose from (a quick search at Farnell found 39).
The low level serial format may be 9600 8N1, if page 13 of the driver manual is any indication.
The higher level format (how to send commands to the motor) is not specified in the document, and I didn't find it elsewhere.
In the UC3A1512 you need to configure one of the USARTs to RS-485 operation, see Chapter 26 of the data sheet. Once the interface is configured the operation may be similar to RS-232, if a simple command format is used.
RS485 is a simple symmetrical serial bus. The data that you need to send over that serial link must be specified in the reference data sheet for your UC3A1512 device.
To create and debug your application (probably on an emulator it is useful that you can send it from your host PC before you try it from the embedded controller. This is easy, as RS485 allows multiple connections in contrast to RS232 which is point to point.
RS485 can be converted to regular serial RS232.
If your computer has no RS232 port anymore (most don't) you can get an USB to RS232 converter.
So far the most relevant answers have come from my question posted on electronics.stackexchange.com
Had I known this existed prior to posting my question on Stack I would have limited my question to Electronics & Robotics ONLY. As I had already asked the question and receive answers, I have opted to keep both questions open.
Thanks for your responses!

I want to establish a TCP/IP connection over a UART connection (Windows XP/7) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I want to connect two computer via serial but for each to see each other via a TCP/IP connection. Ie, create new network device on the computers that are in actual fact serial ports.
The reason for this is that I am actually testing the medium in which the serial connection is made (wireless), and part of the experiment will be to use TCP/IP.
The radio being tested is a telemetry radio for use in low power applications. It polls once a second, sending data out on the wireless channel every poll when something has been received via the serial port. It uses a Modbus RTU delimiter to determine the end of data coming in on the serial port.
slip and ppp are more suitable for use with actual serial modems from what I understand.
This is actually a very hard problem. TCP/IP is a very chatty protocol and you will have problems with the radio system you have described because of the pattern of packets and ACKs you will have. In the past for some similarly unsuited applications I worked on a system that fibbed about the TCP/IP connection by faking some packets while pushing the data over a link like you have.
It is a pain, but we were doing it to support sshing over a totally inappropriate channel (high loss and high latency with moving endpoints) but it worked.
SLIP (Serial Line IP) sounds like something you might want to look into for this project.
you may use Simple TCP/IP, UDP connection by using UART using a software like this:
http://www.serialporttool.com/CommTunnel.htm

Resources