|
Post by stan58 on Nov 6, 2018 4:12:03 GMT -5
Is it possible with LB to interface with an ethernet connection ?. My application is just to read a few bytes of data from a measuring instrument
|
|
|
Post by Brandon Parker on Nov 6, 2018 8:30:51 GMT -5
What is the protocol you with to use? Ethernet is the physical medium, but you have to specify what protocol you expect to talk to the device with.
{:0)
Brandon R. Parker
|
|
|
Post by stan58 on Nov 6, 2018 9:02:12 GMT -5
Brandon Thank you. I have got my instrunments communicating through the serial port so can it be a virtual serial port ? Sorry for my ignorance
|
|
|
Post by Rod on Nov 6, 2018 9:04:42 GMT -5
Can you point us at the support page for the instrument you speak of? If we can see that we will be able to show code on how to communicate with the device.
|
|
|
Post by stan58 on Nov 6, 2018 10:36:51 GMT -5
Rod It is my own product and is an Industrial weight indicator , I use and programme a PIC micrroprocessor with a UART and level shift ic . I can use a serial to USB convertor into a PC and with
|
|
|
Post by stan58 on Nov 6, 2018 10:43:21 GMT -5
Rod It is my own product and is an Industrial weight indicator , I use and programme a PIC micrroprocessor with its on chip UART and a level shift ic I can use a serial to USB convertor into a PC and with LB import the serial data. In the past I have used an rs232 to ethernet convertor for pc use.
|
|
|
Post by Chris Iverson on Nov 6, 2018 12:08:53 GMT -5
LB can not interface with the OS/hardware at a low enough level to do raw data capture from the ethernet port, which is what would be needed if you have an RS232-to-ethernet conversion cable. I'm honestly not sure if anything outside of a device driver would be able to. (Those cables aren't usually used for interfacing on the PC side; they're most often used for network switches, which have a serial console configured on one of the RJ45 ports. The D-sub end is used to connect to the PC in this case.)
If you use the USB-to-Serial converter, LB can read from that, since it presents to the OS as a comport that LB is able to use.
|
|
|
Post by stan58 on Nov 6, 2018 12:21:12 GMT -5
Rod Yes as you say LB is fine with a serial to usb adaptor.Once again thanks.
|
|
|
Post by stan58 on Nov 9, 2018 5:50:15 GMT -5
I solved my problem by using a Brainbox Ethernet to serial convertor,ES-246. This works fine ,my weighing indicator sends out an rs232 data string to the convertor this then transmits to the PC via the ethernet port and the Brainbox software and drivers produce a virtual serial port within the host PC for LB to easily read. The advantage is that I can now send the data over distance . Thank you to the experts for helping me
|
|
|
Post by Rod on Nov 9, 2018 7:50:23 GMT -5
Ok good. But I cant but help think that if your device is rs232 capable that all you needed was a USB serial adaptor plugged into your PC if it did not already have a serial port. No drivers necessary, Windows standard rs232 drivers, which Liberty can talk to easily. Long cable runs too. But if its working its working!
|
|
|
Post by stan58 on Nov 9, 2018 10:11:43 GMT -5
Yes I have been using a Serial to USB device succesfully , Its just that sometimes I may exceed the safe distance for a serial transmission plus It allows the possibility of having several units in a network.
|
|