This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem with OS X and cu.usbmodem

Hello,

not strictly an nrf question, but I am having trouble communicationg with the developer dongles under OS X. I am using screen to connect to my terminal and the input and output seem to work at first, but as soon as I copy and paste a longer command, it appends "USB" to that string. Don't know where it comes from. If my string gets longer, it will crash the serial port. Are there any specific drivers for the USB to Serial Bridge that I could install?

Thanks, Marius

Parents
  • That's the most bizarre issue I've heard yet .. randomly appending 'USB' to something. The developer dongles support a standard USB CDC device for which the driver in OSX is one of the most mature around, I've run all sorts of different CDC devices over it and never had an issue. There used to be odd issues with FTDI based devices, but even those appear now to be fixed. So no you should need no special driver.

    'screen' is a bit old however and not updated in a long time, and not perfect for straight serial communication. I use CoolTerm (freeware.the-meiers.org) which, despite being written by a guy who claims he's not a programmer, and in RealBasic too, is stable, has all the features I've ever needed and 'just works'. I also have something called 'SerialTools' which I think came free from the mac app store but mostly use CoolTerm. I've used that with serial devices from 300 to 115200 baud, with and without flow control, on nordic chips (really segger chips as they provide the serial interface), TI chips, Atmel chips and FTDI chips and had no problems.

    Perhaps if you try a different serial program you'll have better success, either way I'd recommend giving that a go and seeing if it helps.

  • Ok so what has that got to do with 'screen' then? Do you have the problem with screen or with the java library or with both of them? The whole issue really doesn't make a lot of sense, what's appending 'USB' to the string, you're sending one string but the one on the other end ends 'USB' or 'USB' appears on the screen and is sent to the other end? If it's appearing on the screen, then it's more likely to have to do with the copy and paste operation.

    Lots of us are using USB CDC devices as standard serial terminals with no issues, and at high speed, and for days on end (the ble sniffer just uses the serial port and transfers loads of data)

    See if you can reproduce any issues with one of the serial programs just suggested.

Reply
  • Ok so what has that got to do with 'screen' then? Do you have the problem with screen or with the java library or with both of them? The whole issue really doesn't make a lot of sense, what's appending 'USB' to the string, you're sending one string but the one on the other end ends 'USB' or 'USB' appears on the screen and is sent to the other end? If it's appearing on the screen, then it's more likely to have to do with the copy and paste operation.

    Lots of us are using USB CDC devices as standard serial terminals with no issues, and at high speed, and for days on end (the ble sniffer just uses the serial port and transfers loads of data)

    See if you can reproduce any issues with one of the serial programs just suggested.

Children
No Data
Related