Kenneth Martin

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: xDot has only one /dev/ttyACM? #16303
    Kenneth Martin
    Participant

    P.S. It appears python also has encoders and decoders:
    https://docs.python.org/2/library/base64.html
    using:
    >>> import base64
    >>> encoded = base64.b64encode(‘data to be encoded’)
    >>> encoded
    ‘ZGF0YSB0byBiZSBlbmNvZGVk’
    >>> data = base64.b64decode(encoded)
    >>> data
    ‘data to be encoded’

    in reply to: xDot has only one /dev/ttyACM? #16300
    Kenneth Martin
    Participant

    Thanks Mike, great answers. Ken

    in reply to: xDot has only one /dev/ttyACM? #16296
    Kenneth Martin
    Participant

    That was it Mike; you just save me mucho time.

    > sudo miniterm.py /dev/ttyXRUSB0 115200
    — Miniterm on /dev/ttyXRUSB0 115200,8,N,1 —
    — Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
    at+join
    Command not found!

    ERROR

    atz

    OK
    at+ack=1

    OK

    at+join
    Successfully joined network

    OK

    at+send=hello world

    OK

    On host:
    root@mtcdt:/var/log# nc –udp –listen –local-port 1784
    lora/00-80-00-00-04-00-03-d6/packet_recv {“chan”:2,”codr”:”4/5″,”data”:”gAEAAAYAAAAB98OZjqk82qaZuVTrIHIK”,”datr”:”SF10BW125″,”freq”:912.29999999999995,”lsnr”:10,”modu”:”LORA”,”rfch”:0,”rssi”:-31,”size”:24,”stat”:1,”time”:”2017-01-12T19:15:23.909064Z”,”tmst”:2341181468}lora/00-80-00-00-04-00-03-d6/up {“chan”:2,”cls”:0,”codr”:”4/5″,”data”:”aGVsbG8gd29ybGQ=”,”datr”:”SF10BW125″,”freq”:”912.3″,”lsnr”:”10″,”mhdr”:”8001000006000000″,”modu”:”LORA”,”opts”:””,”port”:1,”rfch”:0,”rssi”:-31,”seqn”:0,”size”:16,”timestamp”:”2017-01-12T19:15:23.909064Z”,”tmst”:2341181468}
    lora/00-80-00-00-04-00-03-d6/packet_sent {“codr”:”4/5″,”data”:”YAEAAAYgAQCM2em1″,”datr”:”SF10BW500″,”freq”:926.89999999999998,”ipol”:true,”modu”:”LORA”,”ncrc”:false,”powe”:14,”rfch”:0,”size”:12,”tmst”:2342181468}

    /dev/ttyXRUSB0 is new to me. Any reference links on how serial USB works? Also, since I have your attention: would you have a link on how to interpret “data”:”aGVsbG8gd29ybGQ=” as “hello world”? Is it just a matter of converting from ascii to hex and then reversing bytes? Finally, any thoughts on why the re-flashing timed out when I dropped
    mDot_AT_firmware_XDOT_L151CC.bin onto the maintenance window? Finally,finally, if MultiTech had a site of categorized gotchas and fixes, I would be a willing contributor. Thanks again for getting me back up and running; appreciated.
    -Ken

    in reply to: xDot has only one /dev/ttyACM? #16293
    Kenneth Martin
    Participant

    Unplugged:
    > ls /dev/ttyA* /dev/ttyX*
    ls: cannot access ‘/dev/ttyA*’: No such file or directory
    ls: cannot access ‘/dev/ttyX*’: No such file or directory
    After plugging and Files explorer window popping up:
    > ls /dev/ttyA* /dev/ttyX*
    /dev/ttyACM0 /dev/ttyXRUSB0
    > mount | g /dev/sdc
    /dev/sdc on /media/martin/XDOT type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
    After unmounting:
    > mount | g /dev/sdc
    > ls /dev/ttyA* /dev/ttyX*
    /dev/ttyACM0 /dev/ttyXRUSB0
    >
    After unplugging:
    > ls /dev/ttyA* /dev/ttyX*
    ls: cannot access ‘/dev/ttyA*’: No such file or directory
    ls: cannot access ‘/dev/ttyX*’: No such file or directory
    >

Viewing 4 posts - 1 through 4 (of 4 total)