Local FILENAME="$(/usr/bin/basename $FILEPATH)" I'm kinda rusty with Linux, and I think it has been at least 15 years since I compiled my last kernel or anything in Linux, so please be gentle -) Patching the source is probably the biggest difficulty, no clue how to do that. My guess is I probably have to patch the source and build it myself using this nice guide. Unfortunately, I have no clue how to add the required driver support to my running 380.68 and was hoping someone could point me in the right direction. I don't seem to be the only one encountering this, as in the past patches seem to have been made which enabled the CH341 driver, e.g.: In any case, upon opening /dev/ttyUSB0 with screen or minicom the system just keeps waiting for input. The chipset, however, is CH340 and is also recognized as ch340 or ch341 (drivers should be the same, can't remember which) by Ubuntu.īus 002 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapterīut as far as I know the ch341 driver is missing and the generic usbserial driver or some GSM driver is loaded instead. In contrast to Ubuntu the device also shows up as a GSM modem. It is a bit puzzling to see the devices apparently connects and disconnects (or maybe it is because I plugged it in and out a few times since the last reboot). Option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0 Usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0 At first the interface kept disconnecting, which I fixed by mknod /dev/ttyUSB0 c 188 0 as suggested here: However, things didn't go as expected on rlin 380.68 with entware installed. I tested the USB convertor under Windows and Ubuntu 16.04.3 on my laptop, and I have no problems in receiving the messages. The device send a 35 lines message every 20 seconds, of which I want to capture some data. Having DSR, CTS, RTS and DTR available can come in very handy, allowing for example, a VB based app to do I/O with the Picaxe.I am trying to use my ASUS RT-AC68U router to read-out a device through the serial interface. All you have to do is solder in a header into an unpopulated header position on the board. These bring out ALL of the serial signals including DTR,RTS, DSR, CTS and RI. There are some CP2102 based USB to TTL adapters on EBay branded "BAITE". While I use these cheapies here on the bench with good results, my preference is still an FTDI based adapter. Some of these are known to be fakes and might not work. The only way you would not need to invert the data is if you get a USB to RS232 cable/adaptor, in which case the adapter will be sending RS232 level voltages to the Picaxe just like using an AXE026 serial cable. Any of these methods should give adequate results. or two NPN transistors or even two 2n7000 FETS. Inversion can be done with either a digital inverter chip such as an 74HC14 or equivalent. None of these can be programmed to invert the data ( required for Picaxe programming) so external inversion will be necessary. All can usually be made to work unless you happen to get a "fake" Prolific based adapter where the Bridge Chip is not a real Prolific Chip. I have used the arduino one before but at 10€ + shipping it is almost as expensive as the Download have done extensive testing of most of the "cheap" USB to TTL adapters, including several different models of CP2102, Prolific, and CH340/341. One of the cheapest is this one from, where else, China: What are your experiences with these USB adapters? If I google a litle bit I find all kinds of USB to Serial/UART devices ranging from 2.5 USD up to infinity The circuit only draws a few miliamps, far less then 100 mA and runs on 5V so it should be perfectly happy with USB power. One example is a project where I upgrade a old NES controller to send button events over USB to my PC where a application written in C# converts the serial data back to keystrokes. The Picaxe download cable is very nice but at 12£ it's quite expensive (compared to the low cost of a picaxe) it also, for a good reason, lacks the ability to power the picaxe. For some projects I need constant Picaxe to PC communication over USB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |