"cat" won't set the baud rate for you, "stty" does that.
Linux has my all time favourite usefulnifty tool "strace" strace cs1504 /dev/ttyUSB0 Will tell you _exactly_ what, at the operating system level, the program cs1504 is doing. I can tell you the output is eminently scriptable, it's valid JSON and every scripting language can trivially eat that these days. On Thu, Oct 24, 2013 at 12:48 PM, dave <[email protected]> wrote: > ** > > Yup, > > > > It wouldn't surprise me if it's a combination of me not getting the BT > rfcomm port up and the code in the program to allow for the connection to > be used. > > > > As for the BT barcode scanner uses CS1504 symbol commands to interact with > it I don't think a cat comand will work minicon would work in so far as > sending a command to the scanner and getting a response back. > > > > from the terminal this is what happens if you try to do a cat /dev/ttyUSB0 > and use the program. > > > > dave@main-pc:~$ cat /dev/ttyUSB0 > > dave@main-pc:~$ cs1504 /dev/ttyUSB0 > > > > Value in argv = /dev/ttyUSB0 > > { > > "DeviceID": " 00 00 00 00 00 54 18 97", > > "DeviceSW" : "RBBV0143", > > "data": [ > > {"type":"Code 128", "code": "207605", "time": "11:14:15 PM 9/20/13"}, > > {"type":"UPCA", "code": "619659089597", "time": "08:31:37 PM 10/17/13"}, > > {"type":"UPCA", "code": "619659089597", "time": "08:31:38 PM 10/17/13"} > > ] > > } > > dave@main-pc:~$ > > > > > > Dave. > > > > On Thu, 24 Oct 2013 12:08:03 John Carter wrote: > > > On Wed, Oct 23, 2013 at 6:47 PM, dave <[email protected]> wrote: > > > > OPN2002 > > > > > > I have a suspicion you don't need a fancy program, you just need to use > the > > > appropriate USB or BT standard compliant tool. > > > > > > For example, for /dev/ttyUSB the tool is probably as simple as "cat". > > > > > > I suspect something similar for the BT SPP. > > _______________________________________________ > Linux-users mailing list > [email protected] > http://lists.canterbury.ac.nz/mailman/listinfo/linux-users > > -- John Carter Phone : (64)(3) 358 6639 Tait Electronics PO Box 1645 Christchurch New Zealand -- ------------------------------ This email, including any attachments, is only for the intended recipient. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If you are not an intended recipient, you may not use, disseminate, distribute or reproduce such email, any attachments, or any part thereof. If you have received a message in error, please notify the sender immediately and erase all copies of the message and any attachments. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission nor can we guarantee that any email or any attachments are free from computer viruses or other conditions which may damage or interfere with recipient data, hardware or software. The recipient relies upon its own procedures and assumes all risk of use and of opening any attachments. ------------------------------
_______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
